:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-light: #fbf8f1;
  --paper-deep: #ede5d8;
  --ink: #251b17;
  --ink-2: #483a34;
  --muted: #786b63;
  --faint: #9f9187;
  --line: #ded3c4;
  --line-soft: #e9e0d4;
  --red: #c94027;
  --red-deep: #9f2e1d;
  --red-soft: #f8e1d8;
  --moss: #4f5f48;
  --moss-soft: #e6eadf;
  --gold: #ad7a34;
  --gold-soft: #f1e4c8;
  --danger: #a62a23;
  --sidebar: #241b17;
  --sidebar-2: #30241e;
  --sidebar-text: #f7eee3;
  --shadow: 0 24px 70px rgba(61, 41, 28, .12);
  --font: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --ease: cubic-bezier(.22, .72, .24, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .56;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--ink);
  background: #f1c9b7;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 99px;
  background: rgba(63, 48, 38, .22);
  background-clip: content-box;
}

:focus-visible {
  outline: 3px solid rgba(201, 64, 39, .28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.desk {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 0;
}

.desk-sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px 18px 16px;
  overflow: hidden;
  color: var(--sidebar-text);
  background:
    radial-gradient(360px 260px at 28% -5%, rgba(201, 64, 39, .3), transparent 72%),
    linear-gradient(170deg, var(--sidebar-2), var(--sidebar) 42%);
}

.desk-sidebar::before {
  position: absolute;
  right: 18px;
  bottom: 130px;
  width: 90px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  content: "";
  transform: rotate(24deg);
}

.desk-sidebar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(255, 255, 255, .11), transparent);
  content: "";
}

.desk-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
}

.desk-avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: #f0d7c5;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .04);
}

.desk-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.desk-brand b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
}

.desk-brand small {
  margin-top: 3px;
  color: rgba(247, 238, 227, .57);
  font-size: 11px;
  letter-spacing: .12em;
}

.new-task-button {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 25px 0 17px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  color: #fff7ee;
  background: var(--red);
  box-shadow: 0 12px 26px rgba(201, 64, 39, .2);
  font-size: 14px;
  font-weight: 650;
  transition: transform .2s var(--ease), background .2s;
}

.new-task-button:hover {
  background: #d34c31;
  transform: translateY(-1px);
}

.new-task-button svg {
  width: 17px;
  height: 17px;
}

.desk-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.desk-nav button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(247, 238, 227, .72);
  background: transparent;
  text-align: left;
  transition: background .2s, color .2s, border-color .2s;
}

.desk-nav button:hover {
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, .055);
}

.desk-nav button.is-active {
  border-color: rgba(255, 255, 255, .08);
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, .09);
}

.desk-nav-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #d38369;
  background: rgba(201, 64, 39, .15);
}

.desk-nav-icon.memory {
  color: #d9b673;
  background: rgba(173, 122, 52, .14);
}

.desk-nav-icon.growth {
  color: #aebc9e;
  background: rgba(111, 132, 97, .16);
}

.desk-nav-icon svg {
  width: 18px;
  height: 18px;
}

.desk-nav button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.desk-nav b {
  font-size: 13.5px;
  font-weight: 620;
}

.desk-nav small {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(247, 238, 227, .45);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-nav em {
  min-width: 21px;
  padding: 1px 6px;
  border-radius: 99px;
  color: rgba(247, 238, 227, .62);
  background: rgba(255, 255, 255, .07);
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.nav-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dca154;
  box-shadow: 0 0 0 5px rgba(220, 161, 84, .09);
}

.skill-promo {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
}

.skill-promo::after {
  position: absolute;
  right: -20px;
  bottom: -26px;
  color: rgba(255, 255, 255, .035);
  content: "Skill";
  font: 700 76px/1 var(--display);
  letter-spacing: -.08em;
  pointer-events: none;
}

.skill-promo-kicker {
  color: #d8b77e;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.skill-promo h2 {
  max-width: 188px;
  margin: 8px 0 7px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.skill-promo p {
  margin: 0;
  color: rgba(247, 238, 227, .53);
  font-size: 11px;
  line-height: 1.6;
}

.skill-promo a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #f6d7a5;
  font-size: 12px;
  font-weight: 650;
}

.skill-promo a svg {
  width: 15px;
  height: 15px;
  transition: transform .2s var(--ease);
}

.skill-promo a:hover svg {
  transform: translateX(3px);
}

.desk-sidebar-foot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  margin-top: 13px;
}

.back-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  color: rgba(247, 238, 227, .72);
  background: transparent;
  text-align: left;
}

.back-link:hover {
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, .045);
}

.back-link > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.back-link b {
  font-size: 11.5px;
  font-weight: 600;
}

.back-link small {
  color: rgba(247, 238, 227, .38);
  font-size: 9.5px;
}

.back-link > svg {
  width: 14px;
  height: 14px;
  color: rgba(247, 238, 227, .35);
}

.account-glyph {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5f2b20;
  background: #e9c4ac;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.account-glyph.quiet {
  background: rgba(255, 255, 255, .07);
  color: rgba(247, 238, 227, .7);
}

.account-glyph svg {
  width: 15px;
  height: 15px;
}

.desk-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.desk-topbar {
  position: relative;
  z-index: 15;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(14px);
}

.desk-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.desk-location span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.desk-location i {
  color: var(--faint);
  font-style: normal;
}

.desk-location b {
  color: var(--ink);
  font-weight: 600;
}

.desk-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-trigger,
.feedback-trigger,
.craft-trigger {
  display: inline-flex;
  height: 35px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, .5);
  font-size: 11.5px;
  font-weight: 550;
  transition: color .2s, border-color .2s, background .2s;
}

.search-trigger {
  min-width: 190px;
  justify-content: flex-start;
}

.search-trigger span {
  flex: 1;
  text-align: left;
}

.search-trigger kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  background: var(--paper-light);
  font: 9px/1.5 var(--font);
}

.search-trigger:hover,
.feedback-trigger:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper-light);
}

.feedback-trigger {
  color: var(--red-deep);
  border-color: #e4c4b8;
  background: #f9eee8;
}

.craft-trigger {
  border-color: var(--ink);
  color: #fff8ef;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(37, 27, 23, .12);
}

.craft-trigger:hover {
  background: #382821;
}

.search-trigger svg,
.feedback-trigger svg,
.craft-trigger svg {
  width: 15px;
  height: 15px;
}

.mobile-nav-button {
  display: none;
}

.desk-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scroll-behavior: smooth;
}

.autonomy-view {
  min-height: 100%;
  padding: 35px 38px 48px;
}

.view-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 40px;
  min-height: 224px;
  padding: 0 22px 9px 2px;
}

.view-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ink) 0 62px, var(--line) 62px);
  content: "";
}

.hero-copy > p,
.section-hero > div > p {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-hero h1 {
  max-width: 770px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 57px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.14;
}

.hero-copy > span {
  display: block;
  max-width: 670px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.hero-radar {
  position: relative;
  width: 236px;
  height: 196px;
  justify-self: end;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(201, 64, 39, .17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 70px;
  height: 70px;
}

.ring-two {
  width: 132px;
  height: 132px;
}

.ring-three {
  width: 196px;
  height: 196px;
  border-style: dashed;
}

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff4e9;
  background: var(--red);
  box-shadow: 0 0 0 12px rgba(201, 64, 39, .08);
  transform: translate(-50%, -50%);
}

.radar-core svg {
  width: 23px;
  height: 23px;
}

.radar-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(173, 122, 52, .2);
}

.dot-a {
  top: 18px;
  left: 91px;
}

.dot-b {
  right: 20px;
  bottom: 49px;
  background: var(--red);
}

.dot-c {
  bottom: 24px;
  left: 28px;
  background: var(--moss);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 25px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip > div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 5px 10px;
  padding: 17px 23px;
  border-right: 1px solid var(--line);
}

.metric-strip > div:first-child {
  padding-left: 2px;
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--muted);
  font-size: 10.5px;
}

.metric-strip b {
  grid-row: 1 / 3;
  grid-column: 2;
  justify-self: end;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.metric-strip small {
  color: var(--faint);
  font-size: 9.5px;
}

.task-board {
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 1fr);
  min-height: 590px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(251, 248, 241, .66);
  box-shadow: 0 20px 50px rgba(77, 51, 36, .06);
}

.task-ledger {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px 0 15px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(201, 64, 39, .018), transparent 35%),
    rgba(244, 238, 228, .7);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 22px;
}

.panel-head p,
.growth-section-head p,
.feedback-ledger header p {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.panel-head h2,
.growth-section-head h2,
.feedback-ledger header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
}

.panel-head button {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.panel-head button:hover svg {
  transform: rotate(-18deg);
}

.panel-head button svg {
  width: 14px;
  height: 14px;
  transition: transform .25s var(--ease);
}

.task-filters,
.memory-filters {
  display: flex;
  gap: 5px;
  padding: 17px 22px 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.task-filters::-webkit-scrollbar,
.memory-filters::-webkit-scrollbar {
  display: none;
}

.task-filters button,
.memory-filters button {
  flex: none;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.task-filters button.is-active,
.memory-filters button.is-active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper-light);
}

.task-list {
  display: grid;
  min-height: 0;
  gap: 1px;
  padding: 0 11px;
  overflow-y: auto;
}

.task-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 15px 14px 14px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: border-color .2s, background .2s;
}

.task-card + .task-card {
  border-top-color: var(--line-soft);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.task-card::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.task-card:hover {
  background: rgba(255, 255, 255, .42);
}

.task-card.is-active {
  border-color: var(--line);
  background: var(--paper-light);
  box-shadow: 0 9px 22px rgba(68, 45, 32, .045);
}

.task-card.is-active + .task-card {
  border-top-color: transparent;
}

.task-card.is-active::before {
  background: var(--red);
}

.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.task-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  content: "";
}

.task-status.is-running {
  color: var(--red);
}

.task-status.is-running::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 64, 39, .1);
  animation: statusPulse 1.8s infinite;
}

.task-status.is-completed {
  color: var(--moss);
}

.task-status.is-completed::before {
  background: var(--moss);
}

.task-status.is-scheduled::before {
  background: var(--gold);
}

.task-card time {
  color: var(--faint);
  font-size: 9px;
}

.task-card h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-size: 9px;
}

.task-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-card-foot svg {
  width: 12px;
  height: 12px;
}

.task-progress {
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-soft);
}

.task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width .4s var(--ease);
}

.skeleton-card {
  height: 118px;
  margin: 10px 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee6db 25%, #f7f2e9 45%, #eee6db 68%);
  background-size: 200% 100%;
  animation: skeleton 1.5s linear infinite;
}

.task-list-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.task-list-empty b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
}

.empty-create-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 15px 22px 0;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.empty-create-button svg {
  width: 14px;
  height: 14px;
}

.task-detail-shell {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: var(--paper-light);
}

.detail-empty {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px;
  text-align: center;
}

.detail-empty-mark {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  background: var(--paper);
}

.detail-empty-mark svg {
  width: 26px;
  height: 26px;
}

.detail-empty h2 {
  margin: 19px 0 7px;
  font-family: var(--display);
  font-size: 25px;
}

.detail-empty p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.detail-empty button {
  margin-top: 20px;
  padding: 9px 17px;
  border: 0;
  border-radius: 7px;
  color: #fff8ef;
  background: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.task-detail {
  padding: 28px 30px 40px;
}

.task-detail-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.task-detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.task-detail-kicker .task-status {
  font-size: 10.5px;
}

.task-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-paper-button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.icon-paper-button:hover {
  color: var(--ink);
  background: var(--paper);
}

.icon-paper-button svg {
  width: 13px;
  height: 13px;
}

.task-detail h1 {
  max-width: 760px;
  margin: 13px 0 8px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 37px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.task-goal {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.task-command-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.primary-paper-button,
.secondary-paper-button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 650;
}

.primary-paper-button {
  border: 1px solid var(--ink);
  color: #fff8ee;
  background: var(--ink);
  box-shadow: 0 9px 22px rgba(37, 27, 23, .1);
}

.primary-paper-button:hover {
  background: #3b2a23;
}

.secondary-paper-button {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
}

.secondary-paper-button:hover {
  background: var(--paper);
}

.primary-paper-button svg,
.secondary-paper-button svg {
  width: 14px;
  height: 14px;
}

.task-command-row .primary-paper-button {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.download-link {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
}

.download-link:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}

.download-link svg {
  width: 12px;
  height: 12px;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
  gap: 28px;
  margin-top: 25px;
}

.detail-block + .detail-block {
  margin-top: 24px;
}

.detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.detail-block-head b {
  font-family: var(--display);
  font-size: 16px;
}

.detail-block-head button,
.detail-block-head span {
  color: var(--faint);
  font-size: 9.5px;
}

.detail-block-head button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.material-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.material-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.material-row:last-child {
  border-bottom: 0;
}

.material-icon {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--gold);
  background: var(--gold-soft);
}

.material-icon svg {
  width: 15px;
  height: 15px;
}

.material-row > a,
.material-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.material-row b {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-row small {
  color: var(--faint);
  font-size: 8.5px;
}

.material-row button {
  border: 0;
  color: var(--faint);
  background: transparent;
  font-size: 9px;
}

.material-row button:hover {
  color: var(--danger);
}

.add-material-button {
  display: flex;
  width: 100%;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.add-material-button:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}

.step-list {
  display: grid;
  gap: 0;
}

.step-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  min-height: 39px;
  padding-bottom: 9px;
}

.step-row:not(:last-child)::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.step-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-light);
}

.step-row.is-done .step-dot {
  border-color: var(--moss);
  background: var(--moss);
  box-shadow: inset 0 0 0 3px var(--paper-light);
}

.step-row.is-active .step-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 64, 39, .1);
}

.step-row.is-error .step-dot {
  border-color: var(--danger);
  background: var(--danger);
}

.step-row > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.step-row b {
  font-size: 10.5px;
  font-weight: 550;
}

.step-row small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8.5px;
}

.sources-list,
.task-unresolved {
  display: grid;
  gap: 7px;
}

.source-row {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-left: 2px solid var(--gold);
  background: #f4ede1;
  font-size: 9.5px;
}

.source-row b {
  overflow: hidden;
  color: var(--ink-2);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-row span {
  color: var(--faint);
}

.task-output {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.task-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.task-output-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
}

.task-output-head > div {
  display: flex;
  gap: 6px;
}

.task-output-head button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.output-progress {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 31px, rgba(201, 64, 39, .08) 32px, transparent 33px);
}

.output-progress b {
  font-family: var(--display);
  font-size: 18px;
}

.output-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.output-progress-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.output-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width .45s var(--ease);
}

.task-failure {
  padding: 18px;
  border: 1px solid #e2bdb4;
  border-radius: 8px;
  color: var(--danger);
  background: #fbebe7;
  font-size: 11px;
}

.task-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--paper);
  font-size: 10px;
}

.task-rating input {
  min-width: 160px;
  flex: 1;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-light);
  font-size: 10px;
}

.task-rating button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-2);
  background: var(--paper-light);
  font-size: 9.5px;
}

.markdown-body {
  max-width: 850px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.86;
  word-break: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.35;
}

.markdown-body h1 {
  margin: 0 0 20px;
  font-size: 28px;
}

.markdown-body h2 {
  margin: 30px 0 11px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
}

.markdown-body h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 10px 0 16px;
  padding-left: 22px;
}

.markdown-body li {
  margin: 4px 0;
}

.markdown-body blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  color: var(--ink-2);
  background: var(--red-soft);
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ece4d8;
  font-family: Consolas, monospace;
  font-size: .92em;
}

.markdown-body pre {
  padding: 14px;
  overflow: auto;
  border-radius: 7px;
  color: #f9eee3;
  background: #2b211c;
}

.markdown-body pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.markdown-body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 10.5px;
}

.markdown-body th,
.markdown-body td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.markdown-body th {
  background: var(--paper-deep);
}

.markdown-body a {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 3px 34px;
  border-bottom: 1px solid var(--line);
}

.section-hero.compact h1 {
  font-size: clamp(30px, 3.8vw, 49px);
}

.memory-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 32px;
  padding-top: 27px;
}

.memory-toolbar {
  display: flex;
  gap: 9px;
}

.memory-search {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-light);
}

.memory-search:focus-within {
  border-color: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(72, 58, 52, .06);
}

.memory-search svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}

.memory-search input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
}

.search-web-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-2);
  background: var(--paper-light);
  font-size: 10.5px;
}

.search-web-button:hover {
  border-color: var(--ink-2);
}

.search-web-button svg {
  width: 14px;
  height: 14px;
}

.memory-filters {
  padding-right: 0;
  padding-left: 0;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.memory-card {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
  transition: transform .2s var(--ease), box-shadow .2s;
}

.memory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(65, 43, 31, .065);
}

.memory-card::after {
  position: absolute;
  top: -13px;
  right: -8px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201, 64, 39, .08);
  border-radius: 50%;
  content: "";
}

.memory-card.is-pinned {
  border-color: #d8c6aa;
  background: linear-gradient(145deg, #fffaf1, var(--paper-light));
}

.memory-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.memory-kind {
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--moss);
  background: var(--moss-soft);
  font-size: 8.5px;
  font-weight: 650;
}

.memory-kind.preference {
  color: var(--red-deep);
  background: var(--red-soft);
}

.memory-kind.insight {
  color: #87611f;
  background: var(--gold-soft);
}

.memory-kind.knowledge {
  color: #4f6070;
  background: #e7ebee;
}

.memory-pin {
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 10px;
}

.memory-card h3 {
  margin: 14px 0 7px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
}

.memory-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.memory-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  color: var(--faint);
  font-size: 8.5px;
}

.memory-card-actions {
  display: flex;
  gap: 5px;
}

.memory-card-actions button {
  padding: 2px 0;
  border: 0;
  color: var(--faint);
  background: transparent;
  font-size: 8.5px;
}

.memory-card-actions button:hover {
  color: var(--ink);
}

.memory-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 250px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}

.memory-empty b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.memory-note {
  align-self: start;
  padding: 20px 20px 17px;
  border-top: 1px solid var(--ink);
  background: rgba(237, 229, 216, .55);
}

.memory-note > header {
  display: flex;
  flex-direction: column;
  margin-bottom: 17px;
}

.memory-note > header span {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.memory-note > header b {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 17px;
}

.memory-note-rule {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.memory-note-rule > span {
  color: var(--faint);
  font-family: var(--display);
  font-size: 11px;
}

.memory-note-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.memory-note-rule b {
  color: var(--ink-2);
  font-weight: 650;
}

.memory-note > button {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  background: var(--paper-light);
  font-size: 10px;
}

.growth-hero {
  align-items: center;
}

.growth-hero > div:first-child > span {
  display: block;
  max-width: 670px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.growth-score {
  display: flex;
  width: 150px;
  flex: none;
  align-items: center;
  flex-direction: column;
}

.growth-ring {
  --progress: 0%;
  display: flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 57%, transparent 58%),
    conic-gradient(var(--red) var(--progress), var(--line) 0);
}

.growth-ring b {
  font-family: var(--display);
  font-size: 18px;
}

.growth-score > span {
  margin-top: 10px;
  color: var(--faint);
  font-size: 9px;
  text-align: center;
}

.growth-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 28px;
}

.growth-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.growth-section-head > span {
  color: var(--faint);
  font-size: 9.5px;
}

.growth-section-head > button {
  border: 0;
  color: var(--red-deep);
  background: transparent;
  font-size: 9.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upgrade-head {
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.growth-suggestions {
  display: grid;
  gap: 9px;
}

.growth-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
}

.growth-card-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
}

.growth-card-mark svg {
  width: 17px;
  height: 17px;
}

.growth-card-copy b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 15px;
}

.growth-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.growth-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.growth-card-actions button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.growth-card-actions button:first-child {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.upgrade-list {
  display: grid;
  gap: 0;
}

.upgrade-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.upgrade-version {
  padding-top: 3px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 11px;
  text-align: right;
}

.upgrade-row b {
  display: block;
  font-size: 11px;
  font-weight: 650;
}

.upgrade-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.upgrade-row time {
  color: var(--faint);
  font-size: 8.5px;
}

.feedback-ledger {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-light);
}

.feedback-ledger > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.feedback-ledger header h2 {
  font-size: 19px;
}

.feedback-ledger header > span {
  max-width: 115px;
  padding: 2px 7px;
  overflow: hidden;
  border-radius: 99px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-callout {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: calc(100% - 28px);
  margin: 14px;
  padding: 12px;
  border: 1px solid #dfc5b9;
  border-radius: 7px;
  color: var(--ink);
  background: var(--red-soft);
  text-align: left;
}

.feedback-callout > span:first-child {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
}

.feedback-callout svg {
  width: 17px;
  height: 17px;
}

.feedback-callout > span:last-child {
  display: flex;
  flex-direction: column;
}

.feedback-callout b {
  font-size: 10.5px;
}

.feedback-callout small {
  margin-top: 2px;
  color: #8a5c4c;
  font-size: 8.5px;
}

.feedback-history {
  max-height: 350px;
  padding: 0 14px;
  overflow-y: auto;
}

.feedback-entry {
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.feedback-entry:last-child {
  border-bottom: 0;
}

.feedback-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feedback-status {
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 8px;
  font-weight: 650;
}

.feedback-status.upgraded {
  color: var(--moss);
  background: var(--moss-soft);
}

.feedback-status.filtered {
  color: var(--danger);
  background: #f8e3dd;
}

.feedback-entry time {
  color: var(--faint);
  font-size: 8px;
}

.feedback-entry > p {
  display: -webkit-box;
  margin: 7px 0 4px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feedback-entry > small {
  display: block;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
}

.filter-policy {
  margin: 13px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.filter-policy b {
  font-size: 9.5px;
}

.filter-policy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.modal-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(29, 21, 17, .48);
  backdrop-filter: blur(5px);
}

.paper-modal {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1020px);
  max-height: min(92dvh, 900px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d5c6b3;
  border-radius: 11px;
  background:
    linear-gradient(90deg, transparent 39px, rgba(201, 64, 39, .06) 40px, transparent 41px),
    var(--paper-light);
  box-shadow: var(--shadow);
  animation: modalIn .28s var(--ease);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 28px 19px 46px;
  border-bottom: 1px solid var(--line);
}

.modal-head p {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.25;
}

.modal-head > div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.modal-head > button {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.modal-head > button:hover {
  color: var(--ink);
  background: var(--paper);
}

.modal-head > button svg {
  width: 13px;
  height: 13px;
}

.modal-body {
  min-height: 0;
  padding: 23px 28px 22px 46px;
  overflow-y: auto;
}

.task-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr);
  gap: 28px;
}

.task-form-main,
.task-form-side {
  min-width: 0;
}

.paper-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.paper-field + .paper-field {
  margin-top: 14px;
}

.paper-field > span {
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 650;
}

.paper-field input,
.paper-field select,
.paper-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .5);
  font-size: 11px;
  transition: border-color .2s, box-shadow .2s;
}

.paper-field input,
.paper-field select {
  height: 38px;
  padding: 0 11px;
}

.paper-field textarea {
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.7;
}

.paper-field input:focus,
.paper-field select:focus,
.paper-field textarea:focus {
  border-color: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(72, 58, 52, .06);
}

.paper-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.paper-field-grid .paper-field + .paper-field {
  margin-top: 0;
}

.upload-zone {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(237, 229, 216, .34);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--red);
  background: var(--red-soft);
}

.upload-zone-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red);
  background: #f7e6dd;
}

.upload-zone-icon svg {
  width: 17px;
  height: 17px;
}

.upload-zone > span:nth-child(3) {
  display: flex;
  flex-direction: column;
}

.upload-zone b {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 650;
}

.upload-zone small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8.5px;
}

.upload-zone em {
  color: var(--red-deep);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
}

.pending-files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.pending-file {
  display: inline-flex;
  max-width: 220px;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--paper);
  font-size: 8.5px;
}

.pending-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-file button {
  border: 0;
  color: var(--faint);
  background: transparent;
  font-size: 11px;
}

.paper-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.paper-section-title span {
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 650;
}

.paper-section-title small {
  color: var(--faint);
  font-size: 8px;
}

.skill-picker {
  margin-top: 19px;
}

.skill-picker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  font-size: 8.5px;
}

.skill-choice::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  content: "";
}

.skill-choice.is-active {
  color: var(--red-deep);
  border-color: #e0bdb0;
  background: var(--red-soft);
}

.skill-choice.is-active::before {
  background: var(--red);
}

.run-settings {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 229, 216, .43);
}

.setting-check {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0 0 13px;
  cursor: pointer;
}

.setting-check input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.setting-check > span {
  display: flex;
  flex-direction: column;
}

.setting-check b {
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 650;
}

.setting-check small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.5;
}

.run-settings .paper-field {
  margin-top: 11px;
}

.privacy-note {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  border-left: 2px solid var(--moss);
  background: var(--moss-soft);
}

.privacy-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--moss);
}

.privacy-note p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.privacy-note b {
  color: var(--moss);
  font-size: 9px;
}

.privacy-note span {
  margin-top: 2px;
  color: #66705f;
  font-size: 8.5px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 28px 14px 46px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.modal-actions > span {
  color: var(--faint);
  font-size: 8.5px;
}

.modal-actions > div {
  display: flex;
  gap: 7px;
}

.memory-modal {
  width: min(100%, 650px);
}

.memory-modal-body {
  display: grid;
  gap: 14px;
}

.memory-modal-body .paper-field + .paper-field {
  margin-top: 0;
}

.memory-type-row {
  align-items: end;
  margin-top: 0;
}

.pin-check {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.pin-check input {
  accent-color: var(--gold);
}

.form-hint,
.feedback-example {
  margin: 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.feedback-modal {
  width: min(100%, 760px);
}

.feedback-modal-body {
  display: grid;
  gap: 16px;
}

.filter-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.filter-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8.5px;
  white-space: nowrap;
}

.filter-steps i {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red-deep);
  background: var(--red-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.filter-steps b {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.feedback-modal .paper-field-grid {
  margin-top: 0;
}

.feedback-auto {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.feedback-example b {
  color: var(--ink-2);
}

.feedback-reviewing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddcbb9;
  border-radius: 7px;
  background: #f4ecdf;
}

.review-spinner {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid rgba(201, 64, 39, .16);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.feedback-reviewing > div {
  display: flex;
  flex-direction: column;
}

.feedback-reviewing b {
  font-size: 9.5px;
}

.feedback-reviewing small {
  color: var(--muted);
  font-size: 8.5px;
}

.search-modal {
  width: min(100%, 900px);
}

.autonomous-search-form {
  display: flex;
  gap: 9px;
  padding: 20px 28px 10px 46px;
}

.autonomous-search-form label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.autonomous-search-form label:focus-within {
  border-color: var(--ink-2);
}

.autonomous-search-form svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.autonomous-search-form input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
}

.autonomous-search-form button {
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--red);
  font-size: 10.5px;
  font-weight: 650;
}

.search-options {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 28px 17px 46px;
  color: var(--muted);
  font-size: 8.5px;
}

.search-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-options input {
  accent-color: var(--red);
}

.search-options > span {
  margin-left: auto;
  color: var(--faint);
}

.search-results {
  min-height: 290px;
  max-height: 58dvh;
  padding: 0 28px 27px 46px;
  overflow-y: auto;
}

.search-empty-mark {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.search-empty-mark > span {
  color: var(--red);
  font: 400 42px/1 var(--display);
}

.search-empty-mark b {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.search-empty-mark p {
  margin: 4px 0 0;
  font-size: 9.5px;
}

.search-group + .search-group {
  margin-top: 22px;
}

.search-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.search-group-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
}

.search-group-head span {
  color: var(--faint);
  font-size: 8.5px;
}

.search-result-row {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.search-result-row a,
.search-result-row b {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
}

.search-result-row a:hover {
  color: var(--red-deep);
}

.search-result-row p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.search-result-row span {
  color: var(--faint);
  font-size: 8px;
}

.search-loading {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.search-loading::before {
  width: 23px;
  height: 23px;
  margin-bottom: 8px;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  content: "";
  animation: spin .8s linear infinite;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 27px;
  bottom: 24px;
  max-width: min(430px, calc(100vw - 40px));
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  color: #fff9ef;
  background: #2a201b;
  box-shadow: 0 15px 34px rgba(37, 27, 23, .2);
  font-size: 10.5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity .2s, transform .2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: #8c2b21;
}

.mobile-scrim {
  position: fixed;
  z-index: 25;
  inset: 0;
  background: rgba(28, 20, 16, .42);
  backdrop-filter: blur(2px);
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 64, 39, .08); }
  50% { box-shadow: 0 0 0 6px rgba(201, 64, 39, .02); }
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

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

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
  .desk {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .desk-sidebar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .desk-topbar {
    padding: 0 22px;
  }

  .autonomy-view {
    padding-right: 25px;
    padding-left: 25px;
  }

  .view-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .hero-radar {
    width: 200px;
    transform: scale(.88);
    transform-origin: right center;
  }

  .task-board {
    grid-template-columns: minmax(255px, 36%) minmax(0, 1fr);
  }

  .task-detail-grid {
    grid-template-columns: 1fr;
  }

  .growth-dashboard {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .desk {
    display: block;
    height: auto;
    min-height: 100dvh;
  }

  .desk-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 264px;
    transform: translateX(-105%);
    transition: transform .25s var(--ease);
  }

  .desk-sidebar.is-open {
    transform: translateX(0);
  }

  .desk-main {
    min-height: 100dvh;
  }

  .mobile-nav-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
  }

  .mobile-nav-button span {
    width: 15px;
    height: 1px;
    background: var(--ink);
  }

  .desk-topbar {
    position: sticky;
    top: 0;
  }

  .desk-location {
    margin-right: auto;
  }

  .search-trigger {
    min-width: 0;
  }

  .search-trigger span,
  .search-trigger kbd,
  .feedback-trigger span {
    display: none;
  }

  .feedback-trigger {
    width: 35px;
    justify-content: center;
    padding: 0;
  }

  .desk-content {
    overflow: visible;
  }

  .view-hero {
    grid-template-columns: 1fr;
  }

  .hero-radar {
    display: none;
  }

  .task-board {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .memory-workbench {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

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

  .growth-dashboard {
    grid-template-columns: 1fr;
  }

  .feedback-ledger {
    max-width: 600px;
  }
}

@media (max-width: 740px) {
  .desk-topbar {
    min-height: 58px;
    padding: 0 13px;
  }

  .desk-location span,
  .desk-location i {
    display: none;
  }

  .desk-top-actions {
    gap: 5px;
  }

  .craft-trigger {
    width: 35px;
    justify-content: center;
    padding: 0;
  }

  .craft-trigger span {
    display: none;
  }

  .autonomy-view {
    padding: 22px 14px 35px;
  }

  .view-hero {
    min-height: 200px;
    padding-right: 0;
  }

  .hero-copy h1,
  .section-hero h1 {
    font-size: 34px;
  }

  .hero-copy > span {
    font-size: 11.5px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip > div {
    border-bottom: 1px solid var(--line);
  }

  .metric-strip > div:nth-child(2) {
    border-right: 0;
  }

  .metric-strip > div:nth-child(3),
  .metric-strip > div:nth-child(4) {
    border-bottom: 0;
  }

  .metric-strip > div:first-child,
  .metric-strip > div:nth-child(3) {
    padding-left: 4px;
  }

  .task-board {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .task-ledger {
    max-height: 440px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .task-detail-shell {
    min-height: 440px;
    overflow: visible;
  }

  .task-detail {
    padding: 22px 18px 30px;
  }

  .task-detail-grid {
    grid-template-columns: 1fr;
  }

  .section-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .section-hero .primary-paper-button {
    align-self: stretch;
  }

  .growth-score {
    align-items: flex-start;
  }

  .growth-hero {
    gap: 18px;
  }

  .growth-score {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
  }

  .growth-ring {
    width: 58px;
    height: 58px;
  }

  .growth-score > span {
    max-width: 150px;
    margin: 0;
    text-align: left;
  }

  .memory-workbench {
    grid-template-columns: 1fr;
  }

  .memory-toolbar {
    flex-direction: column;
  }

  .search-web-button {
    justify-content: center;
    min-height: 38px;
  }

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

  .growth-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .growth-card-actions {
    grid-column: 2;
  }

  .modal-shell {
    padding: 0;
    align-items: end;
  }

  .paper-modal {
    width: 100%;
    max-height: 96dvh;
    border-radius: 13px 13px 0 0;
  }

  .modal-head {
    padding: 20px 18px 15px;
  }

  .modal-head h2 {
    font-size: 23px;
  }

  .modal-body {
    padding: 18px;
  }

  .task-modal-body {
    display: block;
  }

  .task-form-side {
    margin-top: 20px;
  }

  .paper-field-grid {
    grid-template-columns: 1fr;
  }

  .paper-field-grid .paper-field + .paper-field {
    margin-top: 2px;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
  }

  .modal-actions > div {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }

  .modal-actions > span {
    text-align: center;
  }

  .autonomous-search-form {
    flex-direction: column;
    padding: 15px 18px 8px;
  }

  .autonomous-search-form button {
    min-height: 38px;
  }

  .search-options {
    flex-wrap: wrap;
    padding: 5px 18px 13px;
  }

  .search-options > span {
    width: 100%;
    margin-left: 0;
  }

  .search-results {
    padding: 0 18px 20px;
  }

  .filter-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .filter-steps span {
    flex-direction: column;
    gap: 3px;
    text-align: center;
    white-space: normal;
  }

  .filter-steps b {
    display: none;
  }

  .upload-zone {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .upload-zone em {
    display: none;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}

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