/* ---------- page chrome (follows the viewer's theme) ---------- */
:root {
  --pg-bg: #f3efe7;
  --pg-panel: #fffefa;
  --pg-ink: #26362e;
  --pg-muted: #59675e;
  --pg-line: #dcded5;
  --pg-accent: #284f3d;
  --pg-chip: #e8ede2;
  --pg-stage: #ebe6dc;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --pg-bg: #141917;
    --pg-panel: #1c2320;
    --pg-ink: #ebefe9;
    --pg-muted: #a8b3ab;
    --pg-line: #313b36;
    --pg-accent: #9fd1b5;
    --pg-chip: #24302a;
    --pg-stage: #1a201d;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --pg-bg: #141917;
  --pg-panel: #1c2320;
  --pg-ink: #ebefe9;
  --pg-muted: #a8b3ab;
  --pg-line: #313b36;
  --pg-accent: #9fd1b5;
  --pg-chip: #24302a;
  --pg-stage: #1a201d;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--pg-bg);
  color: var(--pg-ink);
  font:
    15px/1.6 'DM Sans',
    system-ui,
    -apple-system,
    sans-serif;
}
.page {
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 40px);
  padding-block: 40px 96px;
}
.intro {
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-muted);
  margin: 0;
}
h1 {
  font:
    700 clamp(28px, 4vw, 42px) / 1.12 Manrope,
    'DM Sans',
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.intro p {
  margin: 0;
  max-width: 68ch;
  color: var(--pg-muted);
}
.intro p strong {
  color: var(--pg-ink);
  font-weight: 600;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pg-chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pg-chip);
  color: var(--pg-ink);
}
nav.toc {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  margin-top: 28px;
  padding-block: 10px;
  background: var(--pg-bg);
  border-bottom: 1px solid var(--pg-line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
}
nav.toc a {
  color: var(--pg-muted);
  text-decoration: none;
}
nav.toc a:hover {
  color: var(--pg-ink);
}
nav.toc b {
  color: var(--pg-ink);
  font-weight: 600;
  margin-right: 6px;
}
section.sec {
  padding-top: 56px;
  display: grid;
  gap: 18px;
  scroll-margin-top: 60px;
}
.sec-head {
  display: grid;
  gap: 6px;
  max-width: 860px;
}
.sec-head .n {
  font:
    600 13px Manrope,
    sans-serif;
  color: var(--pg-muted);
}
h2 {
  font:
    700 clamp(22px, 2.6vw, 28px) / 1.2 Manrope,
    'DM Sans',
    sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sec-head p {
  margin: 0;
  color: var(--pg-muted);
  max-width: 72ch;
}
.stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--pg-stage);
}
.stage > .board {
  transform-origin: 0 0;
  position: absolute;
  left: 0;
  top: 0;
}
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 28px;
  font-size: 14px;
}
.notes h3 {
  font:
    600 12px Manrope,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pg-muted);
  margin: 0 0 6px;
}
.notes ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.notes p {
  margin: 0;
}
.notes a {
  color: var(--pg-accent);
}
.decisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.decisions > div {
  background: var(--pg-panel);
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.decisions h3 {
  font:
    600 16px Manrope,
    sans-serif;
  margin: 0 0 8px;
}
.decisions ol,
.decisions ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.decisions li {
  color: var(--pg-muted);
}
.decisions li b {
  color: var(--pg-ink);
  font-weight: 600;
}
.specimens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 28px 24px;
}
.specimen {
  display: grid;
  gap: 10px;
  align-content: start;
}
.specimen .fit {
  position: relative;
  overflow: hidden;
}
.specimen .fit > .hq {
  transform-origin: 0 0;
  position: absolute;
  left: 0;
  top: 0;
}
.spec-cap {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.spec-cap b {
  font:
    600 15px Manrope,
    sans-serif;
}
.spec-cap .src {
  font-size: 13px;
  color: var(--pg-muted);
}
.spec-cap p {
  margin: 0;
  color: var(--pg-muted);
}
.spec-sizes {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--pg-muted);
}
.spec-sizes button {
  font:
    600 12px Manrope,
    sans-serif;
  min-width: 30px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--pg-line);
  background: transparent;
  color: var(--pg-ink);
  cursor: pointer;
}
.spec-sizes button[aria-pressed='true'] {
  background: var(--pg-accent);
  color: var(--pg-bg);
  border-color: var(--pg-accent);
}
.group-head {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}
.group-head h3 {
  font:
    700 18px Manrope,
    sans-serif;
  margin: 0;
}
.group-head p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 14px;
}

/* ---------- the Mac app (drawn in its light appearance) ---------- */
.hq {
  --ink: #26362e;
  --muted: #59675e;
  --primary: #284f3d;
  --surface: #fffefa;
  --canvas: #f6f3ed;
  --border: #e4dfd4;
  --line: #ebe6db;
  --soft: #eef2e8;
  --amber: #805b28;
  --amber-soft: #fbf3e6;
  --amber-dot: #c58a1f;
  --agent: #8a7bd6;
  --mint: #c9f1db;
  --mint-deep: #24714d;
  color: var(--ink);
  font:
    13px/1.45 'DM Sans',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
.hq *,
.hq *::before,
.hq *::after {
  box-sizing: border-box;
}
.hq button {
  font: inherit;
  color: inherit;
}
.hq .num {
  font-family: Manrope, 'DM Sans', sans-serif;
  font-variant-numeric: tabular-nums;
}
.hq .serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}
.hq svg {
  display: block;
}

/* desk: a slice of the Mac screen */
.desk {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 79% 27%, rgba(214, 169, 146, 0.5) 0 44px, transparent 45px),
    radial-gradient(circle at 88% 60%, rgba(197, 179, 208, 0.5) 0 68px, transparent 69px),
    radial-gradient(circle at 73% 79%, rgba(173, 199, 194, 0.62) 0 32px, transparent 33px),
    radial-gradient(circle at 14% 72%, rgba(180, 197, 182, 0.5) 0 58px, transparent 59px),
    radial-gradient(circle at 25% 22%, rgba(197, 179, 208, 0.42) 0 26px, transparent 27px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 24px),
    radial-gradient(60% 55% at 18% 22%, rgba(197, 179, 208, 0.55), transparent 70%),
    radial-gradient(55% 60% at 88% 78%, rgba(214, 169, 146, 0.45), transparent 70%),
    radial-gradient(70% 70% at 60% 40%, rgba(173, 199, 194, 0.6), transparent 75%), #e3e9df;
}
.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font:
    500 13px system-ui,
    -apple-system,
    sans-serif;
  color: #1f2724;
}
.menubar .mb-left {
  margin-right: auto;
  font-weight: 600;
  opacity: 0.85;
}
.menubar .mb-ico {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
/* popover: one pane, or two on a hinge */
.pop {
  position: absolute;
  top: 38px;
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.pop.free {
  position: relative;
  top: 0;
}
.pane {
  position: relative;
  flex: none;
  width: 432px;
  border-radius: 14px;
}
.pane-bg {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--canvas);
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, 0.22),
    0 22px 60px rgba(38, 54, 46, 0.22),
    0 2px 8px rgba(38, 54, 46, 0.08);
}
.pop.free .pane-bg {
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, 0.22),
    0 12px 36px rgba(38, 54, 46, 0.18);
}
.pane-content {
  position: relative;
}
.pane .half {
  margin: 2px 16px 16px;
}
.anchor-arrow {
  position: absolute;
  top: 29px;
  width: 20px;
  height: 10px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 -0.5px 0 rgba(31, 39, 36, 0.3));
}
.anchor-arrow i {
  position: absolute;
  inset: 0;
  background: var(--canvas);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.pop-head {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 18px;
}
.pop-head .date {
  font:
    600 14px Manrope,
    sans-serif;
}
.pop-head .sub {
  font-size: 12px;
  color: var(--muted);
}
.pop-head .grow {
  flex: 1;
}
.icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(38, 54, 46, 0.07);
  color: var(--ink);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: rgba(38, 54, 46, 0.07);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 4px 12px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(38, 54, 46, 0.14);
}
.done-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--primary);
  color: var(--surface) !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.half {
  position: relative;
  width: 400px;
  transition: height 0.35s ease;
}
.cell {
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cell.entering {
  transition: none;
}
.slot {
  position: absolute;
  width: 194px;
  height: 134px;
  border-radius: 14px;
  border: 1.5px dashed rgba(38, 54, 46, 0.2);
  background: rgba(255, 254, 250, 0.35);
}
.placeholder {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 14px;
  border: 1.5px dashed var(--primary);
  background: rgba(40, 79, 61, 0.07);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.half.refuse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2px solid var(--amber-dot);
  pointer-events: none;
}
.arr-hint {
  font-size: 12px;
  color: var(--muted);
}
.arr-hint.warn {
  color: var(--amber);
}

.piece {
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.piece.art {
  border: 0;
  background: var(--sc-bg, #dfe8dc);
  color: var(--sc-ink, #343d3c);
}
.arranging .cell {
  cursor: grab;
  touch-action: none;
}
.arranging .cell .piece {
  animation: hq-breathe 5s ease-in-out infinite alternate;
  box-shadow: 0 6px 18px rgba(38, 54, 46, 0.1);
}
.arranging .cell:nth-child(2n) .piece {
  animation-delay: -2.1s;
}
.arranging .cell .piece > * {
  pointer-events: none;
}
.cell.lifted {
  opacity: 0;
}
@keyframes hq-breathe {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2px);
  }
}
.rm {
  position: absolute;
  top: -7px;
  left: -7px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(38, 54, 46, 0.18);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(38, 54, 46, 0.14);
}
.rm svg {
  width: 12px;
  height: 12px;
}
.sizes {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 2px 8px rgba(38, 54, 46, 0.16);
}
.sizes button {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font:
    600 12px Manrope,
    sans-serif;
  color: var(--muted);
  cursor: pointer;
}
.sizes button.on {
  background: var(--primary);
  color: var(--surface);
}
.cell.shake .piece {
  animation: hq-shake 0.4s ease;
}
@keyframes hq-shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1000;
  transform-origin: 0 0;
}
.drag-ghost .piece {
  box-shadow: 0 18px 40px rgba(38, 54, 46, 0.28);
}

/* piece internals */
.pc {
  position: absolute;
  inset: 0;
  padding: 13px 16px 14px;
  display: flex;
  flex-direction: column;
}
.plabel {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.plabel svg {
  width: 13px;
  height: 13px;
}
.phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.round {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--primary);
  color: var(--surface) !important;
}
.round.sm {
  width: 26px;
  height: 26px;
  background: var(--soft);
  color: var(--primary) !important;
}
.round.sm:hover {
  background: var(--primary);
  color: var(--surface) !important;
}
.round svg {
  width: 14px;
  height: 14px;
}
.round.sm svg {
  width: 10px;
  height: 10px;
}
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.linkbtn:hover {
  text-decoration: underline;
}
.pillbtn {
  border: 1px solid rgba(40, 79, 61, 0.28);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--primary) !important;
  cursor: pointer;
}
.pillbtn.solid {
  background: var(--primary);
  color: var(--surface) !important;
  border-color: var(--primary);
}
.muted {
  color: var(--muted);
}
.ell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* timer */
.tm-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tm-top .dot {
  margin-top: 6px;
}
.tm-t {
  flex: 1;
  min-width: 0;
}
.tm-title {
  font:
    600 15px/1.3 Manrope,
    sans-serif;
}
.tm-meta {
  font-size: 12px;
  color: var(--muted);
}
.tm-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.tm-clock {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.s .tm-clock {
  font-size: 24px;
}
.along {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.along i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agent);
  animation: hq-soft 2.4s ease-in-out infinite;
}
.along i + i {
  margin-left: -3px;
  animation-delay: -1.2s;
}
@keyframes hq-soft {
  50% {
    opacity: 0.35;
  }
}
.timer.idle .tm-clock {
  color: var(--muted);
}

/* rows */
.rows {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
}
.rows li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  border-top: 1px solid var(--line);
}
.rows li:first-child {
  border-top: 0;
}
.rows .r-task {
  font-weight: 500;
}
.rows .r-proj {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.rows .r-dur {
  font-size: 12px;
  color: var(--muted);
}
.new-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.new-row input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--canvas);
  padding: 0 10px;
  font: inherit;
  color: var(--ink);
}
.new-row input::placeholder {
  color: #8a948d;
}

/* insights voice */
.say {
  font:
    italic 15px/1.42 Georgia,
    'Times New Roman',
    serif;
  color: var(--ink);
  margin: 8px 0 0;
}
.l .say {
  font-size: 16px;
}
.acts {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ins-list {
  display: grid;
  margin-top: 4px;
}
.ins-list > div {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.ins-list > div:first-child {
  border-top: 0;
  padding-top: 2px;
}
.ins-list .say {
  margin: 0 0 6px;
  font-size: 14px;
}
.noted {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mint-deep);
}

/* meters */
.meter {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
}
.meter.warn > i {
  background: var(--amber-dot);
}
.lim-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: baseline;
}
.lim-row + .lim-row {
  margin-top: 7px;
}
.lim-row .meter {
  grid-column: 1 / -1;
}
.lim-row b {
  font-weight: 500;
}
.lim-row span {
  font-size: 12px;
  color: var(--muted);
}
.warn-text {
  color: var(--amber) !important;
}

.big {
  font:
    600 30px/1 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.bigger {
  font:
    600 38px/1 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* art internals */
.art-canvas,
.art-svg {
  position: absolute;
  left: 0;
  top: 0;
}
.wl {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  max-width: 228px;
  display: grid;
  gap: 1px;
  padding: 8px 30px 9px 11px;
  border-radius: 5px;
  background: rgba(255, 254, 250, 0.95);
  box-shadow: 0 5px 18px rgba(52, 61, 60, 0.14);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}
.wl em {
  font:
    italic 14px/1.3 Georgia,
    'Times New Roman',
    serif;
}
.wl .wl-q {
  color: var(--muted);
}
.wl .wl-more {
  display: none;
  color: var(--muted);
}
.wl.is-open .wl-more {
  display: block;
}
.wl.is-open .wl-more:first-of-type {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}
.wl.bottom {
  top: auto;
  bottom: 10px;
}
.wl.chip {
  padding: 5px 28px 6px 10px;
  max-width: 260px;
}
.wl.chip .wl-q {
  display: none;
}
.wl.chip.hovering .wl-q,
.wl.chip.is-open .wl-q {
  display: block;
}
.wl.wide {
  max-width: 300px;
}
.wl-i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
}
.wl-i:hover {
  background: rgba(38, 54, 46, 0.08);
  color: var(--ink);
}
.wl-i svg {
  width: 14px;
  height: 14px;
}
.enso path {
  fill: none;
  stroke: var(--sc-ink);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hq-ink 3.4s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}
.enso-g {
  transform-box: view-box;
  transform-origin: 200px 200px;
}
@keyframes hq-ink {
  to {
    stroke-dashoffset: 0;
  }
}
.enso-s {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 4px;
}
.enso-m {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 6px;
}
.enso-l {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 54px;
}
.enso-txt {
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}
.enso-txt .t {
  font-size: 15px;
}
.enso-txt .dim {
  opacity: 0.85;
}
.thought .light {
  position: absolute;
  inset: -20%;
  filter: blur(26px);
}
.thought .light i {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  opacity: 0.7;
  animation: hq-drift 40s ease-in-out infinite alternate;
}
.thought .light i:nth-child(1) {
  background: var(--sh1);
  left: -10%;
  top: -10%;
}
.thought .light i:nth-child(2) {
  background: var(--sh2);
  right: -15%;
  top: 20%;
  animation-duration: 47s;
  animation-delay: -17s;
}
.thought .light i:nth-child(3) {
  background: var(--sh3);
  left: 15%;
  bottom: -25%;
  animation-duration: 55s;
  animation-delay: -29s;
}
@keyframes hq-drift {
  from {
    transform: translate(-4%, -3%) rotate(-10deg) scale(0.95);
  }
  to {
    transform: translate(8%, 9%) rotate(20deg) scale(1.12);
  }
}
.thought-btn {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--sc-ink) !important;
}
.thought-btn .serif {
  font-size: 15px;
  line-height: 1.45;
}
.m .thought-btn .serif {
  font-size: 18px;
}
.thought-btn small {
  font-size: 12px;
  opacity: 0.85;
}
.breath {
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #c9e4d4, #93b5a5 60%, #6f9888);
  animation: hq-breath 8s ease-in-out infinite;
}
@keyframes hq-breath {
  0%,
  100% {
    transform: scale(0.84);
  }
  50% {
    transform: scale(1.06);
  }
}
.spark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agent);
  display: inline-block;
}

/* gallery panel (arrange mode) */
.gal {
  position: absolute;
  top: 38px;
  left: 24px;
  bottom: 20px;
  width: 480px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(250, 248, 243, 0.97);
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, 0.2),
    0 22px 60px rgba(38, 54, 46, 0.2);
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.gal.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.gal-head {
  padding: 16px 18px 10px;
  display: grid;
  gap: 2px;
}
.gal-head b {
  font:
    700 16px Manrope,
    sans-serif;
}
.gal-head span {
  font-size: 12px;
  color: var(--muted);
}
.gal-sec {
  padding: 6px 18px 8px;
  display: grid;
  gap: 7px;
}
.gal-k {
  font-size: 12px;
  color: var(--muted);
}
.presets {
  display: flex;
  gap: 8px;
}
.preset {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 7px 6px 6px;
  display: grid;
  justify-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.preset.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.mini {
  display: flex;
  gap: 3px;
}
.mini-h {
  position: relative;
  width: 22px;
  height: 44px;
}
.mini-h i {
  position: absolute;
  border-radius: 2px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-btn.on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface) !important;
}
.chip-btn i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(38, 54, 46, 0.2);
}
.gal-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 14px 0;
  border-bottom: 1px solid var(--line);
}
.gal-tabs button {
  border: 0;
  background: none;
  padding: 7px 8px 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.gal-tabs button.on {
  color: var(--ink);
  border-color: var(--primary);
  font-weight: 600;
}
.gal-list {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.card {
  display: grid;
  grid-template-columns: 208px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.card-prev {
  position: relative;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
  justify-self: center;
  align-self: center;
}
.card-prev > .scaled {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
}
.card-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.card-txt b {
  font:
    600 14px Manrope,
    sans-serif;
}
.card-txt p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}
.card .sizes {
  position: static;
  box-shadow: none;
  background: var(--canvas);
}
.gal.drop-remove::after {
  content: 'Release to take it off';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(251, 243, 230, 0.9);
  color: var(--amber);
  font-weight: 600;
  font-size: 15px;
  border: 2px dashed var(--amber-dot);
  border-radius: 16px;
}

/* window */
.win {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, 0.2),
    0 24px 60px rgba(38, 54, 46, 0.2);
  display: flex;
  flex-direction: column;
}
.win-bar {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.lights {
  display: flex;
  gap: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d4ca;
}
.win-bar .title {
  font:
    600 14px Manrope,
    sans-serif;
  margin-left: auto;
}
.win-body {
  flex: 1;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 40px;
  padding: 26px 34px 28px;
  min-height: 0;
}
.win-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.moment-h {
  font:
    italic 26px/1.2 Georgia,
    'Times New Roman',
    serif;
  margin: 0;
}
.moment-p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
}
.sess {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
}
.sess li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  height: 31px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.sess li:first-child {
  border-top: 0;
}
.cl {
  width: 26px;
  height: 20px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--primary);
  font:
    600 12px/20px Manrope,
    sans-serif;
  text-align: center;
}
.st {
  font-size: 12px;
  color: var(--muted);
}
.st.wait {
  color: var(--amber);
}
.st.fail {
  color: #b4463c;
}
.st.run {
  color: var(--mint-deep);
}
.win-sub {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.win-sub h4 {
  margin: 0;
  font:
    600 13px Manrope,
    sans-serif;
}
.wl.right {
  left: auto;
  right: 10px;
}
.arranging,
.gal,
.drag-ghost {
  -webkit-user-select: none;
  user-select: none;
}
.sec.side .row {
  display: grid;
  grid-template-columns: minmax(0, var(--bw)) minmax(240px, 1fr);
  gap: 32px;
  align-items: start;
}
.sec.side .row .notes {
  grid-template-columns: 1fr;
}
@media (max-width: 1100px) {
  .sec.side .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec.side .row .notes {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
.cell .sizes {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cell:hover .sizes,
.cell:focus-within .sizes,
.cell.shake .sizes {
  opacity: 1;
}
.seg button:disabled {
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .hq *,
  .hq *::before,
  .hq *::after {
    animation: none !important;
    transition: none !important;
  }
  .enso path {
    stroke-dashoffset: 0;
  }
}

/* ---------- the hinge: the page's edge, which only glows when the pointer comes near ---------- */
.hinge {
  position: absolute;
  z-index: 5;
  top: 18px;
  bottom: 18px;
  left: 418px;
  width: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: none;
  --near: 0;
  --over: 0;
  -webkit-tap-highlight-color: transparent;
}
.hinge:focus {
  outline: none;
}
.hinge:hover,
.hinge:focus-visible,
.hinge.held {
  --over: 1;
}
.hinge .rod {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    #fff 14%,
    #fff8ee 50%,
    #fff 86%,
    rgba(255, 255, 255, 0)
  );
  box-shadow:
    -1px 0 0 rgba(38, 54, 46, 0.2),
    1px 0 0 rgba(38, 54, 46, 0.08),
    0 0 10px #fff,
    0 0 24px rgba(197, 179, 208, 0.95),
    0 0 46px rgba(214, 169, 146, 0.55);
  opacity: max(var(--near), var(--over));
  transform: scaleY(calc(0.7 + 0.3 * max(var(--near), var(--over))));
  transition:
    opacity 0.6s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hinge .prism {
  position: absolute;
  left: 19px;
  top: 5%;
  bottom: 5%;
  width: 7px;
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    rgba(214, 169, 146, 0),
    rgba(214, 169, 146, 0.8) 18%,
    rgba(197, 179, 208, 0.9) 45%,
    rgba(173, 199, 194, 0.85) 72%,
    rgba(173, 199, 194, 0)
  );
  background-size: 100% 180%;
  filter: blur(2px);
  opacity: calc(max(var(--near), var(--over)) * 0.8);
  transition: opacity 0.7s ease;
  animation: hq-prism 9s ease-in-out infinite alternate;
}
@keyframes hq-prism {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}
.hinge .rod::after {
  content: '';
  position: absolute;
  left: -3px;
  width: 8px;
  height: 60px;
  border-radius: 4px;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0));
  animation: hq-bead 7s ease-in-out infinite alternate;
}
@keyframes hq-bead {
  from {
    top: 6%;
  }
  to {
    top: 78%;
  }
}
.hinge .aura {
  position: absolute;
  left: -11px;
  top: 4%;
  bottom: 4%;
  width: 56px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.75),
    rgba(197, 179, 208, 0.55) 42%,
    rgba(173, 199, 194, 0.32) 68%,
    transparent
  );
  filter: blur(6px);
  opacity: calc(max(var(--near), var(--over)) * 0.9);
  transition: opacity 0.7s ease;
  animation: hq-aura 4.2s ease-in-out infinite alternate;
}
@keyframes hq-aura {
  from {
    scale: 0.82 0.97;
  }
  to {
    scale: 1.14 1.03;
  }
}
.hinge:focus-visible .rod {
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(197, 179, 208, 0.75),
    0 0 0 3px rgba(40, 79, 61, 0.45);
}

/* The base holds the compact view and never moves. The leaf is the page:
   a glass copy of the base lifts from its right edge and turns over to the left. */
.pane[data-role='leaf'] {
  z-index: 2;
  transform-origin: 100% 50%;
}
.pane[data-role='base'] {
  z-index: 1;
}
.pane[data-role='leaf'] .pane-bg,
.pane[data-role='leaf'] .glass {
  border-radius: 14px var(--sr, 14px) var(--sr, 14px) 14px;
}
.pane[data-role='base'] .pane-bg,
.pane[data-role='base'] .shade {
  border-radius: var(--sr, 14px) 14px 14px var(--sr, 14px);
}
.pop:not(.folding) {
  perspective: 2000px;
  perspective-origin: 0 45%;
}
.pop.is-wide:not(.folding) {
  perspective-origin: 432px 45%;
  --sr: 0px;
}
/* Open, the two panels are one surface: one background, one shadow, no seam. */
.pop.is-wide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 14px;
  background: var(--canvas);
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, calc(0.22 * var(--one-ring, 1))),
    0 22px 60px rgba(38, 54, 46, calc(0.22 * var(--one-sh, 1))),
    0 2px 8px rgba(38, 54, 46, calc(0.08 * var(--one-sh, 1)));
}
/* While the page turns, the one surface lends only its outline and shadow, and only as the page lies down; a background would show ahead of the page. */
.pop.is-wide.folding::before {
  background: none;
}
.pop.is-wide:not(.folding) .pane-bg {
  box-shadow: none;
}
.pop.folding .pane[data-role='base'] .pane-bg {
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, calc(0.22 * (1 - var(--one-ring, 0)))),
    0 22px 60px rgba(38, 54, 46, calc(0.22 * (1 - var(--one-sh, 0)))),
    0 2px 8px rgba(38, 54, 46, calc(0.08 * (1 - var(--one-sh, 0))));
}
.pop.folding {
  perspective: 2200px;
  perspective-origin: 432px 45%;
}
.pop.folding .pane[data-role='leaf'] .pane-bg {
  background: rgba(246, 243, 237, var(--tint, 1));
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, calc(0.22 * (1 - var(--one-ring, 0)))),
    0 22px 60px rgba(38, 54, 46, calc(var(--shadow, 0.22) * (1 - var(--one-sh, 0)))),
    0 2px 8px rgba(38, 54, 46, calc(0.08 * (1 - var(--one-sh, 0))));
}
.cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scaleX(-1);
  pointer-events: none;
}
.shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.pop.is-wide .hinge {
  left: -20px;
}
.glass {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
/* The light in the page's edges fades from the middle of the seam toward its ends as the page lies down. */
.pop.folding .glass {
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    #000 calc(50% - var(--mg, 0%) - 22%),
    rgba(0, 0, 0, calc(1 - var(--mk, 0))) calc(50% - var(--mg, 0%)),
    rgba(0, 0, 0, calc(1 - var(--mk, 0))) calc(50% + var(--mg, 0%)),
    #000 calc(50% + var(--mg, 0%) + 22%)
  );
  mask-image: linear-gradient(
    #000 calc(50% - var(--mg, 0%) - 22%),
    rgba(0, 0, 0, calc(1 - var(--mk, 0))) calc(50% - var(--mg, 0%)),
    rgba(0, 0, 0, calc(1 - var(--mk, 0))) calc(50% + var(--mg, 0%)),
    #000 calc(50% + var(--mg, 0%) + 22%)
  );
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, calc(var(--fres, 0) * 0.75)),
      rgba(255, 255, 255, 0) 58%
    ),
    linear-gradient(rgba(38, 54, 46, var(--dim, 0)), rgba(38, 54, 46, var(--dim, 0)));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(0.3 + var(--rim, 0) * 0.6)),
    inset 4px 0 8px -3px rgba(255, 255, 255, calc(var(--rim, 0) * 0.95)),
    inset -2px 0 0 rgba(255, 255, 255, calc(0.45 + var(--rim, 0) * 0.55));
}
.glass .sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 32%,
    rgba(255, 255, 255, 0.65) 46%,
    rgba(255, 255, 255, 0.16) 54%,
    transparent 68%
  );
  background-size: 280% 100%;
  background-position: var(--sx, 140%) 0;
  mix-blend-mode: soft-light;
  opacity: var(--rim, 0);
}
.glass .fringe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22px;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0),
    rgba(214, 169, 146, 0.55),
    rgba(197, 179, 208, 0.62),
    rgba(173, 199, 194, 0.62),
    rgba(255, 255, 255, 0)
  );
  filter: blur(3px);
  opacity: var(--fringe, 0);
}
.glint {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 62%
  );
  background-size: 260% 100%;
  background-position: 140% 0;
  mix-blend-mode: soft-light;
}
.piece:not(.art) > .glint {
  mix-blend-mode: normal;
  background-image: linear-gradient(
    100deg,
    transparent 40%,
    rgba(197, 179, 208, 0.16) 46%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(173, 199, 194, 0.16) 54%,
    transparent 60%
  );
}
.grow-x {
  transform-origin: 0 50%;
}
.grow-y {
  transform-origin: 50% 100%;
}
@media (prefers-reduced-motion: reduce) {
  .hinge .rod::after {
    display: none;
  }
  .hinge .prism,
  .hinge .aura {
    animation: none;
  }
}

/* While the page is moving, the cue fades where it was pressed; it lights again only when the pointer comes near. */
.pop.folding .hinge .rod,
.pop.folding .hinge .aura,
.pop.folding .hinge .prism {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Progressive blur on the turning page: four stacked layers, each masked to where the page's blur has reached its level. */
.pb {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  visibility: hidden;
  border-radius: 14px var(--sr, 14px) var(--sr, 14px) 14px;
  -webkit-mask-image: var(--m, none);
  mask-image: var(--m, none);
}
.pb[data-k='0'] {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.pb[data-k='1'] {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pb[data-k='2'] {
  -webkit-backdrop-filter: blur(8px) saturate(1.12);
  backdrop-filter: blur(8px) saturate(1.12);
}
.pb[data-k='3'] {
  -webkit-backdrop-filter: blur(16px) saturate(1.22) brightness(1.03);
  backdrop-filter: blur(16px) saturate(1.22) brightness(1.03);
}
.pop:not(.folding) .pb {
  visibility: hidden !important;
}

/* ---------- round 4: today's popover kept ---------- */
/* The status item keeps today's two parts, in the brand green: stop or resume, and the time that opens the popover. */
.status-item {
  position: absolute;
  top: 3px;
  transform: translateX(-50%);
  display: flex;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--primary);
  box-shadow: 0 0 0 0.5px rgba(20, 30, 25, 0.25);
}
.status-item button {
  border: 0;
  padding: 0;
  height: 22px;
  background: transparent;
  color: #fff !important;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.status-item button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.status-item button:active {
  background: rgba(0, 0, 0, 0.18);
}
.si-ctl {
  width: 23px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.2);
}
.si-ctl svg {
  width: 11px;
  height: 11px;
}
.si-time {
  padding: 0 8px !important;
  min-width: 42px;
  font:
    600 12px/1 system-ui,
    -apple-system,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.pop,
.anchor-arrow {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.desk.away .pop,
.desk.away .anchor-arrow {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

/* Arrange's own header: its words sit on one baseline with the controls beside them. */
.arr-head {
  display: none;
}
.pop.arranging .arr-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  height: 48px;
  padding: 8.6px 12px 0 18px;
}
.arr-head .date {
  font:
    600 14px Manrope,
    sans-serif;
}
.arr-head .grow {
  flex: 1;
}
.arr-head .arr-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rm {
  padding: 0;
}

/* the popover's top bar and footer strip */
.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 14px;
}
.bar.top {
  height: 48px;
}
.bar.foot {
  height: 46px;
}
.bar.foot {
  border-top: 1px solid var(--line);
}
.bar.hide {
  display: none;
}
.pane.has-foot .half {
  margin-bottom: 8px;
}
.mc {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  height: 32px;
}
.mc.flex {
  flex: 1 1 8px;
  min-width: 8px;
}
.m-title {
  font:
    600 14px/20px Manrope,
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-title.center {
  flex: 1;
  text-align: center;
}
.m-total {
  width: 100%;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  padding-right: 4px;
}
.icon-btn.open {
  background: rgba(38, 54, 46, 0.1);
  color: var(--ink);
}
.icon-btn.sm {
  width: 26px;
  height: 26px;
}
.icon-btn.sm svg {
  width: 15px;
  height: 15px;
}
.pop.arranging .bar {
  margin: 0 10px;
  padding: 0 4px;
  border-radius: 12px;
  border: 0;
  outline: 1.5px dashed rgba(38, 54, 46, 0.22);
  outline-offset: -3px;
  background: rgba(255, 254, 250, 0.4);
}
.pop.arranging .bar.top {
  margin-bottom: 6px;
}
.pop.arranging .bar.foot {
  margin: 2px 10px 10px;
}
.pop.arranging .bar.refuse {
  outline: 2px solid var(--amber-dot);
}
.pop.arranging .mc {
  cursor: grab;
  touch-action: none;
}
.pop.arranging .mc > *:not(.rm) {
  pointer-events: none;
}
.pop.arranging .mc.flex {
  height: 26px;
  border-radius: 8px;
  outline: 1.5px dashed rgba(38, 54, 46, 0.3);
  outline-offset: -1px;
}
.pop.arranging .mc.flex::after {
  content: 'Space';
  margin: auto;
  font-size: 12px;
  color: var(--muted);
}
.mc .rm {
  top: -6px;
  left: -6px;
  width: 18px;
  height: 18px;
}
.mc .rm svg {
  width: 10px;
  height: 10px;
}
.mc.ph {
  height: 30px;
  border-radius: 8px;
  outline: 1.5px dashed var(--primary);
  outline-offset: -1px;
  background: rgba(40, 79, 61, 0.07);
}
.bar-empty {
  padding-left: 8px;
  font-size: 12px;
  color: var(--muted);
}
.mini-card {
  grid-template-columns: 220px 1fr;
}
.mini-prev {
  justify-self: start;
}
.bar-demo,
.mini-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-prev > .bar-demo {
  pointer-events: none;
}
.bar-demo > .m-title.center,
.mini-ghost > .m-title.center {
  flex: 0 1 auto;
}
.mini-ghost {
  box-shadow:
    0 12px 30px rgba(38, 54, 46, 0.26),
    inset 0 0 0 1px var(--line);
}
.flex-demo {
  flex: 1;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  outline: 1.5px dashed rgba(38, 54, 46, 0.3);
  font-size: 12px;
  color: var(--muted);
}

/* panels opened by minis */
.panel {
  position: absolute;
  z-index: 30;
  width: 300px;
  padding: 12px 14px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 0 0 0.5px rgba(31, 39, 36, 0.24),
    0 18px 44px rgba(38, 54, 46, 0.24);
  animation: hq-panel 0.18s ease-out;
}
@keyframes hq-panel {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
}
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px -4px 4px 0;
}
.p-head b {
  font:
    600 14px Manrope,
    sans-serif;
}
.cmp label {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.cmp label.bare {
  margin-top: 5px;
}
.cmp input,
.cmp select {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
  padding: 0 9px;
  font:
    13px 'DM Sans',
    system-ui,
    sans-serif;
  color: var(--ink);
  min-width: 0;
}
.cmp input::placeholder {
  color: #8a948d;
}
.cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cmp-help {
  margin: 9px 0 11px;
  font-size: 12px;
  color: var(--muted);
}
.cmp-help.err {
  color: var(--amber);
}
.cmp .pillbtn {
  padding: 6px 14px;
  font-size: 13px;
}
.p-prefs {
  width: 330px;
}
.pf h5 {
  margin: 12px 0 4px;
  font:
    600 12px Manrope,
    sans-serif;
  color: var(--muted);
}
.pf h5:first-child {
  margin-top: 2px;
}
.new-tag {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
}
.tg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 13px;
  cursor: pointer;
}
.tg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tg i {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: #c9cec6;
  transition: background 0.2s ease;
}
.tg i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.tg input:checked + i {
  background: var(--primary);
}
.tg input:checked + i::after {
  transform: translateX(12px);
}
.tg input:focus-visible + i {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.pf-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
}
.pf-row b {
  font-weight: 500;
}
.pf-foot {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.hq kbd {
  font:
    12px system-ui,
    -apple-system,
    sans-serif;
  color: var(--muted);
}
.p-acct {
  width: 250px;
  padding: 6px;
}
.menu {
  display: grid;
}
.menu button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.menu button:hover {
  background: var(--primary);
  color: var(--surface) !important;
}
.menu button:hover kbd {
  color: inherit;
}
.menu hr {
  margin: 5px 8px;
  border: 0;
  border-top: 1px solid var(--line);
}
.mn-id {
  display: grid;
  padding: 6px 10px 7px;
  font-size: 12px;
  color: var(--muted);
}
.mn-id b {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.p-cal {
  width: 312px;
}

/* Classic: the week strip */
.wk {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.wk-d {
  height: 64px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--ink) !important;
}
.wk-d:hover {
  background: rgba(38, 54, 46, 0.06);
}
.wk-l {
  font:
    600 12px Manrope,
    sans-serif;
  color: var(--muted);
}
.wk-t {
  font-size: 13px;
}
.wk-d.today:not(.on) .wk-l {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wk-d.on {
  background: var(--primary);
  color: var(--surface) !important;
}
.wk-d.on .wk-l {
  color: rgba(255, 254, 250, 0.86);
}

/* Classic: the day's entries */
.ts {
  scrollbar-width: thin;
  list-style: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 4px -16px 0;
  padding: 0 16px 2px;
}
.ts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.ts li:first-child {
  border-top: 0;
}
.ts li.run {
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: 10px;
  background: var(--soft);
  border-top-color: transparent;
}
.ts li.run + li {
  border-top-color: transparent;
}
.ts-t {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}
.ts-c,
.ts-k {
  font-size: 12px;
  color: var(--muted);
}
.ts-p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.ts-d {
  font-size: 14px;
}
.round.sm.on {
  background: var(--primary);
  color: var(--surface) !important;
}
.ts-empty {
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}
.ts-empty .ts-ico {
  width: 30px;
  height: 30px;
  color: var(--muted);
  margin-bottom: 4px;
}
.ts-empty b {
  font:
    600 14px Manrope,
    sans-serif;
}
.ts-empty span {
  font-size: 12px;
  color: var(--muted);
}
.ts-empty .pillbtn {
  margin-top: 8px;
}

/* the month */
.pc.cal {
  padding-top: 11px;
}
.cal-h {
  display: flex;
  align-items: center;
  gap: 2px;
}
.cal-h b {
  flex: 1;
  font:
    600 14px Manrope,
    sans-serif;
}
.cal-h .linkbtn {
  margin-right: 8px;
}
.cal-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 4px;
}
.cal-w {
  height: 18px;
  text-align: center;
  font:
    600 12px Manrope,
    sans-serif;
  color: var(--muted);
}
.cal-d {
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--ink) !important;
}
.cal-d span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}
.cal-d i {
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.6;
}
.cal-d:hover span {
  background: rgba(38, 54, 46, 0.07);
}
.cal-d.today span {
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.cal-d.on span {
  background: var(--primary);
  color: var(--surface);
}
.cal-d.future span {
  color: var(--muted);
}
.cal-d.out {
  visibility: hidden;
}
.panel .cal-d {
  height: 36px;
}

/* the parity table (page chrome, follows the viewer's theme) */
.parity-wrap {
  overflow-x: auto;
}
.parity {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--pg-panel);
  border: 1px solid var(--pg-line);
  border-radius: 14px;
}
.parity th {
  text-align: left;
  padding: 12px 16px;
  font:
    600 12px Manrope,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-muted);
}
.parity td {
  padding: 10px 16px;
  border-top: 1px solid var(--pg-line);
  vertical-align: top;
  color: var(--pg-muted);
}
.parity td:first-child {
  width: 46%;
  color: var(--pg-ink);
}
.parity td b {
  color: var(--pg-ink);
  font-weight: 600;
}
.mini-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px 24px;
}
.mini-spec {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 14px;
}
.mini-spec .hq {
  justify-self: start;
}
.mini-spec b {
  font:
    600 15px Manrope,
    sans-serif;
}
.mini-spec p {
  margin: 0;
  color: var(--pg-muted);
}
/* In the bars, a mini's − appears only when you point at it: toolbar items are small and close together. */
.mc .rm {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.mc:hover .rm,
.mc:focus-within .rm,
.mc .rm:focus-visible {
  opacity: 1;
}

/* ---------- round 4b: quotas, the timeline with your agents, links ---------- */
.qbar {
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.qbar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.qlow {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f7e4e1;
  color: #8d3522;
  font:
    600 12px/18px 'DM Sans',
    sans-serif;
}
.q-s {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.q-ring {
  position: relative;
  flex: none;
}
.q-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    600 15px Manrope,
    sans-serif;
}
.q-s-t {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-size: 12px;
}
.q-s-t b {
  font:
    600 13px Manrope,
    sans-serif;
}
.q-s.big {
  margin-top: 8px;
}
.q-s.big .q-pct {
  font-size: 20px;
}
.q-s.big .q-s-t {
  font-size: 13px;
}
.q-s.big .q-s-t b {
  font-size: 15px;
}
.q-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: baseline;
}
.q-row + .q-row {
  margin-top: 7px;
}
.q-row b {
  font-weight: 500;
}
.q-row b span,
.q-row > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.q-row .qbar {
  grid-column: 1 / -1;
}
.accs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 4px -16px 0;
  padding: 0 16px 4px;
  scrollbar-width: thin;
}
.acc-g {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.acc-g:first-child {
  margin-top: 2px;
}
.acc-g b {
  font:
    600 13px Manrope,
    sans-serif;
}
.acc-g span {
  font-size: 12px;
  color: var(--muted);
}
.acc-g .linkbtn {
  margin-left: auto;
}
.acc-nw {
  margin-left: auto;
}
.acc {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.acc:last-child {
  border-bottom: 0;
}
.acc-h {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.acc-h b {
  font-weight: 600;
}
.plan {
  padding: 0 6px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--primary);
  font:
    600 12px/18px Manrope,
    sans-serif;
  letter-spacing: 0.03em;
}
.qchip2 {
  padding: 0 7px;
  border-radius: 999px;
  background: #efece5;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.qchip2.ok {
  background: #e3f1e8;
  color: #286044;
}
.qchip2.float {
  background: #fbf0e0;
  color: #6a4b18;
}
.qchip2.bad {
  background: #f7e4e1;
  color: #8d3522;
}
.qchip2.idle {
  background: #e3f1e8;
  color: #286044;
}
.acc-who {
  font-size: 12px;
  color: var(--muted);
}
.acc-l {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: baseline;
  font-size: 12px;
}
.acc-l .num {
  font-size: 13px;
  color: var(--ink);
}
.acc-l .qbar {
  grid-column: 1 / -1;
}
.acc-l .acc-r {
  grid-column: 1 / -1;
}
.acc-w {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.acc-w .tg {
  margin-left: auto;
}
.tg.sm {
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.qmini {
  height: 26px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.qmini i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.qmini .num {
  font-weight: 600;
}
.qmini:hover {
  border-color: rgba(40, 79, 61, 0.4);
}

/* the timeline with your agents */
.seg.sm {
  padding: 2px;
}
.seg.sm button {
  padding: 2px 9px;
}
.cstats {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.cstats b {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.cwrap {
  margin-top: 8px;
}
.cg rect[data-tip],
.lk [data-tip] {
  cursor: default;
}
.cg rect[data-tip]:hover {
  filter: brightness(0.94);
}
.tip {
  position: absolute;
  z-index: 5;
  max-width: 280px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #26362e;
  color: #fffefa;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(38, 54, 46, 0.25);
}

/* sessions and entries */
.lkwrap {
  margin-top: 8px;
}
.lkp .acts {
  margin-top: 8px;
}
.lk .rb {
  transition: opacity 0.2s ease;
}
.lk .rb.acc {
  opacity: 0.42;
}
.lk .rb.prop {
  opacity: 0.2;
  stroke-width: 0.9;
  stroke-dasharray: 3 2;
  stroke-opacity: 0.8;
}
.lk.hl .rb {
  opacity: 0.06;
}
.lk.hl .rb.on {
  opacity: 0.7;
}
.lk-run {
  margin: auto 0;
  display: grid;
  gap: 6px;
}
.lk-run b {
  font:
    600 14px Manrope,
    sans-serif;
}
.lk-run span {
  font-size: 12px;
}

/* the window's views */
.win-body.v-timeline {
  grid-template-columns: 1fr 280px;
  gap: 28px;
}
.win-body.v-quotas {
  grid-template-columns: 1fr 330px;
  gap: 34px;
}
.win-body.v-links {
  grid-template-columns: 560px 1fr;
  gap: 34px;
}
.win-body .seg button {
  font-size: 13px;
}
.win-bar .seg button {
  font-size: 13px;
}
.wv-main,
.wv-diag {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}
.wv-side {
  min-width: 0;
  min-height: 0;
  font-size: 14px;
}
.wv-side h4,
.wv-bar h4,
.rv-col h4 {
  margin: 0 0 6px;
  font:
    600 14px Manrope,
    sans-serif;
}
.wv-side p {
  margin: 0 0 10px;
}
.wtiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  flex: none;
}
.wt {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border-left: 1px solid var(--line);
}
.wt:first-child {
  border-left: 0;
}
.wt span {
  font-size: 13px;
  color: var(--muted);
}
.wt b {
  font:
    600 26px/1.15 Manrope,
    sans-serif;
}
.wt.you b {
  color: #286044;
}
.wt.ag b {
  color: #5b4bb0;
}
.wt em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.wnote {
  margin: 10px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.wnote b {
  color: var(--ink);
}
.wv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.wv-bar h4 {
  margin: 0;
}
.wv-chart {
  position: relative;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sw {
  display: inline-block;
  width: 22px;
  height: 11px;
  border-radius: 3px;
}
.sw.you {
  background: linear-gradient(90deg, #009688 0 33%, #d96a2b 33% 66%, #3769d5 66%);
}
.sw.run {
  background: repeating-linear-gradient(45deg, #8a7bd6 0 2px, #efedf9 2px 5px);
  box-shadow: inset 0 0 0 0.8px #8a7bd6;
}
.sw.wait {
  background: #fbf3e6;
  box-shadow: inset 0 0 0 1.2px #c58a1f;
}
.sw.fail {
  background: #f7e4e1;
  box-shadow: inset 0 0 0 1.2px #c0564b;
}
.sw.now {
  width: 2px;
  height: 14px;
  background: var(--ink);
  border-radius: 0;
}
.sw.pj {
  width: 11px;
}
.wkey {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}
.wkey li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.wkey .sw {
  flex: none;
}
.sw.lk-acc {
  background: #009688;
  opacity: 0.5;
}
.sw.lk-prop {
  background: rgba(0, 150, 136, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 150, 136, 0.7);
}
.sw.lk-none {
  width: 7px;
  background: #cfc9bd;
}
.wlist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.accs.big {
  margin: 0;
  padding: 0 6px 0 0;
  font-size: 13px;
}
.accs.big .acc {
  grid-template-columns: 1fr;
  padding: 10px 0;
}
.accs.big .acc-l {
  grid-template-columns: 170px 1fr auto;
  font-size: 13px;
}
.accs.big .acc-l .qbar {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.accs.big .acc-l .acc-r {
  grid-column: 3;
  grid-row: 1;
  min-width: 190px;
  text-align: right;
}
.accs.big .acc-l .num {
  grid-column: 1;
  grid-row: 2;
}
.new-note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
}
.rv-col {
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.rv-h {
  margin: 0 0 6px;
  font:
    600 18px Manrope,
    sans-serif;
}
.rv-col h4 {
  margin-top: 16px;
}
.rv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rv-i {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
}
.rv-s {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rv-s .cl {
  align-self: center;
}
.rv-t {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-t select {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
  padding: 0 8px;
  font:
    13px 'DM Sans',
    sans-serif;
  color: var(--ink);
}
.rv-split {
  flex: 1;
  display: grid;
  gap: 4px;
}
.rv-split > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 6px;
  align-items: center;
}
.rv-split i {
  grid-column: 2 / -1;
  height: 4px;
  border-radius: 2px;
  opacity: 0.7;
}
.rv-m {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}
.rv-m .muted {
  flex: 1;
}
.conf {
  display: inline-flex;
  gap: 2px;
  align-self: center;
}
.conf i {
  width: 4px;
  height: 11px;
  border-radius: 1.5px;
  background: #dcd8cf;
}
.conf.c3 i,
.conf.c2 i:nth-child(-n + 2),
.conf.c1 i:first-child {
  background: var(--primary);
}
.conf-w {
  font-weight: 600;
  font-size: 12px;
}
.rv-a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rv.done li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.rv.done li:first-child {
  border-top: 0;
}
.rv-empty {
  padding: 6px 0;
  font-size: 13px;
}
.pillbtn:disabled {
  opacity: 0.5;
  cursor: default;
}
.presets {
  flex-wrap: wrap;
}
.preset {
  flex: 0 0 calc((100% - 24px) / 4);
}
.notes ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

/* The left panel's top bar keeps its close button first. */
.bar .icon-btn.lead {
  flex: none;
  margin-right: 4px;
}
/* An invisible strut with the Done button's metrics sets Arrange's baseline in both panels, so the header reads as one line across the diptych. */
.pop.arranging .arr-head::before {
  content: '\200b';
  display: inline-block;
  width: 0;
  padding: 6px 0;
  margin-right: -10px;
  visibility: hidden;
  font:
    600 13px/18.85px 'DM Sans',
    system-ui,
    sans-serif;
}

/* ---------- levels of detail ---------- */
.lvls {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 2px 8px rgba(38, 54, 46, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cell:hover .lvls,
.cell:focus-within .lvls,
.cell.shake .lvls {
  opacity: 1;
}
.lvls button {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lvls button svg {
  width: 14px;
  height: 12px;
}
.lvls button.on {
  background: var(--primary);
  color: var(--surface) !important;
}
.lv-row {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  padding: 2px;
  border-radius: 999px;
  background: var(--canvas);
  align-self: flex-start;
}
.lv-row button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font:
    600 12px Manrope,
    sans-serif;
  cursor: pointer;
}
.lv-row button svg {
  width: 12px;
  height: 10px;
}
.lv-row button.on {
  background: var(--primary);
  color: var(--surface) !important;
}
.spec-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--pg-muted);
}
.spec-detail button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  background: transparent;
  color: var(--pg-ink);
  font:
    600 12px Manrope,
    sans-serif;
  cursor: pointer;
}
.spec-detail button[aria-pressed='true'] {
  background: var(--pg-accent);
  color: var(--pg-bg);
  border-color: var(--pg-accent);
}
.wl-data {
  display: block;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.wl.chip .wl-data {
  margin-top: 1px;
  padding-top: 0;
  border-top: 0;
}
.enso-txt .wl-data {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  opacity: 0.85;
}
.pc.wk-simple {
  justify-content: center;
}
.pc.wk-simple .wk {
  margin-top: 0;
}
.wk.intricate .wk-d {
  height: 76px;
  gap: 2px;
}
.wk-a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #5b4bb0;
}
.wk-a i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a7bd6;
}
.wk-d.on .wk-a {
  color: rgba(255, 254, 250, 0.9);
}
.wk-d.on .wk-a i {
  background: #d6d0f5;
}
.pc.ts-simple .ts {
  margin-top: 0;
}
.ts-x {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 1px;
  font-size: 12px;
  color: var(--muted);
}
.ts-ag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5b4bb0;
}
.ts-ag i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #8a7bd6 0 1.5px, #efedf9 1.5px 3px);
  box-shadow: inset 0 0 0 0.6px #8a7bd6;
}
.cal-g.wk8 {
  grid-template-columns: repeat(7, 1fr) 44px;
}
.cal-wt {
  display: grid;
  place-items: center;
  height: 34px;
  font-size: 12px;
  color: var(--muted);
}
.ag-two {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ag-two > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ins-src {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -3px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.su-m {
  font-size: 12px;
  color: #5b4bb0;
}
.lk-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.lk-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 100px 92px;
  gap: 8px;
  align-items: center;
  height: 26px;
  font-size: 13px;
}
.lk-b {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.lk-b i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #8a7bd6;
}
.lk-n {
  font-size: 12px;
  text-align: right;
}
.lk-list .lk-more {
  display: block;
  height: auto;
  padding-left: 18px;
  font-size: 12px;
}
.lk-todo {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
}
.lk-todo li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  height: 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.lk-todo li b {
  font-weight: 500;
}
.acc.s {
  padding: 6px 0;
  gap: 4px;
}
.acc-p {
  margin-left: auto;
  font-size: 13px;
}

/* The arrangement thumbnails turn like the page: in compact the second panel lies folded over the
   first; in wide it turns out to the left, with the same easing as the popover. */
.mini {
  perspective: 180px;
  transform: translateX(-12.5px);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.presets.wide .mini {
  transform: none;
}
.mini-h.lf {
  transform-origin: calc(100% + 1.5px) 50%;
  transform: rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.presets.wide .mini-h.lf {
  transform: none;
}
.tg {
  position: relative;
}
.wk.intricate {
  gap: 2px;
}
.wk.intricate .wk-a {
  gap: 2px;
}
.ins-list.tight > div {
  padding: 5px 0;
}
.ins-list.tight .say {
  margin-bottom: 3px;
}
.ins-list.tight .ins-src {
  margin: 0 0 3px;
}
/* Detail and size share one pill at a piece's lower right while arranging. */
.sizes .lvb {
  min-width: 26px;
  padding: 0;
  display: grid;
  place-items: center;
}
.sizes .lvb svg {
  width: 14px;
  height: 12px;
}
.sizes .sep {
  width: 1px;
  margin: 4px 2px;
  background: var(--line);
}
.card .lv-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.card .lv-line .lv-row {
  margin-top: 0;
}

/* ---------- height follows content ---------- */
.cell > .piece {
  transition: height 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cell.entering > .piece,
.pop.folding .cell > .piece {
  transition: none;
}
.pop.folding .half {
  transition: none;
}
/* While the page turns, the second panel is shown only down to the height the panels have reached. */
.pop.folding .pane[data-role='leaf'] > .pane-content > .half {
  clip-path: inset(-24px -24px 0 -24px);
}
/* A piece has no spare space under its content now, so its Arrange pill straddles its bottom edge, as the remove button straddles its top corner. */
.cell .sizes {
  bottom: -13px;
  right: 10px;
}
.cell:hover,
.cell:focus-within {
  z-index: 2;
}
/* A painting is redrawn at its new height at once, so its box does not ease either. */
.cell > .piece.art {
  transition: none;
}

/* ---------- quick start in Recent (Large) ---------- */
.pc.qs .new-row {
  margin-top: auto;
}
.qs-top {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rows li.qs-row {
  cursor: pointer;
  margin: 0 -6px;
  padding: 0 6px;
  border-radius: 8px;
  border-top-color: transparent;
}
.rows li.qs-row + li.qs-row {
  border-top: 1px solid var(--line);
}
.rows li.qs-row:hover,
.rows li.qs-row.on {
  background: rgba(40, 79, 61, 0.08);
  border-top-color: transparent;
}
.rows li.qs-row.on + li.qs-row,
.rows li.qs-row:hover + li.qs-row {
  border-top-color: transparent;
}
.qs-p {
  flex: none;
  max-width: 30%;
  font-size: 12px;
  color: var(--muted);
}
.qs-none {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.qs-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.qs-on {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-left: -5px;
  padding: 2px 6px 2px 5px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.qs-on b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--ink);
}
.qs-on svg {
  flex: none;
  width: 9px;
  height: 6px;
}
.qs-on:hover,
.qs-on.open {
  background: var(--canvas);
}
.qs-note {
  min-width: 0;
  flex: 1;
}
.new-row .pillbtn:disabled {
  opacity: 0.45;
  cursor: default;
}
.p-pick {
  width: 300px;
}
.pk-q {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
  padding: 0 9px;
  font:
    13px 'DM Sans',
    system-ui,
    sans-serif;
  color: var(--ink);
}
.pk-q::placeholder {
  color: #8a948d;
}
.pk-list {
  max-height: 260px;
  overflow: auto;
  margin: 8px -6px 0;
  display: grid;
}
.pk-h {
  padding: 8px 8px 3px;
  font:
    600 12px Manrope,
    sans-serif;
  color: var(--muted);
}
.pk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.pk-row b {
  font-weight: 600;
}
.pk-row:hover {
  background: rgba(40, 79, 61, 0.08);
}
.pk-row.on {
  background: var(--primary);
  color: var(--surface) !important;
}
.pk-row.on .dot {
  box-shadow: 0 0 0 1.5px var(--surface);
}

/* ---------- spacing floors: what used to float to the bottom of a fixed box keeps a gap ---------- */
.acts {
  padding-top: 10px;
}
.phead + .wk {
  padding-top: 8px;
}
.pc.qs .new-row {
  padding-top: 10px;
}
.tm-bottom {
  padding-top: 6px;
}
.ins-list .say,
.ins-list.tight .say {
  margin: 0;
}
.ins-src,
.ins-list.tight .ins-src {
  margin: 4px 0 0;
}
.ins-list > div {
  padding: 9px 0;
}
.ins-list.tight > div {
  padding: 7px 0;
}
.wk.intricate {
  gap: 4px;
}
.wk.intricate .wk-d {
  gap: 3px;
}
.wk-ag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5b4bb0;
}
.wk-ag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a7bd6;
}
.wk-ag .num {
  color: inherit;
}

/* ---------- take five ---------- */
.rest {
  position: absolute;
  inset: 0;
  z-index: 40;
  container-type: size;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 24px 24px 20px;
  border-radius: 14px;
  text-align: center;
  background: radial-gradient(
    90% 70% at 50% 38%,
    rgba(243, 247, 241, 0.9),
    rgba(224, 235, 228, 0.9) 55%,
    rgba(203, 221, 211, 0.93)
  );
  transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  backdrop-filter: blur(22px) saturate(1.05);
  box-shadow: 0 0 0 0.5px rgba(31, 39, 36, 0.18);
}
.rest-c {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.rest-fig {
  position: relative;
  width: min(220px, 52cqh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.rest-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.rest-track {
  fill: none;
  stroke: rgba(40, 79, 61, 0.1);
  stroke-width: 2;
}
.rest-arc {
  fill: none;
  stroke: #284f3d;
  stroke-opacity: 0.72;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.rest-orb {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: scale(0.72);
  background: radial-gradient(circle at 40% 36%, #e2f1e7, #aecdbc 58%, #7fa595);
  box-shadow:
    0 18px 50px rgba(63, 110, 90, 0.24),
    inset 0 -8px 24px rgba(40, 79, 61, 0.12);
}
.rest:focus {
  outline: none;
}
.rest.leaving {
  opacity: 0;
}
.rest-cue {
  margin: 0;
  display: grid;
  font:
    italic 22px/1.35 Georgia,
    'Times New Roman',
    serif;
  color: var(--ink);
}
.rest-cue > span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.rest-cue[data-ph='0'] > span:nth-child(1),
.rest-cue[data-ph='1'] > span:nth-child(2),
.rest-cue[data-ph='end'] > span:nth-child(3) {
  opacity: 1;
}
.hq .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Beneath the breathing screen the work softens and dims, and comes back into focus as it leaves. */
.pop.resting .pane-content,
.pop.waking .pane-content {
  transition:
    filter 1.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pop.resting .pane-content {
  filter: blur(8px);
  opacity: 0.35;
}
.rest-left {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.rest-left .num {
  color: var(--ink);
  font-weight: 600;
}
.rest-note {
  margin: 0;
  max-width: 320px;
  font-size: 12px;
  color: var(--muted);
}
.rest-end {
  font-size: 13px;
}
.pop.resting .hinge {
  opacity: 0;
  pointer-events: none;
}
.status-item.resting .si-time {
  background: #5f8a78;
}
.ins-src.in-head {
  margin: 0;
}
.rest-left,
.rest-note,
.rest-end {
  transition: opacity 0.9s ease;
}
.rest.whole .rest-left,
.rest.whole .rest-note,
.rest.whole .rest-end {
  opacity: 0;
}
/* Quotas at Medium: three rows with room between them, centred in the piece. */
.pc.q-m {
  justify-content: center;
}
.pc.q-m .q-row + .q-row {
  margin-top: 12px;
}
/* Recent at Medium: three rows that end above the piece's padding. */
.k-recent.m .rows li {
  height: 28px;
}
.q-s:not(.big) {
  padding-top: 8px;
}
.q-s.sm {
  gap: 10px;
}
.q-s.sm .q-pct {
  font-size: 13px;
}
.q-s-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Point to read, press to act: a chart's stops read in the piece's own tip and mark themselves; the rest step back. */
.tip.rd-tip {
  display: grid;
  gap: 1px;
  max-width: 236px;
}
.tip.rd-tip[hidden] {
  display: none;
}
.tip.rd-tip b {
  font-weight: 600;
}
.tip.rd-tip em {
  margin-top: 3px;
  font-style: normal;
  color: rgba(255, 254, 250, 0.78);
}
.rd {
  border-radius: 8px;
}
.rd:focus {
  outline: none;
}
.rd:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.rd.press [data-stop] {
  cursor: pointer;
}
.rd .rd-x {
  stroke: #26362e;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0;
  pointer-events: none;
}
.rd.reading .rd-x {
  opacity: 0.6;
}
.rd .rb-e,
.rd .wk-bars,
.rd .pj-bars,
.rd .lv-pt,
.rd .q-row .qbar {
  transition: opacity 0.15s ease;
}
.rd.reading .rb-e:not(.on) {
  opacity: 0.4;
}
.wk-col {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}
.wk-col .wk-bars {
  position: relative;
  display: block;
  width: 24px;
}
.rd.reading .wk-col:not(.on) .wk-bars {
  opacity: 0.45;
}
.rd.reading .pj-row:not(.on) .pj-bars {
  opacity: 0.4;
}
.rd .lv-pt {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.rd.reading .lv-pt:not(.on) {
  opacity: 0.45;
}
.rd.reading .lv-pt.on {
  transform: scale(1.4);
}
.rd.reading .q-row:not(.on) .qbar {
  opacity: 0.4;
}
@media (prefers-reduced-motion: reduce) {
  .rd .rb-e,
  .rd .wk-bars,
  .rd .pj-bars,
  .rd .lv-pt,
  .rd .q-row .qbar {
    transition: none;
  }
}
/* You and your agents, and Sessions and entries, read the same way: the bar or column read stands out, the rest step back. */
.rd.press.reading {
  cursor: pointer;
}
.rd .cg [data-stop] {
  transition: opacity 0.15s ease;
}
.rd.reading .cg [data-stop]:not(.on) {
  opacity: 0.4;
}
.rd .cg [data-stop].on {
  stroke: #26362e;
  stroke-width: 1.4;
  stroke-dasharray: none;
}
.rd .lk g[data-stop].on rect:nth-of-type(2),
.rd .lk rect[data-stop].on {
  stroke: #26362e;
  stroke-width: 1.2;
}
.rd.reading .lk-list li[data-stop]:not(.on) .lk-b {
  opacity: 0.4;
}
@media (prefers-reduced-motion: reduce) {
  .rd .cg [data-stop] {
    transition: none;
  }
}

/* The ribbon's legend: same colour, same project; the lavender swatch is the wash. */
.rb-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.rb-key > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  cursor: default;
}
.rb-key i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
/* At Medium the legend keeps to one line; a long name ends in an ellipsis, and the readout gives it in full. */
.piece.m .rb-key {
  flex-wrap: nowrap;
  overflow: hidden;
}
.piece.m .rb-key > span {
  flex: 0 1 auto;
}
.rd.keying .rb-e:not(.key) {
  opacity: 0.3;
}
.rb-key .rb-key-w i {
  background: #8a7bd6;
  opacity: 0.35;
}

/* Preferences: trying the new design, and the way back to today's. */
.pf-note {
  margin: 6px 0 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.pf-design {
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: 13px;
}
.pf-design .pillbtn {
  flex: none;
}

/* A row found from the chart beside it. */
.rv-hit {
  animation: rv-hit 1.6s ease;
}
@keyframes rv-hit {
  0%,
  30% {
    box-shadow: 0 0 0 2px var(--primary);
  }
  100% {
    box-shadow: 0 0 0 2px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv-hit {
    animation: none;
    box-shadow: 0 0 0 2px var(--primary);
  }
}
