:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #fffefa;
  --ink: #24251f;
  --muted: #65675e;
  --line: #deded5;
  --accent: #f5784e;
  --accent-strong: #b84620;
  --dark: #292b25;
  --radius: 18px;
  font-family:
    "DM Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
  padding: 0;
}
button:disabled,
input:disabled {
  opacity: 0.54;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #d15e37;
  outline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
button svg,
a svg,
span svg,
label svg {
  flex: none;
  vertical-align: middle;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  background: #fff;
  z-index: 50;
  padding: 10px;
}
.skip-link:focus {
  top: 6px;
}
.site-head {
  width: 100%;
  height: 76px;
  border-bottom: 1px solid rgba(43, 44, 35, 0.1);
  background: var(--paper);
}
.head-inner,
.footer,
.page-wrap {
  width: min(1400px, 100%);
  margin-inline: auto;
  padding-inline: clamp(24px, 5.4vw, 88px);
}
.head-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  line-height: 1;
}
.brand-wordmark {
  display: block;
  width: 118px;
  height: auto;
}
.foot-brand {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums;
}
.site-nav {
  display: flex;
  gap: 29px;
  height: 100%;
  align-items: stretch;
  font-size: 13px;
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #66675e;
  font-weight: 550;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}
.site-nav a.active:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  bottom: 14px;
  left: calc(50% - 7px);
  background: var(--accent);
}
#account-nav {
  justify-self: end;
}
.btn,
.icon-btn,
.text-btn,
.text-link,
.upload,
.back,
.account-link,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  font-weight: 600;
}
.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.btn:active,
.tool-card:active {
  transform: translateY(1px);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: #41443b;
}
.btn-line {
  border-color: #d1d2c8;
  background: transparent;
}
.btn-line:hover {
  background: #eeeee7;
  border-color: #b3b4a9;
}
.btn-accent {
  background: var(--accent);
  color: #201e18;
}
.btn-accent:hover {
  background: #ff9069;
}
.btn-small {
  min-height: 35px;
  padding-inline: 13px;
  font-size: 12px;
}
.account-link {
  font-size: 13px;
  gap: 8px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  color: #69412d;
  background: #f2d8bd;
  font-size: 14px;
}
.page-wrap {
  padding-top: 28px;
  padding-bottom: 64px;
  flex: 1;
  outline: none;
}
.hero {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: #422f28;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-art {
  object-fit: cover;
  object-position: 58% 50%;
}
.hero-shade {
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(23, 27, 25, 0.86) 0,
    rgba(25, 29, 27, 0.71) 26%,
    rgba(26, 30, 28, 0.34) 48%,
    rgba(24, 28, 27, 0.02) 75%
  );
}
.hero-content {
  padding: 42px clamp(30px, 4.45vw, 68px);
  position: relative;
}
.hero-tag,
.kicker,
.tool-en {
  font-family: "DM Sans", "PingFang SC", Arial, sans-serif;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #fff6e8;
  letter-spacing: 1px;
}
.hero-tag i {
  display: block;
  height: 7px;
  width: 7px;
  background: #ffa67e;
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(52px, 5.35vw, 84px);
  letter-spacing: -0.077em;
  font-weight: 790;
  line-height: 1.1;
  margin: 15px 0 15px;
}
.hero-comma {
  letter-spacing: -0.25em;
}
.hero-period {
  color: #ff9670;
}
.hero-content p {
  font-size: 15px;
  color: #f1eee4;
  letter-spacing: 0.3px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 27px;
}
.hero-actions .btn {
  min-height: 46px;
  min-width: 125px;
}
.hero-more {
  font-size: 13px;
  color: #f4f0e7;
}
.tools {
  margin: 35px 0 0;
  scroll-margin-top: 20px;
}
.section-head,
.panel-head,
.dashboard-head,
.row,
.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-head {
  margin: 0 0 17px;
}
h2 {
  font-size: 22px;
  letter-spacing: -1.1px;
  font-weight: 760;
}
.section-head h2 {
  font-size: 27px;
}
.benefit,
.credit-pill,
.muted,
.fine {
  color: var(--muted);
}
.benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.benefit svg {
  color: #8f674a;
}
.tool-grid,
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tool-card {
  position: relative;
  display: block;
  border-radius: 15px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.tool-card:hover {
  border-color: #b9b6ab;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #25251f0a;
}
.tool-art {
  position: relative;
  aspect-ratio: 2.45/1;
  overflow: hidden;
  background: #534a39;
}
.tool-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.tool-card:hover img {
  transform: scale(1.035);
}
.tool-video .tool-art img {
  object-position: 55% 52%;
}
.tool-badge {
  position: absolute;
  top: 13px;
  left: 14px;
  background: #fffef0e8;
  color: #282e25;
  border: 1px solid #ffffff75;
  border-radius: 8px;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.tool-chat .tool-art {
  background: radial-gradient(
    ellipse at 34% 0%,
    #ecd9e9 0,
    #cab9d7 43%,
    #a99cbf 70%,
    #867b9f 100%
  );
  isolation: isolate;
}
.chat-sculpt {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transform: rotate(-18deg) skew(-10deg);
}
.chat-sculpt i {
  display: block;
  height: 74%;
  width: 7.5%;
  max-width: 35px;
  border-radius: 70% 45% 65% 40%;
  background: linear-gradient(
    110deg,
    #d7c9e8 3%,
    #a798c1 15%,
    #362c56 36%,
    #6d5f90 61%,
    #a494ba 78%,
    #e8dced 94%
  );
  box-shadow:
    inset 2px 2px 5px #f1e5f6aa,
    7px 15px 16px #493a6066;
  transform: rotate(6deg);
}
.chat-sculpt i:first-child,
.chat-sculpt i:last-child {
  height: 26%;
}
.chat-sculpt i:nth-child(2),
.chat-sculpt i:nth-child(5) {
  height: 50%;
}
.chat-sculpt i:nth-child(4) {
  height: 82%;
}
.tool-body {
  padding: 15px 19px 19px;
}
.tool-en,
.kicker {
  color: #737568;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 750;
}
.tool-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
}
.tool-title h3 {
  font-size: 22px;
  letter-spacing: -1.15px;
  line-height: 1.55;
}
.tool-go {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  border: 1px solid #d9dad1;
}
.tool-card:hover .tool-go {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.tool-body p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
  font-size: 12px;
  color: var(--muted);
}
.foot-brand {
  font-weight: 700;
  color: #44463d;
}
.footer-dot {
  margin: 0 10px;
  color: #b5b5a9;
}
.footer a:hover,
.text-link:hover,
.text-btn:hover,
.back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-intro {
  padding: 18px 0 26px;
}
.page-intro h1,
.work-header h1 {
  font-size: clamp(31px, 3.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.065em;
  margin: 5px 0 6px;
}
.page-intro p,
.work-sub {
  font-size: 14px;
  color: var(--muted);
}
.kicker {
  font-size: 11px;
  color: #98674d;
}
.text-link {
  color: var(--accent-strong);
  font-size: 13px;
}
.text-btn,
.back,
.upload {
  color: #5f6156;
  font-size: 13px;
}
.icon-btn {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  color: #626459;
}
.icon-btn:hover {
  background: #eaeae2;
}
.wide {
  width: 100%;
}
.muted {
  font-size: 14px;
}
.fine {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.field,
.form input:not([type="checkbox"]),
.form textarea,
.form select {
  display: block;
  border: 1px solid #ced0c4;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
.field:focus,
.composer textarea:focus,
.form input:focus,
.form textarea:focus {
  outline: 2px solid #dd835b;
  outline-offset: 0;
}
.form,
.form label {
  display: grid;
  gap: 7px;
}
.form {
  gap: 15px;
  margin-top: 20px;
}
.form label {
  font-size: 13px;
  font-weight: 650;
}
.form label small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.form-error,
.failure {
  font-size: 13px;
  color: #a93624;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-error:empty {
  display: none;
}
.form-error:not(:empty) {
  margin-top: 7px;
}
.form-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.form-switch button {
  color: var(--accent-strong);
  font-weight: 650;
}
.modal {
  border: 1px solid #c8c8bc;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 23px;
  width: min(432px, calc(100vw - 30px));
  max-height: min(85vh, 760px);
  box-shadow: 0 22px 80px #16171030;
}
.modal::backdrop {
  background: rgba(23, 25, 20, 0.48);
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.modal-head h2 {
  font-size: 23px;
}
.modal .field,
.modal > .text-link {
  margin-top: 10px;
}
.modal .form .field {
  margin-top: 0;
}
.modal-actions,
.button-group {
  display: flex;
  gap: 9px;
  align-items: center;
}
.modal-actions {
  margin-top: 18px;
  justify-content: flex-end;
}
.modal h3 {
  font-size: 14px;
  margin-top: 15px;
}
.notice {
  position: fixed;
  z-index: 15;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 8px);
  background: #282b24;
  color: white;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13px;
  max-width: min(430px, 90vw);
  text-align: center;
  opacity: 0;
  transition: 0.15s;
  pointer-events: none;
}
.notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading,
.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: 190px;
  color: var(--muted);
}
.empty {
  padding: 25px;
  border: 1px dashed #d8d9ce;
  border-radius: 14px;
  background: #ffffff50;
}
.empty h3 {
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 8px 0 3px;
}
.empty p {
  font-size: 13px;
}
.empty .btn {
  margin-top: 15px;
}
.empty-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eeeee6;
  display: grid;
  place-items: center;
  color: #727563;
}
.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 27px;
}
.mode-tabs,
.filters {
  display: flex;
  align-items: center;
  gap: 3px;
}
.mode-tabs {
  background: #edede6;
  padding: 3px;
  border-radius: 9px;
}
.mode-tabs a,
.filters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.mode-tabs a {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
}
.mode-tabs a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px #1f21151c;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(158px, 215px) minmax(0, 1fr);
  gap: clamp(22px, 3.3vw, 50px);
}
.thread-list {
  border-right: 1px solid var(--line);
  padding-right: 18px;
  align-self: stretch;
}
.thread-list h3 {
  margin: 24px 0 9px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.thread-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.thread-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-link.active,
.thread-link:hover {
  background: #eaeae2;
  color: var(--ink);
}
.thread-list .btn {
  justify-content: flex-start;
}
.work-main {
  min-width: 0;
}
.work-header h1 {
  font-size: clamp(31px, 3vw, 43px);
}
.credit-pill {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid #d8d9ce;
  border-radius: 20px;
  background: #f0f0e7;
}
.work-sub {
  margin: 4px 0 21px;
}
.workspace-box,
.panel,
.work-card,
.stat,
.shared-work,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.composer {
  padding: 20px;
}
.composer-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.composer-heading label {
  display: block;
  font-size: 14px;
  font-weight: 690;
}
.composer-heading button[hidden] {
  display: none;
}
.continuity-source {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.composer textarea {
  margin: 7px 0 0;
  resize: vertical;
  width: 100%;
  min-height: 74px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 5px 1px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
.composer textarea::placeholder {
  color: #7b7d71;
}
.composer textarea:focus {
  outline: none;
  box-shadow: 0 2px 0 #f1b18d;
}
.creation-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 24px;
  margin-top: 12px;
  padding-block: 13px;
  border-block: 1px solid var(--line);
}
.creation-option {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.creation-option legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.option-chip {
  position: relative;
  cursor: pointer;
}
.option-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.option-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  min-width: 49px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.option-chip:hover span {
  border-color: #afafa1;
  color: var(--ink);
}
.option-chip input:checked + span {
  border-color: #d67c58;
  background: #fff0e7;
  color: #853b21;
}
.option-chip input:focus-visible + span {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.optimize-btn {
  color: var(--accent-strong);
}
.optimization-review {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff6ee;
  border: 1px solid #eed4bd;
  border-radius: 10px;
}
.optimization-review > label {
  font-size: 13px;
  font-weight: 650;
  color: #7e3d26;
}
.optimization-review textarea {
  background: var(--surface);
  border: 1px solid #d9c6b5;
  padding: 8px 10px;
}
.optimization-review .composer-tools {
  margin-top: 8px;
}
.composer-bottom,
.composer-tools,
.ref-active,
.work-actions,
.ad-links,
.filters,
.work-meta,
.work-header {
  display: flex;
  align-items: center;
  gap: 13px;
}
.composer-bottom,
.work-meta {
  justify-content: space-between;
}
.composer-bottom {
  margin-top: 12px;
  gap: 8px;
}
.composer-tools {
  gap: 15px;
  flex-wrap: wrap;
}
.upload {
  position: relative;
  cursor: pointer;
  border: 1px dashed #babcaf;
  padding: 7px 9px;
  border-radius: 6px;
  overflow: hidden;
}
.upload input {
  cursor: pointer;
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.upload:focus-within {
  outline: 2px solid #dd835b;
}
.upload.uploading {
  opacity: 0.5;
}
.upload.uploading:after {
  content: "上传中";
}
.memory-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 19px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #f6f6ef;
  border-radius: 0 0 var(--radius) var(--radius);
}
.ref-active {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 5px 3px 3px;
  font-size: 12px;
  gap: 7px;
  color: var(--muted);
}
.ref-active img {
  width: 36px;
  height: 32px;
  object-fit: cover;
  border-radius: 5px;
}
.section-head.compact {
  margin: 24px 0 12px;
}
.section-head.compact h2 {
  font-size: 19px;
}
.outputs {
  display: grid;
  gap: 13px;
}
.work-card {
  overflow: hidden;
  min-width: 0;
}
.work-card-body {
  padding: 16px;
}
.work-meta {
  font-size: 11px;
  color: var(--muted);
  gap: 6px;
}
.status {
  font-size: 11px;
  font-weight: 600;
  border-radius: 15px;
  padding: 3px 8px;
  white-space: nowrap;
  background: #eee;
}
.status.completed {
  background: #e2eee2;
  color: #386541;
}
.status.processing,
.status.queued {
  background: #f8ecd5;
  color: #85571c;
}
.status.failed {
  background: #f7e3dc;
  color: #963f26;
}
.work-prompt,
.work-answer,
.review-text,
.public-template,
.chat-answer p,
.chat-question p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.work-prompt {
  font-size: 14px;
  margin: 9px 0;
}
.work-answer,
.review-text,
.public-template {
  font-size: 14px;
  line-height: 1.7;
}
.work-answer,
.public-template {
  border-left: 2px solid #e0b49d;
  padding-left: 10px;
}
.pending {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 0;
}
.output-frame {
  background: #e6e6df;
}
.output-specs {
  padding: 5px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: #f3f2ec;
  color: var(--muted);
}
.output-media {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}
.work-actions {
  gap: 15px;
  margin-top: 12px;
  min-height: 20px;
}
.delete-work {
  margin-left: auto;
}
.ad-links {
  border-top: 1px solid var(--line);
  margin: 17px 0 0;
  padding: 10px 0;
  flex-wrap: wrap;
  font-size: 13px;
}
.ad-links small {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
}
.ad-links a {
  color: var(--accent-strong);
  font-weight: 600;
}
.chat-space > #thread-result {
  max-height: 55vh;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-gutter: stable;
}
.chat-space .empty {
  border: 0;
  min-height: 170px;
}
.exchanges {
  padding: 16px;
  display: grid;
  gap: 18px;
}
.exchange {
  display: grid;
  gap: 13px;
}
.exchange p {
  font-size: 14px;
  line-height: 1.75;
}
.chat-question {
  justify-self: end;
  background: #f0eee4;
  border-radius: 13px 13px 4px 13px;
  padding: 9px 12px;
  max-width: 85%;
}
.chat-question > div,
.chat-answer > div:first-child {
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 3px;
  color: var(--muted);
}
.chat-answer {
  padding: 0 3px;
}
.mini-mark {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 10px;
  border-radius: 5px;
  background: #ef855f;
  color: #fff;
}
.filters {
  gap: 6px;
  margin: 0 0 20px;
}
.filters a {
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 20px;
}
.filters a.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}
.works-grid {
  gap: 16px;
  align-items: start;
}
.works-grid .output-frame .output-media {
  height: 188px;
  object-fit: contain;
}
.works-grid .work-actions {
  gap: 8px;
  flex-wrap: wrap;
}
.works-grid .text-btn {
  font-size: 12px;
}
.works-grid .work-answer {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stats {
  display: grid;
  gap: 15px;
  margin-bottom: 22px;
}
.stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 19px 21px;
}
.stat > span {
  color: var(--muted);
  font-size: 13px;
}
.stat strong {
  font-size: clamp(29px, 3vw, 43px);
  letter-spacing: -0.05em;
  display: block;
  margin-top: 3px;
  line-height: 1.3;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}
.panel {
  padding: 21px;
  margin-bottom: 18px;
  min-width: 0;
}
.panel h2 {
  font-size: 19px;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
}
.panel-head {
  margin-bottom: 14px;
}
.account-panel .row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.account-panel .row:first-child {
  padding-top: 0;
}
.account-panel .row:last-child {
  border: 0;
  padding-bottom: 0;
}
.account-panel h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 16px;
}
.invite-banner {
  display: grid;
  grid-template-columns: 1.1fr minmax(220px, 0.8fr);
  gap: 30px;
  align-items: end;
  padding: clamp(21px, 3vw, 40px);
  border-radius: 18px;
  background: #31382e;
  color: #fff8eb;
  margin-bottom: 28px;
}
.invite-banner > div > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e7e9d9;
  font-size: 13px;
}
.invite-banner h2 {
  font-size: clamp(30px, 3vw, 46px);
  margin: 3px 0;
  letter-spacing: -1.7px;
}
.invite-banner h2 small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #e2e0cf;
}
.invite-banner p {
  color: #dedfce;
  font-size: 13px;
  max-width: 450px;
}
.invite-copy > label {
  font-size: 12px;
}
.invite-copy > div {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.invite-copy input {
  border: 1px solid #7d8270;
  background: #424a3d;
  border-radius: 8px;
  padding: 9px;
  min-width: 0;
  width: 100%;
  color: white;
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
}
.panel .table-wrap {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.table-url {
  overflow-wrap: anywhere;
  max-width: 340px;
}
.dashboard-head .page-intro {
  padding-bottom: 20px;
}
.dashboard-head {
  align-items: center;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.run-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.run-metrics > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.run-metrics b {
  color: var(--ink);
}
.legend {
  display: flex;
  gap: 11px;
  font-size: 11px;
  color: var(--muted);
}
.legend span:before {
  content: "";
  display: inline-block;
  background: #ec815a;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend span + span:before {
  background: #879677;
}
.chart {
  height: 185px;
  display: flex;
  gap: 5px;
  align-items: stretch;
  padding: 6px 2px 0;
}
.chart-day {
  height: 100%;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.chart-day small {
  height: 14px;
  white-space: nowrap;
  font:
    10px Arial,
    sans-serif;
  color: var(--muted);
}
.bar-pair {
  border-bottom: 1px solid #d0d0c3;
  height: calc(100% - 18px);
  width: 100%;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  justify-content: center;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    #f0f0e8 25%
  );
}
.bar-pair i {
  width: 34%;
  background: #ec815a;
  border-radius: 3px 3px 0 0;
  max-height: 100%;
}
.bar-pair i + i {
  background: #879677;
}
.admin-gate {
  max-width: 440px;
}
.admin-gate h2 {
  margin-top: 8px;
}
.check-label {
  display: flex !important;
  align-items: center;
}
.check-label input {
  width: auto !important;
  accent-color: var(--accent);
}
.shared-work {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  overflow: hidden;
}
.shared-view {
  background: #e7e7df;
  min-height: 230px;
  display: grid;
  place-items: center;
}
.shared-view .output-media {
  max-height: 560px;
}
.shared-copy {
  padding: clamp(20px, 3vw, 42px);
}
.shared-copy h2 {
  margin: 14px 0 10px;
}
.shared-copy h3 {
  font-size: 13px;
  margin: 12px 0 5px;
}
.shared-copy p {
  color: var(--muted);
  font-size: 14px;
}
.shared-copy .btn {
  margin-top: 18px;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 465px;
  }
  .tool-art {
    aspect-ratio: 2.5/1;
  }
}
@media (max-width: 980px) {
  .site-nav {
    gap: 18px;
  }
  .tool-grid,
  .works-grid {
    gap: 13px;
  }
  .hero {
    min-height: 375px;
  }
  .head-inner,
  .footer,
  .page-wrap {
    padding-inline: 28px;
  }
  .tool-body {
    padding: 13px 14px 16px;
  }
  .workspace {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 22px;
  }
  .thread-list {
    padding-right: 12px;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .run-metrics {
    grid-template-columns: 1fr;
  }
  .dash-grid {
    grid-template-columns: 1.35fr 0.8fr;
  }
  .dashboard-head .button-group {
    gap: 7px;
  }
  .invite-banner {
    gap: 18px;
  }
  .chat-sculpt i {
    width: 7%;
  }
}
@media (max-width: 700px) {
  .head-inner,
  .footer,
  .page-wrap {
    padding-inline: 16px;
  }
  .head-inner {
    grid-template-columns: 1fr auto;
    gap: 0;
  }
  .site-head {
    height: 91px;
  }
  .brand {
    align-self: end;
    min-height: 44px;
    margin-bottom: 2px;
  }
  .brand-wordmark {
    width: 96px;
  }
  #account-nav {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 5px;
  }
  .site-nav {
    grid-column: 1/-1;
    grid-row: 2;
    align-items: stretch;
    gap: 22px;
    font-size: 12px;
  }
  .site-nav a.active:after {
    bottom: 0;
    height: 2px;
  }
  .page-wrap {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .hero {
    min-height: 340px;
    border-radius: 15px;
  }
  .hero-content {
    padding: 24px;
  }
  .hero h1 {
    font-size: 53px;
    margin: 14px 0 12px;
  }
  .hero-art {
    object-position: 62% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #171a15c9, #181b1778 55%, #181b1728);
  }
  .hero-content p {
    font-size: 13px;
  }
  .hero-actions {
    margin-top: 21px;
    gap: 16px;
  }
  .hero-actions .btn {
    min-height: 42px;
    min-width: 105px;
  }
  .tools {
    margin-top: 25px;
  }
  .section-head {
    align-items: flex-start;
    gap: 8px;
  }
  .section-head h2 {
    font-size: 23px;
  }
  .benefit {
    font-size: 10px;
    align-self: center;
    gap: 4px;
  }
  .benefit svg {
    width: 14px;
  }
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .tool-art {
    aspect-ratio: 1.45;
  }
  .tool-body {
    padding: 8px;
  }
  .tool-title h3 {
    font-size: 16px;
    letter-spacing: -0.7px;
  }
  .tool-title {
    margin-top: 2px;
  }
  .tool-en {
    font-size: 8px;
    letter-spacing: 0.07em;
  }
  .tool-go {
    width: 20px;
    height: 20px;
  }
  .tool-go svg {
    width: 13px;
  }
  .tool-body p {
    font-size: 11px;
    line-height: 1.55;
  }
  .tool-badge {
    width: 22px;
    height: 22px;
    top: 7px;
    left: 7px;
    border-radius: 6px;
  }
  .tool-badge svg {
    width: 13px;
  }
  .tool-card {
    border-radius: 11px;
  }
  .footer {
    min-height: 55px;
  }
  .workspace {
    display: block;
  }
  .workspace-top {
    margin-bottom: 15px;
  }
  .thread-list {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    margin: 0 0 18px;
    display: flex;
    gap: 9px;
    align-items: center;
    min-width: 0;
  }
  .thread-list h3,
  .thread-list .fine {
    display: none;
  }
  .thread-list > .btn {
    width: auto;
    flex: none;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
  .thread-items {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    gap: 3px;
  }
  .thread-link {
    flex: none;
    max-width: 150px;
    font-size: 12px;
  }
  .thread-link svg {
    display: none;
  }
  .work-header h1 {
    font-size: 33px;
  }
  .work-sub {
    margin-bottom: 14px;
  }
  .composer {
    padding: 14px;
  }
  .creation-options {
    gap: 10px 16px;
  }
  .option-chip span {
    min-height: 38px;
  }
  .composer-bottom:has(.optimize-btn) {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .composer-bottom:has(.optimize-btn) > .btn {
    margin-left: auto;
  }
  .memory-hint {
    padding: 9px 13px;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 12px;
  }
  .stat > span {
    font-size: 11px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat small {
    font-size: 10px;
  }
  .stats.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel {
    padding: 15px;
  }
  .dash-grid {
    display: block;
  }
  .dashboard-head {
    align-items: center;
  }
  .page-intro {
    padding: 12px 0 20px;
  }
  .invite-banner,
  .shared-work {
    grid-template-columns: 1fr;
  }
  .invite-banner {
    align-items: start;
  }
  .works-grid {
    gap: 10px;
  }
  .work-card-body {
    padding: 11px;
  }
  .works-grid .output-frame .output-media {
    height: 150px;
  }
  .account-panel .row {
    gap: 12px;
  }
  .account-panel .row p {
    font-size: 12px;
  }
  .account-panel .row .btn {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }
  .chart {
    height: 150px;
  }
}
@media (max-width: 480px) {
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tool-card {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    min-height: 106px;
  }
  .tool-art {
    aspect-ratio: auto;
    height: 100%;
  }
  .tool-body {
    padding: 12px 13px;
  }
  .tool-title h3 {
    font-size: 19px;
  }
  .tool-body p {
    font-size: 12px;
  }
  .tool-go {
    width: 24px;
    height: 24px;
  }
  .tool-en {
    font-size: 9px;
  }
  .chat-sculpt {
    gap: 3px;
  }
  .hero {
    min-height: 321px;
  }
  .hero-content {
    padding: 20px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-more {
    font-size: 12px;
  }
  .hero-tag {
    font-size: 11px;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .works-grid .output-frame .output-media {
    height: auto;
    max-height: 320px;
  }
  .section-head.compact h2,
  .panel h2 {
    font-size: 17px;
  }
  .credit-pill {
    font-size: 10px;
    padding: 4px 7px;
  }
  .mode-tabs a {
    padding: 0 7px;
    font-size: 11px;
  }
  .mode-tabs a svg {
    width: 14px;
  }
  .composer-tools {
    gap: 9px;
  }
  .composer-bottom .btn {
    min-height: 37px;
    font-size: 12px;
    padding: 0 10px;
  }
  .upload,
  .composer-tools .text-btn {
    font-size: 11px;
  }
  .stat {
    padding: 10px;
  }
  .stat strong {
    font-size: 24px;
  }
  .shared-view {
    min-height: 170px;
  }
  .stats.three {
    gap: 5px;
  }
  .stats.three .stat {
    border-radius: 10px;
  }
  .account-link > span:not(.avatar),
  .account-link > svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.load-more {
  margin-top: 10px;
}
@media (min-width: 701px) and (max-height: 800px) {
  .hero {
    min-height: clamp(310px, 46vh, 365px);
  }
  .hero-content {
    padding-block: 24px;
  }
  .hero h1 {
    font-size: clamp(48px, 4.4vw, 64px);
    margin-block: 10px;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .tools {
    margin-top: 25px;
  }
  .tool-art {
    aspect-ratio: 2.85;
  }
}
