:root {
  --bg: #f3f6f5;
  --panel: #ffffff;
  --panel-soft: #f7f9f8;
  --line: #dde5e2;
  --line-strong: #c9d5d1;
  --text: #17221f;
  --muted: #66746f;
  --primary: #126b57;
  --primary-2: #17866d;
  --primary-soft: #e5f4ef;
  --green: #147a61;
  --green-soft: #e3f5ee;
  --red: #bd3f42;
  --amber: #aa6c10;
  --amber-soft: #fff3d8;
  --cobalt: #315ea8;
  --nav: #172622;
  --nav-soft: #22342f;
  --shadow: 0 18px 44px rgba(24, 45, 39, .10);
}

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

body {
  background:
    linear-gradient(rgba(18, 107, 87, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 107, 87, .022) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--primary);
}

button,
.btn,
.nav button,
.chat-session,
.recharge-package,
.ai-rewrite-modes button {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-page {
  place-items: center start;
  padding: clamp(24px, 6vw, 88px);
  background-color: #dce6e2;
  background-position: center;
}

.login-overlay {
  background: linear-gradient(90deg, rgba(16, 30, 27, .9) 0%, rgba(16, 30, 27, .68) 44%, rgba(16, 30, 27, .1) 100%);
}

.login-panel {
  width: min(440px, calc(100vw - 36px));
  padding: 36px;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 72px rgba(8, 20, 17, .28);
  backdrop-filter: blur(18px);
}

.login-brand {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.login-brand img,
.brand img,
.topbar-brand img {
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 6px 16px rgba(6, 25, 19, .18);
}

.login-brand strong {
  font-size: 24px;
  color: #15231f;
}

.login-brand span {
  color: var(--muted);
}

.layout {
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 12px 18px;
  overflow-y: auto;
  border-right: 0;
  background: var(--nav);
  box-shadow: 8px 0 26px rgba(15, 32, 27, .08);
}

.sidebar::before {
  display: none;
}

.brand {
  min-height: 64px;
  margin: 0 4px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #f5faf8;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong {
  color: #fff;
  font-size: 16px;
}

.brand span {
  color: #91aaa2;
}

.nav {
  gap: 5px;
  margin-top: 16px;
  padding-bottom: 20px;
}

.nav button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #aebfba;
}

.nav-icon {
  color: #73978c;
}

.nav button:hover {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.nav button:hover .nav-icon {
  color: #8fd6c2;
}

.nav button.active,
.nav .nav-link.active,
.nav-parent-active,
.nav-group.open .nav-group-toggle {
  border-color: rgba(105, 211, 178, .15);
  background: #edf9f5;
  color: #115d4c;
  box-shadow: 0 5px 16px rgba(3, 15, 11, .16);
  font-weight: 700;
}

.nav button.active .nav-icon,
.nav .nav-link.active .nav-icon,
.nav-parent-active .nav-icon {
  color: var(--primary-2);
}

.nav .nav-link.active::after {
  width: 3px;
  background: var(--primary-2);
}

.nav-sub .nav-link {
  color: #91aaa2;
}

.main {
  grid-template-rows: 68px minmax(0, 1fr);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(201, 213, 209, .82);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px);
}

.topbar strong {
  color: #18231f;
  font-size: 18px;
}

.content {
  padding: 22px 24px 32px;
}

.summary-strip {
  gap: 12px;
}

.stat,
.panel,
.chat-relay {
  border-color: var(--line);
  box-shadow: 0 7px 22px rgba(28, 47, 41, .045);
}

.stat {
  position: relative;
  min-height: 112px;
  padding: 19px;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary-2);
}

.stat:nth-child(2)::before {
  background: var(--cobalt);
}

.stat:nth-child(3)::before {
  background: var(--amber);
}

.stat:nth-child(4)::before {
  background: #8a5d9e;
}

.stat strong {
  color: #15231f;
  font-size: 29px;
}

.panel {
  padding: 19px;
}

.panel h2,
.section-heading h2,
.ai-rewrite-panel-head h3 {
  color: #1b2824;
}

.chart-panel canvas {
  filter: saturate(.84);
}

.input,
.select,
.textarea,
.chat-composer textarea,
.dev-api-field textarea {
  border-color: var(--line-strong);
  background: #fbfcfc;
}

.input:hover,
.select:hover,
.textarea:hover,
.chat-composer textarea:hover {
  border-color: #aabbb5;
}

.input:focus,
.select:focus,
.textarea:focus,
.chat-composer textarea:focus {
  border-color: var(--primary-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 134, 109, .11);
}

.btn {
  border-radius: 6px;
  font-weight: 650;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 5px 13px rgba(18, 107, 87, .18);
}

.btn.primary:hover {
  border-color: var(--primary-2);
  background: var(--primary-2);
  box-shadow: 0 7px 18px rgba(18, 107, 87, .24);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .86);
}

.btn.ghost:hover {
  border-color: #b9c9c3;
  background: #fff;
}

.pill {
  border: 1px solid #d6dfdc;
  background: #f1f4f3;
}

.pill.green {
  border-color: #bfe3d7;
  background: var(--green-soft);
  color: #0f6953;
}

.segmented,
.chat-mode {
  border-color: var(--line);
  background: #edf2f0;
}

.segmented button.active,
.chat-mode button.active {
  color: var(--primary);
}

.table-wrap {
  border-color: var(--line);
  background: #fff;
}

.info-table th,
.table-wrap th {
  background: #f5f8f7;
  color: #52625c;
}

.info-table tr:hover td,
.table-wrap tbody tr:hover {
  background: #f7faf9;
}

.skill-center-head > div {
  min-height: 116px;
  border-top: 0;
  border-left: 3px solid var(--primary-2);
  box-shadow: 0 7px 22px rgba(28, 47, 41, .045);
}

.skill-center-head > div:nth-child(2) {
  border-left-color: var(--cobalt);
}

.skill-center-head > div:nth-child(3) {
  border-left-color: var(--amber);
}

.skill-description {
  border-left-color: var(--primary-2);
  border-radius: 0 6px 6px 0;
  background: #f3f8f6;
}

.ai-rewrite-hero,
.paper-agent-hero,
.software-paper-hero {
  border-color: var(--line);
  background: #f6faf8;
}

.ai-rewrite-notice,
.paper-agent-note {
  border-color: #edd9ad;
  background: #fff9eb;
}

.ai-rewrite-modes button.active,
.paper-agent-models label.active,
.recharge-package.selected,
.recharge-package:hover {
  border-color: #76b9a7;
  background: #eff9f5;
  box-shadow: 0 5px 16px rgba(18, 107, 87, .08);
}

.chat-relay {
  height: calc(100vh - 114px);
  min-height: 620px;
  grid-template-columns: 264px minmax(0, 1fr);
  background: #fff;
}

.chat-sessions {
  padding: 16px 13px;
  border-color: var(--line);
  background: #f2f6f4;
}

.chat-session {
  min-height: 62px;
  border-radius: 6px;
}

.chat-session:hover,
.chat-session.active {
  border-color: #cbd8d3;
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 47, 40, .06);
}

.chat-session.active {
  border-left: 3px solid var(--primary-2);
}

.chat-head {
  min-height: 70px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, .92);
}

.chat-messages {
  padding: 26px clamp(18px, 4vw, 58px);
  background: #f7f9f8;
}

.chat-message {
  width: min(100%, 980px);
  max-width: 980px;
  margin-bottom: 20px;
}

.chat-bubble {
  max-width: min(88%, 860px);
  padding: 15px 17px;
  border-color: #d8e1de;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 44, 38, .045);
  line-height: 1.75;
}

.chat-message:not(.user) .chat-bubble {
  width: min(calc(100% - 48px), 860px);
}

.chat-message.user .chat-bubble {
  border-color: #b9dfd3;
  background: #eaf6f2;
}

.chat-avatar {
  border-radius: 7px;
  background: var(--cobalt);
}

.chat-message.user .chat-avatar {
  background: var(--primary);
}

.chat-composer {
  padding: 14px 20px 16px;
  border-color: var(--line);
  background: #fff;
}

.chat-composer textarea {
  min-height: 84px;
}

.chat-empty {
  min-height: 280px;
}

.chat-empty strong {
  color: var(--primary);
}

.recharge-summary,
.recharge-methods,
.recharge-submit-row,
.recharge-order-detail {
  border-color: var(--line);
}

.modal-mask {
  background: rgba(14, 29, 24, .55);
  backdrop-filter: blur(3px);
}

.modal {
  border-color: #cbd7d3;
  box-shadow: 0 28px 72px rgba(8, 25, 19, .28);
}

.dev-api-code,
.dev-api-response {
  border-color: #263c35;
  background: #14221e;
  color: #d9e9e4;
}

.toast {
  border: 1px solid rgba(255, 255, 255, .15);
  background: #163b31;
}

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

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

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    width: min(294px, 84vw);
  }

  .topbar {
    min-height: 62px;
    padding: 9px 13px;
  }

  .content {
    padding: 15px 14px 24px;
  }

  .chat-relay {
    height: auto;
  }
}

.paper-management-filters {
  display: grid;
  grid-template-columns: 180px minmax(240px, 1fr) 180px auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.paper-filter-actions,
.paper-management-actions,
.paper-management-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paper-management-actions {
  justify-content: space-between;
  margin-bottom: 12px;
}

.paper-management-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.paper-management-table {
  min-width: 1480px;
}

.paper-management-table th,
.paper-management-table td {
  vertical-align: middle;
}

.paper-name-cell {
  min-width: 230px;
  max-width: 300px;
}

.paper-name-cell strong,
.paper-name-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-name-cell small {
  margin-top: 4px;
  color: var(--muted);
}

.paper-requirement-cell {
  min-width: 240px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.paper-detail-text {
  max-height: 280px;
  margin-top: 8px;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  line-height: 1.7;
}

.research-figure-layout {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.research-figure-layout > * {
  min-width: 0;
  max-width: 100%;
}

.figure-type-library,
.figure-atlas-section,
.figure-gallery-section {
  grid-column: 1 / -1;
  padding: 4px 0 14px;
}

.figure-type-library {
  border-bottom: 1px solid var(--line);
}

.figure-engine-switch {
  width: fit-content;
  margin-bottom: 18px;
}

.figure-engine-switch button {
  min-width: 104px;
  font-weight: 700;
}

.figure-type-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(9, minmax(88px, 1fr));
  gap: 7px;
}

.figure-type-tab {
  min-width: 0;
  min-height: 58px;
  padding: 8px 7px;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  background: #fff;
  color: #252832;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.figure-type-tab:hover {
  border-color: #77a99d;
  background: #f7fbfa;
}

.figure-type-tab.active {
  border-color: #16866d;
  background: #eef8f5;
  box-shadow: inset 3px 0 0 #16866d;
}

.figure-type-tab strong,
.figure-type-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.figure-type-tab strong {
  font-size: 12px;
  line-height: 1.45;
}

.figure-type-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.research-figure-controls,
.research-figure-preview {
  min-height: 650px;
}

.research-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.figure-colors {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.figure-colors legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.figure-colors label {
  cursor: pointer;
}

.figure-colors input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.figure-colors span {
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 1px #d7dae1;
}

.figure-colors input:checked + span {
  box-shadow: 0 0 0 2px #191b21;
}

.figure-data-input {
  min-height: 230px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  line-height: 1.6;
}

.field small {
  color: var(--muted);
  font-weight: 400;
}

.figure-upload {
  min-height: 42px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px dashed #c9c5d3;
  border-radius: 6px;
  background: #faf8fd;
  color: #6d28d9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.figure-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.research-figure-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.research-figure-actions > span {
  min-width: 0;
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.figure-canvas-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 500px;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef0f4;
}

.r-figure-status {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-left: 3px solid #16866d;
  border-radius: 4px;
  background: #eef8f5;
  color: #176653;
  font-size: 12px;
}

.r-figure-status.blocked {
  border-left-color: #d97706;
  background: #fff8eb;
  color: #8a4b08;
}

.r-figure-status.running {
  border-left-color: #315ea8;
  background: #eef4ff;
  color: #244d8d;
}

.r-figure-empty {
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #697180;
  font-size: 13px;
  text-align: center;
}

.research-figure-r-preview {
  width: 100%;
  min-width: 620px;
  display: block;
  border: 1px solid #e1e3e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(54, 49, 69, .08);
}

#research-figure-canvas {
  width: 100%;
  min-width: 620px;
  display: block;
  border: 1px solid #e1e3e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(54, 49, 69, .08);
}

.figure-ai-assistant,
.figure-task-history {
  grid-column: 1 / -1;
}

.figure-ai-assistant form {
  display: grid;
  gap: 12px;
}

.figure-ai-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.figure-ai-presets button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfd9d5;
  border-radius: 5px;
  background: #f7fbfa;
  color: #176653;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.figure-ai-presets button:hover {
  border-color: #16866d;
  background: #eef8f5;
}

.figure-atlas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.figure-atlas-grid button,
.figure-gallery-strip button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.figure-atlas-grid button:hover,
.figure-gallery-strip button:hover {
  border-color: #16866d;
  box-shadow: 0 7px 18px rgba(34, 73, 63, .1);
}

.figure-atlas-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #f3f4f6;
}

.figure-atlas-grid span {
  display: block;
  padding: 8px 10px;
  color: #353943;
  font-size: 12px;
  font-weight: 600;
}

.figure-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.figure-gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #f3f4f6;
}

.figure-gallery-modal {
  width: min(100%, 980px);
  max-height: 72vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #f2f3f5;
}

.ppt-generation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 16px;
  align-items: start;
}

.ppt-generation-form-panel,
.ppt-generation-guide,
.ppt-task-history {
  min-width: 0;
}

.ppt-task-history {
  grid-column: 1 / -1;
}

.ppt-form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr .55fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ppt-story-steps {
  display: grid;
  gap: 10px;
}

.ppt-story-steps > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfd;
}

.ppt-story-steps strong {
  grid-row: span 2;
  color: #16866d;
  font-size: 18px;
}

.ppt-story-steps span {
  color: #252832;
  font-size: 13px;
  font-weight: 700;
}

.ppt-story-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ppt-output-note {
  margin-top: 15px;
  padding: 12px 14px;
  border-left: 3px solid #315ea8;
  background: #f2f6fc;
  color: #40516b;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .paper-management-filters {
    grid-template-columns: 1fr 1fr;
  }

  .research-figure-layout {
    grid-template-columns: 1fr;
  }

  .figure-ai-assistant,
  .figure-task-history {
    grid-column: 1;
  }

  .figure-type-library,
  .figure-atlas-section,
  .figure-gallery-section {
    grid-column: 1;
  }

  .figure-type-tabs {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
  }

  .ppt-generation-layout {
    grid-template-columns: 1fr;
  }

  .ppt-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .figure-atlas-grid,
  .figure-gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .paper-management-filters,
  .research-figure-grid,
  .ppt-form-grid {
    grid-template-columns: 1fr;
  }

  .paper-filter-actions,
  .paper-filter-actions .btn,
  .paper-management-actions > div,
  .paper-management-actions .btn {
    width: 100%;
  }

  .paper-management-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .paper-management-actions > div {
    flex-direction: column;
  }

  .research-figure-controls,
  .research-figure-preview {
    min-height: 0;
  }

  .research-figure-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .research-figure-actions > span {
    margin-right: 0;
  }

  .research-figure-actions .btn {
    width: 100%;
  }

  .figure-canvas-wrap {
    padding: 8px;
  }

  .figure-type-tabs {
    display: flex;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .figure-type-tab {
    flex: 0 0 104px;
    scroll-snap-align: start;
  }

  .figure-atlas-grid,
  .figure-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figure-ai-presets button {
    flex: 1 1 calc(50% - 4px);
  }
}

@media (max-width: 620px) {
  .login-page {
    place-items: end center;
    padding: 20px 18px 28px;
    background-position: 62% center;
  }

  .login-overlay {
    background: linear-gradient(180deg, rgba(16, 30, 27, .24), rgba(16, 30, 27, .82));
  }

  .login-panel {
    padding: 26px 22px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 96px;
  }

  .chat-messages {
    padding: 20px 12px;
  }

  .chat-message {
    gap: 7px;
  }

  .chat-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .chat-bubble,
  .chat-message:not(.user) .chat-bubble {
    width: auto;
    max-width: calc(100% - 37px);
    padding: 12px 13px;
  }

  .chat-composer {
    padding: 12px;
  }
}

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

/* Keep the chat workbench single-column on narrow screens after theme overrides. */
@media (max-width: 900px) {
  .chat-relay {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .chat-model-picker .chat-model-select {
    min-width: 0;
  }
}

/* BunnyScholar-inspired light workspace */
:root {
  --bg: #f8fafc;
  --panel: rgba(255, 255, 255, .92);
  --panel-soft: #f8fafc;
  --line: #e7e9ee;
  --line-strong: #d8dce4;
  --text: #080b12;
  --muted: #68707d;
  --primary: #17191f;
  --primary-2: #7c3aed;
  --primary-soft: #f2eafe;
  --green: #17191f;
  --green-soft: #efffc3;
  --amber: #b76c12;
  --amber-soft: #fff4da;
  --cobalt: #6259dd;
  --lime: #d9fc75;
  --lime-strong: #c8f060;
  --violet: #8b35e7;
  --nav: #ffffff;
  --nav-soft: #f5f6f8;
  --shadow: 0 18px 50px rgba(85, 77, 112, .10);
}

body {
  background:
    linear-gradient(rgba(130, 111, 174, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 111, 174, .025) 1px, transparent 1px),
    #f8fafc;
  background-size: 32px 32px;
}

.layout {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  width: calc(100% - 12px);
  height: calc(100vh - 24px);
  margin: 12px 0 12px 12px;
  padding: 16px 10px;
  border: 1px solid rgba(232, 233, 239, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 38px rgba(85, 77, 112, .08);
  backdrop-filter: blur(16px);
}

.brand {
  min-height: 66px;
  margin: 0 5px;
  padding: 2px 8px 17px;
  border-bottom-color: #eceef2;
  color: var(--text);
}

.brand img {
  border-color: #e6e8ec;
  box-shadow: 0 6px 18px rgba(83, 63, 118, .14);
}

.brand strong {
  color: #090b10;
  font-weight: 800;
}

.brand span {
  color: #8a8395;
}

.nav button,
.nav-sub .nav-link {
  border-color: transparent;
  background: transparent;
  color: #5f6470;
  box-shadow: none;
}

.nav-icon {
  color: #8d849c;
}

.nav button:hover {
  border-color: #ece9f2;
  background: #f7f5fa;
  color: #13151a;
}

.nav button:hover .nav-icon {
  color: var(--violet);
}

.nav button.active,
.nav .nav-link.active,
.nav-parent-active,
.nav-group.open .nav-group-toggle {
  border-color: #c8ef60;
  background: var(--lime);
  color: #0b0d10;
  box-shadow: 0 9px 24px rgba(190, 230, 79, .22);
}

.nav button.active .nav-icon,
.nav .nav-link.active .nav-icon,
.nav-parent-active .nav-icon {
  color: #16191d;
}

.nav .nav-link.active::after {
  background: #17191f;
}

.main {
  grid-template-rows: 80px minmax(0, 1fr);
}

.topbar {
  top: 12px;
  min-height: 58px;
  height: 58px;
  margin: 12px 16px 0;
  padding: 0 18px;
  border: 1px solid rgba(232, 233, 239, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 34px rgba(85, 77, 112, .075);
  backdrop-filter: blur(18px);
}

.topbar strong {
  color: #090b10;
  font-weight: 800;
}

.topbar-brand .btn.primary,
.btn.primary {
  border-color: #c4ec5b;
  background: var(--lime);
  color: #090b10;
  box-shadow: 0 7px 20px rgba(190, 230, 79, .2);
}

.topbar-brand .btn.primary:hover,
.btn.primary:hover {
  border-color: #bde64e;
  background: var(--lime-strong);
  color: #090b10;
  box-shadow: 0 12px 32px rgba(190, 230, 79, .32);
}

.btn.ghost {
  border-color: #e3e5ea;
  color: #20232a;
  background: rgba(255, 255, 255, .86);
}

.btn.ghost:hover {
  border-color: #d8d5df;
  background: #f9f7fc;
}

.content {
  padding: 14px 16px 32px;
}

.stat,
.panel,
.chat-relay,
.skill-center-head > div {
  border-color: rgba(229, 231, 236, .96);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 34px rgba(85, 77, 112, .065);
  backdrop-filter: blur(10px);
}

.stat::before {
  background: var(--lime-strong);
}

.stat:nth-child(2)::before {
  background: #a78bfa;
}

.stat:nth-child(3)::before {
  background: #fb923c;
}

.stat:nth-child(4)::before {
  background: #60a5fa;
}

.stat strong,
.skill-center-head strong,
.metrics strong {
  color: #090b10;
}

.pill.green {
  border-color: #cdec72;
  background: #efffc3;
  color: #252b13;
}

.input:focus,
.select:focus,
.textarea:focus,
.chat-composer textarea:focus {
  border-color: #a98ae8;
  box-shadow: 0 0 0 3px rgba(139, 53, 231, .10);
}

.segmented button.active,
.chat-mode button.active {
  color: #6d28d9;
}

.skill-center-head > div {
  border-left-color: var(--lime-strong);
}

.skill-center-head > div:nth-child(2) {
  border-left-color: #a78bfa;
}

.skill-center-head > div:nth-child(3) {
  border-left-color: #fb923c;
}

.skill-description {
  border-left-color: #a78bfa;
  background: #faf8ff;
}

.ai-rewrite-hero,
.paper-agent-hero,
.software-paper-hero {
  background: linear-gradient(115deg, rgba(246, 241, 255, .92), rgba(255, 255, 255, .94) 55%, rgba(245, 255, 216, .8));
}

.ai-rewrite-modes button.active,
.paper-agent-models label.active,
.recharge-package.selected,
.recharge-package:hover {
  border-color: #c7ee62;
  background: #f7ffdf;
  box-shadow: 0 8px 22px rgba(190, 230, 79, .14);
}

.chat-relay {
  height: calc(100vh - 110px);
}

.chat-sessions {
  border-color: #e7e8ed;
  background: #f7f8fa;
}

.chat-session:hover,
.chat-session.active {
  border-color: #ded9e8;
  box-shadow: 0 6px 18px rgba(85, 77, 112, .07);
}

.chat-session.active {
  border-left-color: var(--lime-strong);
  background: #fff;
}

.chat-head {
  background: rgba(255, 255, 255, .88);
}

.chat-messages {
  background: #fafbfc;
}

.chat-avatar {
  background: #7c3aed;
}

.chat-message.user .chat-avatar {
  color: #090b10;
  background: var(--lime);
}

.chat-message.user .chat-bubble {
  border-color: #d7ed9a;
  background: #f7ffdf;
}

.chat-bubble {
  border-color: #e2e1e7;
  box-shadow: 0 7px 24px rgba(85, 77, 112, .06);
}

.dev-api-code,
.dev-api-response {
  border-color: #28232f;
  background: #18151d;
  color: #f0eaf7;
}

.login-page {
  background-color: #f7f8fb;
}

.login-overlay {
  background: linear-gradient(90deg, rgba(248, 250, 252, .97), rgba(248, 250, 252, .82) 48%, rgba(243, 232, 255, .30));
}

.login-panel {
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 24px 70px rgba(91, 73, 127, .15);
}

.login-brand strong {
  color: #090b10;
}

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

@media (max-width: 820px) {
  .sidebar {
    width: min(294px, 84vw);
    height: 100vh;
    margin: 0;
    border-width: 0 1px 0 0;
    border-radius: 0;
  }

  .main {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .topbar {
    top: 8px;
    height: 54px;
    min-height: 54px;
    margin: 8px 10px 0;
  }

  .content {
    padding: 10px 10px 24px;
  }
}

/* Keep the composer in view while the conversation grows. */
.chat-relay,
.chat-main {
  min-height: 0;
}

.chat-relay {
  height: calc(100dvh - 110px);
  overflow: hidden;
}

.chat-main {
  overflow: hidden;
  background: #fff;
}

.chat-messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 28px clamp(18px, 5vw, 76px) 32px;
}

.chat-message {
  width: min(100%, 900px);
  max-width: 900px;
  margin-bottom: 24px;
}

.chat-message:not(.user) .chat-bubble {
  width: min(calc(100% - 48px), 860px);
  max-width: none;
}

.chat-bubble {
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(42, 31, 64, .045);
}

.chat-composer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 14px clamp(16px, 5vw, 76px) 16px;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(42, 31, 64, .045);
}

.chat-composer textarea {
  min-height: 58px;
  max-height: 180px;
  resize: none;
  border-radius: 16px;
  padding: 15px 16px;
  line-height: 1.55;
}

.chat-composer > div {
  margin-top: 8px;
}

.chat-composer .btn {
  min-width: 74px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .chat-relay {
    height: auto;
    min-height: calc(100dvh - 110px);
  }

  .chat-main {
    min-height: calc(100dvh - 110px);
  }
}

@media (max-width: 620px) {
  .chat-messages {
    padding: 20px 12px 24px;
  }

  .chat-composer {
    padding: 10px 12px 12px;
  }
}

/* Public landing page inspired by the reference site's airy editorial layout. */
.bunny-public {
  --bunny-ink: #101116;
  --bunny-muted: #6f727c;
  --bunny-line: #e9e8ed;
  --bunny-lime: #d9fc75;
  --bunny-lime-deep: #c8ef58;
  --bunny-violet: #8238df;
  --bunny-purple-soft: #f1eaff;
  --bunny-yellow-soft: #fff5cc;
  --bunny-green-soft: #eaf7d7;
  min-height: 100vh;
  overflow: hidden;
  color: var(--bunny-ink);
  background: #fbfbfc;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.bunny-public * {
  letter-spacing: 0;
}

.bunny-public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1320px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(251, 251, 252, .92);
  backdrop-filter: blur(16px);
}

.bunny-public-logo,
.bunny-public-nav a,
.bunny-public-actions button {
  color: var(--bunny-ink);
  text-decoration: none;
}

.bunny-public-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  font-size: 16px;
  font-weight: 850;
}

.bunny-public-logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(101, 76, 137, .12);
}

.bunny-public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.bunny-public-nav a {
  position: relative;
  padding: 8px 0;
  color: #60636d;
  font-size: 13px;
  font-weight: 650;
}

.bunny-public-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--bunny-lime-deep);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.bunny-public-nav a:hover {
  color: var(--bunny-ink);
}

.bunny-public-nav a:hover::after {
  transform: scaleX(1);
}

.bunny-public-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bunny-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--bunny-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.bunny-button:hover {
  transform: translateY(-1px);
}

.bunny-button-dark {
  color: #fff;
  background: var(--bunny-ink);
  box-shadow: 0 8px 18px rgba(16, 17, 22, .14);
}

/* The public header sets a text color for every action; keep the dark CTA readable. */
.bunny-public-actions .bunny-button-dark {
  color: #fff;
}

.bunny-button-dark:hover {
  background: #2a2b31;
  box-shadow: 0 12px 25px rgba(16, 17, 22, .18);
}

.bunny-button-lime {
  color: #11140b;
  background: var(--bunny-lime);
  box-shadow: 0 8px 18px rgba(179, 218, 75, .24);
}

.bunny-button-lime:hover {
  background: var(--bunny-lime-deep);
}

.bunny-button-soft {
  border-color: #e5e2ed;
  background: #fff;
}

.bunny-button-soft:hover,
.bunny-button-outline:hover,
.bunny-button-quiet:hover {
  border-color: #d7d1e2;
  background: #f7f5fb;
}

.bunny-button-outline {
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.bunny-button-quiet {
  min-height: 36px;
  padding: 0 12px;
  color: #5e606a;
}

.bunny-menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--bunny-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.bunny-menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 4px;
  background: var(--bunny-ink);
}

.bunny-announcement {
  width: min(560px, calc(100% - 32px));
  min-height: 38px;
  margin: 22px auto 0;
  padding: 0 12px 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #ece8f3;
  border-radius: 999px;
  color: #73727b;
  background: #fff;
  box-shadow: 0 8px 22px rgba(85, 77, 112, .06);
  font-size: 12px;
}

.bunny-announcement span {
  color: var(--bunny-violet);
  font-weight: 800;
}

.bunny-announcement strong {
  color: #3b3b44;
  font-weight: 650;
}

.bunny-announcement button {
  border: 0;
  padding: 0;
  color: #6e35bd;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  white-space: nowrap;
}

.bunny-public-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.bunny-hero {
  min-height: 560px;
  padding: 78px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .96fr);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
}

.bunny-hero-copy {
  max-width: 610px;
}

.bunny-kicker {
  display: inline-block;
  color: #6e35bd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bunny-hero h1 {
  margin: 18px 0 20px;
  color: var(--bunny-ink);
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.bunny-hero h1 em,
.bunny-section-heading h2 em {
  color: var(--bunny-violet);
  font-style: normal;
}

.bunny-hero-copy > p {
  max-width: 540px;
  margin: 0;
  color: #6a6d78;
  font-size: 17px;
  line-height: 1.75;
}

.bunny-hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bunny-hero-actions .bunny-button {
  min-height: 46px;
  padding: 0 19px;
}

.bunny-hero-proof {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8b8b94;
  font-size: 12px;
}

.bunny-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bunny-lime-deep);
  box-shadow: 0 0 0 4px rgba(200, 239, 88, .18);
}

.bunny-tool-card {
  min-height: 420px;
  padding: 20px;
  border: 1px solid #e8e6ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(86, 77, 115, .13);
}

.bunny-tool-top,
.bunny-tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bunny-tool-top strong {
  display: block;
  margin-top: 7px;
  color: var(--bunny-ink);
  font-size: 19px;
}

.bunny-tool-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b7e87;
  font-size: 12px;
}

.bunny-tool-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ed648;
}

.bunny-tool-tabs {
  margin: 24px 0 20px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  border-radius: 11px;
  background: #f5f4f8;
}

.bunny-tool-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #777681;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.bunny-tool-tabs button.active {
  color: var(--bunny-ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(70, 64, 92, .09);
}

.bunny-tool-label {
  display: grid;
  gap: 8px;
  color: #4b4d57;
  font-size: 12px;
  font-weight: 800;
}

.bunny-tool-label small {
  float: right;
  color: #a0a0a8;
  font-size: 11px;
  font-weight: 500;
}

.bunny-tool-label textarea {
  width: 100%;
  min-height: 190px;
  padding: 14px;
  border: 1px solid #e4e3e9;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  color: var(--bunny-ink);
  background: #fcfcfd;
  font: inherit;
  line-height: 1.65;
}

.bunny-tool-label textarea:focus {
  border-color: #c6a7ed;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(130, 56, 223, .09);
}

.bunny-tool-chips {
  margin: 13px 0 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bunny-tool-chips span {
  padding: 6px 9px;
  border-radius: 7px;
  color: #71677e;
  background: #f7f2ff;
  font-size: 11px;
}

.bunny-tool-foot {
  color: #9a9aa2;
  font-size: 11px;
}

.bunny-tool-foot .bunny-button {
  flex: 0 0 auto;
}

.bunny-trust {
  min-height: 112px;
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--bunny-line);
  border-bottom: 1px solid var(--bunny-line);
  color: #8c8e96;
  font-size: 12px;
}

.bunny-trust > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.bunny-trust > div span {
  padding: 8px 11px;
  border: 1px solid #e7e5eb;
  border-radius: 999px;
  color: #6d6f78;
  background: #fff;
  font-weight: 700;
}

.bunny-workflow,
.bunny-pricing,
.bunny-faq {
  padding: 110px 0 0;
}

.bunny-section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.bunny-section-heading h2 {
  margin: 14px 0 12px;
  color: var(--bunny-ink);
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.bunny-section-heading p {
  margin: 0;
  color: #7b7d86;
  font-size: 15px;
  line-height: 1.75;
}

.bunny-section-heading.compact {
  margin-bottom: 30px;
}

.bunny-section-heading.compact h2 {
  font-size: clamp(29px, 3.8vw, 44px);
}

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

.bunny-feature-card {
  min-height: 310px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(150px, .78fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(229, 227, 234, .9);
  border-radius: 18px;
}

.bunny-feature-lilac { background: #f1eaff; }
.bunny-feature-yellow { background: #fff4ca; }
.bunny-feature-violet { background: #e7dbff; }
.bunny-feature-green { background: #eaf6d8; }
.bunny-feature-blue { background: #e5f2fb; }
.bunny-feature-peach { background: #fff0e6; }

.bunny-feature-copy {
  align-self: center;
}

.bunny-feature-label {
  color: #777080;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bunny-feature-copy h3 {
  margin: 15px 0 10px;
  color: var(--bunny-ink);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.bunny-feature-copy p {
  min-height: 48px;
  margin: 0;
  color: #656771;
  font-size: 13px;
  line-height: 1.65;
}

.bunny-feature-copy button {
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: var(--bunny-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.bunny-feature-copy button span {
  margin-left: 7px;
  color: var(--bunny-violet);
  font-size: 16px;
}

.bunny-feature-art {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .38);
}

.bunny-feature-art::before,
.bunny-feature-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(70, 56, 94, .14);
  border-radius: 50%;
}

.bunny-feature-art::before {
  width: 122px;
  height: 122px;
}

.bunny-feature-art::after {
  width: 82px;
  height: 82px;
}

.bunny-feature-art > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--bunny-violet);
  box-shadow: 0 14px 28px rgba(96, 48, 159, .22);
  font-size: 23px;
  font-weight: 850;
}

.bunny-feature-art i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bunny-violet);
}

.bunny-feature-art i:nth-of-type(1) { top: 24px; left: 25%; }
.bunny-feature-art i:nth-of-type(2) { right: 19%; bottom: 31px; background: #b8df4d; }
.bunny-feature-art i:nth-of-type(3) { top: 32%; right: 20%; background: #fb9e50; }
.art-chat > span { background: #e48d48; }
.art-review > span { background: #7452d3; }
.art-figure > span { background: #4d9b65; }
.art-chat::before { transform: rotate(15deg); border-radius: 18px; }
.art-review::before { border-radius: 16px; transform: rotate(-12deg); }
.art-figure::before { border-radius: 18px; transform: rotate(12deg); }

.bunny-price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.bunny-price-row > div {
  min-height: 190px;
  padding: 25px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--bunny-line);
  border-radius: 16px;
  background: #fff;
}

.bunny-price-row > div.featured {
  border-color: #d0ed74;
  background: #f5ffd9;
  box-shadow: 0 14px 32px rgba(185, 220, 81, .15);
}

.bunny-price-row span {
  color: #757781;
  font-size: 12px;
  font-weight: 800;
}

.bunny-price-row strong {
  color: var(--bunny-ink);
  font-size: 24px;
}

.bunny-price-row small {
  max-width: 260px;
  color: #7f818a;
  line-height: 1.6;
}

.bunny-fixed-prices {
  margin-top: 14px;
  padding: 15px 18px;
  border: 1px solid var(--bunny-line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.bunny-fixed-prices span { color: #757781; font-size: 12px; }
.bunny-fixed-prices strong { margin-right: 6px; color: var(--bunny-ink); }

.bunny-faq-list {
  width: min(780px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--bunny-line);
}

.bunny-faq-list details {
  border-bottom: 1px solid var(--bunny-line);
}

.bunny-faq-list summary {
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #34363e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

.bunny-faq-list summary::-webkit-details-marker { display: none; }
.bunny-faq-list summary span { color: var(--bunny-violet); font-size: 22px; font-weight: 450; }
.bunny-faq-list details[open] summary span { transform: rotate(45deg); }
.bunny-faq-list details p { margin: -2px 45px 18px 14px; color: #7a7c85; font-size: 13px; line-height: 1.75; }

.bunny-public-footer {
  margin-top: 118px;
  padding: 74px max(24px, calc((100% - 1280px) / 2)) 28px;
  color: #fff;
  background: #111217;
}

.bunny-footer-cta {
  padding-bottom: 60px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.bunny-footer-cta h2 {
  margin: 13px 0 9px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.bunny-footer-cta p { margin: 0; color: #a3a3ad; font-size: 13px; }
.bunny-footer-cta .bunny-kicker { color: var(--bunny-lime); }
.bunny-footer-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.bunny-footer-grid { padding: 34px 0 40px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.bunny-footer-grid > div { display: grid; align-content: start; gap: 10px; }
.bunny-footer-grid strong { color: #fff; font-size: 12px; }
.bunny-footer-grid a { color: #a3a3ad; font-size: 12px; text-decoration: none; }
.bunny-footer-grid a:hover { color: var(--bunny-lime); }
.bunny-footer-brand { gap: 9px !important; }
.bunny-footer-logo { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 16px; font-weight: 800; }
.bunny-footer-logo img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.bunny-footer-brand p { margin: 0; color: #858691; font-size: 12px; }
.bunny-footer-email { color: #a3a3ad !important; font-size: 12px; text-decoration: none; }
.bunny-footer-email:hover { color: var(--bunny-lime) !important; text-decoration: underline; }
.bunny-footer-links { display: flex; flex-wrap: wrap; gap: 7px; }
.bunny-footer-links a { min-height: 27px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; }
.bunny-footer-links a span { color: var(--bunny-lime); font-size: 10px; font-weight: 800; }
.bunny-footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; color: #71727d; font-size: 11px; }

.bunny-auth-mask {
  z-index: 100;
  box-sizing: border-box;
  background: rgba(17, 18, 23, .56);
  backdrop-filter: blur(8px);
}

.bunny-auth-mask .modal {
  box-sizing: border-box;
  width: min(430px, calc(100% - 2px));
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(35, 24, 53, .23);
}

.bunny-auth-mask .modal-head {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #efedf2;
  background: #fff;
}

.bunny-auth-mask .modal-head strong { color: var(--bunny-ink); font-size: 15px; }
.bunny-auth-mask .modal-head .btn { min-height: 32px; padding: 0 9px; border: 0; color: #85848d; background: transparent; }
.bunny-auth-mask .modal-body { box-sizing: border-box; width: 100%; min-width: 0; padding: 24px 22px 23px; }
.bunny-auth-intro { margin-bottom: 20px; }
.bunny-auth-intro h3 { margin: 9px 0 7px; color: var(--bunny-ink); font-size: 24px; line-height: 1.2; }
.bunny-auth-intro p { margin: 0; color: #7b7d86; font-size: 12px; line-height: 1.6; }
.bunny-auth-form { width: 100%; min-width: 0; gap: 13px; }
.bunny-auth-form .field { width: 100%; min-width: 0; color: #44464e; font-size: 12px; }
.bunny-auth-form .input { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 42px; border-color: #e0dee6; border-radius: 9px; background: #fcfcfd; }
.bunny-auth-form .input:focus { border-color: #b896e8; box-shadow: 0 0 0 3px rgba(130, 56, 223, .09); }
.bunny-auth-form .btn.primary { min-height: 44px; border: 0; border-radius: 9px; color: #15160f; background: var(--bunny-lime); box-shadow: none; }
.bunny-auth-form .btn.primary:hover { background: var(--bunny-lime-deep); }
.bunny-auth-switch { width: 100%; margin-top: 14px; padding: 6px 0 0; border: 0; color: #7542bd; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.bunny-auth-mask .invite-preview { margin: 0; padding: 9px 11px; border-radius: 8px; color: #70727b; background: #f7f4ff; font-size: 11px; line-height: 1.5; }

.bunny-auth-divider {
  margin: 18px 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #92939b;
  font-size: 11px;
  white-space: nowrap;
}

.bunny-auth-divider::before,
.bunny-auth-divider::after {
  height: 1px;
  flex: 1;
  content: '';
  background: #eceaf0;
}

.bunny-wechat-login {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dce7df;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #27352d;
  background: #f8fcf9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.bunny-wechat-login:hover { border-color: #9fc9aa; background: #f0f8f2; }
.bunny-wechat-login:disabled { cursor: wait; opacity: .65; }
.bunny-wechat-login > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #1aad19;
  font-size: 11px;
  font-weight: 800;
}

.bunny-wechat-note {
  margin: 9px 3px 0;
  color: #858790;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.profile-wechat-binding {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #e4e8e5;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  background: #fbfdfb;
}

.profile-wechat-binding strong,
.profile-wechat-binding small { display: block; }
.profile-wechat-binding strong { color: #2d3430; font-size: 13px; }
.profile-wechat-binding small { margin-top: 3px; color: #7e8581; font-size: 11px; }
.profile-wechat-avatar {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1aad19;
  font-size: 14px;
  font-weight: 800;
}

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

.profile-mp-preferences {
  padding: 12px 14px;
  border: 1px solid #e4e8e5;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  background: #fbfdfb;
}

.profile-mp-preferences > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.profile-mp-preferences label { display: inline-flex; align-items: center; gap: 6px; color: #59615c; font-size: 12px; }
.profile-mp-preferences input { accent-color: #1aad19; }
.profile-mp-preferences .btn { justify-self: start; }

@media (max-width: 980px) {
  .bunny-public-nav { gap: 17px; }
  .bunny-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 35px; }
  .bunny-feature-card { grid-template-columns: minmax(0, 1fr) minmax(120px, .72fr); padding: 22px; }
  .bunny-feature-copy h3 { font-size: 21px; }
  .bunny-footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 18px; }
  .bunny-price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bunny-public-header { width: calc(100% - 32px); min-height: 66px; }
  .bunny-public-logo { min-width: 0; }
  .bunny-public-logo span { display: none; }
  .bunny-public-nav { position: absolute; top: 60px; right: 0; left: 0; padding: 12px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--bunny-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 30px rgba(70, 62, 89, .1); }
  .bunny-public-nav.open { display: flex; }
  .bunny-public-nav a { padding: 11px 9px; }
  .bunny-public-nav a::after { display: none; }
  .bunny-menu-button { display: block; }
  .bunny-public-actions .bunny-button-quiet { display: none; }
  .bunny-announcement { margin-top: 16px; justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .bunny-announcement strong { overflow: hidden; text-overflow: ellipsis; }
  .bunny-public-main { width: calc(100% - 32px); }
  .bunny-hero { min-height: 0; padding: 57px 0 48px; grid-template-columns: 1fr; gap: 38px; }
  .bunny-hero h1 { font-size: clamp(40px, 12vw, 57px); }
  .bunny-hero-copy > p { font-size: 15px; }
  .bunny-tool-card { min-height: 0; padding: 16px; border-radius: 15px; }
  .bunny-tool-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bunny-tool-label textarea { min-height: 170px; }
  .bunny-tool-foot { align-items: stretch; flex-direction: column; }
  .bunny-tool-foot .bunny-button { width: 100%; }
  .bunny-trust { align-items: flex-start; flex-direction: column; gap: 14px; }
  .bunny-trust > div { justify-content: flex-start; }
  .bunny-workflow, .bunny-pricing, .bunny-faq { padding-top: 78px; }
  .bunny-section-heading { margin-bottom: 30px; text-align: left; }
  .bunny-section-heading h2 { font-size: 34px; }
  .bunny-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .bunny-feature-card { min-height: 270px; grid-template-columns: minmax(0, 1.15fr) minmax(120px, .75fr); padding: 20px; border-radius: 15px; }
  .bunny-feature-art { min-height: 165px; }
  .bunny-price-row { grid-template-columns: 1fr; }
  .bunny-price-row > div { min-height: 145px; }
  .bunny-public-footer { margin-top: 82px; padding: 50px 16px 22px; }
  .bunny-footer-cta { align-items: stretch; flex-direction: column; padding-bottom: 38px; }
  .bunny-footer-cta h2 { font-size: 31px; }
  .bunny-footer-actions .bunny-button { flex: 1; }
  .bunny-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .bunny-footer-brand { grid-column: 1 / -1; }
  .bunny-footer-bottom { align-items: flex-start; flex-direction: column; }
  .profile-wechat-binding { grid-template-columns: 40px minmax(0, 1fr); }
  .profile-wechat-binding .btn { width: 100%; grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .bunny-public-actions .bunny-button-dark { min-height: 35px; padding: 0 11px; }
  .bunny-announcement { font-size: 11px; }
  .bunny-hero { padding-top: 47px; }
  .bunny-hero h1 { font-size: 42px; }
  .bunny-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .bunny-hero-actions .bunny-button { width: 100%; padding: 0 10px; }
  .bunny-feature-card { grid-template-columns: 1fr; }
  .bunny-feature-art { min-height: 130px; }
  .bunny-tool-tabs button { font-size: 11px; }
}
