:root {
  color-scheme: light;
  --bg: #eee5da;
  --bg-2: #fffdfa;
  --panel: #fffdfa;
  --panel-strong: #ffffff;
  --ink: #090909;
  --ink-soft: #4f4f4f;
  --muted: #77706a;
  --line: #d8cbbd;
  --line-dark: #090909;
  --strategy: #090909;
  --strategy-2: #24211f;
  --brass: #6f5aa8;
  --cinnabar: #6f5aa8;
  --moss: #efebf6;
  --purple-deep: #463760;
  --paper-shadow: none;
  --tight-shadow: none;
  --glass: #fffdfa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
}

body::after {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  color: var(--ink);
  background: transparent;
  border-right: 1px solid var(--line);
  backdrop-filter: none;
}

.sidebar::before { display: none; }

.brand {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
  z-index: 1;
}

.mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-content: center;
  gap: 0;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: inset 0 0 0 1px rgba(255, 231, 168, 0.34);
  overflow: hidden;
}

.mark img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
  transform: translateY(-1px);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

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

button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: none;
}

.nav-item {
  position: relative;
  height: 42px;
  padding-left: 17px;
  text-align: left;
  color: var(--ink-soft);
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(13, 14, 12, 0.35);
  border-radius: 50%;
}

.nav-item.active {
  color: #fff;
  background: var(--brass);
  border-color: var(--brass);
}

.nav-item.active::before {
  background: var(--brass);
  border-color: var(--brass);
}

.side-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  z-index: 1;
  padding: 16px;
  background: var(--ink);
  border: none;
  border-radius: 24px;
  box-shadow: var(--tight-shadow);
}

.side-note span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.side-note strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  line-height: 1.55;
  font-size: 13px;
}

main {
  min-width: 0;
  padding: 24px clamp(24px, 4vw, 56px) 56px;
}

.topbar,
.section-head,
.brief-header,
.toolbar,
.ask-box,
.modal-head,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: relative;
  min-height: 34px;
  padding: 0 2px 0;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  justify-content: flex-end;
}

.topbar > div {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 170px);
}

.topbar::after {
  display: none;
}

.topbar::before {
  display: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 950;
}

p {
  color: var(--muted);
}

.topbar p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.brand-slogan {
  margin: 14px 0 20px;
  color: var(--purple-deep);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.primary {
  color: #fff;
  background: var(--strategy);
  border-color: var(--strategy);
  font-weight: 700;
  box-shadow: none;
}

.primary:hover {
  background: var(--strategy-2);
}

.grow-button {
  position: relative;
  min-height: 38px;
  padding: 0 14px 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  color: #263c32;
  background: #fbf8f0;
  border-color: #b8c6b1;
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.grow-icon {
  position: relative;
  width: 28px;
  height: 24px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  background: #e4ead9;
  border: 1px solid #9faf96;
  border-radius: 999px;
}

.grow-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.grow-button:hover {
  color: #182d24;
  background: #f3f5e9;
  border-color: #7f967a;
  box-shadow: none;
}

.grow-button:hover .grow-icon {
  background: #dce7cf;
  border-color: #7f967a;
}

.view {
  display: none;
  margin-top: 24px;
}

.view.active {
  display: block;
  animation: rise 360ms ease both;
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat,
.card,
.answer,
.brief-body,
.work-panel,
dialog form {
  position: relative;
  background: var(--panel);
  border: none;
  border-radius: 28px;
  box-shadow: var(--paper-shadow);
  backdrop-filter: none;
}

.stat {
  min-height: 112px;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.stat::after,
.card::after,
.work-panel::after,
.answer::after {
  content: "";
  position: absolute;
  left: 18px;
  right: auto;
  top: 14px;
  width: 44px;
  height: 3px;
  background: var(--brass);
  border-radius: 999px;
}

.stat span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 13px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-head {
  align-items: center;
  padding: 0 2px;
}

.section-head h2 {
  position: relative;
  padding-left: 0;
}

.section-head h2::before { display: none; }

.section-head p {
  display: none;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-chip,
.tag {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #b9add3;
  color: var(--purple-deep);
  background: var(--moss);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 14px;
}

.content-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.card {
  padding: 22px 18px 18px;
  overflow: hidden;
}

.card.compact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.card-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.source-card h3 {
  max-width: none;
}

.card h3 {
  max-width: 92%;
  margin: 0 0 11px;
  font-size: 18px;
  line-height: 1.38;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  margin-bottom: 12px;
}

.meta a {
  color: var(--purple-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 71, 50, 0.35);
}

.source-link::after {
  content: "↗";
  margin-left: 3px;
  font-size: 10px;
}

.summary {
  color: var(--ink-soft);
  line-height: 1.75;
}

.user-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.user-rating-label {
  min-width: 76px;
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 800;
}

.user-rating-stars {
  display: inline-flex;
  gap: 2px;
}

.user-rating-stars button {
  min-height: 28px;
  width: 24px;
  padding: 0;
  color: #c5bbb0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}

.user-rating-stars button:hover {
  transform: none;
  color: #8b70dc;
  box-shadow: none;
}

.user-rating-stars button.active {
  color: #7a62bd;
}

.rating-confirm {
  min-height: 28px;
  padding: 0 10px;
  color: #fffdf7;
  background: var(--brass);
  border-color: var(--brass);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rating-confirm:hover {
  color: #fff;
  background: var(--purple-deep);
  border-color: var(--purple-deep);
}

.rating-confirm:disabled {
  color: #afa59b;
  background: transparent;
  border-color: var(--line);
  cursor: default;
  opacity: 0.72;
}

.rating-confirm:disabled:hover {
  transform: none;
  box-shadow: none;
}

.user-rating-count {
  color: var(--muted);
  font-size: 12px;
}

.user-rating.pending .user-rating-label {
  color: #7a62bd;
}

.formula {
  display: inline-block;
  max-width: 100%;
  margin: 2px 0 12px;
  padding: 7px 10px;
  color: var(--purple-deep);
  background: var(--moss);
  border: 1px solid #b9add3;
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.social-formula {
  color: #fff;
  background: var(--purple-deep);
  border-color: var(--purple-deep);
}

.formula-compact {
  color: #fff;
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  font-size: 13px;
  font-weight: 800;
}

.formula-block {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
}

.formula-block div {
  display: grid;
  gap: 5px;
}

.formula-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.formula-stack {
  display: grid;
  gap: 8px;
}

.formula-block strong,
.formula-block p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.formula-block strong {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  color: #493b5c;
  background: #eeeaf7;
  border: 1px solid rgba(122, 98, 189, 0.18);
  border-radius: 24px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  white-space: normal;
}

.creative-commentary {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.creative-commentary section {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  background: #fffdf7;
  border: 1px solid rgba(72, 43, 105, 0.12);
  border-radius: 18px;
}

.creative-commentary span {
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 900;
}

.creative-commentary p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
}

.case-associations {
  display: grid;
  gap: 8px;
  margin: 4px 0 13px;
  padding: 12px;
  background: #f7f2ec;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.case-associations > strong {
  color: var(--purple-deep);
  font-size: 13px;
}

.case-link {
  display: grid;
  gap: 3px;
}

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

.case-link span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.case-source-link {
  flex: 0 0 auto;
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 43, 105, 0.28);
}

.case-source-link::after {
  content: "↗";
  margin-left: 3px;
  font-size: 10px;
}

.case-link b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.case-link p {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.short-comment-box {
  display: grid;
  gap: 12px;
  margin: 12px 0 20px;
  padding: 16px;
  background: #fbf7f0;
  border: 1px solid rgba(72, 43, 105, 0.14);
  border-radius: 20px;
}

.short-comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.short-comment-head strong {
  color: var(--ink);
  font-size: 15px;
}

.short-comment-head span {
  color: var(--muted);
  font-size: 12px;
}

.short-comment-list {
  display: grid;
  gap: 8px;
}

.short-comment-empty {
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.72);
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 13px;
}

.short-comment-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #fffdf7;
  border: 1px solid rgba(72, 43, 105, 0.1);
  border-radius: 14px;
}

.short-comment-item p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.short-comment-item span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.short-comment-input {
  display: grid;
  gap: 8px;
}

.short-comment-input textarea {
  min-height: 72px;
  border-radius: 16px;
}

.short-comment-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.emoji-row {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.emoji-row button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  background: #fffdf7;
  border-color: rgba(72, 43, 105, 0.12);
  border-radius: 999px;
  box-shadow: none;
  font-size: 15px;
}

.link-note-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.link-note-top {
  display: block;
  margin-bottom: 26px;
}

.link-note-top h2 {
  text-align: center;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.icon-button {
  width: 58px;
  min-height: 58px;
  padding: 0;
  color: #1e222a;
  background: #fffdf7;
  border: none;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.confirm-button {
  width: 100%;
  min-height: 68px;
  padding: 0 28px;
  color: #fffdf7;
  background: #6f58a8;
  border: 1px solid #6f58a8;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(111, 88, 168, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.confirm-button:hover {
  color: #fffdf7;
  background: #5f4b91;
  border-color: #5f4b91;
}

.link-note-form {
  display: grid;
  gap: 14px;
}

.link-input-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 24px;
  background: #fffdf7;
  border-radius: 28px;
}

.link-input-card input {
  min-height: 60px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #1e222a;
  font-size: 24px;
}

.link-file-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f1edf8;
  border-radius: 16px;
}

.link-file-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shockwave-result {
  display: none;
  margin-top: 26px;
}

.shockwave-result.active {
  display: block;
}

.creative-handle {
  display: grid;
  gap: 10px;
  margin: 12px 0 2px;
}

.handle-card {
  margin: 0;
  padding: 15px 16px;
  color: var(--ink);
  background: #fbf7f0;
  border: 1px solid rgba(72, 43, 105, 0.14);
  border-radius: 18px;
}

.handle-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 800;
}

.handle-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.score {
  color: var(--purple-deep);
  font-weight: 800;
}

.toolbar {
  padding: 14px;
  background: var(--panel);
  border: none;
  border-radius: 28px;
}

.toolbar input,
.ask-box input {
  flex: 1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf7;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

textarea {
  resize: vertical;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(111, 90, 168, 0.14);
}

.answer,
.brief-body {
  margin-top: 14px;
  padding: 22px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: start;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.growth-layout {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.growth-result {
  max-width: 1040px;
}

.back-button,
.button-link,
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.mini-link {
  width: 100%;
  margin-top: 14px;
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,0.28);
}

.work-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.panel-note {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.critique-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.critique-grid div {
  padding: 13px;
  background: var(--moss);
  border: 1px solid #b9add3;
  border-radius: 18px;
}

.critique-grid span {
  display: block;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.critique-grid strong {
  display: block;
  margin-top: 7px;
  line-height: 1.35;
}

.rating-card {
  display: grid;
  grid-template-columns: minmax(118px, 0.7fr) minmax(180px, 1.3fr);
  gap: 18px;
  margin: 16px 0;
  padding: 18px;
  background: #2f2824;
  border: 1px solid rgba(255, 253, 247, 0.12);
  border-radius: 22px;
  color: #fffdf7;
}

.rating-main {
  display: grid;
  align-content: center;
  justify-items: start;
}

.rating-label {
  color: rgba(255, 253, 247, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.rating-main strong {
  margin-top: 8px;
  color: #fffdf7;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.rating-stars {
  margin-top: 10px;
  color: rgba(255, 253, 247, 0.28);
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rating-stars .filled {
  color: #9b7ef0;
  text-shadow: 0 0 10px rgba(155, 126, 240, 0.28);
}

.rating-bars {
  display: grid;
  gap: 8px;
  align-content: center;
}

.rating-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
}

.rating-row span {
  color: rgba(255, 253, 247, 0.58);
  font-size: 11px;
}

.rating-row i {
  height: 9px;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.11);
  border-radius: 999px;
}

.rating-row b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7a62bd, #b59df8);
  border-radius: inherit;
}

.rating-bars small {
  margin-top: 4px;
  color: rgba(255, 253, 247, 0.5);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.rating-card-pending .rating-main strong {
  font-size: 36px;
  letter-spacing: -0.04em;
}

.rating-card-pending .rating-stars {
  color: rgba(255, 253, 247, 0.22);
}

.rating-waiting {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.12);
  border-radius: 16px;
}

.rating-waiting b {
  color: #fffdf7;
  font-size: 15px;
}

.rating-waiting span {
  color: rgba(255, 253, 247, 0.62);
  font-size: 13px;
}

.critique-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.critique-meta span {
  padding: 6px 10px;
  color: var(--purple-deep);
  background: var(--moss);
  border: 1px solid #b9add3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.answer p,
.brief-body p,
.brief-body li,
.answer li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.answer h3,
.brief-body h3 {
  margin: 20px 0 8px;
  color: var(--purple-deep);
}

.seed-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.sprout-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.sprout-steps li {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: #f7f2ec;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.25;
}

.sprout-steps li span {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid rgba(123, 112, 96, 0.35);
  border-radius: 50%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.sprout-steps li.done {
  color: var(--purple-deep);
  background: var(--moss);
  border-color: #b9add3;
}

.sprout-steps li.done span {
  color: var(--purple-deep);
  border-color: #b9add3;
}

.gate-note,
.sprout-brief {
  margin-top: 12px;
  padding: 12px 14px;
  color: var(--ink-soft);
  background: var(--moss);
  border: 1px solid #b9add3;
  border-left: 4px solid var(--brass);
  border-radius: 18px;
  line-height: 1.65;
}

.sprout-brief {
  display: grid;
  gap: 4px;
}

.sprout-brief span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sprout-brief strong {
  color: var(--ink);
}

.seed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 0;
  padding: 14px;
  color: var(--ink);
  background: #f7f2ec;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.seed-item input {
  width: 18px;
  margin-top: 3px;
}

.seed-item strong,
.seed-item em,
.seed-item small {
  display: block;
}

.seed-item em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
}

.seed-item small {
  margin-top: 7px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.sprout-report pre {
  max-height: 620px;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
  color: var(--ink-soft);
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  line-height: 1.65;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: none;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(23, 35, 29, 0.48);
  backdrop-filter: blur(3px);
}

dialog form {
  padding: 24px;
}

.modal-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 22px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.62);
  border: 1px dashed var(--line);
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 28px 30px 18px;
  }

  .sidebar::before {
    display: none;
  }

  .side-note {
    position: static;
    margin-top: 18px;
  }

  .stats-grid,
  .content-grid,
  .two-col,
  .workbench,
  .source-layout,
  .critique-grid,
  .sprout-steps,
  .link-note-top {
    grid-template-columns: 1fr;
  }

  .link-note-shell {
    padding-top: 0;
  }

  .link-note-top {
    margin-bottom: 22px;
  }

  .link-note-top h2 {
    font-size: 24px;
  }

  .confirm-button {
    width: 100%;
    min-height: 56px;
    border-radius: 24px;
    font-size: 18px;
  }

  .link-input-card {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
  }

  .link-file-icon {
    width: 42px;
    height: 42px;
  }

  .link-input-card input {
    min-width: 0;
    font-size: 17px;
  }

  main {
    padding: 10px 16px 36px;
  }

  .topbar,
  .toolbar,
  .ask-box,
  .brief-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    min-height: 24px;
    padding: 0 2px;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .topbar > div {
    max-width: 100%;
    padding-right: 0;
  }

  .topbar::before {
    display: none;
  }

  .topbar::after {
    display: none;
  }

  .brand-slogan {
    display: block;
    margin: 12px 0 18px;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
  }
}
