:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --panel: #fffdf8;
  --ink: #101e35;
  --red: #b92f26;
  --red-dark: #96251e;
  --muted: #525855;
  --line: #d8d5c9;
  --serif: Georgia,'Times New Roman',serif;
  --sans: Arial,Helvetica,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

button,input,textarea,select {
  font: inherit;
  color: inherit;
}

button,select,summary {
  cursor: pointer;
}

button {
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible {
  outline: 3px solid #1766a0;
  outline-offset: 4px;
}

.sr-only,.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  top: 8px;
  left: 8px;
  background: white;
  padding: 10px;
  color: var(--ink);
  z-index: 8;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.masthead-inner,.site-foot {
  width: min(1256px,calc(100% - 10vw));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.masthead-inner {
  height: 80px;
}

.wordmark {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: .92;
  font-weight: 800;
  letter-spacing: -1.15px;
}

.wordmark img {
  width: 56px;
  height: auto;
  object-fit: contain;
}

.back-home,.site-foot a {
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 0;
}

.back-home span {
  margin-right: 5px;
}

.back-home:hover,.site-foot a:hover,.text-button:hover,.back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.workspace {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 40px 0;
}

.tool-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .86rem;
}

.tool-title>span:nth-child(2) {
  color: #9a9b8f;
}

.tool-kicker,.eyebrow,.cap,.choice-num,.goal-num,.ledger-number,.export-kind {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: .12em;
}

.tool-kicker,.eyebrow,.cap {
  font-size: .68rem;
}

.tool-kicker {
  color: var(--muted);
}

.steps {
  margin: 22px 0 40px;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
}

.steps li {
  min-width: 0;
}

.steps li + li {
  border-left: 1px solid var(--line);
}

.steps button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  padding: 7px;
}

.steps button:not(:disabled):hover {
  background: #eeece2;
}

.steps button:focus-visible {
  outline-offset: -4px;
}

.steps button[aria-current=step] {
  background: var(--ink);
  color: white;
}

.step-n {
  display: grid;
  place-content: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 50%;
  font: 700 .68rem var(--sans);
  border: 1px solid #b5b6ac;
}

.steps [aria-current=step] .step-n {
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
}

.past .step-n {
  color: #285743;
  border-color: #6f8b7d;
}

.eyebrow {
  color: var(--red);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow:before {
  content: '';
  width: 21px;
  height: 2px;
  background: currentColor;
}

.intro h1 {
  margin: 0;
  font: 700 clamp(2.55rem,5.7vw,4.65rem)/1.04 var(--serif);
  letter-spacing: -.06em;
}

.intro h1 em {
  color: var(--red);
  font-weight: normal;
}

.intro>p:last-child {
  max-width: 710px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: clamp(1rem,1.6vw,1.12rem);
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0,1.9fr) minmax(240px,1fr);
  gap: 26px;
  align-items: start;
  margin-top: 29px;
}

.layout>*,.split>*,.card,.aside {
  min-width: 0;
}

.card,.aside {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.card {
  padding: clamp(18px,3vw,30px);
}

.card h2,.aside h2,.dialog-inner h2 {
  font: 700 1.65rem/1.15 var(--serif);
  letter-spacing: -.04em;
  margin: 0 0 9px;
}

.aside h2 {
  font-size: 1.6rem;
}

.card p,.aside p {
  margin: 0 0 12px;
}

.small,.editor-note,.form-help,.empty,.ledger-status,.export-desc {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-help {
  display: block;
  margin: 0 0 10px;
}

.form-help kbd {
  font: inherit;
  font-weight: 700;
}

.input-label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
}

.entry-area,.editor-input,.action-input {
  background: white;
  border: 1px solid #a5a79d;
  color: var(--ink);
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
}

.entry-area {
  display: block;
  min-height: 92px;
  resize: vertical;
}

.entry-area::placeholder,.action-input::placeholder {
  color: #74766e;
}

.entry-area:focus,.editor-input:focus,.action-input:focus {
  border-color: var(--ink);
}

.entry-bar,.footer-actions,.dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.entry-bar {
  margin: 10px 0 0;
}

.entry-bar span {
  font-size: .76rem;
  color: var(--muted);
}

.primary,.sub-button,.back,.text-button,.edit,.icon-btn,.select-card,.export-btn,.inspire-select {
  border: 0;
  background: transparent;
}

.primary,.sub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.primary {
  background: var(--red);
  color: white;
  border: 1px solid var(--red);
}

.primary:hover:not(:disabled) {
  background: var(--red-dark);
}

.primary:disabled {
  color: #60625b;
  background: #e8e7df;
  border: 1px solid #d9d9cf;
}

.sub-button {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.sub-button:hover {
  background: #eeede4;
}

.sub-button:disabled {
  color: var(--muted);
  border-color: var(--line);
  background: #eeede4;
}

.goal-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  margin: 24px 0 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.goal-heading h3 {
  font: 700 1.17rem var(--serif);
  margin: 0;
}

.count-pill {
  font: 700 .73rem var(--sans);
  color: var(--ink);
  background: #eeeae0;
  padding: 4px 9px;
  border-radius: 99px;
}

.empty {
  padding: 12px 0 0;
}

.goal-rows,.choice-list,.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.goal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px solid #e7e5db;
  min-height: 47px;
}

.goal-num,.choice-num {
  font-size: .65rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.row-text,.result-goal,.choice-text,.action-title,.ledger-status {
  overflow-wrap: anywhere;
}

.row-text {
  flex: 1;
  font-size: .93rem;
  line-height: 1.4;
}

.edit,.icon-btn,.text-button,.back {
  color: var(--ink);
  font-size: .81rem;
  font-weight: 700;
  min-height: 44px;
}

.edit {
  padding: 0 6px;
}

.edit:hover,.icon-btn:hover {
  text-decoration: underline;
}

.icon-btn {
  padding: 0 8px;
  font-size: 1.24rem;
}

.editor {
  flex: 1;
  min-width: 0;
}

.edit-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor .sub-button {
  margin-top: 4px;
  padding: 4px 10px;
  min-height: 38px;
  font-size: .78rem;
}

.editor-input {
  margin-top: 7px;
  font-size: .9rem;
}

.form-message {
  margin: 7px 0 0!important;
  font-size: .85rem;
  color: var(--red);
  font-weight: 700;
}

.form-message:empty {
  display: none;
}

.footer-actions {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-actions .small {
  margin: 0;
  flex: 1;
  min-width: 145px;
}

.aside {
  padding: clamp(18px,2.5vw,26px);
}

.aside + .aside {
  margin-top: 15px;
}

.ledger {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--ink);
}

.ledger .cap {
  color: #e6e0d1;
  margin: 0 0 6px;
}

.ledger-number {
  font-family: var(--serif);
  font-weight: normal;
  letter-spacing: -.05em;
  font-size: 3.9rem;
  line-height: 1.1;
}

.ledger-number small {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0;
  color: #d9dcd9;
}

.meter {
  overflow: hidden;
  display: block;
  border: 0;
  border-radius: 1em;
  background: #495263;
  height: 6px;
  width: 100%;
  margin: 12px 0 10px;
}

.meter::-webkit-progress-bar {
  background: #495263;
  border-radius: 1em;
}

.meter::-webkit-progress-value {
  background: #ff8a75;
  border-radius: 1em;
}

.meter::-moz-progress-bar {
  background: #ff8a75;
  border-radius: 1em;
}

.ledger .ledger-status {
  color: #e6e0d1;
  margin: 0;
}

.inspire-select {
  display: block;
  background: white;
  border: 1px solid #acada4;
  border-radius: 6px;
  width: 100%;
  padding: 9px 8px;
  margin: 5px 0 14px;
}

.tip-example {
  font: italic 1.11rem/1.45 var(--serif);
  color: var(--ink);
}

.cap {
  color: var(--muted);
  margin: 0 0 11px;
}

.back {
  padding: 6px 0;
}

.choice-list {
  display: grid;
  gap: 7px;
}

.select-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 10px 12px;
  min-height: 47px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.select-card:hover {
  border-color: #92958b;
}

.select-card[aria-pressed=true] {
  border-color: var(--ink);
  background: #eeeee5;
}

.select-card[aria-disabled=true] {
  color: #6d7069;
  background: #f7f5f0;
}

.choice-text {
  font-size: .94rem;
  line-height: 1.4;
  flex: 1;
}

.choice-check {
  border: 1px solid #a4a69c;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-content: center;
  flex: none;
}

.select-card[aria-pressed=true] .choice-check {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.choice-check svg,.svg-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.selection-aside {
  position: sticky;
  top: 18px;
}

.ledger .primary {
  background: #fffdf8;
  color: var(--ink);
  border: 0;
  width: 100%;
  margin-top: 16px;
}

.ledger .primary:hover:not(:disabled) {
  background: #f2eadb;
}

.ledger .primary:disabled {
  background: #465064;
  color: #dadbd9;
  border: 1px solid #6d7480;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 20px;
  margin-top: 28px;
}

.focus-card {
  border-top: 4px solid var(--ink);
}

.avoid-card {
  border-top: 4px solid var(--red);
}

.avoid-card h2 {
  color: var(--red);
}

.avoid-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-size: .87rem;
  font-weight: 700;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}

.avoid-card summary:after {
  content: '+';
  font-size: 1.2rem;
}

.avoid-card details[open] summary:after {
  content: '−';
}

.result-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.result-goal {
  font-size: .97rem;
}

.action-row {
  display: block;
  margin: 19px 0;
}

.action-row+.action-row {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.action-title {
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 7px;
}

.action-input {
  font-size: .94rem;
}

.action-hint {
  margin-top: 6px!important;
}

.export-grid {
  display: grid;
  gap: 8px;
}

.export-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  width: 100%;
}

.export-btn:hover {
  background: #f3f0e7;
  border-color: #999c92;
}

.export-icon {
  display: grid;
  place-content: center;
  border: 1px solid #ddd9cd;
  background: var(--paper);
  border-radius: 7px;
  width: 40px;
  height: 40px;
  flex: none;
}

.export-btn strong,.export-btn small {
  display: block;
}

.export-btn strong {
  font-size: .93rem;
}

.export-desc {
  font-size: .76rem;
}

.export-kind {
  margin-left: auto;
  font-size: .6rem;
  color: var(--muted);
}

.result-action {
  font-size: .83rem;
  color: var(--muted);
  margin: .26rem 0 0!important;
  overflow-wrap: anywhere;
}

.reveal-actions {
  margin-bottom: 10px;
}

.session-foot,.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.session-foot {
  margin: 38px 0 34px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}

.text-button {
  font-size: .75rem;
  padding: 4px 0;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 19px 0 27px;
  font-size: .79rem;
  color: var(--muted);
}

.site-foot b {
  color: var(--ink);
  margin-right: 14px;
}

.site-foot a {
  font-size: .79rem;
  color: var(--ink);
}

dialog {
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(440px,90%);
}

dialog::backdrop {
  background: rgb(16 30 53/.5);
}

.dialog-inner {
  padding: 25px;
}

.dialog-inner>p:not(.eyebrow) {
  color: var(--muted);
}

.dialog-actions {
  justify-content: flex-end;
}

.intro {
  animation: arrive .25s ease-out;
}

@keyframes arrive {
  from {
    transform: translateY(4px);
    opacity: .65;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

[hidden] {
  display: none!important;
}

@media(max-width:800px) {
  .workspace {
    padding: 24px 24px 0;
  }
  .steps {
    margin-bottom: 28px;
  }
  .layout {
    gap: 16px;
    grid-template-columns: minmax(0,1.65fr) minmax(210px,1fr);
  }
  .card,.aside {
    padding: 18px;
  }
  .steps button {
    font-size: .72rem;
    gap: 5px;
  }
  .step-n {
    flex-basis: 18px;
    height: 18px;
  }
  .split {
    gap: 14px;
  }
}

@media(max-width:640px) {
  .masthead-inner,.site-foot {
    width: calc(100% - 36px);
  }
  .masthead-inner {
    height: 64px;
  }
  .wordmark {
    font-size: 17px;
    gap: 7px;
  }
  .wordmark img {
    width: 45px;
    height: auto;
  }
  .back-home {
    font-size: .76rem;
  }
  .workspace {
    padding: 18px 18px 0;
  }
  .tool-title {
    font-size: .74rem;
    gap: 7px;
  }
  .tool-kicker {
    font-size: .61rem;
  }
  .steps {
    margin: 15px 0 29px;
  }
  .steps button {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 2px;
    min-height: 51px;
    line-height: 1.2;
    font-size: .64rem;
  }
  .step-n {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    font-size: .58rem;
  }
  .intro h1 {
    font-size: clamp(2.5rem,11vw,3.45rem);
  }
  .intro>p:last-child {
    margin-top: 9px;
  }
  .layout,.split {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 21px;
  }
  .layout>*,.split>* {
    width: 100%;
  }
  .card,.aside {
    border-radius: 10px;
  }
  .selection-aside {
    position: static;
  }
  .ledger-number {
    font-size: 2.75rem;
  }
  .aside+.aside {
    margin-top: 12px;
  }
  .card h2,.aside h2 {
    font-size: 1.47rem;
  }
  .goal-row {
    gap: 7px;
  }
  .entry-bar span {
    font-size: .7rem;
  }
  .footer-actions {
    gap: 8px;
  }
  .primary,.sub-button {
    font-size: .81rem;
  }
  .session-foot {
    margin: 21px 0 15px;
    gap: 4px;
  }
  .site-foot {
    align-items: flex-start;
    gap: 7px;
  }
  .site-foot b,.site-foot span {
    display: block;
  }
  .site-foot a span {
    display: inline;
  }
  .site-foot a {
    padding-top: 2px;
  }
  .reveal-actions .primary {
    margin-left: auto;
  }
  .steps .past .step-n {
    font-size: .65rem;
  }
  .export-kind {
    font-size: .58rem;
  }
}

@media(max-width:360px) {
  .workspace {
    padding-left: 12px;
    padding-right: 12px;
  }
  .entry-bar,.footer-actions {
    align-items: stretch;
  }
  .entry-bar {
    flex-direction: column;
    gap: 7px;
  }
  .steps button {
    font-size: .59rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:after,*:before {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
}

.entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.inspire-jump {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 700;
  text-underline-offset: 3px;
}

.inspire-select {
  scroll-margin-block: 15vh;
}

@media(max-width:640px) {
  .selection-layout .selection-aside {
    order: -1;
    position: sticky;
    top: 4px;
    z-index: 2;
  }
  .selection-layout .ledger {
    padding: 10px 13px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    box-shadow: 0 3px 10px rgb(16 30 53/.12);
  }
  .selection-layout .ledger .cap {
    margin: 0;
    grid-row: 1;
    grid-column: 1;
    font-size: .58rem;
  }
  .selection-layout .ledger-number {
    font: 700 1.12rem/1.25 var(--sans);
    grid-column: 1;
    grid-row: 2;
    letter-spacing: -.03em;
  }
  .selection-layout .ledger-number small {
    font-size: .82rem;
  }
  .selection-layout .ledger .meter,.selection-layout .ledger-status {
    display: none;
  }
  .selection-layout .ledger .primary {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    min-height: 42px;
  }
  .select-card {
    scroll-margin-block-start: 75px;
  }
}

.brand-dot {
  color: var(--red);
}

.origin-note {
  font-size: .82rem;
  color: var(--muted);
  max-width: 76ch;
  margin: -13px 0 23px;
}

.origin-note summary {
  font-weight: 700;
  padding: 10px 0;
}

.origin-note p {
  margin: 0 0 12px;
}

.origin-note a {
  color: var(--ink);
  text-underline-offset: 3px;
}

@media(max-width:640px) {
  .origin-note {
    margin: 0 0 12px;
  }
}
