:root {
  --paper: #f8f6f0;
  --ink: #303e32;
  --muted: #8a8d81;
  --line: #e3e3d8;
  --accent: #db684b;
  --green: #354f40;
  --sage: #e7ebdf;
  --white: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.tiny-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8c947f;
  font-weight: 500;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
}
.brand strong span {
  font-size: 10px;
  display: block;
  letter-spacing: 0.4px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
  font-weight: 500;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #c95c41;
}
.button.outline {
  border-color: #d9ddcf;
  background: transparent;
}
.button.outline:hover {
  background: #edf0e6;
}
.button.small {
  padding: 10px 15px;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #76816d;
  font-size: 12px;
  padding: 5px 0;
}
.text-button:hover {
  color: var(--accent);
}
.site-nav {
  max-width: 1260px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 36px;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.site-nav nav > a {
  font-size: 12px;
  color: #737b6c;
}
.hero-home {
  max-width: 1260px;
  min-height: 670px;
  margin: auto;
  padding: 50px 36px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}
.overline {
  font-size: 11px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.overline i,
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #8b9c77;
}
.hero-copy h1 {
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(48px, 4.4vw, 67px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 1px;
  position: relative;
  margin: 26px 0;
}
.hero-copy h1 .emphasis {
  color: var(--accent);
}
.hero-copy h1 svg {
  position: absolute;
  bottom: 0;
  left: 195px;
  width: 135px;
  fill: none;
  stroke: #d9a38c;
  stroke-width: 2;
  stroke-linecap: round;
}
.hero-copy > p {
  font-size: 14px;
  line-height: 2.2;
  color: #858879;
  margin: 24px 0 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.quiet-link {
  font-size: 12px;
  color: #7b846e;
}
.quiet-link span {
  margin-left: 8px;
}
.address-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 12px 15px;
  border: 1px dashed #d5dacb;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 27px;
  color: #68725f;
}
.address-pill > span:first-child {
  font-size: 19px;
  margin-right: 7px;
}
.address-pill i {
  font-style: normal;
  font-size: 9px;
  background: #eceee3;
  padding: 3px 5px;
  margin-left: 16px;
  color: #858e77;
}
.hero-collage {
  position: relative;
  padding: 38px 0 55px;
}
.hero-collage:before {
  content: "";
  position: absolute;
  width: 110%;
  height: 100%;
  left: -5%;
  top: -4%;
  background: radial-gradient(ellipse, #e5e9d94d, transparent 70%);
  z-index: -1;
}
.sample-window {
  background: var(--white);
  border: 1px solid #d5dccd;
  border-radius: 12px;
  transform: rotate(3deg);
  box-shadow:
    9px 19px 0 -4px #e7eadc,
    0 22px 55px #34432913;
  max-width: 430px;
  margin: auto;
  overflow: hidden;
}
.sample-toolbar {
  background: #f1f1e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  padding: 12px 15px;
  color: #999e91;
}
.dots {
  letter-spacing: 3px;
  font-size: 8px;
  color: #b8c0ae;
}
.sample-body {
  padding: 25px 25px 15px;
}
.sample-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sample-top h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  margin: 12px 0 7px;
  position: relative;
}
.sample-top h2 span {
  position: absolute;
  right: -65px;
  top: 15px;
  font-size: 44px;
  color: #9caa82;
}
.sample-top p {
  font-size: 10px;
  color: #89917d;
}
.sample-avatar {
  width: 44px;
  height: 44px;
  background: #ddd7b6;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: serif;
  font-size: 20px;
  align-self: flex-start;
  margin-top: 16px;
  color: #777b57;
}
.sample-tags {
  display: flex;
  gap: 7px;
  margin: 15px 0;
}
.sample-tags span {
  font-size: 8px;
  border: 1px solid #e1e6d8;
  padding: 4px 8px;
  border-radius: 30px;
  color: #808b72;
}
.sample-photo {
  padding: 8px;
  background: #f0f1e8;
  transform: rotate(-2deg);
}
.sample-photo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.sample-photo > span {
  font-size: 9px;
  color: #929980;
  display: block;
  margin: 9px 0 3px;
  text-align: center;
  letter-spacing: 1px;
}
.sample-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 0;
  font-size: 12px;
}
.sample-note > span:first-child {
  font-size: 22px;
  color: #8e9b76;
}
.sample-note b {
  font-weight: 500;
  font-size: 11px;
}
.sample-note p {
  font-size: 9px;
  color: #a0a594;
  margin: 6px 0;
}
.sample-note > span:last-child {
  margin-left: auto;
  color: #94a080;
}
.floating-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #899274;
  position: absolute;
  right: 10px;
  top: -5px;
  transform: rotate(6deg);
}
.floating-label > span {
  font-size: 30px;
  display: block;
  margin-left: 70px;
  font-family: serif;
  font-weight: 300;
}
.chat-sticker {
  position: absolute;
  bottom: 75px;
  left: -37px;
  padding: 16px 20px;
  background: #fffef9;
  border: 1px solid #e5e5da;
  box-shadow: 0 8px 30px #34432912;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  transform: rotate(-4deg);
}
.chat-sticker small {
  color: #93977e;
  font-size: 9px;
}
.chat-sticker p {
  font-size: 11px;
  margin: 6px 0 0;
}
.ai-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eef0e4;
  color: #829568;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.check {
  color: #80916d;
  font-size: 13px;
  margin-left: 5px;
}
.version-sticker {
  position: absolute;
  bottom: 2px;
  right: 0;
  font-size: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  color: #869271;
  background: #ecefe3;
  transform: rotate(2deg);
}
.version-sticker span {
  font-size: 19px;
  vertical-align: middle;
  margin-right: 6px;
}
.collage-star {
  position: absolute;
  bottom: 4px;
  left: 8px;
  font-size: 64px;
  color: #d6b69a;
  transform: rotate(15deg);
}
.manifesto {
  max-width: 1188px;
  margin: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
}
.manifesto > span {
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
}
.manifesto p {
  font-size: 11px;
  color: #969987;
  letter-spacing: 0.4px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1260px;
  margin: auto;
  padding: 60px 36px;
  gap: 60px;
}
.feature-number {
  font-size: 10px;
  letter-spacing: 1px;
  color: #969c88;
}
.feature-icon {
  font-size: 34px;
  color: #9aab82;
  margin: 24px 0 16px;
  font-weight: 300;
}
.feature-grid h3 {
  font-weight: 500;
  font-size: 19px;
}
.feature-grid p {
  font-size: 12px;
  line-height: 1.9;
  color: #8e9584;
  max-width: 290px;
}
.bottom-cta {
  text-align: center;
  padding: 60px 20px 80px;
  background: #eeefe5;
  border-top: 1px solid #e7e8db;
}
.bottom-cta h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 29px;
  font-weight: 500;
  margin: 18px 0 28px;
}
.site-footer {
  max-width: 1260px;
  margin: auto;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-footer .brand img {
  width: 26px;
  height: 26px;
}
.site-footer .brand strong {
  font-size: 17px;
}
.site-footer > span {
  font-size: 11px;
  color: #a1a591;
}
.site-footer > span:last-child {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 1px;
}
dialog {
  position: fixed;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 38px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px #263b3329;
}
dialog::backdrop {
  background: #283b326b;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
  font-size: 26px;
  margin: 14px 0;
}
dialog p {
  line-height: 1.8;
  font-size: 13px;
}
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  color: #969d8e;
}
.dialog-brand {
  font-size: 44px;
  color: #95a878;
  margin-bottom: 20px;
}
.oauth-buttons {
  display: grid;
  gap: 11px;
  margin: 25px 0 10px;
}
.wechat {
  background: #edf3e8;
  color: #4e7750;
  border-color: #d6e6cf;
}
.qq {
  background: #edf2f6;
  color: #497293;
  border-color: #d6e4ec;
}
.disabled {
  opacity: 0.55;
  pointer-events: none;
}
.login-note {
  font-size: 11px !important;
  color: #8b947e;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #77886a;
  display: flex;
  justify-content: space-between;
}
form label {
  display: block;
  font-size: 12px;
  color: #737d69;
  margin: 19px 0 8px;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dde2d3;
  border-radius: 6px;
  padding: 12px;
  background: #fbfbf6;
  color: var(--ink);
  outline: none;
  margin-top: 8px;
  font-size: 13px;
}
input:focus,
textarea:focus {
  border-color: #a8b597;
  box-shadow: 0 0 0 3px #a8b59715;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
form > .button {
  width: 100%;
  margin-top: 16px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.6;
}
.checkline input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}
.fine {
  font-size: 10px !important;
  color: #a0a591;
  margin: 18px 0 0;
  line-height: 1.8;
}
.form-error {
  color: #c15c43 !important;
  font-size: 12px !important;
  min-height: 10px;
}
.input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid #dde2d3;
  border-radius: 6px;
  margin-top: 8px;
  padding-right: 12px;
  background: #fbfbf6;
}
.input-suffix input {
  border: 0;
  margin: 0;
  min-width: 0;
}
.input-suffix > span {
  font-size: 12px;
  color: #949d85;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 23px;
  color: #fff;
  background: #354d40;
  border-radius: 8px;
  z-index: 1000;
  transition: 0.2s;
  max-width: 90vw;
  line-height: 1.7;
  font-size: 13px;
  box-shadow: 0 5px 30px #233b3225;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.studio {
  height: 100dvh;
  overflow: hidden;
}
.studio-header {
  height: 76px;
  padding: 0 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fbfaf5;
}
.studio-header .brand {
  min-width: 167px;
}
.studio-header .brand strong {
  font-size: 19px;
}
.studio-header .brand img {
  width: 33px;
  height: 33px;
}
.studio-location {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #858e79;
  max-width: 35%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button {
  border: 0;
  background: none;
  color: #939d83;
  font-size: 18px;
  padding: 9px;
}
.studio-layout {
  height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: 184px 355px minmax(0, 1fr);
}
.studio-sidebar {
  background: #f3f3eb;
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
}
.workspace-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 32px 1px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e5d5;
  display: grid;
  place-items: center;
  color: #70805e;
  font-family: serif;
  flex-shrink: 0;
}
.workspace-title b {
  font-weight: 500;
  font-size: 12px;
  display: block;
  max-width: 105px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-title span {
  font-size: 9px;
  color: #a0a78d;
  display: block;
  margin-top: 6px;
}
.studio-tabs {
  display: grid;
  gap: 7px;
}
.studio-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  text-align: left;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 18px;
  color: #8c947e;
}
.studio-tabs button span {
  font-size: 12px;
}
.studio-tabs button.active {
  background: #e4e9d9;
  color: #556943;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 10px 0;
}
.mini-flower {
  font-size: 53px;
  color: #c3cca9;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.9;
  color: #9aa389;
  margin: 8px 0 25px;
}
.sidebar-bottom button {
  font-size: 10px;
}
.editor-panel {
  min-height: 0;
  overflow: hidden;
  background: #fffef9;
  border-right: 1px solid var(--line);
}
.panel-content {
  height: 100%;
  padding: 28px 24px 15px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-heading h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 12px 0 10px;
}
.panel-heading p {
  color: #929b83;
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.panel-heading {
  padding-bottom: 25px;
  flex-shrink: 0;
}
.chat-messages {
  flex: 1;
  min-height: 80px;
  overflow-y: auto;
  padding-right: 2px;
  scroll-behavior: smooth;
}
.assistant-message {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.9;
  margin: 10px 0 25px;
}
.assistant-message .ai-dot {
  width: 25px;
  height: 25px;
  font-size: 16px;
  border-radius: 7px;
  margin-top: 2px;
}
.assistant-message > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.assistant-message p {
  font-size: 10px;
  line-height: 1.8;
  margin: 10px 0;
}
.message-body {
  white-space: pre-wrap;
}
.user-message {
  margin: 20px 0 20px 32px;
  background: #f1f0e6;
  padding: 12px 15px;
  border-radius: 12px 12px 2px 12px;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.version-chip {
  display: block;
  margin-top: 13px;
  background: #eff2e8;
  color: #83976c;
  border: 1px solid #dfe6d1;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 10px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 0;
}
.suggestions button {
  background: #f9f9f2;
  border: 1px solid #e4e8dc;
  border-radius: 20px;
  padding: 7px 12px;
  color: #929c82;
  font-size: 10px;
}
.suggestions button:hover {
  color: #6d8157;
  border-color: #aebc9d;
}
.chat-composer {
  border: 1px solid #dce1d0;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fcfcf6;
  box-shadow: 0 3px 12px #34432904;
  flex-shrink: 0;
}
.chat-composer textarea {
  border: 0;
  background: transparent;
  padding: 2px;
  margin: 0;
  box-shadow: none;
  resize: none;
  font-size: 12px;
  line-height: 1.9;
}
.chat-composer textarea::placeholder {
  color: #a4ad94;
}
.chat-composer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}
.chat-composer > div span {
  font-size: 9px;
  color: #a2ac91;
}
.chat-composer button {
  border: 0;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  background: #77925e;
  color: white;
}
.composer-note {
  font-size: 9px;
  color: #b1b7a5;
  text-align: center;
  margin: 11px 0 0;
}
.preview-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #eaece2;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 25px;
  border-bottom: 1px solid #dfe3d4;
  background: #f5f6ef;
  gap: 10px;
  flex-shrink: 0;
}
.preview-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.preview-toolbar b {
  font-size: 11px;
  font-weight: 400;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-state {
  font-size: 9px;
  color: #8f9d7d;
  border: 1px solid #dbe3ce;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.preview-state.draft {
  color: #be9064;
  background: #f7f0df;
  border-color: #eee2c7;
}
.device-switch {
  display: flex;
  background: #ebeee2;
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.device-switch button {
  border: 0;
  border-radius: 4px;
  color: #a5af95;
  background: transparent;
  font-size: 17px;
  width: 27px;
  height: 25px;
}
.device-switch button.active {
  background: #fffefa;
  color: #6a7e55;
  box-shadow: 0 1px 4px #34432914;
}
.preview-canvas {
  flex: 1;
  min-height: 0;
  padding: 24px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: radial-gradient(#ccd2be 1px, transparent 1px);
  background-size: 18px 18px;
}
.browser-frame {
  background: white;
  border: 1px solid #d4dbca;
  border-radius: 10px;
  box-shadow: 0 10px 32px #3443290a;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-width 0.2s;
}
.browser-frame.phone {
  max-width: 390px;
  border-radius: 22px;
  border: 5px solid #6e7c62;
}
.frame-bar {
  height: 34px;
  background: #f5f5ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid #e4e8db;
  font-size: 9px;
  color: #a4ad96;
  flex-shrink: 0;
}
.browser-frame iframe {
  border: 0;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #f6f4ed;
}
.preview-caption {
  font-size: 9px;
  color: #a2ad92;
  padding-top: 11px;
}
.mobile-switch {
  display: none;
}
.content-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.content-empty {
  text-align: center;
  padding: 60px 8px;
  color: #a0a98e;
}
.content-empty > span {
  font-size: 50px;
  color: #c7d0b5;
}
.content-empty h3 {
  font-size: 14px;
  font-weight: 400;
}
.content-empty p {
  font-size: 11px;
  line-height: 1.8;
}
#content-list,
#version-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  padding: 15px;
}
.content-card > img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 4px;
}
.content-card h3 {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.content-excerpt {
  font-size: 11px;
  color: #9aa18d;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.content-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.content-meta > span {
  font-size: 10px;
}
.public-badge {
  color: #8a9d71;
}
.private-badge {
  color: #ac9c79;
}
.content-meta .text-button {
  font-size: 10px;
}
.file-drop {
  border: 1px dashed #bcc9aa;
  padding: 26px 16px;
  background: #f6f8ef;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
}
.file-drop input {
  font-size: 11px;
  border: 0;
  background: transparent;
}
.file-drop > span {
  font-size: 10px;
  color: #a3ae92;
  display: block;
  margin-top: 12px;
}
.version-card {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 13px;
}
.version-card.selected {
  border-color: #9eb283;
  background: #f8faf2;
}
.version-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8b9c74;
}
.version-meta > span:last-child {
  margin-left: auto;
  font-size: 9px;
}
.published-tag {
  font-size: 8px;
  background: #e4ecda;
  padding: 3px 5px;
  border-radius: 3px;
}
.version-card h3 {
  font-size: 13px;
  font-weight: 500;
}
.version-prompt {
  font-size: 10px;
  color: #9ea98d;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.version-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e7eadf;
  padding-top: 10px;
  margin-top: 12px;
}
.version-actions button {
  font-size: 10px;
}
.spinning {
  animation: spin 3s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.public-space {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.space-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 25px;
  height: 57px;
  gap: 15px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.space-topbar .brand img {
  width: 25px;
  height: 25px;
}
.space-topbar .brand strong {
  font-size: 16px;
}
.space-topbar > span {
  font-size: 11px;
  color: #959d89;
}
.space-topbar > a:last-child {
  font-size: 11px;
  color: #ac8a69;
}
.public-space iframe {
  border: 0;
  flex: 1;
  width: 100%;
  background: #f6f4ed;
}
#not-found {
  text-align: center;
  padding: 80px 20px;
}
#not-found > span {
  font-size: 80px;
  color: #aebc9f;
}
#not-found h1 {
  font-size: 25px;
  font-weight: 400;
}
#not-found p {
  color: #969e89;
  margin-bottom: 30px;
}
@media (min-width: 1500px) {
  .studio-layout {
    grid-template-columns: 205px 400px minmax(0, 1fr);
  }
  .panel-content {
    padding: 35px 30px 20px;
  }
  .preview-canvas {
    padding: 35px 40px 16px;
  }
  .preview-toolbar {
    padding: 0 40px;
  }
}
@media (max-width: 1100px) {
  .hero-home {
    gap: 25px;
    min-height: 620px;
  }
  .hero-copy h1 {
    font-size: 52px;
  }
  .sample-window {
    max-width: 370px;
  }
  .chat-sticker {
    left: -15px;
    padding: 12px;
  }
  .studio-layout {
    grid-template-columns: 70px 320px minmax(0, 1fr);
  }
  .studio-sidebar {
    padding: 25px 10px;
  }
  .workspace-title {
    justify-content: center;
  }
  .workspace-title > div:last-child {
    display: none;
  }
  .studio-tabs button {
    padding: 12px;
    justify-content: center;
  }
  .studio-tabs span,
  .sidebar-bottom p,
  .sidebar-bottom .text-button {
    display: none;
  }
  .sidebar-bottom {
    padding: 10px 0;
  }
  .mini-flower {
    font-size: 42px;
    text-align: center;
  }
  .preview-toolbar {
    padding: 0 15px;
  }
  .preview-state {
    display: none;
  }
  .preview-canvas {
    padding: 16px 14px 10px;
  }
  .studio-location {
    max-width: 25%;
  }
  .manifesto {
    margin: 0 36px;
  }
  .hero-copy h1 svg {
    left: 155px;
  }
  .feature-grid {
    gap: 35px;
  }
}
@media (max-width: 760px) {
  .site-nav {
    padding: 20px;
  }
  .site-nav nav {
    gap: 16px;
  }
  .site-nav nav > a {
    display: none;
  }
  .hero-home {
    padding: 35px 25px 45px;
    display: flex;
    flex-direction: column;
    gap: 45px;
  }
  .hero-copy {
    width: 100%;
    max-width: 480px;
  }
  .overline {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .hero-copy h1 {
    font-size: 48px;
    margin: 21px 0;
    line-height: 1.4;
  }
  .hero-copy h1 svg {
    width: 113px;
    left: 148px;
    bottom: -4px;
  }
  .hero-copy > p {
    font-size: 12px;
    line-height: 2.1;
    margin: 23px 0;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 14px 18px;
    gap: 20px;
  }
  .address-pill {
    font-size: 10px;
    padding: 9px 12px;
    margin-top: 22px;
  }
  .hero-collage {
    width: 100%;
    max-width: 390px;
    padding: 25px 5px 55px;
  }
  .sample-window {
    max-width: 325px;
    transform: rotate(2deg);
  }
  .sample-body {
    padding: 20px;
  }
  .sample-top h2 {
    font-size: 27px;
  }
  .sample-photo img {
    height: 145px;
  }
  .chat-sticker {
    left: -4px;
    bottom: 55px;
    font-size: 10px;
    padding: 12px;
  }
  .chat-sticker p {
    font-size: 10px;
  }
  .floating-label {
    font-size: 10px;
    top: -18px;
    right: 0;
  }
  .version-sticker {
    bottom: 0;
    font-size: 9px;
  }
  .collage-star {
    font-size: 46px;
    bottom: -6px;
  }
  .manifesto {
    margin: 0 24px;
    display: block;
    padding: 26px 0;
  }
  .manifesto > span {
    font-size: 19px;
  }
  .manifesto p {
    font-size: 10px;
    line-height: 1.9;
    margin-bottom: 0;
  }
  .feature-grid {
    padding: 40px 25px;
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .feature-grid article {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
  .feature-grid article:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .feature-number {
    grid-column: 2;
    font-size: 9px;
  }
  .feature-icon {
    grid-column: 1;
    grid-row: 1/4;
    margin: 10px 0 0;
  }
  .feature-grid h3 {
    grid-column: 2;
    font-size: 17px;
    margin: 12px 0 6px;
  }
  .feature-grid p {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
    max-width: none;
  }
  .bottom-cta {
    padding: 42px 22px 48px;
  }
  .bottom-cta h2 {
    font-size: 24px;
    line-height: 1.5;
  }
  .bottom-cta .button {
    font-size: 12px;
  }
  .site-footer {
    padding: 22px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .site-footer > span:last-child {
    font-size: 8px;
  }
  .site-footer .brand img {
    width: 22px;
  }
  .site-footer > span:nth-child(2) {
    display: none;
  }
  .studio-header {
    height: 66px;
    padding: 0 14px;
    gap: 10px;
  }
  .studio-header .brand {
    min-width: 0;
    gap: 8px;
  }
  .studio-header .brand strong {
    font-size: 17px;
  }
  .studio-header .brand strong span {
    font-size: 8px;
  }
  .studio-header .brand img {
    width: 29px;
    height: 29px;
  }
  .studio-location {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .button {
    padding: 9px 11px;
    font-size: 10px;
  }
  .header-actions .icon-button {
    padding: 7px;
  }
  #visit-button {
    display: none;
  }
  .studio-layout {
    height: calc(100dvh - 120px);
    grid-template-columns: 1fr;
    grid-template-rows: 55px minmax(0, 1fr);
  }
  .studio-sidebar {
    grid-row: 1;
    padding: 6px 12px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-title,
  .sidebar-bottom {
    display: none;
  }
  .studio-tabs {
    display: flex;
    gap: 5px;
    height: 42px;
  }
  .studio-tabs button {
    padding: 10px 14px;
    gap: 7px;
    flex: 1;
    font-size: 17px;
  }
  .studio-tabs span {
    display: inline !important;
    font-size: 11px !important;
    white-space: nowrap;
  }
  .editor-panel {
    grid-row: 2;
    border: 0;
  }
  .panel-content {
    padding: 20px 21px 8px;
  }
  .panel-heading {
    padding-bottom: 14px;
  }
  .panel-heading h2 {
    font-size: 21px;
    margin: 9px 0 7px;
  }
  .panel-heading .tiny-label {
    font-size: 8px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .chat-messages {
    min-height: 50px;
  }
  .suggestions {
    padding: 11px 0;
    gap: 6px;
  }
  .suggestions button {
    font-size: 9px;
    padding: 6px 9px;
  }
  .preview-panel {
    display: none;
    grid-row: 1/3;
  }
  .mobile-switch {
    height: 54px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #f9faf3;
    border-top: 1px solid var(--line);
    padding: 7px 20px;
    gap: 12px;
  }
  .mobile-switch button {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    color: #8e9b7d;
  }
  .mobile-switch .active {
    background: #e6edda;
    color: #708757;
  }
  .previewing .studio-sidebar,
  .previewing .editor-panel {
    display: none;
  }
  .previewing .preview-panel {
    display: flex;
  }
  .preview-toolbar {
    height: 49px;
  }
  .preview-canvas {
    padding: 12px 10px 8px;
  }
  .browser-frame.phone {
    max-width: 100%;
  }
  .preview-caption {
    font-size: 8px;
  }
  .composer-note {
    margin: 7px 0 0;
    font-size: 8px;
  }
  dialog {
    padding: 30px 24px;
    border-radius: 12px;
  }
  dialog h2 {
    font-size: 24px;
  }
  #toast {
    bottom: 68px;
    font-size: 12px;
    width: max-content;
    max-width: 90vw;
  }
  .space-topbar {
    padding: 12px 16px;
  }
  .space-topbar > span {
    display: none;
  }
  .space-topbar > a:last-child {
    font-size: 10px;
  }
  .content-card > img {
    height: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.chat-composer > .chat-attachments { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.chat-attachments:empty { display:none; }
.chat-composer .attachment-chip { display:flex; align-items:center; gap:6px; max-width:100%; background:#f0f0e8; padding:5px 8px; border-radius:10px; }
.chat-composer .attachment-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
.attachment-chip img { width:36px; height:36px; object-fit:cover; border-radius:6px; }
.chat-composer .attachment-chip button { width:24px; height:24px; background:transparent; color:#555; }
.chat-composer .composer-actions { gap:8px; }
.chat-composer .composer-actions span { flex:1; }
.chat-composer #attach-button { background:#eeeee4; color:#52613b; flex-shrink:0; }
.user-message small { display:block; margin-top:6px; overflow-wrap:anywhere; }

.vault-open .editor-panel { grid-column:2 / -1; }
.vault-open .preview-panel,.vault-open .mobile-switch { display:none !important; }
#tab-vault { overflow-y:auto; }
.vault-banner { background:#edf1e5; color:#4b6142; padding:14px 18px; border-radius:12px; margin-bottom:20px; }
.vault-toolbar,.vault-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.vault-filters input { flex:1; min-width:160px; }
.vault-filters select { padding:10px; border:1px solid #dcded2; border-radius:8px; background:#fff; }
.vault-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.vault-card { background:#fff; border:1px solid #e4e5dc; padding:18px; border-radius:16px; overflow-wrap:anywhere; }
.vault-card img { width:100%; height:150px; object-fit:cover; border-radius:9px; }
.vault-card h3 { font-size:17px; margin:10px 0; }
.vault-card p { white-space:pre-wrap; font-size:13px; color:#777; }
.vault-card .version-actions { flex-wrap:wrap; }
.vault-note-dialog { width:min(740px,92vw); }
.vault-note-dialog textarea { min-height:260px; }
.vault-privacy { margin-top:25px; }
@media(max-width:760px) { .vault-open .editor-panel { display:block !important; grid-column:auto; } .vault-open .studio-layout { padding-bottom:0; } .vault-grid { grid-template-columns:1fr; } .vault-toolbar .button { font-size:12px; } }

.vault-open #publish-button, .vault-open #visit-button { display:none; }

@media(max-width:760px) { .studio-tabs button { min-width:0; padding:10px 5px; gap:3px; font-size:14px; } .studio-layout { min-width:0; } }

.private-mode-tabs { display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.private-design-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.private-design-toolbar select { max-width:220px; padding:9px; border:1px solid #ddd; border-radius:9px; }
#private-design-status { font-size:12px; color:#777; margin-right:auto; }
.private-design-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:18px; min-height:560px; height:65vh; }
.private-designer { display:flex; flex-direction:column; min-height:0; padding:16px; background:#f5f5ee; border-radius:15px; }
.private-designer h3 { margin:0 0 8px; font-size:18px; font-weight:500; }
.private-chat-messages { flex:1; overflow:auto; min-height:100px; }
.private-chat-messages > p { font-size:13px; padding:12px; border-radius:10px; white-space:pre-wrap; overflow-wrap:anywhere; }
.private-chat-messages .mine { background:#e8ebdb; }
.private-chat-messages .reply { background:#fff; }
#private-chat-input { width:100%; font:inherit; resize:vertical; min-height:80px; }
.private-chat-actions { display:flex; justify-content:space-between; gap:10px; margin-top:8px; }
#private-chat-files { display:flex; flex-wrap:wrap; gap:5px; }
#private-chat-files button { max-width:100%; font-size:11px; overflow:hidden; text-overflow:ellipsis; }
#private-frame { width:100%; height:100%; min-height:560px; border:1px solid #ddd; border-radius:16px; background:#202b32; }
#private-source-code { width:100%; font:12px monospace; min-height:50vh; }
@media(max-width:1100px){.private-design-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:760px){.private-design-layout{display:flex;flex-direction:column;height:auto;min-height:0}.private-designer{max-height:480px}.private-chat-messages{max-height:160px;min-height:60px}#private-frame{height:70vh;min-height:450px;flex-shrink:0}.private-design-toolbar .button{font-size:11px}.private-design-toolbar select{max-width:100%}#tab-vault{display:block}.private-mode-tabs .button{font-size:12px}}
.account-menu { position:relative; z-index:30; flex-shrink:0; font-size:13px; }
.account-menu summary { cursor:pointer; list-style:none; border:1px solid #d5dbc9; border-radius:20px; padding:9px 13px; background:#edf1e5; color:#40523a; max-width:220px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.account-menu summary::-webkit-details-marker { display:none; }
.account-popover { position:absolute; top:calc(100% + 10px); right:0; width:245px; padding:18px; border:1px solid #ddd; border-radius:14px; background:#fffef9; box-shadow:0 10px 35px #0002; color:#333; }
#account-identity { white-space:pre-wrap; overflow-wrap:anywhere; font-weight:500; line-height:1.7; margin:0 0 12px; }
.account-popover a,.account-popover button { display:block!important; width:100%; box-sizing:border-box; text-align:left; margin:0; padding:10px 4px; font:inherit; color:#40523a; background:none; border:0; text-decoration:none; cursor:pointer; }
#account-error { font-size:12px; color:#a04e3f; margin:8px 0 0; }
#account-error:empty { display:none; }
@media(max-width:760px) { .account-menu { font-size:11px; }.account-menu summary { max-width:115px; padding:8px 9px; }.account-popover { width:225px; right:0; }.studio-header .header-actions { gap:5px; }.site-nav nav { gap:8px; }.site-nav nav > a { display:none; } }

.account-menu { border:0; margin:0; padding:0; }
