.cb-page .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.cb-page .cb-point,
.cb-page .cb-opt {
  scroll-margin-top: 100px;
}
.cb-save {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.cb-save .dirty {
  color: #9b4c34;
  font-weight: 600;
}
.cb-primary {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
}
.cb-primary:hover:not(:disabled) {
  background: #1f4d42;
}

.cb-main {
  max-width: none;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  padding-top: 28px;
}
.cb-side {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding-right: 4px;
}
.cb-area {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}
.cb-tasklink {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12px;
  color: var(--ink);
}
.cb-tasklink:hover {
  background: #edf3ee;
}
.cb-tasklink.selected {
  background: #e3eee6;
  border-color: #b4c6bb;
  font-weight: 600;
}
.cb-tasklink .prog {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.cb-tasklink.done .prog {
  color: #2f6b4c;
  font-weight: 700;
}
.cb-general {
  margin-top: 18px;
  font-size: 12px;
}
.cb-general summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.cb-where {
  margin-top: 14px;
}
.cb-where code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
textarea {
  font: inherit;
  font-size: 13px;
  width: 100%;
  border: 1px solid #cdd7cf;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  line-height: 1.5;
}
textarea:focus-visible {
  outline: 3px solid #438676;
  outline-offset: 1px;
}
.cb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}
.cb-head h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.cb-tasktext {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 18px;
}
.cb-tasktext summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.cb-tasktext p {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.7;
}
.cb-point {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 5px solid var(--line);
}
.cb-point[data-d="accept"] {
  border-left-color: #3f7f5d;
}
.cb-point[data-d="edit"] {
  border-left-color: #c08a2b;
}
.cb-point[data-d="reject"] {
  border-left-color: #b0533d;
  background: #fdf8f6;
}
.cb-point header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cb-point h3 {
  font-size: 15px;
}
.cb-num {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cb-basis {
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 6px;
  background: #eef3eb;
  color: #436247;
}
.cb-basis.consensus {
  background: #edf0f8;
  color: #3f5687;
}
.cb-src {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.cb-chip {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  background: #fafcf8;
  cursor: help;
}
.cb-chip.base {
  border-color: #8fb0a0;
  font-weight: 700;
}
.cb-fields {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 13px;
  line-height: 1.55;
}
.cb-fields dt {
  font-size: 11px;
  color: var(--muted);
  padding-top: 2px;
}
.cb-fields dd {
  margin: 0;
}
.cb-cut {
  margin-top: 10px;
  font-size: 12px;
  background: #fff7e8;
  border: 1px solid #f0dcb4;
  border-radius: 7px;
  padding: 8px 10px;
  color: #6f5122;
}
.cb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
}
.cb-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.cb-controls legend {
  float: left;
  font-size: 11px;
  color: var(--muted);
  margin-right: 6px;
}
.cb-seg {
  display: inline-flex;
}
.cb-seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cb-seg span {
  border: 1px solid #cdd7cf;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
}
.cb-seg label:first-of-type span {
  border-radius: 7px 0 0 7px;
}
.cb-seg label:last-of-type span {
  border-radius: 0 7px 7px 0;
}
.cb-seg label + label span {
  border-left: 0;
}
.cb-seg input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cb-seg input:focus-visible + span {
  outline: 3px solid #438676;
  outline-offset: 2px;
}
.cb-edit {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.cb-edit label {
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 3px;
}
.cb-note {
  margin-top: 10px;
}
.cb-section {
  margin: 26px 0 10px;
  font-size: 15px;
}
.cb-opt,
.cb-added {
  background: #fff;
  border: 1px dashed #cdd7cf;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.cb-opt h4,
.cb-added h4 {
  font-size: 13px;
  margin: 0 0 4px;
}
.cb-runs {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-top: 24px;
}
.cb-runs summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.cb-runcols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px 16px;
}
.cb-runcols h4 {
  font-size: 12px;
  margin: 0 0 6px;
}
.cb-runitem {
  font-size: 12px;
  line-height: 1.45;
  padding: 6px 0;
  border-top: 1px solid #edf1ec;
}
.cb-runitem.unused {
  background: #fff7e8;
}
.cb-runitem b {
  font-variant-numeric: tabular-nums;
}
.cb-taskfoot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.cb-taskfoot .checkbox {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .cb-page .topbar {
    position: static;
  }
  .cb-main {
    grid-template-columns: 1fr;
  }
  .cb-side {
    position: static;
    max-height: none;
  }
  .cb-runcols {
    grid-template-columns: 1fr 1fr;
  }
  .cb-fields {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 16px;
  }
}
.cb-part {
  padding: 0 16px;
}
.cb-part h4 {
  margin: 8px 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cb-part p,
.cb-question p {
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
}
.cb-tasktext mark {
  background: #ffe08a;
  padding: 0 1px;
  border-radius: 2px;
}
.cb-instr {
  color: var(--muted);
  font-style: italic;
}
.cb-instr-tag {
  font-style: normal;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 4px;
  background: #f7f9f5;
}
.cb-question {
  margin: 4px 16px 8px;
  font-size: 12px;
}
.cb-question summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
}
.cb-note {
  padding: 0 16px 12px;
}
.cb-compare {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.cb-compare label {
  margin-left: 8px;
  cursor: pointer;
}
.cb-compare input {
  accent-color: var(--accent);
  margin-right: 3px;
}
.cb-version {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 4px;
}
.cb-alt {
  margin-top: 10px;
  border: 1px dashed #cdd7cf;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fbfcfa;
}
.cb-alt.chosen {
  border: 2px solid var(--accent);
  background: #eef5f0;
}
.cb-alt-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cb-alt-item {
  margin: 6px 0;
}
.cb-alt-item b {
  font-size: 13px;
}
.cb-joined {
  margin-top: 8px;
  font-size: 12px;
  color: #8b612c;
  background: #fff4dd;
  border-radius: 6px;
  padding: 6px 10px;
}
.cb-drop {
  margin-top: 10px;
  font-size: 12px;
  color: #6f5122;
  background: #fff7e8;
  border: 1px dashed #f0dcb4;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cb-drop .secondary {
  padding: 4px 10px;
  font-size: 12px;
}
.gr-member {
  display: grid;
  grid-template-columns: auto minmax(120px, 220px) minmax(0, 1fr) auto auto;
  gap: 4px 10px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px solid #eef1ec;
  font-size: 12px;
}
.gr-mname {
  font-weight: 600;
}
.gr-mq {
  color: var(--ink);
  cursor: help;
}
.gr-btn {
  padding: 3px 8px;
  font-size: 11px;
}
.gr-move {
  font-size: 11px;
  padding: 3px 6px;
}
.gr-theme {
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .gr-member {
    grid-template-columns: auto 1fr;
  }
}
.gr-graph {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.gr-graph-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.gr-graph-bar .checkbox {
  padding: 0;
}
.gr-graph-scroll {
  overflow-x: auto;
}
.gr-graph-scroll svg {
  display: block;
  max-width: none;
}
.pr-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}
.pr-main h1 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 4px 0 8px;
}
.pr-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.pr-bar {
  flex: 1;
  height: 6px;
  background: #e8ede7;
  border-radius: 4px;
  overflow: hidden;
}
.pr-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.pr-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.pr-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.pr-item h3 {
  font-size: 15px;
  margin: 2px 0 6px;
}
.pr-item > p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.pr-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pr-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}
.pr-choice {
  background: #fff;
  border: 1px solid #cdd7cf;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.pr-choice.chosen {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pr-choice kbd {
  margin-left: 8px;
  font-size: 11px;
  opacity: 0.7;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0 4px;
}
.pr-nav {
  display: flex;
  gap: 8px;
}
@media (max-width: 800px) {
  .pr-items {
    grid-template-columns: 1fr;
  }
}
.cb-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 60px;
  z-index: 4;
  overflow-x: auto;
}
.cb-tabs a {
  padding: 12px 16px;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.cb-tabs a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.cb-tabs a.selected {
  color: var(--accent);
  font-weight: 650;
  border-bottom-color: var(--accent);
}
.cb-page .cb-side {
  top: 124px;
  max-height: calc(100dvh - 140px);
}
@media (max-width: 900px) {
  .cb-tabs {
    position: static;
  }
}
.em-sentence {
  margin: 14px 0;
}
.em-text {
  font-size: 17px;
  line-height: 1.6;
  margin: 4px 0 0;
}
