body[data-need-app="1"] {
  --ink: #1c1612;
  --muted: rgba(28, 22, 18, 0.64);
  --line: rgba(28, 22, 18, 0.12);
  --field: #fff;
  --paper: #f4f1eb;
  --sheet: #fffcf8;
  --menu: #fff;
  --wash: rgba(163, 130, 108, 0.22);
  --hit: rgba(163, 130, 108, 0.28);
  --shadow: rgba(28, 22, 18, 0.14);
  --pressed-ink: #1a120e;
  --lens: rgba(28, 22, 18, 0.06);
  --lens-line: rgba(28, 22, 18, 0.1);
  --lens-ink: rgba(28, 22, 18, 0.62);
  --lens-on: #fff;
  --lens-on-ink: #1c1612;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

body[data-need-app="1"][data-wheel="fog"] {
  --ink: #f5f5f7;
  --muted: #98989d;
  --line: rgba(255, 255, 255, 0.14);
  --field: #2a2a2c;
  --paper: #000;
  --sheet: #1c1c1e;
  --menu: #1c1c1e;
  --wash: rgba(143, 163, 199, 0.24);
  --brown: #8fa3c7;
  --hit: rgba(143, 163, 199, 0.32);
  --shadow: rgba(0, 0, 0, 0.5);
  --pressed-ink: #0b0b0d;
  --lens: rgba(255, 255, 255, 0.07);
  --lens-line: rgba(255, 255, 255, 0.1);
  --lens-ink: rgba(245, 245, 247, 0.62);
  --lens-on: #fff;
  --lens-on-ink: #111;
  background: #000;
  color: #f5f5f7;
  color-scheme: dark;
}

body[data-need-app="1"] .bar {
  flex-shrink: 0;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
}
body[data-need-app="1"] .mark { height: 36px; }
body[data-need-app="1"] .bar-right { gap: 8px; }
body[data-need-app="1"] .bar:has(.view-tabs) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
body[data-need-app="1"] .bar:has(.view-tabs) .bar-left { justify-self: start; }
body[data-need-app="1"] .bar:has(.view-tabs) .view-tabs { justify-self: center; }
body[data-need-app="1"] .bar:has(.view-tabs) .bar-right {
  margin-left: 0;
  justify-self: end;
}

body[data-need-app="1"] .signup {
  color: var(--pressed-ink);
}

html[data-theme="dark"] body[data-need-app="1"] {
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.64);
  --line: rgba(232, 208, 168, 0.16);
  --field: #2c261f;
  --paper: #14110e;
  --sheet: #1f1a15;
  --menu: #241e18;
  --wash: rgba(176, 141, 87, 0.28);
  --hit: rgba(196, 165, 116, 0.34);
  --shadow: rgba(0, 0, 0, 0.5);
  --pressed-ink: #1a120e;
  --brown: #c4a574;
  --lens: rgba(244, 228, 196, 0.08);
  --lens-line: rgba(244, 228, 196, 0.14);
  --lens-ink: rgba(244, 239, 230, 0.66);
  --lens-on: #f4efe6;
  --lens-on-ink: #1c1612;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
}

html[data-theme="dark"] .dial-hub,
html[data-theme="dark"] .dial-hub h2 {
  color: #1c1612;
}

html[data-theme="dark"] .dial-kicker,
html[data-theme="dark"] .dial-sub {
  color: rgba(28, 22, 18, 0.64);
}

body[data-need-app="1"][data-wheel="fog"] .mark-ink,
html[data-theme="dark"] body[data-need-app="1"] .mark-ink { display: none; }
body[data-need-app="1"][data-wheel="fog"] .mark-fog,
html[data-theme="dark"] body[data-need-app="1"] .mark-fog { display: block; }
.mark-fog { display: none; }

body[data-need-app="1"][data-wheel="fog"] .prose {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}
body[data-need-app="1"][data-wheel="fog"] .card h3,
body[data-need-app="1"][data-wheel="fog"] .sunday h3,
body[data-need-app="1"][data-wheel="fog"] .season-essay h3,
body[data-need-app="1"][data-wheel="fog"] .season-copy h2,
body[data-need-app="1"][data-wheel="fog"] .composer h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn svg { width: 22px; height: 22px; }
#app-full svg { grid-area: 1 / 1; }
#app-full .full-leave { display: none; }
#app-full[aria-pressed="true"] .full-enter { display: none; }
#app-full[aria-pressed="true"] .full-leave { display: block; }
.icon-btn[aria-pressed="true"],
.icon-btn:hover { color: var(--brown); }
.latch-btn {
  box-sizing: border-box;
  border: 1.6px solid currentColor;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
}
.latch-btn[aria-pressed="true"] {
  background: var(--wash);
  color: var(--brown);
}

.role {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.role button,
.exp-option,
.modules button,
.chips button,
.age button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.role button {
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.role button[aria-pressed="true"] {
  background: var(--brown);
  color: var(--pressed-ink);
}

.bar .experience {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.person-btn {
  padding: 0;
  color: var(--ink);
}

.person-btn[aria-expanded="true"] {
  color: var(--brown);
  background: var(--wash);
}

.experience-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px, 92vw);
  max-height: min(720px, calc(100vh - 120px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--menu);
  color: var(--ink);
  box-shadow: 0 16px 40px var(--shadow);
}

.experience-menu[hidden] { display: none; }

.exp-kicker {
  margin: 10px 8px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exp-kicker span {
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}

.exp-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
}

.exp-option[aria-pressed="true"] {
  background: var(--wash);
  color: var(--ink);
}

.exp-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}

.exp-desc {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.exp-ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.lens {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  align-self: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 2px auto 6px;
  padding: 3px;
  border-radius: 999px;
  background: var(--lens);
  border: 1px solid var(--lens-line);
}

.lens button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lens-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.lens button:hover { color: var(--ink); }

.lens button[aria-checked="true"] {
  background: var(--lens-on);
  color: var(--lens-on-ink);
}

.chips button,
.age button,
.modules button {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.chips button[aria-pressed="true"],
.age button[aria-pressed="true"],
.modules button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--wash);
}

.bar .search { margin-left: 0; }

.search input {
  width: min(280px, 70vw);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.view-tabs button {
  appearance: none;
  margin: 0 0 -1px;
  padding: 10px 16px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.view-tabs button:hover { color: var(--ink); }
.view-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--brown);
}
body[data-need-app="1"] .bar .view-tabs {
  align-self: stretch;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  border-bottom: 0;
}
body[data-need-app="1"] .bar .view-tabs button {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 13px;
  font-size: 14px;
  white-space: nowrap;
}
.lit-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}
.lit-toggle button {
  appearance: none;
  max-width: 320px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}
.lit-toggle button:hover { color: var(--ink); }
.lit-toggle button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--brown);
  background: var(--wash);
}
.lit-group { margin: 0 0 28px; }
.lit-group h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lit-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lit-list a, .lit-list button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.lit-list a:hover, .lit-list button:hover { border-color: var(--brown); }
.lit-list .edition {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.modules {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
}

.modules button { white-space: nowrap; font-size: 15px; }

.workspace {
  display: flex;
  align-items: stretch;
  min-height: 0;
  flex: 1;
}

.context-pane {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--sheet);
  padding: 0;
}
.context-pane[hidden] { display: none; }
.context-sticky {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 16px 14px 8px;
  background: var(--sheet);
}
.context-pane .context-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 14px 12px;
}
.context-clear {
  flex: 0 0 auto;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.context-clear p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}
.context-clear-actions { display: flex; gap: 8px; }
.context-clear button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.context-clear button[data-filters-clear="yes"] { background: var(--wash); }
.context-pane.is-collapsed .context-clear { display: none; }
.context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.context-bar h2,
.context-sticky h2 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.context-collapse {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.context-pane.is-collapsed {
  flex-basis: 46px;
  width: 46px;
  padding: 12px 4px;
  overflow: hidden;
}
.context-pane.is-collapsed .context-body { display: none; }
.context-pane.is-collapsed .context-bar {
  flex-direction: column;
  margin: 0;
}
.context-bar-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.context-pane .experience { position: relative; }
.context-pane .experience-menu {
  position: fixed;
  z-index: 40;
  right: auto;
}
.context-pane.is-collapsed .context-bar-tools {
  flex-direction: column;
  align-items: center;
}
.context-pane.is-collapsed .context-bar h2 { display: none; }
.context-pane.is-collapsed .context-sticky {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  position: static;
}
.context-pane.is-collapsed .context-collapse {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: 0;
  background: none;
  padding: 8px 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.context-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.context-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}
.context-pill span { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.context-pill.is-fixed { cursor: default; background: var(--wash); }
.context-empty { margin: 0; color: var(--muted); font-size: 13px; }
.content-dock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: clamp(220px, 34vh, 380px);
  min-height: 0;
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.content-dock.is-collapsed { height: auto !important; }
.content-dock-edge {
  position: absolute;
  left: var(--dock-inset-left, 0px);
  right: var(--dock-inset-right, 0px);
  top: -6px;
  height: 12px;
  cursor: ns-resize;
  touch-action: none;
  z-index: 3;
}
.content-dock-edge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 999px;
  background: var(--line);
}
.content-dock.is-collapsed .content-dock-edge { display: none; }
.content-dock-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  margin-left: var(--dock-inset-left, 0px);
  margin-right: var(--dock-inset-right, 0px);
  padding: 6px 16px;
}
.content-dock-bar h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.content-dock-bar h2 span {
  margin-left: 8px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.content-dock-actions { display: flex; align-items: center; gap: 8px; }
.content-dock-bar button {
  appearance: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.content-dock-bar .signup {
  border: 0;
  background: var(--brown);
  color: var(--pressed-ink);
  font-weight: 600;
}
.content-dock .composer { margin: 0 0 12px; }
.content-dock-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin-left: var(--dock-inset-left, 0px);
  margin-right: var(--dock-inset-right, 0px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 16px 14px;
}
.content-dock.is-collapsed .content-dock-scroll { display: none; }
.type-filters {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: var(--dock-inset-left, 0px);
  margin-right: var(--dock-inset-right, 0px);
  padding: 0 16px 10px;
}
.type-bulk {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding-left: 8px;
}
.type-filters .type-link {
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-dock.is-collapsed .type-filters { display: none; }
.type-filters button {
  appearance: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}
.type-filters button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--wash);
  border-color: transparent;
}
.type-pick {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.type-pick legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}
.type-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.type-pick-grid.filter-scroll {
  max-height: 168px;
  overflow: auto;
  align-content: flex-start;
}
.type-pick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.type-pick label:has(input:checked) {
  color: var(--ink);
  background: var(--wash);
  border-color: transparent;
}
.type-pick input { margin: 0; }
.type-pick-error {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
}
.composer [data-type-error] { grid-column: 1 / -1; }
.context-feed ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.context-feed li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.context-feed .empty { margin: 4px 0 8px; }
.post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 2px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.post:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.post.is-open { background: var(--wash); border-radius: 16px; }
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}
.post.is-open .post-avatar { background: var(--sheet); }
.post-id { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; }
.post-name { font-size: 15px; font-weight: 700; }
.post-meta { color: var(--muted); font-size: 14px; }
.post-title {
  margin: 1px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.post-summary {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
}
.post:not(.is-open) .post-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.post-widget {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.post-frame, .post-widget video, .post-widget img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
  border: 0;
}
.post-frame { aspect-ratio: 16 / 9; background: #111; }
.post-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.post-widget.is-text, .post-widget.is-link, .post-widget.is-audio, .post-widget.is-note { padding: 12px 96px 16px 14px; }
.post-widget.is-file { padding: 12px 14px 16px; }
.post-widget.is-link a {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.post-widget-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
}
.post-excerpt.is-full { display: block; -webkit-line-clamp: unset; }
.post-widget audio, .post-widget video { cursor: auto; }
.post-widget.is-audio audio { width: 100%; }
.post-widget.is-book:not(.is-link) { cursor: auto; }
.post-doc-bar {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 96px 8px 14px;
}
.post-doc-bar span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-doc-bar strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-doc {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  background: #fff;
}
.post-url {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}
.post-widget .post-note {
  margin: 0;
  padding: 8px 14px 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.card .post-widget { margin-top: 12px; }
.post-widget.has-preview.is-text,
.post-widget.has-preview.is-link,
.post-widget.has-preview.is-audio,
.post-widget.has-preview.is-note,
.post-widget.has-preview.is-file { padding: 0; }
.post-widget.has-preview.is-link a { padding: 12px 96px 16px 14px; }
.post-widget.has-preview.is-audio .post-widget-kicker,
.post-widget.has-preview.is-text .post-widget-kicker,
.post-widget.has-preview.is-note .post-widget-kicker,
.post-widget.has-preview.is-text .post-excerpt,
.post-widget.has-preview.is-note strong { display: block; margin: 12px 96px 0 14px; }
.post-widget.has-preview.is-audio audio {
  display: block;
  width: calc(100% - 110px);
  margin: 8px 96px 0 14px;
}
.post-widget.has-preview.is-file .post-widget-kicker,
.post-widget.has-preview.is-file strong { display: block; margin: 12px 14px 0; }
.post-widget.has-preview.is-file { padding-bottom: 16px; }
.post-widget.has-preview .post-note { margin: 0 14px; }
.post-widget .post-preview {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 140px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  margin: 8px auto 0;
}
.post.is-open .post-widget .post-preview {
  max-height: min(520px, 62vh);
  margin-top: 0;
}
.post:not(.is-open) .post-widget .post-note {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.feed-view-panel img.post-preview {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  margin-right: auto;
  margin-left: auto;
}
.post-expand, .post-actions button, .post-actions a, .feed-view-panel .post-actions button, .feed-view-panel .post-actions a {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.post-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 10px;
}
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.post-actions button, .post-actions a { padding: 5px 12px; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.entry-actions p { margin: 0; font-size: 13px; line-height: 1.4; }
.entry-actions button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
}
.entry-actions button[data-entry-delete="yes"] { background: var(--wash); }
.card-actions .entry-actions,
.post-actions .entry-actions { display: contents; }
.card-actions .entry-actions { margin-top: 0; }
.feed-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}
.feed-view-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 12, 0.72); }
.feed-view-panel {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px 18px 20px;
  border-radius: 16px;
  background: var(--sheet);
  color: var(--ink);
}
.feed-view-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feed-view-panel header h2 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}
.feed-view-panel header .post-actions { margin-top: 0; flex: 0 0 auto; }
.feed-view-frame, .feed-view-panel video, .feed-view-doc {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: #111;
}
.feed-view-frame { aspect-ratio: 16 / 9; overflow: hidden; }
.feed-view-frame iframe, .feed-view-panel video, .feed-view-doc { height: min(70vh, 540px); }
.feed-view-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.feed-view-panel img { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 12px; }
.feed-view-url { margin: 16px 0 0; color: var(--muted); word-break: break-word; }
.feed-view-read { max-width: 66ch; margin-top: 8px; }
.feed-view-read p, .post-body { margin: 8px 0 0; font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 18px; line-height: 1.45; }
body[data-need-app="1"]:not([data-desk]) .workspace { overflow: hidden; }
body[data-need-app="1"]:not([data-desk])[data-module="lectionary"] #sankey-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-need-app="1"]:not([data-desk]) #sankey-root {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-need-app="1"]:not([data-desk]) #sankey-root svg {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
}
.context-add {
  appearance: none;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.context-add[aria-pressed="true"] {
  border-color: var(--brown);
  background: var(--wash);
}
.context-row { margin: 0 0 16px; }
.occasion-board { margin: 8px 0 24px; }
.occasion-group { margin: 0 0 22px; }
.occasion-group h2 { margin: 0; }
.occasion-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.occasion-toggle::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}
.occasion-group.is-collapsed .occasion-toggle { margin-bottom: 0; }
.occasion-group.is-collapsed .occasion-toggle::before { transform: rotate(-90deg); }
.occasion-group.is-collapsed .occasion-list { display: none; }
.occasion-list { margin: 0; padding: 0; list-style: none; }
.occasion-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.occasion-list strong { display: block; font-size: 16px; }
.occasion-list span { color: var(--muted); font-size: 13px; }

body[data-need-app="1"]:not([data-desk]) #viz-zoom {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#sankey-panel { display: none; }
body[data-module="lectionary"] #stage { display: none; }
body[data-module="lectionary"] #sankey-panel {
  display: block;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-top: 0;
}

#lit-bar[hidden] { display: none; }
#lit-bar:not([hidden]) {
  display: flex;
  flex: none;
  justify-content: center;
  padding: 16px 18px 4px;
}
#lit-bar .lit-toggle { margin: 0; }

#books-home,
#nation-home { display: none; }

body[data-module="literature"][data-lit="eccles"] #stage,
body[data-module="literature"][data-lit="national"] #stage { display: none; }

body[data-module="literature"][data-lit="eccles"] #books-home,
body[data-module="literature"][data-lit="national"] #nation-home {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#books-home #shelf {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

#books-home .reader:not([hidden]) {
  flex: 1;
  height: auto;
  min-height: 0;
}

#books-home .leaf-frame { min-height: 0; }
#books-home .leaf-frame img { max-height: 100%; }

#nation-home .nation-reader {
  flex: 1;
  height: auto;
  min-height: 0;
}

.lit-search { display: block; margin: 0; }
.books-home > .lit-search { padding: 16px 28px 0; }
.nation-reader .lit-search { padding: 8px 10px 12px; }
.lit-search input {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.nation-reader .lit-search input { max-width: none; }
#stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px 28px 64px;
}

#stage.is-year {
  padding: 4px 24px 32px;
}

.lede {
  max-width: 40rem;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
}

.card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--brown);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.card .meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.card a, .card .text-toggle {
  align-self: flex-start;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card .text-toggle {
  appearance: none;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.card .body {
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
}

.empty {
  margin: 8px 0 0;
  color: var(--muted);
}

.canon-tree {
  display: grid;
  grid-template-columns: 7.25rem 2.7rem minmax(8.75rem, 11.5rem) minmax(16rem, 1fr);
  width: max(100%, 44rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}
.canon-tree > * {
  margin: 0;
  min-height: 2.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.canon-tree button {
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 8px;
}
.canon-tree button[aria-pressed="true"] { background: var(--wash); }
.canon-tree > .canon-testament,
.canon-tree > .canon-section {
  position: relative;
  padding: 0;
}
.canon-testament {
  grid-column: 1;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.15;
}
.canon-testament > span {
  position: absolute;
  top: 12px;
  left: 8px;
  right: 8px;
  display: block;
  text-align: center;
}
.canon-tree > .canon-section {
  grid-column: 2;
  min-height: 9.5rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.canon-tree > .canon-section > span {
  position: absolute;
  top: 12px;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
  padding: 0;
  line-height: 1.2;
}
.canon-book {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 12px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 17px;
}
.canon-blurb {
  grid-column: 4;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.canon-blurb.is-on {
  background: var(--wash);
  color: var(--ink);
}
.canon-credit {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.canon-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.canon-switch button {
  appearance: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.canon-switch button:hover { color: var(--ink); }
.canon-switch button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--brown);
  background: var(--wash);
}
.canon-radial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}
.canon-chart { min-width: 0; }
.canon-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}
.canon-crumbs button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.canon-crumbs button:hover { color: var(--ink); }
.canon-crumbs button[aria-current="page"] {
  color: var(--ink);
  cursor: default;
}
.canon-crumb-sep { color: var(--muted); }
.canon-sun-wrap {
  position: relative;
  width: min(100%, calc(100dvh - 280px));
  margin: 0 auto;
}
.canon-chart:has(.canon-crumbs) .canon-sun-wrap {
  width: min(100%, calc(100dvh - 320px));
}
.canon-sun {
  display: block;
  width: 100%;
  height: auto;
}
.canon-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.canon-core-title {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 15px;
  line-height: 1.15;
}
.canon-core-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.canon-hole { fill: var(--field); }
.canon-hole-label {
  fill: var(--ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 22px;
}
.canon-hole-sub { fill: var(--muted); font-size: 13px; }
.canon-wedge { cursor: pointer; }
.canon-wedge.is-ot.is-depth-0 { fill: color-mix(in srgb, var(--brown) 68%, var(--sheet)); }
.canon-wedge.is-ot.is-depth-1 { fill: color-mix(in srgb, var(--brown) 46%, var(--sheet)); }
.canon-wedge.is-ot.is-depth-2 { fill: color-mix(in srgb, var(--brown) 26%, var(--sheet)); }
.canon-wedge.is-nt.is-depth-0 { fill: color-mix(in srgb, var(--ink) 24%, var(--sheet)); }
.canon-wedge.is-nt.is-depth-1 { fill: color-mix(in srgb, var(--ink) 16%, var(--sheet)); }
.canon-wedge.is-nt.is-depth-2 { fill: color-mix(in srgb, var(--ink) 9%, var(--sheet)); }
.canon-wedge[aria-pressed="true"] { fill: var(--wash); }
.canon-wedge:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.canon-label {
  fill: var(--ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  pointer-events: none;
}
.canon-label-flat { font-size: 18px; }
.canon-card {
  position: sticky;
  top: 12px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
}
.canon-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.canon-card-kicker {
  margin: 0 0 6px;
  color: var(--brown);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.canon-card-place { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.canon-card-blurb { margin: 12px 0 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.canon-card-empty { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 800px) {
  .canon-radial { grid-template-columns: 1fr; }
  .canon-card { position: static; }
}

.year {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wheel-stage {
  position: relative;
  width: min(100%, 680px, calc(100vh - 210px));
  aspect-ratio: 1;
  margin: 0 auto;
}

.wheel { width: 100%; height: 100%; display: block; overflow: visible; }

.wheel .band { cursor: pointer; }
.wheel-stage {
  transition: transform 0.42s ease, opacity 0.42s ease;
}
.wheel-stage.is-drilling {
  transform: scale(2.15);
  opacity: 0;
}
.year.is-arriving .wheel-stage {
  animation: wheel-in 0.45s ease;
}
@keyframes wheel-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: none; }
}
.wheel .season-label,
.wheel .feast-label,
.wheel .month-label {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  text-anchor: middle;
  dominant-baseline: middle;
}
.wheel .season-label {
  fill: #6e5430;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.wheel .feast-label {
  letter-spacing: 0.04em;
  pointer-events: none;
}
.wheel .month-label {
  fill: #8d7048;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drill { animation: unfold 0.48s ease; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.drill-top {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.drill-back {
  justify-self: start;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.drill-back::before { content: "← "; }
.lection-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.sundays {
  display: flex;
  justify-content: safe center;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  padding: 2px 2px 14px;
}
.sunday {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--season, #6e5430);
  border-radius: 14px;
  background: var(--field);
}
.sunday h3 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.sunday time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.sunday .holy-use { margin-top: 10px; }
.sunday-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.lesson {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 2px 8px;
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.35;
}
.lesson > span:first-child {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lesson button, .lesson .plain {
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.lesson button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.lesson .or,
.lesson .part {
  margin: 0 0.4em;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sundays.is-long {
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  width: min(860px, 100%);
  margin: 0 auto;
}
.sundays.is-long .sunday {
  flex: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  column-gap: 18px;
  align-items: start;
}
@media (prefers-reduced-motion: reduce) {
  .wheel-stage, .drill, .year.is-arriving .wheel-stage {
    transition: none;
    animation: none;
  }
}

.season-copy {
  text-align: center;
  max-width: 34rem;
}

.season-copy h2 {
  margin: 0 0 4px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}

.season-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.year .cards {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 14px;
  width: min(980px, 100%);
  overflow-x: auto;
}

.year .card { flex: 0 1 300px; background: var(--field); }
.year .empty { text-align: center; }

.age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.topic-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.listed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.listed .cards { grid-template-columns: 1fr; }

.choice-block { margin: 0; min-width: 0; }
.choice-block h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.age-grid button {
  appearance: none;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.age-grid button[aria-pressed="true"] { border-color: var(--brown); }

.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
}
.choice.is-on { border-color: var(--brown); }
.choice-hit {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.choice-hit:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.choice-name { font-size: 16px; }
.choice-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.choice .chips { margin: 0; }
.choice-act { display: flex; }
.choice .context-add { width: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }

.composer-launch { margin: 0 0 18px; }

.composer {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.composer h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 12px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.composer h2 button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.composer form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.composer label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.composer label.wide { grid-column: 1 / -1; }
.composer .type-pick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.composer .type-pick label:has(input:checked) {
  color: var(--ink);
  background: var(--wash);
  border-color: transparent;
}
.composer .lect-pick .lect-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.composer .lect-pick .lect-row label {
  display: grid;
  gap: 4px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.lect-days-label {
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.lect-pick [data-lect-days] .composer-note { margin: 8px 0 0; }
.lect-pick [data-lect-days] .type-pick-grid {
  max-height: 168px;
  overflow: auto;
}
@media (max-width: 800px) {
  .composer .lect-pick .lect-row { grid-template-columns: 1fr; }
}

.composer input, .composer select, .composer textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.composer textarea { min-height: 72px; resize: vertical; }

.composer-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.composer .file-drop input[type="file"] { border-style: dashed; }

.composer .signup { justify-self: start; margin-top: 16px; }

.card-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.events { display: grid; gap: 12px; }

.event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.event time {
  color: var(--brown);
  font-size: 14px;
}

.event h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.event p { margin: 0; color: var(--muted); font-size: 14px; }

.bible {
  display: flex;
  flex-direction: column;
  width: min(440px, 42vw);
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
}

.bible[hidden] { display: none; }

.bible.is-full {
  position: fixed;
  z-index: 12;
  inset: 52px 0 0 0;
  width: auto;
  border-left: 0;
}

/* Canonical book clicks keep the hierarchy table at full width. The Bible pane covers the notes. */
@media (min-width: 801px) {
  body[data-module="literature"][data-lit="canonical"] .workspace { position: relative; }
  body[data-module="literature"][data-lit="canonical"] .bible:not(.is-full) {
    position: absolute;
    z-index: 6;
    top: 0;
    right: 0;
    bottom: 0;
    box-shadow: -10px 0 24px rgba(0, 0, 0, 0.14);
  }
}

.bible-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.bible-bar h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bible-bar .grow { flex: 1; }

.bible-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.bible-tools button {
  appearance: none;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.bible-bar .back { margin: 0; }

.bible-tools button[aria-pressed="true"] { color: var(--pressed-ink); background: var(--brown); }

.bible-body { overflow: auto; padding: 18px 18px 48px; flex: 1; min-height: 0; }

.canon-group { margin: 0 0 22px; }
.canon-group h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.canon-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 10px;
  align-items: stretch;
}
.canon-side {
  border: 1.5px solid var(--brown);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  margin: 8px 0;
}
.nav-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.nav-list button {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.nav-list button:hover { border-color: var(--brown); }

.prose {
  max-width: 38rem;
  margin: 0 auto;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}

.bible.is-large .prose { font-size: 23px; max-width: 44rem; }

.prose h3 {
  margin: 28px 0 8px;
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}

.prose p { margin: 0 0 0.8em; }

.verse-hit { background: var(--hit); }

.xrefs {
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.xrefs h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.xrefs .xref-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.xrefs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.xrefs li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 4px 8px;
  align-items: start;
}

.xrefs .xref-verse {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brown);
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  cursor: pointer;
}

.xrefs .xref-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.xrefs .xref-refs button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vnum {
  margin-right: 0.15em;
  color: var(--brown);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.65em;
  font-style: normal;
}

.back {
  appearance: none;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.back:hover { color: var(--ink); }

#stage.is-year {
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 8px 16px 28px;
}

#stage.is-year .dial {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}

#stage.is-year .dial-stage {
  flex: 1 0 auto;
  height: min(68vh, 640px);
  min-height: 440px;
}

body:not([data-desk="analysis"]) #stage.is-year .dial {
  flex: 1 0 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body:not([data-desk="analysis"]) #stage.is-year .dial-stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
body:not([data-desk="analysis"]) #stage.is-year .occasion-board {
  width: min(920px, 100%);
  margin-top: 28px;
}

#stage.is-year .composer,
#stage.is-year .composer-launch {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

#stage.is-composing .dial,
#stage.is-composing .dial-frame,
#stage.is-composing .dial-svg { overflow: hidden; }

.wheel-aside {
  margin: 4px 0 0;
  font-size: 13px;
  text-align: center;
}
.wheel-aside a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.dial {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.dial-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 16px;
}
.dial-bar .crumbs { grid-column: 2; justify-self: center; }
.dial-bar .dial-tools { grid-column: 3; justify-self: end; }
.dial-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: calc(100% - 320px);
  flex: 0 1 auto;
}
.dial-col .year-switch { margin-bottom: 6px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.crumbs button,
.dial-text,
.dial-legacy {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumbs [aria-current="page"] {
  text-decoration: none;
  cursor: default;
}
.crumb-sep { color: var(--muted); }
.dial-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.year-switch { flex: 0 0 auto; }
.dial-styles {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.dial-styles button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}
.dial-styles button[aria-pressed="true"] {
  background: var(--brown);
  color: var(--pressed-ink);
}
.dial-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.dial-frame {
  position: relative;
  height: calc(100% - 44px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  align-self: center;
}
.dial-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.dial-svg text {
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
}
.dial-svg .day-num {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 560;
}
.dial-svg .day-num.is-sun,
.dial-svg .day-num.is-proper { font-weight: 750; }
.dial[data-look="incense"] .ring-label {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  letter-spacing: 0.04em;
}
.dial[data-look="fog"] .dial-svg text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}
.dial-svg [data-cut="day"] .slice,
.dial-svg [data-cut="season"] .slice,
.dial-svg [data-cut="month"] .slice { cursor: pointer; }
.dial-svg .month-cluster { pointer-events: none; }
.dial-svg [data-cut="season"] .slice.is-season { filter: brightness(1.18); }
.dial-svg .slice.is-today { filter: brightness(1.16); }
.dial-svg .today-beat { animation: day-beat 1.5s ease-in-out infinite; }
@keyframes day-beat {
  0%, 62%, 100% { opacity: 0.28; }
  12% { opacity: 1; }
  26% { opacity: 0.22; }
  40% { opacity: 0.92; }
}
.dial-svg .slice.is-hot { filter: brightness(1.16); }
.dial-svg [data-cut]:focus { outline: none; }
.dial-svg [data-cut]:focus .slice { stroke: #8fa3c7; stroke-width: 2.5px; }
.dial-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.dial-hub h2 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(14px, 1.6vw, 28px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}
.dial[data-look="fog"] .dial-hub h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.dial-hub h2.is-long {
  font-size: clamp(12px, 1.15vw, 18px);
  line-height: 1.15;
}
.dial-kicker,
.dial-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.3;
}
.dial-kicker {
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dial-sub {
  margin-top: 4px;
  font-size: 11px;
}
.dial-read {
  flex: 0 1 380px;
  width: min(380px, 34%);
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}
body[data-need-app="1"]:not([data-desk]) #stage.is-year .dial-read {
  align-self: center;
}
body:not([data-desk="analysis"]) #stage.is-year .dial-read.is-today {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
body:not([data-desk="analysis"]) #stage.is-year .dial-read.is-today > .sundays {
  flex: 0 0 auto;
  max-height: 46%;
  overflow: auto;
}
.upcoming {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.upcoming > .season-kicker {
  flex: 0 0 auto;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.upcoming-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}
.upcoming-list .sundays { padding-bottom: 0; }
.dial-read .sundays {
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  width: 100%;
  padding: 0;
}
.dial-read .sunday {
  flex: none;
  width: auto;
}
.season-essay {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--season, #6e5430);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
}
.season-essay header { margin: 0; }
.season-essay .season-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.season-essay h3 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.season-essay time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.season-essay p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.dial-library {
  flex: 0 0 auto;
  width: 100%;
  max-height: min(260px, 30vh);
  overflow: auto;
}
.dial-library .cards { margin: 0; }
.dial.is-arriving .dial-frame { animation: wheel-in 0.45s ease; }

body[data-wheel="fog"] #stage.is-year {
  background: #000;
  color: var(--ink);
}

body.is-wheel-full[data-wheel="incense"] { background: #f4f1eb; }
body.is-wheel-full[data-wheel="fog"] {
  background: #000;
  color: #f5f5f7;
}
body.is-wheel-full .bar,
body.is-wheel-full .view-tabs { display: none; }
body.is-wheel-full .app,
body.is-wheel-full .workspace,
body.is-wheel-full #stage.is-year {
  flex: 1;
  min-height: 0;
}
body.is-wheel-full #stage.is-year { padding: 10px 14px 12px; }
body.is-wheel-full .bible,
body.is-wheel-full .bible.is-full {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(440px, 42vw);
  background: var(--sheet);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .dial.is-arriving .dial-frame { animation: none; }
  .dial-svg .today-beat { animation: none; opacity: 0.85; }
}

.bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-nav { position: relative; }

.app-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--menu);
  color: var(--ink);
  box-shadow: 0 16px 40px var(--shadow);
}

.app-menu[hidden] { display: none; }

.app-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
}

.app-menu a:hover,
.app-menu a[aria-current="page"] { background: var(--wash); }

#theme-toggle {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

#theme-toggle:hover,
#theme-toggle[aria-pressed="true"] {
  background: var(--wash);
}

.app-menu .menu-role {
  display: flex;
  margin: 8px 4px 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.app-menu .menu-role button {
  flex: 1 1 0;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.app-menu .menu-role button:hover { background: var(--wash); }
.app-menu .menu-role button[aria-pressed="true"],
.app-menu .menu-role button[aria-pressed="true"]:hover {
  background: var(--brown);
  color: var(--pressed-ink);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bar-end .app-menu,
.bar-end .experience-menu {
  left: auto;
  right: 0;
}

body[data-desk="analysis"] .analysis-scroll,
body[data-desk="down"] .analysis-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

body[data-desk="down"] .analysis-scroll {
  overflow: auto;
}

body[data-desk="down"] #sankey-down,
body[data-desk="down"] #sankey-down-root {
  min-height: 0;
}

body[data-desk="down"] .viz-down {
  border-top: 0;
  padding: 14px 22px 16px;
}

body[data-desk="down"] .viz-down .sk-scroll {
  height: calc(100vh - 142px);
  min-height: 320px;
  overflow: auto;
}

body[data-desk="analysis"] #stage.is-year {
  height: calc(100vh - 52px);
  max-height: calc(100vh - 52px);
  flex: none;
  overflow: auto;
}
body[data-desk="analysis"] #stage.is-year .dial {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
body[data-desk="analysis"] #stage.is-year .dial-stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

body[data-desk="analysis"].is-wheel-full .viz-panel { display: none; }
body[data-desk="analysis"].is-wheel-full .analysis-scroll { overflow: hidden; }
body[data-desk="analysis"].is-wheel-full #stage.is-year {
  height: 100vh;
  max-height: 100vh;
}

.viz-panel {
  min-height: calc(100vh - 52px);
  box-sizing: border-box;
  padding: 22px 22px 32px;
  border-top: 1px solid var(--line);
}

.viz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 8px;
}

.viz-head h2 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body[data-wheel="fog"] .viz-head h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 600;
}

.viz-note,
.viz-read {
  margin: 6px 0 0;
  max-width: 68rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.viz-read {
  min-height: 1.45em;
  color: var(--ink);
}

.viz-read-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.viz-read-row .viz-read { flex: 1 1 16rem; }
.viz-read-row .context-add { flex: 0 0 auto; }

.grain {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--lens);
  border: 1px solid var(--lens-line);
}

.grain button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lens-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.grain button[aria-pressed="true"] {
  background: var(--lens-on);
  color: var(--lens-on-ink);
}

.grain button:disabled {
  opacity: 0.38;
  cursor: default;
}

.viz-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.crumbs button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crumbs .crumb-here {
  color: var(--ink);
}

.viz-panel svg {
  width: 100%;
  height: calc(100vh - 106px);
  min-height: 460px;
  display: block;
}

.viz-down {
  min-height: 0;
}

.viz-down .sk-scroll {
  height: calc(100vh - 220px);
  min-height: 480px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
}

.viz-down .sk-scroll svg.sk-down {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
}

.viz-down .sk-ribbon { opacity: 0.82; }
.viz-down .sk-node { stroke: var(--line); stroke-width: 1px; }

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.viz-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viz-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.ch-arc,
.ch-ribbon,
.ch-label,
.sk-node,
.sk-hit,
.sk-label { cursor: pointer; }

.ch-ribbon { fill: var(--chord, rgba(28, 22, 18, 0.45)); opacity: var(--rest, 0.18); }
.ch-ribbon.is-off { opacity: 0.03; }
.ch-ribbon.is-on { opacity: 0.82; }
.ch-arc.is-off { opacity: 0.22; }
.ch-arc.is-on { opacity: 1; }
.ch-arc.is-touch { opacity: 0.72; }
.ch-ribbon.is-touch { opacity: 0.62; }
.ch-label.is-off { opacity: 0.35; }
.ch-label.is-on { opacity: 1; font-weight: 700; }
.ch-label.is-touch { opacity: 0.85; }

.sk-ribbon { opacity: 0.55; }
.sk-sheet { pointer-events: none; }
.sk-sheet path { opacity: 0.55; pointer-events: none; }
.sk-sheet .sk-thread { opacity: 0.94; }
.sk-ribbon.is-off { opacity: 0.04; }
.sk-ribbon.is-on { opacity: 0.9; }
.sk-node.is-off { opacity: 0.16; }
.sk-node[data-parent="1"] { stroke: var(--ink); stroke-width: 1px; }
.sk-node.is-on { opacity: 1; stroke: var(--ink); stroke-width: 1.6px; }
.sk-node.is-touch { opacity: 0.62; }
.sk-label.is-off { opacity: 0.28; }
.sk-label.is-touch { opacity: 0.75; }
.sk-hit { fill: none; stroke: transparent; pointer-events: stroke; }

path[data-kind="lect"].is-off { opacity: 0.18; }
path[data-kind="lect"].is-touch { opacity: 0.6; }
path[data-kind="lect"].is-on { opacity: 1; }

body[data-wheel="fog"] { --chord: rgba(236, 236, 240, 0.55); }

@media (max-width: 800px) {
  body[data-need-app="1"] .bar:has(.view-tabs) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }
  body[data-need-app="1"] .bar .view-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }
  body[data-need-app="1"] .bar .view-tabs button { padding: 0 8px; font-size: 13px; }
  .listed { grid-template-columns: 1fr; gap: 28px; }
  .workspace { flex-direction: column; }
  .context-pane {
    flex: none;
    width: auto;
    max-height: 36vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .context-pane.is-collapsed {
    flex-basis: auto;
    width: auto;
    max-height: none;
    padding: 8px 12px;
  }
  .context-pane.is-collapsed .context-bar,
  .context-pane.is-collapsed .context-bar-tools {
    flex-direction: row;
    align-items: center;
  }
  .context-pane.is-collapsed .context-collapse {
    writing-mode: horizontal-tb;
    transform: none;
    border: 1px solid var(--line);
    padding: 4px 10px;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0;
  }
  body:not([data-desk="analysis"]) #stage.is-year .dial-stage { height: auto; min-height: 0; }
  body:not([data-desk="analysis"]) #stage.is-year .dial {
    max-height: none;
    overflow: visible;
  }
  body:not([data-desk="analysis"]) #stage.is-year .dial.is-today {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
  }
  body:not([data-desk="analysis"]) #stage.is-year .dial.is-today .dial-stage,
  body:not([data-desk="analysis"]) #stage.is-year .dial.is-today .dial-col {
    flex: 0 0 auto;
    height: auto;
  }
  body:not([data-desk="analysis"]) #stage.is-year .dial-read.is-today {
    height: auto;
    max-height: 42vh;
    width: 100%;
  }
  .dial-stage { flex-direction: column; justify-content: flex-start; align-items: center; row-gap: 16px; }
  .dial-col { max-width: 100%; height: auto; width: 100%; }
  .dial-frame { max-width: 100%; height: auto; width: min(100%, calc(100vh - 280px)); }
  .dial-read { width: 100%; max-width: none; max-height: 42vh; flex: none; }
  .wheel-stage { width: min(100%, calc(100vh - 200px)); }
  .sundays.is-long .sunday { grid-template-columns: 1fr; }
  .drill-top { grid-template-columns: 1fr; }
  .drill-top .season-copy { text-align: left; }
  .year .cards { justify-content: flex-start; }
  .search { margin-left: 0; }
  .bible, .bible.is-full {
    position: fixed;
    z-index: 12;
    inset: 52px 0 0 0;
    width: auto;
  }
  .composer form { grid-template-columns: 1fr; }
}

/* The content window sits behind the full-height filter and Bible columns.
   The stage keeps the band above the window so the chart and calendar stay clear. */
@media (min-width: 801px) {
  body[data-need-app="1"]:not([data-desk]) .app { position: relative; }
  body[data-need-app="1"]:not([data-desk]) .context-pane { z-index: 5; }
  body[data-need-app="1"]:not([data-desk]) #viz-zoom {
    z-index: 1;
    padding-bottom: var(--dock-cover, 0px);
  }
  /* The liturgical wheel keeps the full column. The content window covers it instead of scaling it. */
  body[data-need-app="1"]:not([data-desk])[data-module="year"] #viz-zoom { padding-bottom: 0; }
  body[data-need-app="1"]:not([data-desk])[data-module="year"] #stage.is-year::after {
    content: "";
    flex: 0 0 var(--dock-cover, 0px);
    height: var(--dock-cover, 0px);
  }
  body[data-need-app="1"]:not([data-desk]):not(.is-wheel-full) .bible:not(.is-full) { z-index: 5; }
  body[data-need-app="1"]:not([data-desk]) .content-dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-height: 100%;
  }
}
