:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --surface: #ffffff;
  --ink: #181818;
  --muted: #9a9a96;
  --soft: #d8d8d3;
  --line: #deded9;
  --shadow: 0 22px 70px rgba(24, 24, 24, 0.08), 0 2px 10px rgba(24, 24, 24, 0.04);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
}

button {
  font: inherit;
}

.app-shell,
.projects-view,
.prompt-view,
.loading-view {
  min-height: 100vh;
}

.projects-view {
  position: relative;
  min-height: 100vh;
  padding: 0 40px 64px;
  overflow: auto;
  background: var(--canvas);
}

.projects-view[hidden] {
  display: none;
}

.projects-brand {
  display: grid;
  flex: 0 0 auto;
  align-self: flex-start;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -1px;
  border-radius: 12px;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.22,1,.36,1);
}

.projects-brand:hover,
.projects-brand:focus-visible {
  outline: none;
  opacity: .7;
  transform: scale(1.025);
}

.projects-brand img {
  width: 40px;
  height: 32px;
  object-fit: contain;
}

.new-project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  color: #fff;
  background: #20201e;
  border: 1px solid #20201e;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: transform 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms ease, background 180ms ease;
}

.new-project-button:hover,
.new-project-button:focus-visible {
  background: #000;
  box-shadow: 0 10px 24px rgba(24,24,24,.16);
  outline: none;
  transform: translateY(-1px);
}

.new-project-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.projects-content {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 72px;
  animation: projects-enter 520ms cubic-bezier(.22,1,.36,1) both;
}

.projects-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.projects-primary-actions {
  display: flex;
  align-items: center;
}

.projects-title-lockup { display: block; }
.projects-title-row { display: flex; align-items: center; gap: 10px; }
.projects-primary-actions { gap: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dialog-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #93938e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.projects-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.4vw, 43px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
}

.projects-heading p {
  margin: 0;
  color: #8b8b85;
  font-size: 13px;
}

.projects-subtitle-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid #dcdcd7;
}

.projects-toolbar[hidden] { display: none; }

.project-search {
  display: flex;
  flex: 0 1 55%;
  align-items: center;
  gap: 9px;
  max-width: 520px;
  height: 40px;
  padding: 0 12px;
  color: #8c8c86;
  background: #efefed;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-search:focus-within {
  background: #fff;
  border-color: #d2d2cd;
  box-shadow: 0 0 0 3px rgba(24,24,24,.035);
}

.project-search svg,
.import-project-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-search input {
  width: 100%;
  color: #292927;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.project-search input::-webkit-search-cancel-button { display: none; }

.project-search input::placeholder { color: #aaa9a4; }

.project-search kbd {
  display: none;
}

.project-search:focus-within kbd,
.project-search input:not(:placeholder-shown) + kbd { opacity: 0; }

.project-search-clear {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  padding: 0;
  color: #8e8e88;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.project-search-clear[hidden] { display: none; }
.project-search-clear svg { width: 15px; height: 15px; }
.project-search-clear:hover,
.project-search-clear:focus-visible {
  color: #222220;
  background: #e4e4e0;
  outline: none;
}

.project-sort {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 40px;
  padding: 0 5px;
  color: #5f5f5a;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, opacity 160ms ease;
}

.project-sort:hover,
.project-sort:focus-visible {
  color: #171715;
  outline: none;
}

.project-sort.is-changing { opacity: .25; }

.import-project-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  color: #9c9c96;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, opacity 160ms ease;
}

.import-project-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
  transform: translateY(1px);
}

.import-project-button:hover,
.import-project-button:focus-visible {
  color: #252523;
  outline: none;
}

.projects-toolbar .new-project-button { margin-left: auto; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  min-width: 0;
  border-bottom: 1px solid #dcdcd7;
}

.project-card {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  min-height: 0;
  background: transparent;
  border-bottom: 1px solid #e2e2dd;
  transition: background 200ms ease;
}

.project-card:last-child { border-bottom: 0; }

.project-card:hover,
.project-card:focus-within,
.project-card.is-actions-open {
  background: transparent;
}

.project-card-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 110px;
  padding: 20px 2px 18px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.project-card-open:focus-visible {
  outline: 1px solid #cfcfc9;
  outline-offset: -1px;
}

.project-card h2 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #2a2a27;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.project-card:hover h2,
.project-card:focus-within h2 { color: #11110f; }

.project-card p {
  display: block;
  max-width: 100%;
  margin: 7px 0 12px;
  overflow: hidden;
  color: #777772;
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  color: #a0a09a;
  font-size: 11px;
}

.project-pin-label {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: #74746e;
}

.project-pin-label svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-card-meta i {
  width: 3px;
  height: 3px;
  background: #c1c1bc;
  border-radius: 50%;
}

.project-actions {
  position: absolute;
  top: auto;
  bottom: 11px;
  right: 2px;
  z-index: 2;
  width: 28px;
  height: 28px;
  overflow: visible;
  transition: width 200ms cubic-bezier(.22,1,.36,1);
}

.project-actions.is-open {
  width: 178px;
}

.project-actions-trigger {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #777772;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease;
}

.project-actions-trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.project-card:hover .project-actions-trigger,
.project-card:focus-within .project-actions-trigger,
.project-actions.is-open .project-actions-trigger {
  opacity: .78;
  pointer-events: auto;
}

.project-actions-trigger:hover,
.project-actions-trigger:focus-visible { color: #20201e; background: transparent; outline: none; opacity: 1; }

.project-actions-menu {
  position: absolute;
  top: 1px;
  right: 29px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.project-actions-menu button {
  display: grid;
  place-items: center;
  width: 27px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  color: #85857f;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px) scale(.94);
  transition: opacity 150ms ease, color 150ms ease, background 150ms ease,
    transform 210ms cubic-bezier(.22,1,.36,1);
}

.project-actions.is-open .project-actions-menu { pointer-events: auto; }
.project-actions.is-open .project-actions-menu button { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.project-actions.is-open .project-actions-menu button:nth-child(5) { transition-delay: 0ms; }
.project-actions.is-open .project-actions-menu button:nth-child(4) { transition-delay: 24ms; }
.project-actions.is-open .project-actions-menu button:nth-child(3) { transition-delay: 48ms; }
.project-actions.is-open .project-actions-menu button:nth-child(2) { transition-delay: 72ms; }
.project-actions.is-open .project-actions-menu button:nth-child(1) { transition-delay: 96ms; }

.project-actions-menu button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.project-actions-menu button:hover,
.project-actions-menu button:focus-visible { color: #20201e; background: transparent; outline: none; }
.project-actions-menu button[data-action="delete"] {
  margin-left: 3px;
  color: #969690;
}

.project-actions-menu button[data-action="delete"]:hover,
.project-actions-menu button[data-action="delete"]:focus-visible {
  color: #a33d38;
  background: #f7ecea;
}

.project-title-editor {
  width: min(100%, 650px);
  margin: -2px 0 2px;
  padding: 0 0 2px;
  color: #171715;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #73736d;
  outline: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.12;
}

.project-count {
  margin: 13px 1px 0;
  color: #aaa9a4;
  font-size: 11px;
}

.projects-no-results {
  padding: 15px 1px 0;
  animation: project-state-enter 220ms cubic-bezier(.22,1,.36,1) both;
}

.projects-no-results[hidden] { display: none; }
.projects-no-results h2,
.projects-empty h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.035em;
}

.projects-no-results p,
.projects-empty p {
  margin: 8px 0 0;
  color: #85857f;
  font-size: 14px;
  line-height: 1.55;
}

.projects-empty {
  flex: 1;
  min-width: 0;
  padding: 0 1px;
  text-align: left;
  animation: project-state-enter 220ms cubic-bezier(.22,1,.36,1) both;
}

.projects-empty[hidden] { display: none; }
.projects-empty h2 { font-size: 21px; }
.projects-empty p { margin-top: 5px; font-size: 12px; }
.projects-view.is-empty .projects-subtitle-row { display: none; }
.projects-view.is-empty .projects-heading { margin-bottom: 24px; }
.projects-view.is-empty .projects-toolbar { padding-bottom: 3px; }
.projects-view.is-empty .new-project-button { flex-shrink: 0; align-self: flex-start; }

@media (max-width: 560px) {
  .projects-view.is-empty .projects-toolbar { flex-wrap: wrap; gap: 14px; padding-bottom: 12px; }
  .projects-view.is-empty .projects-empty { flex-basis: 100%; }
  .projects-view.is-empty .new-project-button { width: auto; padding: 0 13px; margin-left: 0; }
  .projects-view.is-empty .new-project-button span { display: inline; }
}

@keyframes project-state-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-projects-button {
  position: fixed;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 11px 0 8px;
  color: #696964;
  background: rgba(255,255,255,.75);
  border: 1px solid #e0e0db;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.prompt-projects-button:hover,
.prompt-projects-button:focus-visible { color: #20201e; background: #fff; outline: none; }
.prompt-projects-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.project-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d8d3;
  border-radius: 21px;
  box-shadow: 0 28px 90px rgba(24,24,24,.2);
}

.project-dialog::backdrop { background: rgba(24,24,24,.22); backdrop-filter: blur(3px); }
.project-dialog form { padding: 27px; }
.project-dialog h2 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.project-dialog label { display: block; margin-bottom: 7px; color: #777772; font-size: 11px; font-weight: 650; }
.project-dialog input { width: 100%; height: 47px; padding: 0 13px; color: #242422; background: #fafaf8; border: 1px solid #d6d6d1; border-radius: 12px; outline: 0; font: inherit; font-size: 14px; }
.project-dialog input:focus { border-color: #80807a; box-shadow: 0 0 0 3px rgba(24,24,24,.055); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.dialog-actions button { min-height: 40px; padding: 0 14px; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 650; }
.dialog-secondary { color: #555550; background: #f1f1ee; border: 1px solid #e0e0db; }
.dialog-primary { color: #fff; background: #222220; border: 1px solid #222220; }

@keyframes projects-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-view {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 84px;
  opacity: 1;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.prompt-view.is-leaving {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(.985);
}

.brand-lockup {
  position: relative;
  width: 184px;
  height: 147px;
  margin-bottom: 22px;
  animation: brand-enter 700ms cubic-bezier(.22, 1, .36, 1) both;
}

.brand-mark {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-open {
  opacity: 1;
  animation: logo-open-frame 3.4s 1s steps(1, end) infinite;
}

.brand-closed {
  opacity: 0;
  animation: logo-closed-frame 3.4s 1s steps(1, end) infinite;
}

.prompt-wrap {
  width: min(552px, calc(100vw - 168px));
  margin-top: 0;
  animation: composer-enter 760ms 90ms cubic-bezier(.22, 1, .36, 1) both;
}

.prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: end;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: min-height 260ms cubic-bezier(.22, 1, .36, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-card:focus-within {
  border-color: #bcbcb6;
  box-shadow: 0 24px 80px rgba(24, 24, 24, 0.1), 0 0 0 3px rgba(24, 24, 24, 0.035);
}

.composer {
  min-height: 40px;
  padding: 6px 2px 5px;
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -0.017em;
  overflow-wrap: anywhere;
  cursor: text;
}

.prompt-prefix,
.prompt-suggestion {
  color: var(--muted);
  user-select: none;
}

.prompt-value {
  color: var(--ink);
}

.prompt-value:not(:empty)::after {
  content: "\00a0";
  font-size: 0;
}

.active-input {
  min-width: 1px;
  outline: none;
  caret-color: var(--ink);
  white-space: pre-wrap;
}

.active-input:empty {
  display: inline-block;
}

.prompt-suggestion {
  position: relative;
  animation: suggestion-in 220ms ease both;
}

.prompt-suggestion.is-tabbed::after {
  content: "Tab";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 19px;
  margin-left: 7px;
  padding: 0 5px;
  color: #8e8e89;
  border: 1px solid #d3d3ce;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  vertical-align: 2px;
}

.icon-button,
.submit-button,
.profile-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: #5f5f5b;
  background: transparent;
  border-radius: 13px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--ink);
  background: #f1f1ee;
}

.icon-button:active {
  transform: scale(.92);
}

.icon-button svg,
.submit-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.submit-button {
  width: 38px;
  height: 38px;
  color: white;
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(24, 24, 24, .16);
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), background 160ms ease, box-shadow 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 24, 24, .22);
}

.submit-button:active {
  transform: translateY(0) scale(.94);
}

.prompt-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding-top: 13px;
  color: #a0a09b;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.prompt-wrap:focus-within .prompt-hint {
  opacity: 1;
  transform: translateY(0);
}

kbd {
  padding: 2px 5px;
  color: #777772;
  background: #efefec;
  border: 1px solid #ddddda;
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}

.hint-divider {
  width: 3px;
  height: 3px;
  background: #c3c3be;
  border-radius: 50%;
}

.profile-anchor {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 5;
}

.profile-button {
  width: 44px;
  height: 44px;
  color: #555550;
  background: #eeeeea;
  border: 1px solid #d9d9d4;
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease, transform 180ms ease;
}

.profile-button:hover,
.profile-button:focus-visible,
.profile-anchor:focus-within .profile-button {
  color: #fff;
  background: var(--ink);
  transform: translateY(-2px);
}

.profile-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.profile-menu {
  position: absolute;
  bottom: 54px;
  left: 0;
  width: 184px;
  padding: 7px;
  pointer-events: none;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(24, 24, 24, .13);
  opacity: 0;
  transform: translateY(7px) scale(.97);
  transform-origin: bottom left;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.profile-anchor:hover .profile-menu,
.profile-anchor:focus-within .profile-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-label {
  padding: 8px 10px 9px;
  color: #8b8b86;
  font-size: 12px;
  border-bottom: 1px solid #eeeeeb;
  margin-bottom: 4px;
}

.profile-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  color: #333330;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.profile-menu button:hover,
.profile-menu button:focus-visible {
  background: #f2f2ef;
  outline: none;
}

.profile-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  pointer-events: none;
  color: #393936;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 38px rgba(24, 24, 24, .11);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.toast.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-dot {
  width: 6px;
  height: 6px;
  background: #777772;
  border-radius: 50%;
}

.toast button {
  margin-left: 5px;
  padding: 5px 8px;
  color: #292927;
  background: #ededE9;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.loading-view {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 36px;
  pointer-events: none;
  background: var(--canvas);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 450ms ease, transform 620ms cubic-bezier(.22, 1, .36, 1), visibility 0s 450ms;
}

.loading-view.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.map-loader {
  position: relative;
  width: min(290px, 72vw);
  margin-bottom: 18px;
}

.doodle-map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 9px rgba(24, 24, 24, .06));
}

.doodle-connector {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 8 9;
  animation: doodle-flow 1.15s linear infinite;
}

.path-two,
.path-four {
  animation-direction: reverse;
}

.path-three,
.path-four {
  animation-delay: -.45s;
}

.travel-dot {
  fill: var(--ink);
  animation: travel-pop 1.7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.dot-two { animation-delay: -.45s; }
.dot-three { animation-delay: -.85s; }
.dot-four { animation-delay: -1.2s; }

.node-shell {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3.4;
}

.node-core {
  fill: var(--ink);
}

.node-mini {
  fill: var(--ink);
}

.node-scribble {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle-node {
  animation: node-hop 2.25s cubic-bezier(.45, 0, .25, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.node-b { animation-delay: -.55s; }
.node-c { animation-delay: -1.15s; }
.node-d { animation-delay: -1.7s; }

.loader-logo-svg {
  animation: logo-float 2.25s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.doodle-spark {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  animation: spark-pop 1.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.spark-two {
  animation-delay: -.9s;
}

.loading-view h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 550;
  letter-spacing: -.035em;
}

.loading-view p {
  margin: 9px 0 0;
  color: #92928d;
  font-size: 14px;
}

.loading-dots::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes brand-enter {
  from { opacity: 0; transform: translateY(-12px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logo-open-frame {
  0%, 41%, 49%, 100% { opacity: 1; }
  42%, 48% { opacity: 0; }
}

@keyframes logo-closed-frame {
  0%, 41%, 49%, 100% { opacity: 0; }
  42%, 48% { opacity: 1; }
}

@keyframes composer-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes suggestion-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(2px) rotate(-1deg) scale(.98); }
  50% { transform: translateY(-4px) rotate(1deg) scale(1.03); }
}

@keyframes node-hop {
  0%, 100% { transform: translateY(1px) rotate(-3deg) scale(.94); }
  45% { transform: translateY(-5px) rotate(3deg) scale(1.06); }
  65% { transform: translateY(-2px) rotate(0) scale(1); }
}

@keyframes doodle-flow {
  to { stroke-dashoffset: -34; }
}

@keyframes travel-pop {
  0%, 100% { opacity: .2; transform: scale(.55); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes spark-pop {
  0%, 100% { opacity: .15; transform: rotate(-8deg) scale(.65); }
  48% { opacity: 1; transform: rotate(7deg) scale(1.15); }
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.mindmap-view {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  background: #f8f8f6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 0s 520ms;
}

.mindmap-view.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.map-toolbar {
  position: fixed;
  top: 22px;
  left: 24px;
  right: 24px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.map-brand {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  pointer-events: auto;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #deded9;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(24,24,24,.06);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.map-brand:hover,
.map-brand:focus-visible {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 11px 32px rgba(24,24,24,.1);
  outline: none;
}

.map-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-title-group {
  padding: 3px 0;
}

.map-eyebrow,
.notes-kicker {
  display: block;
  color: #969690;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.map-title-group h1 {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.map-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  color: #777772;
  background: rgba(255,255,255,.82);
  border: 1px solid #e1e1dc;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.map-progress i,
.map-help i {
  width: 3px;
  height: 3px;
  background: #b6b6b1;
  border-radius: 50%;
}

.mindmap-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background-color: #f8f8f6;
  background-image: radial-gradient(circle, rgba(42,42,39,.11) 1px, transparent 1.25px);
  background-position: 0 0;
  background-size: 24px 24px;
}

.mindmap-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 35%, rgba(248,248,246,.42) 92%);
}

.mindmap-canvas.is-dragging {
  cursor: grabbing;
}

.mindmap-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}

.mindmap-world.is-animating {
  transition: transform 820ms cubic-bezier(.22, 1, .36, 1);
}

.mindmap-edges,
.mindmap-nodes {
  position: absolute;
  inset: 0;
  width: 1600px;
  height: 1000px;
}

.mindmap-edges {
  overflow: visible;
  pointer-events: auto;
}

.mindmap-nodes {
  pointer-events: none;
}

.mindmap-edges path {
  fill: none;
  stroke: #9f9f99;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: .72;
  transition: opacity 420ms ease, stroke 300ms ease, stroke-width 300ms ease;
}

.mindmap-edges path.is-active {
  stroke: #333331;
  stroke-width: 2.8;
  opacity: .88;
}

.mindmap-edges path.is-muted {
  opacity: .09;
}

.mindmap-edges path.is-generated {
  stroke-dasharray: 8 7;
  animation: draw-generated-edge 900ms cubic-bezier(.22,1,.36,1) both;
}

.mindmap-edges path.grow-control-edge {
  stroke: #4b4b47;
  stroke-width: 2;
  stroke-dasharray: 6 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease, stroke-dasharray 260ms ease, stroke-width 260ms ease;
}

.mindmap-edges path.grow-control-edge.is-visible {
  opacity: .17;
}

.mindmap-edges path.grow-control-edge.is-hovered {
  stroke-width: 2.5;
  stroke-dasharray: 0;
  opacity: .8;
}

.map-node {
  --node-width: 154px;
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--node-width);
  min-height: 54px;
  padding: 14px 18px;
  color: #242422;
  background: rgba(255,255,255,.96);
  border: 1.5px solid #cacac4;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(24,24,24,.07), 0 1px 2px rgba(24,24,24,.04);
  cursor: pointer;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.88);
  animation: map-node-enter 500ms var(--node-delay) cubic-bezier(.22, 1, .36, 1) forwards;
  transition: left 520ms cubic-bezier(.22,1,.36,1), top 520ms cubic-bezier(.22,1,.36,1), width 300ms cubic-bezier(.22,1,.36,1), min-height 300ms cubic-bezier(.22,1,.36,1), padding 300ms ease, border-radius 300ms ease, border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, opacity 420ms ease, transform 300ms cubic-bezier(.22,1,.36,1);
}

.map-node.has-entered {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: none;
}

.map-node-branch {
  --node-width: 172px;
  min-height: 62px;
  border-color: #777772;
  border-width: 2px;
}

.map-node-root {
  --node-width: 226px;
  min-height: 76px;
  color: #fff;
  background: #1b1b1a;
  border-color: #1b1b1a;
  border-width: 2px;
  box-shadow: 0 15px 38px rgba(24,24,24,.18);
}

.quiz-score-badge {
  position: absolute;
  top: -12px;
  left: 12px;
  z-index: 5;
  min-width: 38px;
  padding: 5px 8px;
  color: #fff;
  background: #242422;
  border: 2px solid #f8f8f6;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(24,24,24,.14);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}

.map-node-root .quiz-score-badge {
  color: #242422;
  background: #fff;
  border-color: #242422;
}

.node-copy {
  display: block;
  width: 100%;
  text-align: center;
}

.node-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 590;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.map-node-root .node-copy strong {
  font-size: 17px;
}

.node-copy small {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: #777772;
  font-size: 11px;
  font-weight: 430;
  line-height: 1.45;
  opacity: 0;
  transition: max-height 280ms ease, margin 280ms ease, opacity 180ms ease;
}

.map-node-root .node-copy small {
  color: #c7c7c2;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-selected {
  z-index: 8;
  width: 236px;
  min-height: 104px;
  padding: 17px 20px;
  border-radius: 22px;
  border-color: #2e2e2b;
  box-shadow: 0 19px 48px rgba(24,24,24,.14);
  outline: none;
  transform: translate(-50%, -50%) scale(1.05);
}

.map-node-root:hover,
.map-node-root:focus-visible,
.map-node-root.is-selected {
  width: 270px;
  border-color: #000;
}

.map-node:hover .node-copy small,
.map-node:focus-visible .node-copy small,
.map-node.is-selected .node-copy small {
  max-height: 62px;
  margin-top: 8px;
  opacity: 1;
}

.mindmap-view.is-peeking-summaries .map-node:not(.is-collapsed-hidden) {
  z-index: 7;
  width: 218px;
  min-height: 94px;
  padding: 16px 19px;
  border-radius: 20px;
  box-shadow: 0 15px 38px rgba(24,24,24,.11);
  opacity: 1 !important;
  filter: none;
}

.mindmap-view.is-peeking-summaries .map-node-root:not(.is-collapsed-hidden) {
  width: 258px;
}

.mindmap-view.is-peeking-summaries .map-node:not(.is-collapsed-hidden) .node-copy small {
  max-height: 62px;
  margin-top: 7px;
  opacity: 1;
}

.map-node.is-muted {
  opacity: .13 !important;
  filter: grayscale(1);
}

.map-node.is-collapsed-hidden,
.mindmap-edges path.is-collapsed-hidden,
.grow-branch-control.is-collapsed-hidden {
  display: none !important;
}

.map-node.is-collapsing {
  pointer-events: none;
  animation: none !important;
  opacity: 0 !important;
  transform: translate(calc(-50% + var(--fold-x)), calc(-50% + var(--fold-y))) scale(.22) !important;
  transition: opacity 300ms ease, transform 360ms cubic-bezier(.4,0,.2,1) !important;
}

.map-node.is-expanding {
  animation: branch-unfold 560ms cubic-bezier(.22,1,.36,1) both !important;
}

.mindmap-edges path.is-collapsing {
  opacity: 0 !important;
  transition: opacity 240ms ease !important;
}

.mindmap-edges path.is-expanding {
  animation: edge-unfold 520ms ease both !important;
}

.map-node.has-children:not(.is-collapsed):hover::after,
.map-node.has-children:not(.is-collapsed):focus-visible::after {
  content: "Right-click to collapse";
  position: absolute;
  bottom: -27px;
  left: 50%;
  width: max-content;
  padding: 4px 7px;
  color: #777772;
  background: rgba(248,248,246,.94);
  border: 1px solid #deded9;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .01em;
  opacity: 0;
  transform: translate(-50%, -3px);
  animation: context-hint-in 220ms 520ms ease forwards;
}

.map-node.is-collapsed:hover::after,
.map-node.is-collapsed:focus-visible::after {
  content: "Right-click to expand";
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: max-content;
  padding: 4px 7px;
  color: #777772;
  background: rgba(248,248,246,.94);
  border: 1px solid #deded9;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .01em;
  opacity: 0;
  transform: translate(-50%, -3px);
  animation: context-hint-in 220ms 380ms ease forwards;
}

.collapsed-count {
  position: absolute;
  right: 10px;
  bottom: -14px;
  z-index: 4;
  padding: 5px 9px;
  color: #fff;
  background: #242422;
  border: 2px solid #f8f8f6;
  border-radius: 999px;
  box-shadow: 0 5px 13px rgba(24,24,24,.16);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  animation: collapsed-badge-in 380ms cubic-bezier(.22,1,.36,1) both;
}

.map-node.is-collapsed:hover .collapsed-count,
.map-node.is-collapsed:focus-visible .collapsed-count {
  background: #000;
  transform: translateY(-2px);
}

.map-node.is-generating {
  border-color: #242422;
  animation: generating-node 900ms ease-in-out infinite;
}

.grow-branch-control {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 140px;
  min-height: 48px;
  padding: 10px 14px;
  color: #393936;
  background: rgba(255,255,255,.72);
  border: 1.5px dashed #777772;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.88);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, opacity 280ms ease, transform 280ms cubic-bezier(.22,1,.36,1), box-shadow 220ms ease;
}

.grow-branch-control.is-visible {
  pointer-events: auto;
  opacity: .24;
  transform: translate(-50%, -50%) scale(1);
}

.grow-branch-control:hover,
.grow-branch-control:focus-visible {
  color: #242422;
  background: rgba(255,255,255,.98);
  border-color: #555550;
  border-style: solid;
  box-shadow: 0 11px 28px rgba(24,24,24,.13);
  opacity: 1;
  outline: none;
  transform: translate(-50%, -50%) scale(1.04);
}

.grow-branch-control span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

.grow-branch-control .grow-branch-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.grow-branch-control .grow-branch-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.grow-branch-control.is-new.is-visible {
  animation: grow-control-in 540ms 500ms cubic-bezier(.22,1,.36,1) both;
}

.grow-branch-control.is-generating {
  pointer-events: none;
  color: #fff;
  background: #222220;
  opacity: 1;
  animation: generating-control 780ms ease-in-out infinite;
}

.map-controls {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 25;
  display: flex;
  align-items: center;
  padding: 5px;
  background: rgba(255,255,255,.9);
  border: 1px solid #deded9;
  border-radius: 15px;
  box-shadow: 0 10px 32px rgba(24,24,24,.08);
  backdrop-filter: blur(12px);
}

.map-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  padding: 0;
  color: #555550;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.map-controls button:hover,
.map-controls button:focus-visible {
  color: #171716;
  background: #efefec;
  outline: none;
}

.map-controls .fit-map-button {
  border-right: 1px solid #e2e2dd;
  border-left: 1px solid #e2e2dd;
  border-radius: 0;
}

.fit-map-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.map-help {
  position: fixed;
  right: 24px;
  bottom: 25px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: #8c8c87;
  background: rgba(248,248,246,.76);
  border-radius: 999px;
  font-size: 10px;
  transition: right 460ms cubic-bezier(.22,1,.36,1), opacity 300ms ease;
}

.notes-panel {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  width: min(38vw, 560px);
  min-width: 430px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(255,255,255,.975);
  border: 1px solid #dcdcd7;
  border-radius: 24px;
  box-shadow: -18px 0 65px rgba(24,24,24,.09), 0 8px 24px rgba(24,24,24,.07);
  opacity: 0;
  transform: translateX(calc(100% + 30px));
  transition: transform 300ms cubic-bezier(.22,1,.36,1), opacity 190ms ease;
}

.notes-panel.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

.notes-panel.is-reminding {
  animation: notes-reminder 480ms cubic-bezier(.22,1,.36,1);
}

.notes-panel-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.notes-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: #cecec8 transparent;
}

.notes-header {
  flex: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px 18px;
  background: #fff;
  border-bottom: 1px solid #eeeeeb;
  border-radius: 23px 23px 0 0;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, padding-bottom 220ms cubic-bezier(.22,1,.36,1);
}

.notes-panel.is-asking .notes-header {
  border-bottom-color: transparent;
  padding-bottom: 8px;
}

.notes-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.notes-breadcrumb {
  max-width: 330px;
  margin-top: 7px;
  overflow: hidden;
  color: #777772;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #666661;
  background: #f3f3f0;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.notes-close:hover,
.notes-close:focus-visible {
  color: #fff;
  background: #1b1b1a;
  outline: none;
}

.notes-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.notes-body {
  padding: 28px 34px 44px;
}

.notes-panel.is-asking .notes-body {
  padding-top: 18px;
}

.notes-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notes-meta-actions,
.quiz-heading-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.quiz-heading-meta {
  flex-wrap: wrap;
}

.refinement-badge {
  display: inline-flex;
  align-items: center;
  color: #92928c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.refinement-badge[hidden] {
  display: none;
}

.refinement-badge button {
  position: relative;
  margin-left: 8px;
  padding: 3px 0 3px 12px;
  color: #5b5b56;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0;
  transition: color 150ms ease;
}

.refinement-badge button::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #b2b2ac;
  font-weight: 700;
}

.refinement-badge button:hover,
.refinement-badge button:focus-visible {
  color: #1f1f1d;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notes-index {
  color: #b0b0aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.notes-score {
  padding: 6px 10px;
  color: #454541;
  background: #f1f1ed;
  border: 1px solid #dfdfda;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.notes-score[hidden] {
  display: none;
}

.notes-body h2 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.4vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.notes-summary {
  margin: 0;
  color: #686863;
  font-size: 15px;
  line-height: 1.68;
}

.learning-outcome-card {
  margin-top: 21px;
  padding: 15px 17px;
  background: #f7f7f4;
  border-left: 3px solid #292927;
  border-radius: 4px 14px 14px 4px;
}

.learning-outcome-card span,
.notes-prerequisites > span {
  display: block;
  margin-bottom: 7px;
  color: #969690;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.learning-outcome-card p {
  margin: 0;
  color: #3f3f3b;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.55;
}

.notes-prerequisites { margin-top: 20px; }
.notes-prerequisites[hidden] { display: none; }

.notes-prerequisites ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-prerequisites li {
  padding: 7px 10px;
  color: #62625d;
  background: #f3f3ef;
  border: 1px solid #e3e3de;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
}

.generate-branches-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-top: 24px;
  padding: 14px 15px;
  color: #292927;
  background: #f4f4f1;
  border: 1px solid #ddddda;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 200ms cubic-bezier(.22,1,.36,1), box-shadow 200ms ease;
}

.generate-branches-button[hidden] {
  display: none;
}

.generate-branches-button:hover,
.generate-branches-button:focus-visible,
.generate-branches-button.is-generating {
  color: #fff;
  background: #222220;
  border-color: #222220;
  box-shadow: 0 12px 30px rgba(24,24,24,.13);
  outline: none;
  transform: translateY(-2px);
}

.generate-branches-button.is-generating {
  pointer-events: none;
}

.generate-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #222220;
  border-radius: 12px;
  transition: color 180ms ease, background 180ms ease;
}

.generate-branches-button:hover .generate-icon,
.generate-branches-button:focus-visible .generate-icon,
.generate-branches-button.is-generating .generate-icon {
  color: #222220;
  background: #fff;
}

.generate-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.55;
}

.generate-branches-button.is-generating .generate-icon svg {
  animation: generate-spin 1.6s linear infinite;
}

.generate-copy {
  display: block;
  min-width: 0;
}

.generate-copy strong,
.generate-copy small {
  display: block;
}

.generate-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.generate-copy small {
  margin-top: 3px;
  color: #8b8b86;
  font-size: 11px;
}

.generate-branches-button:hover .generate-copy small,
.generate-branches-button:focus-visible .generate-copy small,
.generate-branches-button.is-generating .generate-copy small {
  color: #b9b9b4;
}

.generate-dots {
  display: none;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.generate-branches-button.is-generating .generate-dots {
  display: flex;
}

.branch-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: 32px;
  padding: 0 8px;
  color: #555550;
  background: #f4f4f1;
  border: 1px solid #dfdfda;
  border-radius: 11px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 200ms ease;
}

.branch-toggle-button[hidden] {
  display: none;
}

.branch-toggle-button:hover,
.branch-toggle-button:focus-visible {
  color: #242422;
  background: #ededE9;
  border-color: #cfcfca;
  box-shadow: 0 5px 14px rgba(25,25,23,.06);
  outline: none;
}

.branch-toggle-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #555550;
}

.branch-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.branch-symbol-tree {
  opacity: .72;
}

.branch-symbol-vertical {
  opacity: 0;
  transform: scaleY(.25);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22,1,.36,1);
}

.branch-toggle-button.is-expand .branch-symbol-vertical {
  opacity: 1;
  transform: scaleY(1);
}

.branch-toggle-label {
  display: block;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 320ms cubic-bezier(.22,1,.36,1), margin-left 260ms ease, opacity 180ms ease;
}

.branch-toggle-button:hover .branch-toggle-label,
.branch-toggle-button:focus-visible .branch-toggle-label {
  max-width: 104px;
  margin-left: 7px;
  opacity: 1;
}

.branch-toggle-button strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}

.topic-actions {
  position: relative;
  display: grid;
  place-items: center;
  align-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.topic-actions-list {
  position: absolute;
  top: 0;
  right: 40px;
  display: flex;
  align-items: center;
  height: 40px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 180ms ease, visibility 0s linear 260ms, transform 280ms cubic-bezier(.22,1,.36,1);
}

.topic-actions.is-open .topic-actions-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.topic-actions:hover .topic-actions-list,
.topic-actions:focus-within .topic-actions-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.topic-actions-list button,
.topic-actions-trigger {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
  color: #8b8b85;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.topic-actions-list button:hover,
.topic-actions-list button:focus-visible,
.topic-actions-trigger:hover,
.topic-actions-trigger:focus-visible {
  color: #242422;
  background: #f1f1ee;
  outline: none;
}

.topic-actions-list .topic-delete-button:hover,
.topic-actions-list .topic-delete-button:focus-visible { color: #91483f; }

.topic-actions-list button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.topic-actions-list .branch-toggle-button {
  position: relative;
  display: grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  overflow: visible;
}

.branch-toggle-glyph { display: grid; place-items: center; width: 18px; height: 18px; }
.topic-actions-list .branch-toggle-button svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.topic-actions-list .branch-toggle-button .collapse-icon,
.topic-actions-list .branch-toggle-button .expand-icon { transform-origin: center; transition: opacity 150ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }
.topic-actions-list .branch-toggle-button .expand-icon { opacity: 0; transform: scale(.82); }
.topic-actions-list .branch-toggle-button.is-expand .collapse-icon { opacity: 0; transform: scale(.82); }
.topic-actions-list .branch-toggle-button.is-expand .expand-icon { opacity: 1; transform: scale(1); }

.topic-actions-trigger {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  align-content: center;
  justify-content: center;
  gap: 3px;
  width: 40px;
  height: 40px;
  margin: 0;
  background: transparent;
  border-radius: 12px;
}
.topic-actions-trigger:hover,
.topic-actions-trigger:focus-visible { background: transparent; }
.topic-actions-trigger span { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.manual-branch-composer[hidden] { display: none; }
.notes-body.is-manual-mode > :not(.notes-meta-row):not(.manual-branch-composer) { display: none !important; }
.notes-body.is-manual-mode .notes-meta-actions > :not(.topic-actions) { display: none !important; }
.notes-body.is-manual-mode .topic-actions { display: none; }

.manual-branch-composer { padding-top: 18px; animation: manual-composer-in 300ms cubic-bezier(.22,1,.36,1) both; }
.manual-branch-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  margin: 0 4px 24px;
}
.manual-branch-icon { display: grid; grid-column: 1; grid-row: 1; place-items: center; width: 32px; height: 32px; color: #343431; }
.manual-branch-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.manual-branch-heading h2 { grid-column: 2; grid-row: 1; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 400; line-height: 1.08; }
.manual-branch-heading p { grid-column: 1 / -1; grid-row: 2; margin: 0; color: #85857f; font-size: 14px; line-height: 1.35; }
.manual-title-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 14px 18px;
  border: 1px solid #d9d9d4;
  border-radius: 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.manual-title-field:focus-within { border-color: #a6a69f; box-shadow: 0 0 0 4px rgba(35,35,33,.055); }
.manual-title-copy { min-width: 0; }
.manual-title-copy label { display: block; margin-bottom: 5px; color: #a1a19b; font-size: 12px; }
.manual-title-copy input {
  width: 100%;
  padding: 4px 0;
  color: #242422;
  background: transparent;
  border: 0;
  outline: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}
.manual-title-copy input.is-suggestion { color: #a5a59f; }
.manual-title-field > button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: #242422;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.manual-title-field > button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.manual-branch-hint { display: block; margin: 11px 5px 0; color: #a0a09a; font-size: 12px; line-height: 1.4; }
.manual-branch-helper { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; margin: 26px 5px 0; color: #777772; font-size: 14px; line-height: 1.55; }
.manual-branch-helper svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #8f8f89; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }

.branch-composer {
  margin-top: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddddda;
  border-radius: 16px;
  transition: border-color 200ms ease, box-shadow 240ms ease;
}
.branch-composer:hover,
.branch-composer:focus-within,
.branch-composer.is-hover-intent,
.branch-composer.is-open,
.branch-composer.is-generating { border-color: #cecec8; box-shadow: 0 10px 28px rgba(24,24,24,.065); }
.branch-composer-title { display: flex; align-items: center; gap: 9px; width: 100%; padding: 13px 14px; color: #343431; background: transparent; border: 0; cursor: pointer; text-align: left; }
.branch-composer-title svg { width: 17px; height: 17px; fill: none; stroke: #777772; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.branch-composer-title strong { font-size: 14px; font-weight: 620; }
.branch-composer-title .branch-composer-develop-icon { display: none; }
.branch-composer.is-develop .branch-composer-grow-icon { display: none; }
.branch-composer.is-develop .branch-composer-develop-icon { display: block; }
.branch-composer-title .branch-composer-chevron { width: 15px; height: 15px; margin-left: auto; transition: transform 260ms cubic-bezier(.22,1,.36,1); }
.branch-composer.is-hover-intent .branch-composer-chevron,
.branch-composer.is-open .branch-composer-chevron,
.branch-composer.is-generating .branch-composer-chevron { transform: rotate(180deg); }
.branch-composer form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: end;
  gap: 8px;
  max-height: 0;
  margin: 0 10px;
  padding-top: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 320ms cubic-bezier(.22,1,.36,1), padding-top 280ms ease, border-color 180ms ease, opacity 170ms ease, transform 300ms cubic-bezier(.22,1,.36,1);
}
.branch-composer.is-hover-intent form,
.branch-composer.is-open form,
.branch-composer.is-generating form {
  max-height: 118px;
  padding-top: 8px;
  border-top-color: #e4e4df;
  opacity: 1;
  transform: translateY(0);
}
.branch-composer textarea { width: 100%; min-height: 58px; padding: 9px 5px; resize: none; color: #292927; background: transparent; border: 0; outline: 0; font: inherit; font-size: 16px; line-height: 1.45; }
.branch-composer textarea::placeholder { color: #aaa9a3; }
.branch-composer .generate-branches-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  margin: 0 0 7px;
  padding: 0;
  color: #fff;
  background: #242422;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  transform: none;
}
.branch-composer .generate-branches-button:hover,
.branch-composer .generate-branches-button:focus-visible,
.branch-composer .generate-branches-button.is-generating { color: #fff; background: #111; transform: none; box-shadow: none; }
.branch-composer .generate-branches-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.branch-composer .generate-branches-button.is-generating > svg { display: none; }
.branch-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-height: 0; padding: 0 15px; overflow: hidden; color: #a0a09a; font-size: 11px; opacity: 0; transition: max-height 280ms cubic-bezier(.22,1,.36,1), padding 280ms ease, opacity 170ms ease; }
.branch-composer.is-hover-intent .branch-composer-footer,
.branch-composer.is-open .branch-composer-footer,
.branch-composer.is-generating .branch-composer-footer { max-height: 46px; padding: 4px 15px 12px; opacity: 1; }
.branch-composer-footer button { padding: 0; color: #666661; background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 600; }

.branch-context-menu {
  position: fixed;
  z-index: 120;
  width: max-content;
  min-width: 154px;
  max-width: 238px;
  padding: 4px;
  background: #fff;
  border: 1px solid #dcdcd7;
  border-radius: 11px;
  box-shadow: 0 12px 32px rgba(24,24,24,.14);
}
.branch-context-menu[hidden] { display: none; }
.branch-context-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; color: #292927; background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.branch-context-menu button:hover,
.branch-context-menu button:focus-visible { background: #f2f2ef; outline: none; }
.branch-context-menu svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.branch-context-menu span { display: grid; gap: 1px; }
.branch-context-menu strong { font-size: 12px; font-weight: 650; line-height: 1.2; }
.branch-context-menu small { color: #85857f; font-size: 10.5px; line-height: 1.25; white-space: nowrap; }

.map-node.is-ghost-branch { color: #aaa9a3; background: rgba(255,255,255,.63); border-style: dashed; box-shadow: none; pointer-events: none; }
.map-node.is-ghost-branch .node-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 400; }
.map-node.is-ghost-branch.has-title { color: #292927; }
.mindmap-edges path.is-ghost-branch { stroke-dasharray: 7 8; opacity: .32; }
.mindmap-edges path.topic-edge { pointer-events: stroke; cursor: pointer; }
.mindmap-edges path.topic-edge:hover,
.mindmap-edges path.topic-edge.is-context-hover { stroke: #343431; stroke-width: 3.4; opacity: .82; }
.mindmap-edges path.topic-edge-hit {
  stroke: transparent !important;
  stroke-width: 30px !important;
  opacity: 1 !important;
  pointer-events: stroke;
  cursor: pointer;
}

.branch-composer .generate-dots {
  width: 100%;
  height: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.generate-dots i {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: generate-dot 850ms ease-in-out infinite;
}

.generate-dots i:nth-child(2) { animation-delay: 120ms; }
.generate-dots i:nth-child(3) { animation-delay: 240ms; }

.notes-section {
  margin-top: 33px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e4;
}

.notes-section h3 {
  margin: 0 0 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.notes-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-section li {
  position: relative;
  padding-left: 22px;
  color: #4f4f4b;
  font-size: 14px;
  line-height: 1.5;
}

.notes-section li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: #242422;
  border-radius: 50%;
}

.formula-card,
.study-prompt-card {
  margin-top: 28px;
  padding: 20px 21px;
  background: #f5f5f2;
  border: 1px solid #e4e4df;
  border-radius: 17px;
}

.formula-card span,
.study-prompt-card span {
  display: block;
  margin-bottom: 12px;
  color: #999993;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.formula-card div {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.3;
}

.study-prompt-card {
  background: #222220;
  border-color: #222220;
}

.study-prompt-card span {
  color: #a9a9a4;
}

.study-prompt-card p {
  margin: 0;
  color: #f7f7f4;
  font-size: 14px;
  line-height: 1.6;
}

.ai-addition-card {
  margin-top: 28px;
  padding: 21px;
  background: #fff;
  border: 1px solid #d7d7d1;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(24,24,24,.05);
}

.ai-addition-card[hidden] {
  display: none;
}

.ai-addition-card > span {
  color: #92928c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ai-addition-card h3 {
  margin: 9px 0 8px;
  color: #242422;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.ai-addition-card p,
.ai-addition-card li {
  color: #5f5f5a;
  font-size: 13px;
  line-height: 1.58;
}

.ai-addition-card p {
  margin: 0;
}

.ai-addition-card ol {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding-left: 20px;
}

.ask-header-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 36px;
  height: 36px;
  padding: 0 8px;
  overflow: hidden;
  color: #4b4b47;
  background: #f3f3f0;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  transition: width 380ms cubic-bezier(.22,1,.36,1), gap 340ms cubic-bezier(.22,1,.36,1), color 260ms ease, background 260ms ease;
}

.ask-header-trigger:hover,
.ask-header-trigger:focus-visible,
.ask-header-trigger[aria-expanded="true"] {
  width: 69px;
  gap: 7px;
  color: #fff;
  background: #222220;
  outline: none;
}

.ask-header-trigger img {
  flex: 0 0 auto;
  width: 20px;
  height: 17px;
  object-fit: contain;
  transition: filter 260ms ease;
}

.ask-header-trigger:hover img,
.ask-header-trigger:focus-visible img,
.ask-header-trigger[aria-expanded="true"] img {
  filter: invert(1);
}

.ask-header-trigger span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 380ms cubic-bezier(.22,1,.36,1), opacity 240ms ease;
}

.ask-header-trigger:hover span,
.ask-header-trigger:focus-visible span,
.ask-header-trigger[aria-expanded="true"] span {
  max-width: 30px;
  opacity: 1;
}

.ask-inline {
  display: grid;
  flex: 0 0 auto;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transform: translateY(-6px);
  transition: grid-template-rows 280ms cubic-bezier(.22,1,.36,1), opacity 170ms ease, transform 250ms cubic-bezier(.22,1,.36,1), border-color 180ms ease;
}

.ask-inline.is-pinned {
  grid-template-rows: 1fr;
  opacity: 1;
  border-bottom-color: #eeeeeb;
  pointer-events: auto;
  transform: translateY(0);
}

.ask-inline-panel {
  min-height: 0;
  padding: 4px 27px 18px;
  overflow: hidden;
  transition: padding-bottom 230ms cubic-bezier(.22,1,.36,1);
}

.ask-inline-panel:has(#askStooduFeedback:not(:empty)),
.ask-inline-panel:has(.ask-stoodu-composer.is-processing) {
  padding-bottom: 13px;
}

.ask-stoodu-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
  padding: 6px 6px 6px 13px;
  background: #fff;
  border: 1px solid #d9d9d4;
  border-radius: 15px;
  box-shadow: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 170ms ease 35ms, transform 250ms cubic-bezier(.22,1,.36,1) 25ms;
}

.ask-inline.is-pinned .ask-stoodu-composer {
  opacity: 1;
  transform: translateY(0);
}

.ask-stoodu-composer:focus-within {
  border-color: #a8a8a2;
  box-shadow: 0 0 0 3px rgba(32,32,30,.045);
}

.ask-stoodu-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  max-height: 104px;
  padding: 8px 0 5px;
  overflow: hidden auto;
  color: #252523;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.ask-stoodu-composer textarea::placeholder {
  color: #9d9d97;
}

.ask-stoodu-composer button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: #222220;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.ask-stoodu-composer button:hover,
.ask-stoodu-composer button:focus-visible {
  background: #000;
  outline: none;
  transform: translateY(-1px);
}

.ask-stoodu-composer button:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.ask-stoodu-composer button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ask-stoodu-footer {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 230ms cubic-bezier(.22,1,.36,1), margin-top 230ms cubic-bezier(.22,1,.36,1), opacity 150ms ease, visibility 0s linear 230ms;
}

.ask-stoodu-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  color: #9b9b95;
  font-size: 9px;
  line-height: 1.35;
}

.ask-stoodu-footer:has(#askStooduFeedback:not(:empty)),
.ask-stoodu-composer.is-processing ~ .ask-stoodu-footer {
  grid-template-rows: 1fr;
  margin-top: 13px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.ask-stoodu-dots {
  display: none;
  align-items: center;
  gap: 3px;
}

.ask-stoodu-composer.is-processing ~ .ask-stoodu-footer .ask-stoodu-dots {
  display: flex;
}

.ask-stoodu-dots i {
  width: 4px;
  height: 4px;
  background: #555550;
  border-radius: 50%;
  animation: ask-stoodu-dot 800ms ease-in-out infinite;
}

.ask-stoodu-dots i:nth-child(2) { animation-delay: 110ms; }
.ask-stoodu-dots i:nth-child(3) { animation-delay: 220ms; }

.is-ai-updated {
  animation: ai-section-update 900ms cubic-bezier(.22,1,.36,1);
}

.lesson-continuation { margin-top: 29px; }

.lesson-continuation-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 22px;
  color: #989892;
  font-size: 11px;
  font-weight: 600;
}

.lesson-continuation-status[hidden] { display: none; }

.continuation-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.continuation-dots i {
  width: 4px;
  height: 4px;
  background: #9a9a94;
  border-radius: 50%;
  animation: continuation-dot 950ms ease-in-out infinite;
}

.continuation-dots i:nth-child(2) { animation-delay: 130ms; }
.continuation-dots i:nth-child(3) { animation-delay: 260ms; }

.detailed-notes-content {
  display: grid;
  gap: 25px;
  overflow: hidden;
}

.lesson-section {
  display: grid;
  gap: 13px;
}

.lesson-section .lesson-kicker {
  margin-bottom: -5px;
  color: #969690;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lesson-section h3 {
  margin: 0 0 2px;
  color: #252523;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.lesson-section p,
.detailed-card p,
.detailed-card li {
  margin: 0;
  color: #555550;
  font-size: 14px;
  line-height: 1.7;
}

.detailed-card {
  padding: 20px 21px;
  background: #f7f7f4;
  border: 1px solid #e2e2dd;
  border-radius: 18px;
}

.detailed-card.is-dark {
  color: #f8f8f4;
  background: #242422;
  border-color: #242422;
}

.detailed-card > span,
.detailed-list-section > span {
  display: block;
  margin-bottom: 9px;
  color: #989892;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detailed-card h4 {
  margin: 0 0 10px;
  color: #252523;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.detailed-card ol,
.detailed-list-section ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.detailed-card .detailed-takeaway {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #deded8;
  font-weight: 650;
}

.detailed-card.is-dark h4,
.detailed-card.is-dark p {
  color: #f7f7f3;
}

.detailed-card.is-dark > span {
  color: #aaa9a3;
}

.detailed-list-section ul {
  margin-top: 0;
}

.detailed-list-section li {
  color: #5b5b56;
  font-size: 13px;
  line-height: 1.6;
}

.detailed-notes-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 17px;
  color: #666661;
  background: #f7f7f4;
  border: 1px solid #e2e2dd;
  border-radius: 15px;
  font-size: 13px;
}

.detailed-notes-error button {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #fff;
  background: #242422;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.lesson-continuation.is-ready .detailed-notes-content {
  animation: detailed-notes-reveal 440ms cubic-bezier(.22,1,.36,1);
}

.lesson-formula,
.lesson-practice { margin-top: 0; }

.quiz-section {
  margin-top: 30px;
  padding: 23px;
  background: #f7f7f4;
  border: 1px solid #deded9;
  border-radius: 20px;
}

@keyframes continuation-dot {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes detailed-notes-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.quiz-kicker {
  display: block;
  margin-bottom: 7px;
  color: #969690;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quiz-section h3 {
  margin: 0;
  color: #252523;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.quiz-length {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #686863;
  background: #fff;
  border: 1px solid #dfdfda;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.quiz-content {
  margin-top: 20px;
}

.quiz-intro {
  margin: 0;
  color: #696964;
  font-size: 14px;
  line-height: 1.6;
}

.quiz-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.quiz-stat {
  padding: 12px 11px;
  background: #fff;
  border: 1px solid #e2e2dd;
  border-radius: 13px;
}

.quiz-stat span,
.quiz-stat strong {
  display: block;
}

.quiz-stat span {
  color: #9a9a94;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.quiz-stat strong {
  margin-top: 5px;
  color: #292927;
  font-size: 18px;
  font-weight: 650;
}

.quiz-details {
  display: grid;
  gap: 7px;
  margin-top: 17px;
  color: #777772;
  font-size: 12px;
}

.quiz-details span {
  position: relative;
  padding-left: 17px;
}

.quiz-details span::before {
  content: "";
  position: absolute;
  top: .45em;
  left: 2px;
  width: 6px;
  height: 6px;
  background: #8b8b85;
  border-radius: 50%;
}

.quiz-primary-button {
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  color: #fff;
  background: #222220;
  border: 1px solid #222220;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.quiz-primary-button:hover,
.quiz-primary-button:focus-visible {
  background: #000;
  box-shadow: 0 10px 24px rgba(24,24,24,.14);
  outline: none;
  transform: translateY(-1px);
}

.quiz-building {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 14px;
  color: #666661;
  background: #fff;
  border: 1px solid #e1e1dc;
  border-radius: 14px;
}

.quiz-building-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #242422;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  animation: quiz-pulse 1.2s ease-in-out infinite;
}

.quiz-building p {
  margin: 0;
  font-size: 13px;
}

.quiz-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #85857f;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.quiz-progress-copy span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-progress-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  background: #e4e4df;
  border-radius: 999px;
}

.quiz-adaptation-notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  color: #6d6d68;
  background: #f3f3f0;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.quiz-progress-fill {
  display: block;
  height: 100%;
  background: #262624;
  border-radius: inherit;
  transition: width 260ms cubic-bezier(.22,1,.36,1);
}

.quiz-question {
  margin: 22px 0 17px;
  color: #252523;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  color: #4d4d49;
  background: #fff;
  border: 1px solid #deded9;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quiz-option:hover {
  color: #242422;
  border-color: #a9a9a3;
  transform: translateY(-1px);
}

.quiz-option:has(input:checked) {
  color: #171716;
  background: #eeeeea;
  border-color: #585853;
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #73736e;
  background: #f1f1ed;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.quiz-option:has(input:checked) .quiz-option-marker {
  color: #fff;
  background: #242422;
}

.quiz-option.is-correct-answer {
  color: #1f1f1d;
  background: #e8e8e3;
  border-color: #4e4e49;
}

.quiz-option.is-correct-answer .quiz-option-marker {
  color: #fff;
  background: #242422;
}

.quiz-option.is-wrong-answer {
  color: #6f6f69;
  background: #f1f1ee;
  border-style: dashed;
}

.quiz-option:has(input:disabled) {
  cursor: default;
  transform: none;
}

.quiz-numeric input {
  width: 100%;
  padding: 14px 15px;
  color: #252523;
  background: #fff;
  border: 1px solid #cfcfca;
  border-radius: 13px;
  outline: none;
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quiz-numeric input:focus {
  border-color: #444440;
  box-shadow: 0 0 0 3px rgba(40,40,38,.08);
}

.quiz-numeric input.is-correct-answer {
  background: #ebebe7;
  border-color: #4e4e49;
}

.quiz-numeric input.is-wrong-answer {
  background: #f3f3f0;
  border-style: dashed;
}

.quiz-tolerance {
  margin: 8px 2px 0;
  color: #868680;
  font-size: 11px;
  line-height: 1.45;
}

.quiz-input-error {
  margin: 10px 2px 0;
  color: #4d4d49;
  font-size: 12px;
  font-weight: 600;
}

.quiz-feedback {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dcdcd7;
  border-left: 4px solid #333330;
  border-radius: 13px;
}

.quiz-feedback.is-incorrect {
  border-left-color: #92928c;
}

.quiz-feedback strong {
  display: block;
  color: #292927;
  font-size: 13px;
}

.quiz-feedback p {
  margin: 6px 0 0;
  color: #686863;
  font-size: 12px;
  line-height: 1.55;
}

.quiz-feedback small {
  display: block;
  margin-top: 8px;
  color: #3f3f3b;
  font-size: 11px;
  font-weight: 650;
}

.quiz-result {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0db;
  border-radius: 16px;
}

.quiz-score-ring {
  --quiz-score: 0deg;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 82px;
  height: 82px;
  background: conic-gradient(#242422 var(--quiz-score), #e2e2dd 0);
  border-radius: 50%;
}

.quiz-score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: #fff;
  border-radius: 50%;
}

.quiz-score-ring strong,
.quiz-score-ring span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.quiz-score-ring strong {
  align-self: center;
  margin-top: -8px;
  color: #242422;
  font-size: 20px;
}

.quiz-score-ring span {
  align-self: center;
  margin-top: 25px;
  color: #999993;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.quiz-result-copy h4 {
  margin: 0;
  color: #292927;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.quiz-result-copy p {
  margin: 7px 0 0;
  color: #74746e;
  font-size: 12px;
  line-height: 1.55;
}

@keyframes quiz-pulse {
  0%, 100% { opacity: .72; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ask-stoodu-dot {
  0%, 100% { opacity: .28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes ai-section-update {
  0% { opacity: .55; transform: translateY(7px); }
  45% { box-shadow: 0 0 0 5px rgba(32,32,30,.055); }
  100% { opacity: 1; transform: translateY(0); box-shadow: none; }
}

@keyframes notes-reminder {
  0%, 100% {
    border-color: #dcdcd7;
    box-shadow: -18px 0 65px rgba(24,24,24,.09), 0 8px 24px rgba(24,24,24,.07);
  }
  50% {
    border-color: #8b8b85;
    box-shadow: -22px 0 72px rgba(24,24,24,.13), 0 10px 30px rgba(24,24,24,.1);
  }
}

@keyframes map-node-enter {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes draw-generated-edge {
  from { opacity: 0; stroke-dashoffset: 70; }
  to { opacity: .72; stroke-dashoffset: 0; }
}

@keyframes grow-control-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  to { opacity: .24; transform: translate(-50%, -50%) scale(1); }
}

@keyframes generating-node {
  0%, 100% { box-shadow: 0 8px 24px rgba(24,24,24,.07), 0 0 0 0 rgba(24,24,24,.12); }
  50% { box-shadow: 0 12px 32px rgba(24,24,24,.12), 0 0 0 9px rgba(24,24,24,0); }
}

@keyframes generating-control {
  0%, 100% { transform: translate(-50%, -50%) scale(.96); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes generate-spin {
  to { transform: rotate(360deg); }
}

@keyframes generate-dot {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes manual-composer-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes branch-unfold {
  from {
    opacity: 0;
    transform: translate(calc(-50% + var(--fold-x)), calc(-50% + var(--fold-y))) scale(.22);
  }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes edge-unfold {
  from { opacity: 0; stroke-dasharray: 4 10; }
  to { opacity: .72; stroke-dasharray: 0; }
}

@keyframes collapsed-badge-in {
  from { opacity: 0; transform: translateY(5px) scale(.75); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes context-hint-in {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 820px) {
  .projects-view {
    padding-right: 28px;
    padding-left: 28px;
  }

  .projects-content {
    padding-top: 42px;
  }

  .project-card-open {
    padding-right: 220px;
  }

  .prompt-view {
    padding: 36px 28px;
  }

  .brand-lockup {
    width: 160px;
    height: 128px;
    margin-bottom: 20px;
  }

  .prompt-wrap {
    width: min(100%, 552px);
  }

  .profile-anchor {
    bottom: 16px;
    left: 16px;
  }

  .notes-panel {
    width: min(54vw, 500px);
    min-width: 360px;
  }

  .map-progress,
  .map-help {
    display: none;
  }
}

@media (max-width: 560px) {
  .projects-view {
    padding: 0 16px 76px;
  }

  .new-project-button {
    width: 38px;
    min-height: 40px;
    padding: 0;
  }

  .new-project-button span { display: none; }

  .projects-heading {
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .projects-heading h1 { font-size: 34px; }

  .projects-title-lockup { gap: 10px; }
  .projects-brand { width: 36px; height: 36px; }
  .projects-brand img { width: 34px; height: 27px; }

  .projects-toolbar { gap: 8px; }
  .project-search { min-width: 0; max-width: none; }
  .project-sort { flex: 0 0 auto; }

  .project-card-open {
    min-height: 122px;
    padding: 18px 50px 17px 1px;
  }

  .project-card h2 {
    font-size: 21px;
    white-space: normal;
  }

  .project-card p { max-width: 100%; }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-actions-trigger { opacity: .72; pointer-events: auto; }

  .project-actions-menu {
    top: 1px;
    right: 29px;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .project-actions-menu button {
    width: 29px;
    padding: 0;
  }

  .project-actions-menu button[data-action="delete"] { margin-left: 3px; }

  .prompt-view {
    padding: 24px 16px;
  }

  .brand-lockup {
    width: 142px;
    height: 114px;
    margin-bottom: 18px;
  }

  .prompt-wrap {
    margin-top: 0;
  }

  .prompt-card {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    min-height: 70px;
    padding: 12px;
    border-radius: 20px;
  }

  .composer {
    font-size: 1rem;
  }

  .prompt-hint {
    display: none;
  }

  .profile-anchor,
  .toast {
    bottom: 14px;
  }

  .profile-anchor {
    left: 14px;
  }

  .notes-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    min-width: 0;
  }

  .map-title-group h1 {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
