:root {
  --bg:#f6f7f3;
  --surface:#fff;
  --ink:#27332b;
  --muted:#6e786a;
  --line:#e5e9e1;
  --green:#ccea84;
  --deep:#354c36;
  --soft:#edf3e5;
  --radius:18px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  font-size:14px;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
}
button,input,textarea,select {
  font:inherit;
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.5;
  cursor:wait;
}
a {
  color:inherit;
  text-decoration:none;
}
button {
  color:inherit;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #799b46;
  outline-offset:3px;
}
button svg,a svg {
  flex-shrink:0;
}
svg.icon {
  width:19px;
  height:19px;
  stroke:currentColor;
  stroke-width:1.65;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-weight:500;
  letter-spacing:-1.8px;
}
h2 {
  font-weight:600;
  font-size:20px;
  letter-spacing:-.5px;
}
h3 {
  font-size:16px;
  font-weight:600;
}
small {
  font-size:12px;
}
hr {
  border:0;
  border-top:1px solid var(--line);
  margin:24px 0;
}
button {
  border:0;
  background:none;
}
textarea {
  resize:vertical;
}
input,textarea,select {
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px 13px;
  color:var(--ink);
  background:#fff;
  width:100%;
}
input::placeholder,textarea::placeholder {
  color:#9a9f99;
}
label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin-bottom:7px;
}
label.check {
  display:flex;
  gap:10px;
  align-items:flex-start;
  line-height:1.6;
  font-weight:400;
}
label.check input {
  width:auto;
  margin-top:5px;
}
.muted {
  color:var(--muted);
}
.tiny {
  font-size:11px;
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:10px;
  font-weight:650;
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:6px;
  background:var(--soft);
  font-size:10px;
  font-weight:500;
  color:#5c7154;
}
.pill.example {
  background:#f1f1ed;
  color:#858b7e;
}
.pill.warn {
  background:#fff2dc;
  color:#946b31;
}
.pill.danger {
  background:#ffe9e7;
  color:#a54b46;
}
.dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#7d9d5d;
  display:inline-block;
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:10px 15px;
  font-size:12px;
  font-weight:550;
  background:#fff;
  white-space:nowrap;
  transition:transform .15s,background .15s;
}
.btn:hover {
  background:#f3f5ee;
}
.btn.primary {
  background:var(--deep);
  color:white;
  border-color:var(--deep);
}
.btn.primary:hover {
  background:#243c29;
}
.btn.lime {
  background:var(--green);
  border-color:var(--green);
}
.btn.small {
  padding:7px 11px;
  font-size:11px;
  border-radius:8px;
}
.btn.ghost {
  background:transparent;
  border-color:transparent;
}
.btn.danger {
  color:#a94e46;
}
.icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  padding:8px;
  min-width:34px;
  min-height:34px;
}
.icon-btn:hover {
  background:#edf1e8;
}
.text-btn {
  font-size:12px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#5d6b56;
  padding:5px 0;
}
.text-btn:hover {
  color:#192e1e;
}
.row {
  display:flex;
  align-items:center;
  gap:10px;
}
.between {
  justify-content:space-between;
}
.wrap {
  flex-wrap:wrap;
}
.grow {
  flex:1;
  min-width:0;
}
.gap-top {
  margin-top:22px;
}
.stack {
  display:flex;
  flex-direction:column;
  gap:16px;
}
.divider {
  width:1px;
  height:20px;
  background:var(--line);
}
.shell {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  min-height:100vh;
  max-width:1680px;
  margin:0 auto;
}
.sidebar {
  padding:33px 20px 22px 26px;
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
  background:var(--bg);
}
.brand {
  font-size:22px;
  letter-spacing:-1.1px;
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:650;
}
.brand-mark {
  height:35px;
  width:35px;
  flex-shrink:0;
  background:var(--green);
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:Georgia,serif;
  font-size:32px;
  letter-spacing:-7px;
  padding-right:6px;
  line-height:1;
}
.brand-mark span {
  transform:translateY(3px);
}
.brand-sub {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.45px;
  margin-top:8px;
  margin-left:44px;
}
.sidebar .brand {
  font-size:19px;
  letter-spacing:-1px;
  gap:7px;
}
.sidebar .brand-mark {
  width:29px;
  height:32px;
  font-size:29px;
}
.nav-label {
  font-size:9px;
  letter-spacing:1.6px;
  color:#92988f;
  margin:49px 12px 15px;
}
.nav {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nav a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 13px;
  border-radius:9px;
  color:#798174;
  font-size:12px;
  font-weight:500;
}
.nav a:hover {
  background:#ecefe6;
}
.nav a.active {
  background:#e8eedf;
  color:#334b2f;
}
.nav a .count {
  margin-left:auto;
  font-size:10px;
  background:#d5dfc7;
  padding:2px 6px;
  border-radius:5px;
}
.sidebar-note {
  margin-top:auto;
  border:1px solid #dce4d0;
  border-radius:12px;
  padding:16px 13px;
  background:#eef2e7;
}
.sidebar-note p {
  font-size:11px;
  line-height:1.65;
  margin:9px 0 11px;
  color:#7a8272;
}
.sidebar-note .eyebrow {
  font-size:9px;
  letter-spacing:1.1px;
}
.sidebar-footer {
  margin-top:20px;
  display:flex;
  gap:8px;
  align-items:center;
  font-size:10px;
  color:#93998d;
}
.content-shell {
  min-width:0;
}
.topbar {
  height:91px;
  padding:0 34px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:18px;
  background:#fbfcf9;
}
.breadcrumb {
  font-size:12px;
  color:#8a9185;
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
}
.breadcrumb strong {
  color:#58614f;
  font-weight:500;
}
.top-search {
  display:flex;
  align-items:center;
  gap:9px;
  background:#f1f3ed;
  border-radius:8px;
  padding:0 12px;
  width:230px;
  color:#9bA18f;
}
.top-search input {
  border:0;
  background:transparent;
  font-size:11px;
  padding:10px 0;
  outline:none;
}
.top-search kbd {
  font-size:10px;
  border:1px solid #d9ded3;
  border-radius:3px;
  padding:1px 4px;
}
.user-chip {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
}
.user-avatar {
  height:31px;
  width:31px;
  border-radius:50%;
  background:#e8eddf;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#55684a;
  font-size:12px;
  font-weight:600;
}
.mobile-brand,.mobile-nav {
  display:none;
}
.dev-banner {
  background:#fff5dd;
  border-bottom:1px solid #f0e4c7;
  font-size:10px;
  padding:7px 34px;
  color:#8c7448;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 265px;
  gap:30px;
  padding:30px 34px;
}
.main {
  min-width:0;
}
.right-rail {
  display:flex;
  flex-direction:column;
  gap:24px;
}
.rail-card {
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:20px;
}
.rail-card h3 {
  font-size:14px;
  font-weight:600;
}
.rail-card .subtitle {
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
}
.rail-heading {
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:17px;
}
.rail-heading .icon {
  width:16px;
  height:16px;
}
.rail-people {
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 0;
}
.rail-people .avatar {
  width:37px;
  height:37px;
  border-radius:11px;
}
.rank {
  width:12px;
  color:#a0a594;
  font-size:11px;
}
.rail-people p {
  font-size:12px;
  font-weight:550;
}
.rail-people small {
  font-size:10px;
  color:var(--muted);
}
.rail-total {
  font-size:12px;
  font-weight:500;
  margin-left:auto;
  color:#67775c;
}
.rail-foot {
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:10px;
  font-size:10px;
  line-height:1.6;
  color:#949b8e;
}
.rail-link {
  font-size:11px;
  width:100%;
  margin-top:14px;
  justify-content:space-between;
}
.activity {
  border-left:1px solid #dce5d2;
  padding-left:15px;
  margin:18px 0 4px 4px;
  position:relative;
}
.activity:before {
  content:"";
  position:absolute;
  left:-4px;
  top:3px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#9fbd7b;
  box-shadow:0 0 0 4px #fff;
}
.activity p {
  font-size:11px;
  line-height:1.7;
}
.activity small {
  font-size:10px;
  color:#9ba391;
}
.mini-info {
  padding:0 8px;
  font-size:10px;
  line-height:1.9;
  color:#929a89;
}
.mini-info a {
  text-decoration:underline;
  text-underline-offset:3px;
}
.rail-doodle {
  background:#edf0e7;
  min-height:156px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  margin-bottom:16px;
  overflow:hidden;
}
.rail-doodle .avatar {
  width:100px;
  transform:rotate(-8deg);
}
.rail-doodle .float-note {
  position:absolute;
  right:10px;
  top:25px;
  font-family:Georgia,serif;
  font-style:italic;
  font-size:14px;
  transform:rotate(10deg);
  color:#6b7a5e;
}
.rail-doodle:after {
  content:"✦";
  position:absolute;
  left:23px;
  bottom:25px;
  font-size:24px;
  color:#9cae83;
}
.hero {
  background:#eaf0e0;
  position:relative;
  border:1px solid #e0e8d4;
  border-radius:var(--radius);
  padding:31px 31px 28px;
  min-height:258px;
  overflow:hidden;
}
.hero .eyebrow {
  font-size:9px;
  color:#718260;
  letter-spacing:2px;
  display:flex;
  gap:7px;
  align-items:center;
}
.hero h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:42px;
  line-height:1.1;
  letter-spacing:-1.5px;
  margin-top:16px;
  max-width:380px;
  position:relative;
  z-index:1;
}
.hero p {
  max-width:295px;
  font-size:11px;
  color:#7b876e;
  line-height:1.9;
  margin:14px 0 21px;
  position:relative;
  z-index:1;
}
.hero .btn {
  position:relative;
  z-index:1;
}
.hero-art {
  position:absolute;
  right:-10px;
  bottom:10px;
  width:260px;
  height:220px;
  pointer-events:none;
}
.hero-art .avatar {
  position:absolute;
  width:140px;
  filter:drop-shadow(0 8px 6px #465e4312);
}
.hero-art .one {
  left:0;
  bottom:0;
  transform:rotate(-12deg);
}
.hero-art .two {
  right:0;
  top:-4px;
  transform:rotate(10deg);
  width:133px;
}
.hero-art .three {
  right:-6px;
  bottom:-13px;
  transform:rotate(8deg);
  width:130px;
}
.hero-art .orbit {
  position:absolute;
  inset:0;
  border:1px dashed #acbb9580;
  border-radius:50%;
  transform:rotate(-25deg);
}
.hero-art .spark {
  position:absolute;
  color:#71845c;
  font-family:Georgia,serif;
  font-size:23px;
}
.hero-art .s1 {
  left:36px;
  top:18px;
}
.hero-art .s2 {
  right:19px;
  top:97px;
}
.hero-art .bubble {
  position:absolute;
  left:14px;
  top:66px;
  transform:rotate(-7deg);
  font-size:10px;
  padding:8px 13px;
  background:#fbfff7;
  border:1px solid #dfe7d5;
  border-radius:10px;
  color:#728364;
  z-index:2;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:27px 0 15px;
  gap:10px;
}
.section-heading h2 {
  font-size:16px;
}
.section-heading .caption {
  color:#8b9381;
  font-size:11px;
  margin-left:7px;
}
.characters {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.character-card {
  background:white;
  border:1px solid var(--line);
  border-radius:13px;
  padding:15px;
  transition:border-color .15s,transform .15s;
  min-width:0;
}
.character-card:hover {
  border-color:#bacaa8;
  transform:translateY(-2px);
}
.portrait-stage {
  width:100%;
  height:114px;
  background:var(--tint,#f1f3eb);
  border-radius:9px;
  margin-bottom:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.portrait-stage .avatar {
  height:110px;
  width:110px;
  transform:translateY(7px);
  transition:transform .2s;
}
.character-card:hover .portrait-stage .avatar {
  transform:translateY(4px) rotate(-3deg);
}
.portrait-stage .species {
  position:absolute;
  left:9px;
  top:8px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:7px;
  color:#7f8b73;
}
.portrait-stage .open-profile {
  position:absolute;
  right:4px;
  top:3px;
  color:#8c987d;
}
.character-card h3 {
  font-size:14px;
}
.character-card .tagline {
  font-size:10px;
  line-height:1.7;
  color:#8a9280;
  min-height:34px;
  margin:5px 0 10px;
}
.character-card .traits {
  font-size:8px;
  color:#7b866f;
  letter-spacing:.1px;
}
.character-card .chat-btn {
  width:100%;
  margin-top:13px;
  font-size:10px;
  padding:8px;
}
.card-name {
  display:flex;
  align-items:center;
  gap:6px;
}
.card-name .dot {
  width:4px;
  height:4px;
}
.avatar {
  display:block;
  flex-shrink:0;
}
.avatar svg {
  width:100%;
  height:100%;
  display:block;
}
.stats-line {
  display:flex;
  gap:14px;
  padding:18px 0 0;
  font-size:10px;
  color:#8b9680;
}
.stats-line span {
  display:flex;
  align-items:center;
  gap:5px;
}
.stats-line .icon {
  width:12px;
  height:12px;
}
.feed-tabs {
  display:flex;
  gap:18px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px;
}
.feed-tabs button {
  padding:0 0 12px;
  font-size:11px;
  color:#939a89;
  position:relative;
}
.feed-tabs button.active {
  color:#405735;
}
.feed-tabs button.active:after {
  content:"";
  position:absolute;
  height:2px;
  bottom:-1px;
  left:0;
  right:0;
  background:#819b65;
}
.composer {
  background:white;
  border:1px solid var(--line);
  border-radius:13px;
  margin-bottom:14px;
  padding:16px;
}
.composer-top {
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.composer textarea {
  border:0;
  padding:6px 0;
  background:transparent;
  min-height:43px;
  resize:vertical;
  font-size:11px;
  outline:none;
}
.composer-bottom {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid #f0f2eb;
  padding-top:12px;
  margin-top:5px;
}
.composer-bottom select {
  padding:5px 7px;
  font-size:10px;
  width:auto;
  max-width:150px;
  border-color:transparent;
  background:#f4f6ef;
}
.composer-hint {
  flex:1;
  font-size:9px;
  color:#a0a695;
}
.post {
  border:1px solid var(--line);
  background:white;
  border-radius:13px;
  padding:18px;
  margin-bottom:13px;
}
.post .avatar {
  width:39px;
  height:39px;
  background:#f0f4e9;
  border-radius:12px;
}
.post-name {
  font-size:12px;
  font-weight:600;
}
.post-handle {
  font-size:10px;
  color:#919b85;
  font-weight:400;
}
.post-time {
  font-size:9px;
  color:#a1a895;
}
.post-body {
  font-size:12px;
  line-height:1.9;
  margin:14px 0 15px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#5b6752;
}
.post-actions {
  display:flex;
  align-items:center;
  gap:24px;
}
.post-actions button {
  font-size:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#929c85;
  padding:3px 0;
}
.post-actions button:hover,.post-actions button.liked {
  color:#bc737b;
}
.post-actions .icon {
  width:15px;
  height:15px;
}
.post-actions .liked svg {
  fill:#f2c9ce;
  stroke:#bd8087;
}
.post .source {
  margin-left:auto;
}
.share-card {
  border:1px solid #dee7d2;
  border-radius:9px;
  padding:13px;
  background:#f5f8ef;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  margin-bottom:14px;
}
.share-card small {
  display:block;
  color:#88977a;
  font-size:10px;
  margin-top:4px;
}
.page-heading {
  margin:5px 0 26px;
}
.page-heading .eyebrow {
  color:#8c9c7b;
  margin-bottom:12px;
}
.page-heading h1 {
  font-family:Georgia,serif;
  font-size:37px;
  letter-spacing:-1px;
}
.page-heading p {
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
  margin-top:10px;
  max-width:520px;
}
.toolbar {
  display:flex;
  gap:9px;
  align-items:center;
  margin-bottom:20px;
}
.toolbar input {
  max-width:270px;
  font-size:12px;
}
.toolbar select {
  max-width:180px;
  font-size:12px;
}
.empty {
  border:1px dashed #d6decf;
  border-radius:13px;
  padding:36px 22px;
  text-align:center;
  color:#8b9780;
  background:#f9fbf5;
}
.empty .icon {
  height:30px;
  width:30px;
  margin-bottom:12px;
  color:#9cad86;
}
.empty h3 {
  font-size:15px;
  color:#607252;
  margin-bottom:8px;
}
.empty p {
  font-size:11px;
  line-height:1.9;
  max-width:340px;
  margin:0 auto 15px;
}
.data-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px;
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:22px;
}
.metric {
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:18px;
}
.metric b {
  font-size:25px;
  letter-spacing:-1px;
  font-weight:550;
  display:block;
  margin-bottom:5px;
}
.metric small {
  font-size:10px;
  color:var(--muted);
}
.table-wrap {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:11px;
}
th {
  font-size:9px;
  letter-spacing:.6px;
  font-weight:500;
  text-align:left;
  color:#8c9780;
  padding:15px 13px;
  background:#fafbf7;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
td {
  padding:16px 13px;
  border-bottom:1px solid #edf0e8;
  color:#718164;
}
tr:last-child td {
  border-bottom:0;
}
.table-character .avatar {
  width:38px;
  height:38px;
  background:#edf2e5;
  border-radius:10px;
}
.table-character strong {
  font-size:12px;
  font-weight:600;
  color:#455b3a;
}
.stars {
  color:#bca35b;
  letter-spacing:2px;
  font-size:16px;
  white-space:nowrap;
}
.stars button {
  padding:3px;
  color:#c5ccb9;
  font-size:24px;
}
.stars button.selected {
  color:#bfa34d;
}
.conversation-list {
  display:flex;
  flex-direction:column;
  gap:11px;
}
.conversation-item {
  display:flex;
  gap:14px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  padding:16px;
  text-align:left;
  width:100%;
}
.conversation-item:hover {
  border-color:#bfcfb0;
}
.conversation-item .avatar {
  width:54px;
  height:54px;
  background:#f0f3e9;
  border-radius:13px;
}
.conversation-item h3 {
  font-size:13px;
}
.conversation-item p {
  font-size:11px;
  line-height:1.7;
  color:#8c977e;
  margin-top:5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:440px;
}
.conversation-item small {
  font-size:9px;
  white-space:nowrap;
  color:#9aa58d;
}
.discovery {
  padding:20px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  margin-bottom:13px;
  display:flex;
  gap:14px;
}
.discovery .avatar {
  width:44px;
  height:44px;
  background:#f0f4e8;
  border-radius:12px;
}
.discovery h3 {
  font-size:13px;
  margin:3px 0 8px;
}
.discovery p {
  font-size:11px;
  line-height:1.8;
  color:#8a9780;
}
.discovery blockquote {
  font-family:Georgia,serif;
  font-size:16px;
  line-height:1.6;
  margin:13px 0;
  color:#607153;
}
.discovery .credit {
  font-size:10px;
  color:#a1aa96;
}
.credit strong {
  color:#6b8656;
  font-weight:550;
}
.pipeline {
  display:grid;
  grid-template-columns:1fr 20px 1fr 20px 1fr;
  align-items:center;
  gap:6px;
  margin:20px 0;
}
.pipeline>div {
  border:1px solid var(--line);
  border-radius:10px;
  padding:17px 10px;
  text-align:center;
  background:#fff;
  min-width:0;
}
.pipeline h3 {
  font-size:11px;
  margin:10px 0 5px;
}
.pipeline p {
  font-size:9px;
  line-height:1.7;
  color:#909c83;
  overflow-wrap:anywhere;
}
.pipeline .icon {
  color:#809f61;
}
.invite-code {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  border-bottom:1px solid #edf0e7;
  gap:10px;
}
.invite-code code {
  font-size:12px;
  letter-spacing:1px;
  color:#61734f;
}
.invite-code small {
  font-size:10px;
  color:#89977a;
}
.invite-code:last-child {
  border-bottom:0;
}
.member-header {
  display:flex;
  align-items:center;
  gap:15px;
}
.member-header .user-avatar {
  height:62px;
  width:62px;
  font-size:24px;
}
.member-header h2 {
  font-size:22px;
}
.member-header p {
  font-size:12px;
  color:#8e9b81;
  margin-top:5px;
}
.tree {
  padding:20px;
  font-size:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  overflow:auto;
}
.tree ul {
  list-style:none;
  border-left:1px solid #d9e2ce;
  padding-left:25px;
  margin:12px 0 12px 8px;
}
.tree>ul {
  border:0;
  padding:0;
  margin:0;
}
.tree li {
  padding:10px 0;
  position:relative;
  min-width:240px;
}
.tree li:before {
  content:"";
  width:16px;
  height:1px;
  background:#d9e2ce;
  position:absolute;
  left:-25px;
  top:25px;
}
.tree>ul>li:before {
  display:none;
}
.tree .node {
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:#f4f7ed;
  border:1px solid #e3e9d9;
  border-radius:10px;
  padding:9px 12px;
}
.tree .node small {
  font-size:9px;
  color:#92a17d;
}
.report-item {
  border-bottom:1px solid var(--line);
  padding:16px 0;
}
.report-item:first-child {
  padding-top:0;
}
.report-item:last-child {
  border:0;
  padding-bottom:0;
}
.report-item p {
  font-size:11px;
  color:#8a987c;
  line-height:1.8;
  margin:9px 0;
}
.admin-tabs {
  margin:22px 0;
}
.status-banner {
  padding:12px 15px;
  border:1px solid #e0e7d6;
  background:#f0f5e7;
  border-radius:10px;
  font-size:11px;
  line-height:1.8;
  color:#7b8d6a;
  margin-bottom:18px;
}
dialog {
  border:1px solid #dce4d3;
  border-radius:19px;
  padding:0;
  width:min(600px,calc(100vw - 30px));
  max-height:90vh;
  box-shadow:0 30px 100px #20352030;
  color:var(--ink);
  background:#fbfcf8;
}
dialog::backdrop {
  background:#26302466;
  backdrop-filter:blur(3px);
}
.modal-header {
  padding:22px 24px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid var(--line);
}
.modal-header h2 {
  font-size:18px;
  flex:1;
}
.modal-body {
  padding:24px;
  overflow:auto;
  max-height:calc(90vh - 85px);
}
.modal-body .field {
  margin-bottom:17px;
}
.modal-body .help {
  font-size:10px;
  color:#8c997e;
  line-height:1.8;
  margin-top:7px;
}
.modal-body .btn.primary {
  min-height:40px;
}
.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
}
.profile-hero {
  text-align:center;
  padding:6px 0 23px;
}
.profile-hero .avatar {
  height:145px;
  width:145px;
  margin:0 auto;
  background:#edf3e4;
  border-radius:35px;
}
.profile-hero h2 {
  font-family:Georgia,serif;
  font-size:31px;
  margin:15px 0 7px;
}
.profile-hero p {
  font-size:12px;
  color:#8a977c;
  line-height:1.8;
}
.profile-description {
  font-size:12px;
  line-height:1.9;
  color:#7e8e6d;
  margin:18px 0;
}
.profile-fact {
  font-size:11px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  line-height:1.8;
}
.profile-fact strong {
  font-weight:550;
}
.profile-fact small {
  font-size:9px;
  color:#a0ac92;
  display:block;
}
.login-art {
  display:flex;
  justify-content:center;
  margin-bottom:20px;
}
.login-art .avatar {
  width:90px;
  height:90px;
  margin:-8px;
}
.login-title {
  font-family:Georgia,serif;
  font-size:30px;
  text-align:center;
  letter-spacing:-1px;
}
.login-desc {
  text-align:center;
  font-size:12px;
  line-height:1.9;
  color:#879779;
  margin:13px auto 25px;
  max-width:350px;
}
.login-provider {
  width:100%;
  min-height:43px;
}
.login-disclosure {
  font-size:10px;
  line-height:1.9;
  color:#97a18c;
  margin:20px 0 0;
}
.error-box {
  background:#fff0e8;
  border:1px solid #efd8cb;
  color:#ae745b;
  border-radius:9px;
  padding:12px;
  font-size:11px;
  line-height:1.8;
  margin-bottom:16px;
}
.success-box {
  background:#eff5e4;
  border:1px solid #dce6cc;
  color:#71885a;
  border-radius:9px;
  padding:12px;
  font-size:11px;
  line-height:1.8;
  margin-bottom:16px;
}
#form-error:empty {
  display:none;
}
#toast {
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translate(-50%,20px);
  background:#354b33;
  color:#fff;
  border:1px solid #738861;
  padding:13px 20px;
  border-radius:10px;
  font-size:12px;
  z-index:20;
  box-shadow:0 6px 30px #273c2a20;
  max-width:min(540px,90vw);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
}
#toast.visible {
  opacity:1;
  transform:translate(-50%,0);
}
#toast.error {
  background:#81594f;
  border-color:#a8796f;
}
.initial-loading {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  min-height:100vh;
  gap:20px;
  color:#8d9b80;
  font-size:12px;
}
.chat-dialog {
  width:min(760px,calc(100vw - 30px));
}
.chat-dialog .modal-body {
  padding:0;
  display:flex;
  flex-direction:column;
  height:76vh;
  max-height:820px;
  overflow:hidden;
}
.chat-header .avatar {
  width:38px;
  height:38px;
  background:#edf2e6;
  border-radius:10px;
}
.chat-header h2 {
  font-size:15px;
}
.chat-header .muted {
  font-size:10px;
  margin-top:4px;
}
.chat-notice {
  font-size:9px;
  line-height:1.7;
  color:#8d9c7b;
  background:#f0f4e7;
  padding:9px 22px;
  border-bottom:1px solid var(--line);
}
.chat-messages {
  flex:1;
  overflow:auto;
  padding:22px;
  min-height:150px;
  scroll-behavior:smooth;
}
.message {
  display:flex;
  gap:10px;
  margin-bottom:22px;
  align-items:flex-start;
}
.message .avatar,.message .user-avatar {
  width:29px;
  height:29px;
  border-radius:8px;
}
.message-content {
  max-width:85%;
  flex:1;
}
.message-meta {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  margin-bottom:7px;
  color:#7c906b;
}
.message-body {
  font-size:12px;
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:#fff;
  border:1px solid #e7ecdf;
  border-radius:0 12px 12px;
  padding:13px 16px;
  color:#617354;
}
.message.user .message-body {
  background:#eaf0df;
  border-color:#e0e8d5;
}
.message.inherited {
  opacity:.75;
}
.message-tools {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:6px;
  font-size:9px;
  color:#9ba88e;
}
.message-tools button {
  font-size:9px;
  color:#81976d;
  padding:3px 0;
}
.message-tools button .icon {
  height:12px;
  width:12px;
}
.chat-form {
  padding:14px 22px 18px;
  border-top:1px solid var(--line);
  background:#f7f9f2;
}
.chat-form textarea {
  font-size:12px;
  min-height:66px;
  max-height:150px;
  resize:vertical;
  background:#fff;
}
.chat-form .row {
  margin-top:10px;
}
.chat-form .muted {
  font-size:9px;
  flex:1;
}
.typing {
  display:flex;
  gap:5px;
  padding:14px;
}
.typing span {
  width:5px;
  height:5px;
  background:#9db38a;
  border-radius:50%;
  animation:pulse 1s infinite;
}
.typing span:nth-child(2) {
  animation-delay:.15s;
}
.typing span:nth-child(3) {
  animation-delay:.3s;
}
@keyframes pulse {
  50% {
    opacity:.25;
    transform:translateY(-3px);
  }
}
.branch-marker {
  display:flex;
  align-items:center;
  gap:9px;
  color:#9dab8f;
  font-size:9px;
  border-top:1px dashed #dce5d0;
  padding-top:14px;
  margin:3px 0 20px;
}
.branch-marker .icon {
  width:13px;
  height:13px;
}
.share-top {
  padding:20px 22px;
  background:#eff3e7;
  border-bottom:1px solid var(--line);
}
.share-top h2 {
  font-family:Georgia,serif;
  font-size:24px;
  margin-bottom:8px;
}
.share-top p {
  font-size:11px;
  color:#879878;
  line-height:1.8;
}
.share-controls {
  padding:17px 22px;
  border-top:1px solid var(--line);
  background:#f6f8f0;
}
.share-link {
  font-family:monospace;
  font-size:11px;
  word-break:break-all;
  background:#f0f4e7;
  padding:14px;
  border-radius:10px;
  margin:17px 0;
}
.rating-line {
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  margin:15px 0;
}
.rating-line small {
  color:#98a68a;
  font-size:10px;
}
.reply {
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.reply strong {
  font-size:11px;
  color:#768d62;
}
.reply p {
  font-size:12px;
  line-height:1.9;
  color:#869777;
  margin-top:6px;
}
.reply small {
  font-size:9px;
  color:#a4af99;
}
.footer-note {
  font-size:10px;
  color:#a5ae9a;
  text-align:center;
  line-height:1.8;
  margin:28px 0 8px;
}
@media(min-width:1500px) {
  .layout {
    grid-template-columns:minmax(0,1fr) 300px;
    padding:36px 45px;
    gap:38px;
  }
  .hero {
    min-height:280px;
  }
  .hero h1 {
    font-size:49px;
  }
  .hero-art {
    right:10px;
    width:300px;
  }
  .portrait-stage {
    height:140px;
  }
  .portrait-stage .avatar {
    height:132px;
    width:132px;
  }
  .character-card {
    padding:18px;
  }
  .character-card .tagline {
    font-size:11px;
  }
}
@media(max-width:1200px) {
  .shell {
    grid-template-columns:185px minmax(0,1fr);
  }
  .sidebar {
    padding-left:17px;
    padding-right:14px;
  }
  .brand {
    font-size:19px;
  }
  .brand-sub {
    font-size:9px;
  }
  .layout {
    padding:25px;
    gap:22px;
    grid-template-columns:minmax(0,1fr) 225px;
  }
  .topbar {
    padding:0 25px;
  }
  .hero {
    padding:27px 24px;
  }
  .hero h1 {
    font-size:36px;
  }
  .hero-art {
    right:-53px;
    opacity:.8;
    width:230px;
  }
  .hero p {
    max-width:250px;
  }
  .character-card {
    padding:12px;
  }
  .rail-card {
    padding:16px;
  }
  .character-card .tagline {
    font-size:9px;
  }
  .dev-banner {
    padding:7px 25px;
  }
}
@media(max-width:1020px) {
  .layout {
    grid-template-columns:minmax(0,1fr);
  }
  .right-rail {
    display:none;
  }
  .top-search {
    width:200px;
  }
  .hero-art {
    right:5px;
    opacity:1;
    width:270px;
  }
  .hero h1 {
    font-size:44px;
  }
  .hero p {
    max-width:310px;
  }
  .portrait-stage {
    height:145px;
  }
  .portrait-stage .avatar {
    width:135px;
    height:135px;
  }
  .character-card .tagline {
    font-size:11px;
  }
  .hero {
    min-height:270px;
  }
}
@media(max-width:740px) {
  .shell {
    display:block;
  }
  .sidebar {
    display:none;
  }
  .topbar {
    height:72px;
    padding:0 20px;
    gap:10px;
  }
  .breadcrumb {
    display:none;
  }
  .mobile-brand {
    display:flex;
    flex:1;
  }
  .mobile-brand .brand {
    font-size:21px;
  }
  .top-search {
    display:none;
  }
  .topbar>.btn {
    font-size:10px;
    padding:9px;
  }
  .topbar .divider {
    display:none;
  }
  .user-chip span:last-child {
    display:none;
  }
  .mobile-nav {
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fbfcf9f5;
    backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
    height:65px;
    z-index:5;
    padding:0 6px;
    justify-content:space-around;
  }
  .mobile-nav a {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:8px;
    color:#97a086;
    min-width:54px;
  }
  .mobile-nav a.active {
    color:#435c33;
  }
  .mobile-nav .icon {
    width:19px;
    height:19px;
  }
  .layout {
    padding:20px 18px 90px;
  }
  .dev-banner {
    padding:7px 20px;
    font-size:9px;
  }
  .hero {
    padding:25px;
    min-height:265px;
  }
  .hero h1 {
    font-size:38px;
    max-width:300px;
  }
  .hero p {
    max-width:235px;
    font-size:10px;
  }
  .hero-art {
    width:210px;
    right:-38px;
    bottom:-20px;
    opacity:.65;
  }
  .hero-art .one {
    width:115px;
  }
  .hero-art .two {
    width:110px;
  }
  .hero-art .three {
    width:110px;
  }
  .hero-art .bubble {
    font-size:8px;
    left:5px;
    top:80px;
  }
  .hero-art .s1 {
    left:15px;
    top:40px;
  }
  .characters {
    gap:10px;
  }
  .character-card {
    padding:10px;
  }
  .portrait-stage {
    height:110px;
  }
  .portrait-stage .avatar {
    height:103px;
    width:103px;
  }
  .character-card h3 {
    font-size:13px;
  }
  .character-card .tagline {
    font-size:9px;
    min-height:45px;
  }
  .character-card .traits {
    font-size:7px;
  }
  .character-card .chat-btn {
    font-size:9px;
    padding:8px 4px;
  }
  .character-card .chat-btn .icon {
    width:13px;
    height:13px;
  }
  .page-heading h1 {
    font-size:33px;
  }
  .post {
    padding:16px;
  }
  .post-body {
    font-size:12px;
  }
  .stats-line {
    gap:10px;
    font-size:9px;
  }
  .metric {
    padding:13px;
  }
  .metric b {
    font-size:23px;
  }
  .metric small {
    font-size:9px;
  }
  .conversation-item {
    padding:12px;
  }
  .conversation-item p {
    max-width:220px;
    font-size:10px;
  }
  .conversation-item small {
    font-size:8px;
  }
  .modal-body {
    padding:20px;
  }
  .modal-header {
    padding:18px 20px;
  }
  .modal-header h2 {
    font-size:16px;
  }
  .chat-dialog {
    width:calc(100vw - 16px);
    max-height:96dvh;
  }
  .chat-dialog .modal-body {
    height:80dvh;
  }
  .chat-dialog .modal-header {
    padding:13px;
  }
  .chat-dialog .modal-header .btn {
    font-size:10px;
    padding:8px;
  }
  .chat-messages {
    padding:16px;
  }
  .message-content {
    max-width:90%;
  }
  .message-body {
    padding:11px 13px;
  }
  .chat-form {
    padding:12px 16px;
  }
  .pipeline {
    grid-template-columns:1fr 13px 1fr 13px 1fr;
    gap:3px;
  }
  .pipeline>div {
    padding:15px 6px;
  }
  .pipeline h3 {
    font-size:10px;
  }
  .pipeline p {
    font-size:8px;
  }
  .composer-hint {
    display:none;
  }
  .composer-bottom {
    justify-content:space-between;
  }
  .section-heading .caption {
    display:none;
  }
  .toolbar {
    flex-wrap:wrap;
  }
  .toolbar input {
    max-width:none;
    flex:1;
    min-width:130px;
  }
  .toolbar select {
    width:auto;
    max-width:140px;
  }
  .discovery {
    padding:16px;
    gap:10px;
  }
  .discovery .avatar {
    width:34px;
    height:34px;
  }
  .discovery blockquote {
    font-size:14px;
  }
  .profile-hero .avatar {
    height:130px;
    width:130px;
  }
  .share-top h2 {
    font-size:21px;
  }
  .share-controls .muted {
    display:none;
  }
}
@media(max-width:390px) {
  .characters {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .characters.featured .character-card:last-child {
    display:none;
  }
  .hero h1 {
    font-size:34px;
  }
  .hero-art {
    right:-85px;
  }
  .hero p {
    max-width:210px;
  }
  .topbar {
    padding:0 15px;
  }
  .mobile-brand .brand {
    font-size:18px;
  }
  .form-row {
    grid-template-columns:1fr;
  }
  .stats-line span:last-child {
    display:none;
  }
  .conversation-item p {
    max-width:175px;
  }
  .metric-grid {
    gap:8px;
  }
  .topbar>.btn .icon {
    display:none;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
/* Steering controls and human-stepped backrooms. */
[hidden] { display: none !important; }
.steering-editor { border: 1px solid var(--line); border-radius: 10px; padding: 13px; margin: 18px 0; background: #f2f6eaf0; }
.steering-editor > summary { font-size: 11px; color: #647d50; cursor: pointer; }
.steering-editor > .help { margin: 14px 0; }
.steer-slot { border-top: 1px solid #dfe7d4; padding-top: 14px; margin-top: 13px; }
.steer-slot .field { margin-bottom: 8px; }
.steer-slot label { font-size: 10px; line-height: 2; }
.steer-slot input, .steer-slot select { font-size: 11px; padding: 8px; }
.steer-neuron { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.steer-config > .form-row { margin-top: 9px; }
.wide-dialog { width: min(850px, calc(100vw - 30px)); }
.backroom-pair { display: flex; width: 80px; flex-shrink: 0; }
.backroom-pair .avatar { width: 49px; height: 49px; }
.backroom-pair .avatar + .avatar { margin-left: -18px; transform: rotate(8deg); }
.backroom-steers { padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 10px; color: #82956e; background: #f6f8f0; }
.backroom-steers summary { cursor: pointer; }
.backroom-steers p { margin-top: 12px; line-height: 1.8; }
.audit-detail { min-width: 220px; max-width: 340px; font-size: 10px; line-height: 1.7; }
.audit-detail summary { cursor: pointer; overflow-wrap: anywhere; }
.audit-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-nav a { min-width: 42px; }
@media (max-width: 500px) {
  #backroom-create-form > .form-row { grid-template-columns: 1fr; }
  .backroom-pair { width: 67px; }
  .backroom-pair .avatar { width: 43px; height: 43px; }
  .backroom-pair .avatar + .avatar { margin-left: -19px; }
  .steering-editor { padding: 11px; }
}
