:root {
  --ink: #1a1a1a;
  --muted: #8b909a;
  --line: #f0f1f4;
  --paper: #ffffff;
  --card: #fff;
  --green: #ff5a22;
  --green-ink: #ff5a22;
  --danger: #e5484d;
  --shadow: 0 8px 24px rgba(20, 24, 32, 0.06);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
#app { min-height: 100dvh; }
.shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: #fff;
}
.top h1 { font-size: 18px; margin: 0; font-weight: 650; flex: 1; }
.top button, .ghost {
  border: 0; background: transparent; color: var(--green-ink); padding: 6px 8px;
}
.main { flex: 1; padding: 0 16px 88px; }
.main.home { padding-left: 0; padding-right: 0; }
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(520px, 100%);
  display: flex; background: #fff; border-top: 1px solid #f0f1f4;
  padding-bottom: env(safe-area-inset-bottom); z-index: 6;
}
.tabs button {
  flex: 1; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 8px; color: #9aa0a8; font-size: 11px;
}
.tabs button svg { width: 22px; height: 22px; display: block; }
.tabs button.on { color: #ff5a22; font-weight: 700; }
.card {
  background: var(--card); border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card h2 { margin: 0 0 6px; font-size: 16px; }
.card p, .muted { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.5; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }
.btn, .btn-line {
  border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 650;
}
.btn { background: var(--green); color: #fff; }
.btn:disabled { opacity: 0.55; }
.btn-line { background: #fff1eb; color: #ff5a22; }
.btn-danger { background: #fde8e6; color: var(--danger); border: 0; border-radius: 999px; padding: 8px 12px; }
.field { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; margin: 8px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 12px; white-space: nowrap; color: var(--ink);
}
.chip.on { background: #ff5a22; color: #fff; border-color: #ff5a22; }
.home-bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px 16px; }
.home-bar h1 { margin: 0; font-size: 18px; line-height: 1.1; }
.home-bar p { margin: 2px 0 0; color: #8a9099; font-size: 12px; }
.home-bar .brand { flex: 1; }
.home-bar .ico { width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; color: #2a2a2a; }
.home-bar .ico svg, .flame { width: 26px; height: 26px; display: block; }
.home-bar .ico svg { width: 22px; height: 22px; }
.sec { display: flex; align-items: center; gap: 8px; margin: 18px 16px 12px; }
.sec i { width: 3px; height: 16px; border-radius: 2px; background: #ff4d2a; }
.sec b { flex: 1; font-size: 16px; }
.sec .more, .sec .create { border: 0; background: transparent; color: #8b909a; font-size: 13px; padding: 0; }
.sec .create { background: #ff5a22; color: #fff; border-radius: 18px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.spaces { display: flex; gap: 10px; padding: 0 16px; }
.space {
  flex: 1; height: 146px; border: 0; padding: 0; border-radius: 16px; overflow: hidden;
  position: relative; color: #fff; text-align: left; background: #222 center/cover no-repeat;
}
.space .tag { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.35); border-radius: 8px; padding: 2px 8px; font-size: 11px; }
.space .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.space strong { display: block; font-size: 14px; }
.space em { display: block; margin-top: 4px; font-style: normal; font-size: 10px; color: #f2f2f2; }
.types { display: flex; padding: 0 8px; }
.types button { flex: 1; border: 0; background: transparent; padding: 0; }
.types .type-ico { width: 44px; height: 44px; margin: 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.types svg { width: 24px; height: 24px; }
.types b { display: block; margin-top: 8px; font-size: 12px; color: #1a1a1a; }
.types span { display: block; margin-top: 2px; font-size: 10px; color: #9aa0a8; font-weight: 400; }
.rec { display: flex; gap: 10px; align-items: center; margin: 0 16px 12px; padding: 8px 0; }
.rec img { width: 92px; height: 68px; object-fit: cover; border-radius: 10px; background: #eee; }
.rec h3 { margin: 0 0 4px; font-size: 14px; }
.rec p { margin: 0; color: #8b909a; font-size: 12px; }
.rec .go { margin-top: 8px; border: 0; background: #ff5a22; color: #fff; border-radius: 14px; padding: 4px 10px; font-size: 12px; }
.proj {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
  background: #fff; border: 1px solid #f0f1f4; border-radius: 18px; padding: 12px; margin: 0 0 12px;
}
.proj img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.proj h2 { margin: 0 0 4px; font-size: 16px; }
.rename { color: #ff5a22; font-size: 12px; font-weight: 700; margin-left: 6px; }
.chat-top h1 { cursor: pointer; }
.space-empty { text-align: center; padding: 28px 16px; }
.space-empty img { width: 100%; height: 140px; object-fit: cover; border-radius: 16px; }
.space-empty h2 { margin: 14px 0 6px; font-size: 18px; }
.space-empty p { margin: 0 0 16px; color: #8b909a; font-size: 13px; }
.search-bar { margin: 0 0 12px; }
.search-bar input { width: 100%; border: 1px solid #f0f1f4; border-radius: 12px; padding: 10px 12px; background: #f7f8fa; }
.count-line { margin: 0 0 10px; color: #8b909a; font-size: 12px; }
.proj p { margin: 0; color: #8b909a; font-size: 12px; }
.sec .flame { width: 18px; height: 18px; }
.ask { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.ask form { width: min(440px, 100%); background: #fff; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.ask h2 { margin: 0 0 12px; font-size: 18px; }
.ask input { width: 100%; border: 1px solid #f0f1f4; border-radius: 12px; padding: 12px 14px; }
.ask .row { margin-top: 12px; }
.ask .row .btn, .ask .row .btn-line { flex: 1; height: 44px; }
.ask.wait { align-items: center; padding: 24px; }
.ask.wait form { border-radius: 18px; text-align: center; }
.ask.mid { align-items: center; padding: 16px; }
.ask.mid form {
  width: min(400px, 100%); max-height: min(86vh, 720px); overflow: auto;
  border-radius: 20px; padding: 18px 20px 12px;
}
.newapp-head { display: flex; align-items: center; gap: 12px; }
.newapp-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #fff1eb; color: #ff5a22;
  display: flex; align-items: center; justify-content: center;
}
.newapp-mark svg { width: 20px; height: 20px; }
.newapp-head h2 { margin: 0; font-size: 18px; }
.newapp-head p { margin: 2px 0 0; color: #8a9891; font-size: 12px; line-height: 1.4; }
.newapp-label { margin: 16px 0 8px; color: #4a5b56; font-size: 12px; font-weight: 650; }
.newapp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.newapp-chip {
  height: 40px; border-radius: 16px; border: 1px solid #e6e8ec;
  background: #fff; color: #1c2b27; font-size: 13px; font-weight: 650;
}
.newapp-chip.on { background: #fff1eb; border: 1.5px solid #ff5a22; color: #ff5a22; }
.newapp-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.newapp-kind {
  border-radius: 16px; border: 1px solid #e6e8ec; background: #fff;
  padding: 12px 8px; text-align: center;
}
.newapp-kind b { display: block; font-size: 13px; }
.newapp-kind span { display: block; margin-top: 2px; color: #8a9891; font-size: 11px; }
.newapp-kind.on { background: #fff1eb; border-color: #ff5a22; }
.newapp-kind.on b { color: #ff5a22; }
.newapp-styles {
  max-height: 46vh; overflow: auto; padding-right: 2px;
}
.newapp-go { width: 100%; height: 46px; margin-top: 20px; }
.newapp-cancel {
  width: 100%; height: 40px; margin-top: 4px; border: 0; background: transparent; color: #4a5b56;
}
.newapp [hidden] { display: none; }
.style-sheet .newapp-head { align-items: flex-start; }
.style-sheet .newapp-head button { border: 0; background: transparent; color: #4a5b56; height: 36px; }
.style-sec { margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.style-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.style-card { flex: none; width: 92px; border: 0; background: transparent; padding: 0; text-align: center; color: #6b7280; }
.style-card img {
  display: block; width: 92px; height: 164px; object-fit: cover; border-radius: 10px;
  box-sizing: border-box; background: #f5f6f8; border: 1px solid #e2eae6;
}
.style-card.on img { border: 3px solid #ff5a22; }
.style-card.on b { color: #ff5a22; }
.style-card b { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; }
.login-page {
  position: fixed; inset: 0; z-index: 8; overflow: auto;
  background: #fff6f1;
}
.login-frame {
  width: min(440px, 100%);
  min-height: 100%;
  margin: 0 auto;
  background: #fff url("/studio/login-sunset.png") center bottom / 100% auto no-repeat;
  position: relative;
}
.login-hero {
  position: relative;
  height: 48vh;
  min-height: 292px;
  max-height: 460px;
  background: #f6d7bf url("/studio/login-hero.png") center 46% / cover no-repeat;
}
.login-brand {
  position: absolute;
  left: 16px; top: calc(12px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 10px;
}
.login-brand img {
  width: 58px; height: 58px; border-radius: 16px; object-fit: cover;
  box-shadow: 0 8px 18px rgba(120, 40, 10, .18);
  background: #ff5a2a;
}
.login-brand h1 { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: .5px; color: #1a1a1a; }
.login-brand h1 span { color: #ff3b1a; }
.login-brand p { margin: 4px 0 0; font-size: 13px; color: #4a4a4a; }
.login-slogan { position: absolute; left: 8px; bottom: 36px; width: 188px; height: 86px; }
.login-slogan .brush { position: absolute; inset: 0; width: 100%; height: 100%; }
.slogan-text {
  position: absolute; inset: 8px 18px 10px 14px;
  color: #fff; font-size: 20px; line-height: 1.12; font-weight: 800;
  display: flex; flex-direction: column; justify-content: center;
  transform: rotate(-7deg); text-shadow: 0 1px 0 rgba(180, 40, 0, .25);
}
.login-slogan .paws { position: absolute; right: -18px; top: -6px; width: 58px; height: 36px; }
.login-sheet {
  position: relative; z-index: 2;
  margin-top: -28px;
  padding: 26px 22px 168px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #fff 0%, #fff 62%, rgba(255,255,255,0) 100%);
}
.login-field {
  display: flex; align-items: center; gap: 8px;
  min-height: 54px;
  margin: 0 0 14px;
  padding: 4px 8px 4px 16px;
  background: #fff;
  border: 1px solid #f4efe9;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(90, 40, 20, .07);
}
.login-field svg { width: 22px; height: 22px; color: #ff5a32; flex: 0 0 auto; }
.login-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 12px 0; font-size: 15px; color: #222;
}
.login-field input::placeholder { color: #c5c5c5; }
.login-field button {
  border: 0; border-radius: 999px; padding: 9px 14px;
  color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(90deg, #ff4c2a, #ff7c22);
}
.login-field button:disabled { opacity: .65; }
.login-field .pw-eye {
  background: transparent; color: #b0b0b0; font-weight: 500; padding: 8px 8px 8px 4px;
}
.login-field[hidden] { display: none; }
.login-switch { text-align: center; margin: 12px 0 0; color: #9a9a9a; font-size: 13px; }
.login-switch button { border: 0; background: transparent; color: #ff5a32; font-weight: 700; padding: 0; }
.invite-link[hidden] { display: none; }
.login-submit {
  width: 100%; height: 52px; margin-top: 6px;
  border: 0; border-radius: 999px; color: #fff;
  font-size: 18px; font-weight: 750; letter-spacing: 2px;
  background: linear-gradient(90deg, #ff4524, #ff8a1c);
  box-shadow: 0 10px 20px rgba(255, 90, 36, .28);
}
.invite-link {
  display: block; margin: 10px auto 0; border: 0; background: transparent;
  color: #b0b0b0; font-size: 12px;
}
.invite-field { margin-top: 10px; padding-left: 18px; }
.invite-field[hidden] { display: none; }
.login-split {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 8px 16px; color: #c8c8c8; font-size: 13px;
}
.login-split:before, .login-split:after {
  content: ""; flex: 1; height: 1px; background: #eee;
}
.wx-login {
  display: block; width: 48px; height: 48px; margin: 0 auto 18px;
  padding: 0; border: 0; background: transparent;
}
.wx-login svg { width: 48px; height: 48px; display: block; filter: drop-shadow(0 6px 10px rgba(42, 173, 103, .25)); }
.agree {
  display: flex; align-items: flex-start; justify-content: center; gap: 6px;
  color: #8d8d8d; font-size: 12px; line-height: 1.5;
}
.agree input { margin-top: 2px; accent-color: #ff4d2a; }
.agree a { color: #ff5a32; text-decoration: none; }
.legal {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.legal[hidden] { display: none; }
.legal-card {
  width: min(440px, 100%);
  background: #fff; border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
.legal-card h2 { margin: 0 0 8px; font-size: 18px; }
.legal-card p { color: #555; font-size: 14px; line-height: 1.6; }
.legal-card button {
  margin-top: 8px; border: 0; border-radius: 999px; padding: 10px 18px;
  background: #ff5a2a; color: #fff; font-weight: 700;
}
.beta-gate {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-start; justify-content: center; padding: 24px;
  overflow: auto;
}
.beta-card {
  width: min(440px, 100%);
  margin: auto;
  background: #fff; border-radius: 22px; padding: 28px 22px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.beta-card h2 { margin: 0; text-align: center; font-size: 28px; color: #1a1a1a; }
.beta-card h2 span { color: #12b5a6; margin-right: 6px; }
.beta-card .beta-slogan { margin: 16px 0 0; text-align: center; color: #1a1a1a; font-size: 18px; font-weight: 700; }
.beta-card p { margin: 14px 0 0; text-align: center; color: #8a8a8a; font-size: 15px; line-height: 1.6; }
.beta-card .beta-play { margin-top: 8px; color: #5c5c5c; }
.beta-card input {
  width: 100%; border: 1px solid #f0e6df; border-radius: 12px;
  padding: 14px 12px; font-size: 18px; letter-spacing: 4px; text-align: center;
}
.beta-card button {
  width: 100%; margin-top: 12px; min-height: 52px; border: 0; border-radius: 999px;
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1.35; padding: 12px 16px;
  background: #1a1a1a;
}
.beta-card #betaOpen { margin-top: 22px; }
.beta-card button.beta-line {
  background: #fff; color: #12b5a6; border: 1.5px solid #12b5a6;
}
.beta-card .beta-box { display: none; }
.beta-card .beta-box.show { display: block; }
.beta-card button:disabled { opacity: .6; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -2px; }
.shell.chatpage { height: 100dvh; background: #f4f9f7; }
.shell.chatpage .chat-main { flex: 1; min-height: 0; padding: 0; display: flex; }
.chat-top { position: relative; height: 48px; padding: 0 12px 0 4px; gap: 4px; border-bottom: 0.5px solid #d8e8e1; background: #fff; }
.chat-top button { color: #1c2b27; width: 40px; height: 40px; padding: 8px; }
.chat-top h1 { font-size: 18px; font-weight: 600; }
.chat-top #preview {
  width: auto; height: 32px; padding: 0 14px; border-radius: 999px;
  background: #ff5a22; color: #fff; font-size: 14px; font-weight: 500;
}
.chat-top svg { width: 22px; height: 22px; display: block; }
.chat-menu {
  position: absolute; top: 44px; right: 64px; z-index: 8;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(20,24,32,.12);
  min-width: 132px; padding: 6px; display: flex; flex-direction: column;
}
.chat-menu[hidden] { display: none; }
.model-picker {
  position: fixed; z-index: 40; top: auto; right: auto; min-width: 220px; max-height: 320px; overflow: auto;
}
.model-picker button.on { background: #efeaff; }
.chat-menu button {
  width: 100%; height: 42px; border: 0; background: transparent; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  text-align: left; padding: 0 8px; color: #1c2433; font-size: 14px; font-weight: 560;
}
.chat-menu button:hover { background: #f6f4ff; }
.chat-menu .menu-ico {
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.chat-menu .menu-ico svg { width: 16px; height: 16px; display: block; }
.chat-menu .menu-ico.up { background: #efeaff; }
.chat-menu .menu-ico.apk { background: #e7f8ef; }
.chat-menu .menu-ico.ai { background: #fff1e8; }
.chat-menu .menu-ico.auto { background: #e8edff; }
.chat { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.msgs { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 72px; }
.chat-note { margin: 0; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.work-node { max-width: 86%; margin: 8px 0; background: #fff; border: 1px solid #d8e8e1; border-radius: 12px; padding: 8px 12px; }
.work-node summary { cursor: pointer; color: #5c6570; font-size: 13px; }
.work-node .sec { margin-top: 8px; font-size: 12px; color: #4b5563; white-space: pre-wrap; }
.work-node .sec b { display: block; color: #111; font-size: 12px; margin-bottom: 2px; }
.rate { max-width: 92%; margin: 10px 0; padding: 0 0 8px; background: #fff; border-radius: 12px; }
.rate-line { height: 1px; margin: 2px 14px 0; background: #e5e7eb; }
.rate-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; }
.rate-ask { border: 0; background: transparent; padding: 0; font: inherit; font-size: 12px; color: #9aa1ac; cursor: pointer; }
.rate-head .faces { display: flex; gap: 8px; flex: none; }
.rate-head .faces[hidden], .rate-more[hidden] { display: none; }
.rate-head .faces button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.rate-head .faces button svg { display: block; width: 22px; height: 22px; }
.rate-head .faces button.on { background: #fdecec; }
.chat { position: relative; }
.fb-fab {
  position: absolute; right: 18px; bottom: 108px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e5e7eb;
  background: #fff; color: #374151; padding: 0;
  box-shadow: 0 6px 16px rgba(20, 24, 32, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.fb-fab svg { display: block; }
.fb-mask {
  position: fixed; inset: 0; z-index: 40; background: rgba(17, 24, 39, 0.45);
  display: flex; align-items: flex-end; justify-content: center; padding: 18px;
}
.fb-sheet {
  width: min(440px, 100%); background: #fff; border-radius: 16px; padding: 16px 18px 16px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
}
.fb-sheet h3 { margin: 0; text-align: center; font-size: 18px; color: #111827; }
.fb-sheet .sub { margin: 4px 0 0; text-align: center; color: #9ca3af; font-size: 13px; }
.fb-sheet .x { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 22px; color: #6b7280; width: 32px; height: 32px; }
.fb-sheet label { display: block; margin-top: 16px; font-weight: 700; color: #111827; font-size: 15px; }
.fb-sheet textarea {
  width: 100%; min-height: 132px; margin-top: 8px; border: 1.5px solid #5eead4; border-radius: 10px;
  padding: 12px; font-size: 14px; resize: vertical; color: #111827;
}
.fb-meta { margin-top: 12px; background: #f3f4f6; border-radius: 10px; padding: 12px; color: #6b7280; font-size: 13px; line-height: 1.7; }
.fb-sheet .send, .fb-sheet .cancel { width: 100%; height: 46px; border-radius: 10px; font-size: 16px; margin-top: 10px; }
.fb-sheet .send { margin-top: 16px; border: 0; background: #7dffe4; color: #111827; font-weight: 700; }
.fb-sheet .cancel { border: 1px solid #e5e7eb; background: #fff; color: #111827; }
.pa-open {
  height: 32px; margin: 0 0 8px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #d8e8e1; background: #fff; color: #1c2b27; font-size: 13px;
}
.pa-sheet { width: min(520px, 100%); max-height: 78vh; display: flex; flex-direction: column; }
.pa-log { flex: 1; overflow: auto; margin-top: 10px; }
.pa-msg { max-width: 88%; margin-top: 8px; padding: 8px 10px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; }
.pa-msg.mine { margin-left: auto; background: #12b981; color: #fff; }
.pa-msg.ai { background: #fff; border: 1px solid #e5e7eb; color: #1a2033; }
.pa-doc { margin-top: 12px; background: #f3f4f6; border-radius: 10px; padding: 12px; }
.pa-doc b { display: block; margin-top: 8px; font-size: 13px; }
.pa-doc p { margin: 2px 0 0; white-space: pre-wrap; color: #374151; font-size: 14px; }
.pa-doc .pa-accept { height: 36px; margin-top: 4px; font-size: 14px; }
.pa-row { display: flex; gap: 8px; margin-top: 8px; }
.pa-row textarea { flex: 1; min-height: 40px; }
.rate-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 14px; padding: 12px; background: #f5f6f8; border-radius: 12px; }
.rate-q { width: 100%; font-size: 14px; font-weight: 600; color: #111827; }
.rate-more button, .rate textarea { border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13px; color: #374151; }
.rate-more button[data-reason] { width: calc(50% - 4px); }
.rate-more button.on { border-color: #111827; color: #111827; }
.rate textarea { width: 100%; border: 0; background: transparent; padding: 8px 2px 2px; resize: none; }
.rate #rateSend { margin-left: auto; width: auto; border-radius: 16px; }
.bubble.mine { margin-left: auto; background: var(--green); color: #fff; border-radius: 14px 14px 4px 14px; }
.bubble.ai { background: #fff; border: 1px solid #d8e8e1; border-radius: 14px 14px 14px 4px; box-shadow: none; }
.hint { display: block; width: 86%; text-align: left; margin-top: 8px; border-radius: 12px; padding: 12px 14px; border: 1px solid #d8e8e1; background: #fff; }
.hint.jump { background: #fff1eb; color: #ff5a22; border-color: #ff5a22; }
.dock {
  background: #f9fbf7; padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 16px rgba(28, 43, 39, 0.04);
}
.dock .chips { gap: 6px; padding: 6px 0 8px; }
.dock .chip {
  height: 34px; padding: 0 12px; background: #fff; border: 1px solid #d8e8e1; color: #3d4654; font-size: 13px;
}
.dock .chip.on { background: #fff1eb; border-color: #ff5a22; color: #ff5a22; }
.composer { position: static; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 0; background: transparent; }
.paste-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.paste-row:empty { display: none; }
.paste-chip {
  display: flex; align-items: center; gap: 6px; max-width: 220px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 4px 8px 4px 4px;
  font-size: 12px; color: #24324a;
}
.paste-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.paste-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.paste-chip button { border: 0; background: transparent; color: #8a93a3; font-size: 16px; line-height: 1; padding: 0 2px; }
.bench-chat .paste-chip { background: #1b1830; border-color: rgba(255,255,255,.12); color: #f5f3ff; }
.capsule {
  flex: 1; display: flex; align-items: center; min-height: 52px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 28px; padding: 6px 12px;
}
.composer textarea {
  flex: 1; width: 100%; resize: none; border: 0; outline: none; background: transparent;
  min-height: 24px; max-height: 120px; padding: 8px 4px; font-size: 16px; line-height: 1.4;
}
.composer .send {
  width: 42px; height: 42px; padding: 0; border-radius: 50%; flex: none; margin-bottom: 5px;
  display: flex; align-items: center; justify-content: center;
}
.composer .send svg { width: 20px; height: 20px; }
.composer .send.stop { background: #e5484d; font-size: 13px; }
.preview {
  position: fixed; inset: 0; background: #fff; z-index: 20; display: flex; flex-direction: column;
}
.pv-status {
  flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  height: calc(22px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 2px 22px;
  background: #fff; color: #111; font-size: 14px; font-weight: 650; letter-spacing: .2px;
}
.pv-sys { display: flex; align-items: center; gap: 5px; }
.pv-sys svg { display: block; }
.pv-nav {
  flex: none; position: relative; height: 44px; display: flex; align-items: center;
  background: #fff; border-bottom: 0.5px solid #e7e7e7;
}
.pv-nav button {
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #111; display: flex; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none;
}
.pv-nav button svg { width: 22px; height: 22px; display: block; }
.pv-nav b {
  position: absolute; left: 56px; right: 56px; text-align: center;
  font-size: 17px; font-weight: 600; color: #111; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview iframe { flex: 1; border: 0; background: #fff; width: 100%; min-height: 0; }
.points-page {
  position: fixed; inset: 0; z-index: 25; margin: 0 auto; max-width: 520px;
  background: #f7f6f4; display: flex; flex-direction: column;
}
.points-bar {
  height: calc(48px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); border-bottom: 0; background: #f7f6f4;
}
.points-bar b { position: static; font-size: 20px; font-weight: 600; }
.points-card { margin: 8px 16px 0; padding: 18px; border-radius: 16px; background: #fff; }
.points-card span { color: #ff5a22; font-size: 13px; }
.points-card strong { display: block; margin-top: 4px; font-size: 28px; font-weight: 650; color: #1a1a1a; }
.points-card em { display: block; margin-top: 2px; color: #8b909a; font-style: normal; font-size: 12px; }
.points-list { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); }
.point-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.point-row i {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700;
}
.point-row i.in { color: #12a15a; background: rgba(18, 161, 90, .14); }
.point-row i.out { color: #e5484d; background: rgba(229, 72, 77, .14); }
.point-row > div { flex: 1; min-width: 0; }
.point-row b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.point-row span { display: block; margin-top: 2px; color: #8b909a; font-size: 12px; }
.point-row .amt { flex: none; text-align: right; }
.point-row .amt strong { font-size: 15px; }
.point-row .amt strong.in { color: #12a15a; }
.point-row .amt strong.out { color: #e5484d; }
.points-more { padding: 8px 0; font-size: 12px; }
.mask {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 40;
  color: #fff; padding: 18vh 28px 0;
}
.mask.show { display: block; }
.mask .tip h3 { margin: 0 0 8px; }
.mask button { margin-top: 16px; border: 0; border-radius: 999px; padding: 8px 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.steps { font-size: 12px; color: var(--muted); background: #fff; border-radius: 12px; padding: 8px 10px; }
.bar { height: 4px; background: #e6e1d8; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--green); width: 0; }
.shell.paper { background: #f7f6f4; }
.page-hero { position: relative; height: 236px; overflow: hidden; color: #1a1a1a; }
.page-hero.mine { height: 300px; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,244,234,.75), rgba(255,246,238,.2) 55%, transparent); }
.hero-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 16px 28px; }
.hero-bar, .mine-tools { display: flex; align-items: center; gap: 8px; }
.hero-bar h1, .mine-tools { margin: 0; }
.hero-bar h1 { font-size: 18px; line-height: 1.1; }
.hero-bar p { margin: 2px 0 0; color: #5c6370; font-size: 11px; }
.hero-bar .brand { flex: 1; }
.hero-bar .flame { width: 28px; height: 28px; }
.hero-bar .ico, .gear {
  width: 36px; height: 36px; border: 0; background: transparent; color: #2a2a2a; padding: 6px;
}
.hero-bar .ico svg, .gear svg { width: 22px; height: 22px; display: block; }
.slogan1 { margin: 10px 0 0; color: #ff4e12; font-size: 26px; font-weight: 800; line-height: 1.15; }
.slogan2 { margin: 0; color: #ff5a18; font-size: 22px; font-weight: 800; line-height: 1.15; }
.slogan-sub { margin: 8px 0 0; color: #3a4250; font-size: 14px; }
.sheet {
  position: relative; z-index: 2; margin-top: -22px; background: #fff;
  border-radius: 22px 22px 0 0; padding: 12px 16px 28px; min-height: 240px;
}
.mine-sheet {
  margin-top: -84px; padding: 0 16px 28px; position: relative; z-index: 2;
  background: linear-gradient(180deg, transparent 0, transparent 28px, #f7f6f4 28px);
}
.profile { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; background: #fff3ee; color: #ff5a22; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nick { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; }
.verified { width: 16px; height: 16px; border-radius: 50%; background: #ff5a22; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.idline { border: 0; background: transparent; padding: 0; margin-top: 2px; color: #5c6370; font-size: 12px; }
.profile .slogan { margin: 4px 0 0; color: #3a4250; font-size: 12px; }
.stat-card, .menu-card {
  display: flex; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(20,24,32,.06);
}
.stat-card { padding: 14px 0; }
.stat-card button { flex: 1; border: 0; background: transparent; padding: 0 6px; }
.stat-card button + button { border-left: 1px solid #f0f1f4; }
.stat-card b { display: block; margin-top: 6px; font-size: 16px; color: #1a1a1a; }
.stat-card span { display: block; margin-top: 2px; color: #8b909a; font-size: 11px; }
.stat-card svg { width: 22px; height: 22px; }
.vip-banner {
  position: relative; height: 112px; margin-top: 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, #ff7a2a 0%, #ff5a22 46%, #ff3b1f 100%);
}
.vip-banner .photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background: url("/studio/home/mine-banner.webp") 62% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
}
.vip-banner button {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent;
  padding: 14px 16px 12px; text-align: left; color: #fff;
}
.vip-banner strong { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.vip-banner strong svg { width: 18px; height: 18px; flex: 0 0 auto; }
.vip-banner p { margin: 4px 0 0; max-width: 58%; color: #fff3e8; font-size: 11px; line-height: 1.35; }
.vip-banner em {
  display: inline-block; margin-top: 8px; background: #fff; color: #ff5a22;
  border-radius: 14px; padding: 4px 12px; font-style: normal; font-size: 12px; font-weight: 800;
}
.shortcuts { display: flex; margin-top: 16px; }
.shortcuts button { flex: 1; border: 0; background: transparent; color: #3a4250; font-size: 11px; }
.shortcuts i {
  width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: #fff; position: relative;
}
.shortcuts svg { width: 22px; height: 22px; }
.shortcuts .dot {
  position: absolute; right: -2px; top: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #ff3b30; color: #fff; font-size: 8px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.menu-card { flex-direction: column; margin-top: 16px; padding: 0 14px; }
.menu-card button {
  height: 52px; border: 0; background: transparent; display: flex; align-items: center; gap: 10px;
  border-top: 1px solid #f3f4f6; color: #1a1a1a; font-size: 15px; text-align: left; width: 100%;
}
.menu-card button:first-child { border-top: 0; }
.menu-card button.danger { color: #e11d48; }
.menu-card svg { width: 20px; height: 20px; flex: 0 0 auto; }
.menu-card b { flex: 1; font-weight: 500; }
.menu-card em { font-style: normal; color: #ff5a22; font-size: 12px; }
.tabs-line { display: flex; align-items: flex-end; gap: 4px; }
.tabs-line button { border: 0; background: transparent; color: #8b909a; font-size: 15px; padding: 4px 10px 0 0; }
.tabs-line button.on { color: #ff5a22; font-weight: 800; }
.tabs-line button.on:after { content: ""; display: block; width: 18px; height: 3px; margin: 4px auto 0; border-radius: 2px; background: #ff5a22; }
.tabs-line .grow { flex: 1; }
.filter { border: 0; background: transparent; color: #8b909a; font-size: 13px; }
.feed { display: flex; gap: 10px; padding: 12px 0; text-align: left; width: 100%; border: 0; background: transparent; color: inherit; }
.feed .cover {
  width: 100px; height: 100px; border-radius: 12px; background: #2a241c center/cover no-repeat; position: relative; flex: 0 0 auto;
}
.feed .badge { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 8px; font-size: 9px; padding: 2px 6px; }
.feed h3 { margin: 0; font-size: 14px; }
.feed .ops { display: flex; gap: 6px; margin-left: 6px; }
.feed .ops button { border: 0; border-radius: 12px; height: 24px; padding: 0 8px; font-size: 10px; font-weight: 700; }
.feed .try { background: #ff5a22; color: #fff; }
.feed .clone { background: #fff1eb; color: #ff5a22; }
.feed p { margin: 4px 0 0; color: #8b909a; font-size: 11px; }
.feed .meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: #8b909a; font-size: 11px; }
.feed .who { width: 16px; height: 16px; border-radius: 50%; background: #fff1eb; color: #ff5a22; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.feed .like { margin-left: auto; color: #b0b4ba; }
.cats { display: flex; }
.cats button { flex: 1; border: 0; background: transparent; padding: 0; }
.cats i { width: 48px; height: 48px; margin: 0 auto; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.cats svg { width: 22px; height: 22px; }
.cats b { display: block; margin-top: 8px; font-size: 13px; }
.cats span { display: block; margin-top: 2px; color: #8b909a; font-size: 10px; font-weight: 400; line-height: 1.25; }
.lesson { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 0; color: inherit; }
.lesson .cover { width: 112px; height: 78px; border-radius: 10px; background: #2a241c center/cover no-repeat; position: relative; flex: 0 0 auto; }
.lesson .kind, .lesson .dur { position: absolute; background: rgba(26,26,26,.8); color: #fff; font-size: 9px; border-radius: 4px; padding: 1px 5px; }
.lesson .kind { left: 6px; top: 6px; }
.lesson .dur { right: 6px; bottom: 6px; }
.lesson h3 { margin: 0; font-size: 14px; }
.lesson p { margin: 3px 0 0; color: #8b909a; font-size: 11px; }
.lesson .go { margin-left: auto; min-width: 52px; height: 28px; border: 0; border-radius: 14px; background: #ff5a22; color: #fff; font-size: 12px; font-weight: 800; }
.lesson .go.read { background: #fff3e4; color: #b86a2a; }
.app-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; margin: 0 0 12px; }
.app-badge { width: 48px; height: 48px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.app-row h2 { margin: 0 0 4px; font-size: 16px; }
.app-row p { margin: 0; color: #8b909a; font-size: 12px; }
.note-body { white-space: pre-wrap; color: #3a4250; font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.ask .plan {
  display: block; width: 100%; text-align: left; margin: 0 0 10px;
  border: 1px solid #f0f1f4; background: #fff; border-radius: 14px; padding: 12px 14px;
}
.ask .plan b { display: block; font-size: 16px; }
.ask .plan span { display: block; margin-top: 4px; color: #ff5a22; font-weight: 700; }
.ask .plan em { display: block; margin-top: 4px; color: #8b909a; font-style: normal; font-size: 12px; }
.find { width: 100%; margin-top: 8px; border: 1px solid #f0f1f4; border-radius: 12px; padding: 8px 12px; background: #fff; }
.find[hidden] { display: none; }
.sheet .sec { margin-left: 0; margin-right: 0; }
.tabs button { font-size: 10px; }
.maker-box, .paw-card { background: #fff; border-radius: 16px; padding: 14px; margin: 12px 16px; box-shadow: var(--shadow); }
.maker-box b, .paw-card h2 { display: block; margin: 0 0 8px; font-size: 16px; }
.maker-box textarea, .paw-card textarea, .paw-card input, .paw-card select {
  width: 100%; box-sizing: border-box; border: 1px solid #eceff3; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 8px; background: #fafbfc;
}
.paw-hub { display: flex; gap: 8px; overflow: auto; padding: 12px 16px 0; }
.paw-hub button, .paw-actions button, .mini {
  border: 0; border-radius: 14px; background: #fff1eb; color: #ff5a22;
  font-size: 12px; font-weight: 700; padding: 8px 10px; white-space: nowrap;
}
.paw-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.game-row, .post, .demand, .notice {
  display: flex; gap: 10px; background: #fff; border-radius: 16px; padding: 12px; margin: 0 16px 10px;
  box-shadow: var(--shadow); text-align: left; width: calc(100% - 32px); border: 0; color: inherit;
}
.game-row img, .game-ico {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #efe8df; flex: none;
  display: flex; align-items: center; justify-content: center; color: #14c4ce; font-weight: 800;
}
.game-row h3, .post h3, .demand h3, .notice h3 { margin: 0; font-size: 15px; }
.game-row p, .post p, .demand p, .notice p { margin: 4px 0 0; color: #8b909a; font-size: 12px; line-height: 1.45; }
.days { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.day { min-width: 64px; border-radius: 14px; background: #fff7f2; text-align: center; padding: 8px 4px; }
.day.on { background: #ff5a22; color: #fff; }
.day b { display: block; font-size: 14px; }
.day span { font-size: 11px; }
.task { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #f3f4f6; }
.task b { display: block; }
.task span { color: #8b909a; font-size: 12px; }
.app-row .pub { margin-left: auto; color: #ff5a22; font-weight: 800; font-size: 13px; }
.chips-line { display: flex; gap: 8px; overflow: auto; margin: 0 16px 10px; }
.chips-line button.on { background: #ff5a22; color: #fff; }
.paw-login {
  min-height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: calc(28px + env(safe-area-inset-top)) 30px 48px;
  background:
    radial-gradient(420px 220px at 50% 18%, rgba(20,196,206,.18), transparent 70%),
    linear-gradient(180deg, #f3fbfb 0%, #ffffff 42%);
}
.paw-login .paw-logo { width: 140px; height: 140px; margin-top: 72px; border-radius: 36px; object-fit: cover; }
.paw-login h1 { margin: 22px 0 0; font-size: 28px; letter-spacing: .04em; color: #1c2b27; }
.paw-login .en { margin: 8px 0 0; color: #5c6b66; font-size: 14px; letter-spacing: .18em; }
.paw-login .slogan { margin: 24px 0 0; color: #7a8a84; font-size: 15px; }
.paw-login .spacer { flex: 1; min-height: 48px; }
.wx-go {
  width: min(100%, 420px); height: 52px; border: 0; border-radius: 26px;
  background: linear-gradient(90deg, #14c4ce, #0bb789); color: #fff;
  font-size: 17px; font-weight: 800; box-shadow: 0 8px 18px rgba(11,183,137,.28);
}
.paw-agree {
  margin: 20px 0 28px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
  background: #e1f5ee; color: #8a9891; font-size: 12px; padding: 6px 8px; border-radius: 8px;
}
.paw-agree a { color: #0bb789; text-decoration: none; }
.phone-entry {
  width: min(100%, 420px); height: 48px; margin-top: 12px;
  border-radius: 24px; border: 1px solid #14c4ce; background: #fff;
  color: #0aa4ad; font-size: 16px; font-weight: 700;
}
.phone-sheet {
  position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 24, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.phone-sheet[hidden] { display: none; }
.phone-card {
  width: min(440px, 100%); background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
}
.phone-card h2 { margin: 0 0 14px; text-align: center; font-size: 18px; }
.phone-card .phone-go { width: 100%; margin-top: 4px; }
.phone-close {
  display: block; width: 100%; border: 0; background: transparent;
  height: 40px; margin-top: 4px; color: #8b909a;
}
.paw-home { padding: 8px 16px 24px; background: #fff; min-height: 100%; }
.paw-top { display: flex; align-items: center; height: 44px; }
.paw-top .brand { flex: 1; text-align: center; font-size: 20px; }
.paw-top .brand b { color: #14c4ce; }
.paw-top .brand span { color: #8a9099; margin-left: 4px; font-weight: 500; }
.paw-top button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; }
.paw-top svg { width: 22px; height: 22px; }
.paw-home h2 { margin: 8px 0 0; text-align: center; font-size: 16px; }
.paw-home h2.home-ask {
  position: static; inset: auto; z-index: auto; display: block;
  background: transparent; margin-top: 16px; font-size: 20px;
}
.paw-home .about { margin: 6px 0 0; color: #5c6370; font-size: 13px; line-height: 1.55; text-align: center; }
.composer-card { margin-top: 10px; background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(20,30,40,.06); padding: 10px; border: 1px solid #f2f3f5; }
.composer-card textarea { width: 100%; border: 0; resize: none; font-size: 15px; outline: none; min-height: 96px; }
.composer-bar { display: flex; align-items: center; gap: 8px; }
.composer-bar .model { color: #14c4ce; background: #e8f8f8; border: 0; border-radius: 14px; padding: 4px 10px; font-size: 12px; }
.composer-bar .send { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 20px; background: #14c4ce; color: #fff; font-size: 18px; font-weight: 800; }
.sec-line { display: flex; align-items: center; margin: 16px 0 8px; }
.sec-line b { flex: 1; font-size: 15px; }
.sec-line button { border: 0; background: transparent; color: #8b909a; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.work-grid button { border: 0; background: transparent; padding: 0; min-width: 0; }
.work-grid img, .work-fallback {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f3f4f6; display: block;
}
.work-fallback { display: flex; align-items: center; justify-content: center; color: #14c4ce; font-weight: 800; font-size: 18px; }
.work-grid span {
  display: block; margin-top: 4px; font-size: 11px; color: #1a1a1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ask img.poster, .ask .poster-empty {
  width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; display: block; margin: 0 0 10px; background: #f3f4f6;
}
.ask .poster-empty { height: 140px; line-height: 140px; text-align: center; color: #8b909a; }
.ask .row a.btn { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.samples { display: flex; gap: 8px; overflow: auto; margin-top: 10px; }
.samples button { flex: none; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.samples button, .making {
  text-align: left; border: 0; background: #f7f8fa; border-radius: 12px; padding: 10px 12px; color: #3a4250;
}
.making { display: block; width: 100%; margin-bottom: 8px; }
.making b { display: block; color: #1a1a1a; }
.making span { color: #8b909a; font-size: 12px; }
.bench { height: 100dvh; display: flex; flex-direction: column; background: #12141c; color: #f5f3ff; }
.bench-top {
  position: relative; height: 56px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: #161822;
}
.bench-top h1 { margin: 0; font-size: 15px; font-weight: 650; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-top button { border: 0; background: transparent; color: #ddd9f2; height: 32px; border-radius: 8px; }
.bench-top .chat-menu { top: 48px; right: 12px; min-width: 176px; }
.bench-top .chat-menu button { color: #1c2433; height: 42px; font-weight: 560; }
.bench-tabs { display: flex; gap: 4px; }
.bench-tabs button { padding: 0 12px; }
.bench-tabs button.on { background: #2a2e42; color: #fff; }
.bench-top #benchPoints { margin-left: auto; padding: 0 12px; background: #2a2e42; }
.chat-title { padding: 12px 14px 0; color: #c8c4d4; font-size: 13px; }
.bubble .who { display: block; margin-bottom: 6px; color: #c8b8ff; font-size: 12px; }
.plan-mask { position: fixed; inset: 0; z-index: 40; background: rgba(8,6,16,.72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.plan-card { width: min(560px, 100%); max-height: min(86dvh, 760px); overflow: auto; background: #1b1730; color: #f5f3ff; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 18px 16px; }
.plan-card h2 { margin: 8px 0; font-size: 18px; }
.plan-sum { margin: 0 0 12px; color: #c8c4d4; line-height: 1.6; font-size: 13px; }
.plan-sec { margin: 12px 0; }
.plan-sec b { display: block; margin-bottom: 8px; font-size: 13px; }
.plan-sec div { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chip { border: 1px solid rgba(255,255,255,.12); background: #141226; color: #ddd9f2; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.plan-chip.on { border-color: #7c5cff; background: rgba(124,92,255,.2); color: #fff; }
.plan-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.plan-later, .plan-go { height: 36px; border-radius: 999px; padding: 0 14px; border: 0; }
.plan-later { background: transparent; color: #bdb8d4; }
.plan-go { background: #7c5cff; color: #fff; font-weight: 650; }
.plan-go:disabled { opacity: .6; }
.design-bubble { max-width: 100%; }
.plan-inline { margin-top: 4px; }
.plan-inline > b { display: block; margin-bottom: 6px; font-size: 15px; }
.plan-inline .plan-sum { color: inherit; white-space: pre-wrap; max-height: 420px; overflow: auto; }
.plan-custom { display: flex; gap: 8px; margin-top: 8px; }
.plan-custom input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.18); color: inherit; border-radius: 10px; padding: 8px 10px; }
.chat .plan-custom input { background: #fff; color: #14332e; border-color: #d8e8e1; }
.stage-bar { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: #161822; }
.stage-bar button { border: 0; background: transparent; color: #bdb8d4; height: 28px; border-radius: 8px; padding: 0 10px; }
.stage-bar button.on { background: #2a2e42; color: #fff; }
.stage-bar #phoneMode { margin-left: auto; }
.stage-bar #phoneModel { height: 28px; max-width: 230px; border: 0; border-radius: 8px; background: #2a2e42; color: #fff; padding: 0 8px; font-size: 12px; }
.bench-tools { display: flex; gap: 8px; align-items: center; margin: 0 12px 10px; }
.bench-chat #benchModel, .bench-chat #benchSkills { margin: 0; border: 0; background: #262a3c; color: #ddd9f2; border-radius: 999px; height: 28px; padding: 0 12px; font-size: 12px; }
.bench-chat #benchSkills { background: #3a2f66; color: #fff; }
.file-row { display: block; width: 100%; text-align: left; margin: 6px 0; border: 0; background: #1b1830; color: #f5f3ff; border-radius: 10px; padding: 10px 12px; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; background: #1b1830; border-radius: 10px; padding: 12px 14px; }
.version-row b { margin-right: 8px; }
.version-row span { display: inline-block; margin-right: 10px; color: #bdb8d4; font-size: 13px; }
.version-now { color: #7d6bff !important; }
.version-row button { border: 0; background: #2a2e42; color: #fff; height: 32px; border-radius: 8px; padding: 0 14px; }
.asset-kind { margin-top: 22px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.asset-card, .asset-empty { background: #1b1830; border-radius: 14px; padding: 10px; }
.asset-card img, .asset-thumb { width: 100%; aspect-ratio: 1; object-fit: contain; background-color: #f3eefc; background-repeat: no-repeat; border-radius: 10px; display: block; }
.asset-missing { display: flex; align-items: center; justify-content: center; color: #8d86a8; font-size: 13px; text-align: center; padding: 12px; }
.asset-card b { display: block; margin: 8px 2px; font-size: 14px; }
.asset-actions { display: flex; gap: 8px; }
.asset-card button, .asset-empty button, .asset-dialog button {
  border: 0; background: #2a2e42; color: #fff; height: 32px; border-radius: 8px; padding: 0 12px;
}
.asset-empty { display: flex; align-items: center; gap: 10px; }
.asset-empty p { margin: 0; color: #bdb8d4; }
.asset-mask { position: fixed; inset: 0; z-index: 40; background: rgba(8,6,16,.72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.asset-mask[hidden] { display: none; }
.asset-dialog { width: min(440px, 100%); background: #1b1730; color: #f5f3ff; border-radius: 16px; padding: 16px; }
.asset-dialog h3 { margin: 0 0 8px; }
.asset-dialog p { margin: 0 0 10px; color: #c8c4d4; font-size: 13px; }
.asset-dialog textarea { width: 100%; box-sizing: border-box; min-height: 96px; border: 0; border-radius: 10px; background: #12101c; color: #fff; padding: 10px; margin-bottom: 12px; }
.asset-dialog .asset-actions { justify-content: flex-end; }
.asset-dialog #assetGo { background: #7c5cff; }
.bench-body { flex: 1; min-height: 0; display: flex; }
.bench-chat { width: 380px; flex: none; display: flex; flex-direction: column; min-height: 0; background: #181b26; border-right: 1px solid rgba(255,255,255,.08); }
.bench-chat .msgs { flex: 1; padding-bottom: 16px; }
.bubble.discuss-bubble { max-width: 100%; padding: 0; background: transparent; border: 0; }
.discuss-canvas { background: #fff; border: 1px solid #d7e6df; border-radius: 16px; padding: 12px; }
.discuss-tag { display: block; color: #0f766e; font-size: 12px; margin-bottom: 2px; }
.discuss-sec { margin-top: 8px; background: #f3faf7; border-radius: 12px; padding: 10px 12px; }
.discuss-sec b { display: block; color: #0f766e; font-size: 14px; }
.discuss-sec p { margin: 4px 0 0; white-space: pre-wrap; color: #1a2033; line-height: 1.5; }
.discuss-foot { margin: 8px 0 0; color: #6b7280; font-size: 12px; }
.bubble .md { white-space: normal; }
.bubble .md h3 { margin: 12px 0 6px; font-size: 15px; line-height: 1.4; }
.bubble .md p { margin: 0 0 8px; }
.bubble .md ul { margin: 0 0 8px; padding-left: 1.2em; }
.bubble .md li { margin: 2px 0; }
.bubble .md code { font-family: ui-monospace, monospace; font-size: 12px; background: rgba(0,0,0,.06); border-radius: 4px; padding: 0 4px; }
.think-done { margin: 10px 0 4px; max-width: 100%; }
.think-done b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #6b7280; }
.think-done b:before { content: ""; width: 14px; height: 14px; border: 1.5px solid #9aa1ac; border-radius: 50%; flex: none; }
.think-done p { margin: 6px 0 0 20px; line-height: 1.65; font-size: 14px; }
.run-time { display: inline-flex; align-items: center; border: 0; background: transparent; color: #8a93a3; font-size: 13px; padding: 0; cursor: pointer; }
.run-time:after { content: " ⌄"; }
.run-time.shut:after { content: " ›"; }
.run-status { margin: 8px 0 0; color: #6b7280; font-size: 13px; }
.run-steps[hidden], .shot-grid[hidden] { display: none; }
.phase-card { max-width: 100%; margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e6e8ee; }
.phase-head { display: flex; align-items: center; gap: 8px; }
.phase-head i { width: 16px; height: 16px; border-radius: 50%; background: #22c55e; flex: none; }
.phase-card.warn .phase-head i { background: #f59e0b; }
.phase-head b { flex: 1; font-size: 14px; }
.phase-fold { border: 0; background: #f3f4f6; border-radius: 999px; height: 26px; padding: 0 10px; font-size: 12px; color: #4b5563; cursor: pointer; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.shot-grid figure { margin: 0; min-width: 0; }
.shot-grid img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; background: #111; display: block; }
.shot-grid figcaption { margin-top: 4px; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-sum { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.doc-jump { display: inline-flex; align-items: center; margin-top: 8px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #d8e8e1; background: #fff; color: #1c2b27; cursor: pointer; }
.bubble.working, .think-done, .phase-card { white-space: normal; }
.bubble.working .paw-line { font-size: 14px; }
.bubble.working .think { max-height: 168px; overflow: auto; margin-top: 8px; font-size: 13px; line-height: 1.45; color: #4b5563; white-space: pre-wrap; }
.bubble.working .think b, .work-head { display: block; margin-bottom: 4px; font-size: 12px; color: #8a93a3; font-weight: 400; }
.bubble.working .steps { margin-top: 6px; }
.bubble.working .step { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: #8a93a6; }
.bubble.working .step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble.working .step i { width: 7px; height: 7px; border-radius: 50%; background: #b0b7c3; flex: none; }
.bubble.working .step.think i { background: #a78bfa; }
.bubble.working .step.read i { background: #60a5fa; }
.bubble.working .step.search i { background: #38bdf8; }
.bubble.working .step.write i { background: #34d399; }
.bubble.working .step.run i { background: #fbbf24; }
.bubble.working .step.web i { background: #22d3ee; }
.bubble.working .step.done i { background: #10b981; }
.bubble.working .step.error i { background: #f87171; }
.bubble.working .step.error span { color: #ef4444; }
.bench-chat .bubble.ai { max-width: 100%; background: #262a3c; color: #f5f3ff; border-color: transparent; }
.bench-chat .think-done, .bench-chat .phase-card { max-width: 100%; }
.bench-chat .think-done b, .bench-chat .run-time, .bench-chat .run-status, .bench-chat .shot-grid figcaption { color: #bdb8d4; }
.bench-chat .think-done p, .bench-chat .phase-sum, .bench-chat .phase-head b { color: #f5f3ff; }
.bench-chat .phase-card { background: #262a3c; border-color: transparent; }
.bench-chat .phase-fold, .bench-chat .doc-jump { background: #1b1e2c; color: #ddd9f2; border-color: transparent; }
.bench-chat .bubble .md code { background: rgba(255,255,255,.08); color: #f5f3ff; }
.bench-chat .bubble.working .think { color: #d5d1ea; }
.bench-chat .work-node { background: #262a3c; border-color: transparent; color: #f5f3ff; }
.bench-chat .work-node summary, .bench-chat .work-node .sec { color: #c8c4d4; }
.bench-chat .work-node .sec b { color: #f5f3ff; }
.bench-chat .bubble.mine { background: #6d4dff; }
.bench-chat .dock { background: #181b26; box-shadow: none; }
.bench-chat .capsule { background: #12141c; border-color: rgba(255,255,255,.12); }
.bench-chat textarea { color: #f5f3ff; }
.bench-chat .chip { background: #262a3c; border-color: transparent; color: #ddd9f2; }
.bench-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #0c0e14; }
.stage-view { flex: 1; min-width: 0; min-height: 0; display: flex; }
.phone-frame { flex: 1; min-width: 0; min-height: 0; display: flex; }
.phone-screen { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; }
.phone-chrome { display: none; }
.bench-stage.phone-on { background: #07080d; }
.bench-stage.phone-on .stage-view { position: relative; display: block; }
.bench-stage.phone-on .phone-frame {
  position: absolute; left: 50%; top: 50%; flex: none;
  padding: 14px; border-radius: 44px;
  background: linear-gradient(165deg, #4a4a4e, #1c1c1e 42%, #0a0a0c);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.2);
}
.bench-stage.phone-on .phone-screen {
  flex: none; border-radius: 32px; overflow: hidden; background: #000;
}
.bench-stage.phone-on .phone-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; flex: none; }
.bench-stage.phone-on .phone-chrome { display: block; pointer-events: none; }
.phone-status {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 48px;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 18px 0; color: #fff; font-size: 13px; font-weight: 700;
}
.phone-time { padding: 1px 6px; border-radius: 8px; background: rgba(0,0,0,.38); }
.phone-sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; margin-top: 3px; }
.phone-sig i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.phone-sig i:nth-child(1) { height: 5px; }
.phone-sig i:nth-child(2) { height: 8px; }
.phone-sig i:nth-child(3) { height: 11px; }
.phone-sig b { width: 18px; height: 9px; margin-left: 3px; border: 1.5px solid currentColor; border-radius: 2px; box-sizing: border-box; }
.phone-island {
  position: absolute; z-index: 3; top: 10px; left: 50%; width: 118px; height: 32px;
  transform: translateX(-50%); border-radius: 18px; background: #000;
}
.phone-home {
  position: absolute; z-index: 3; left: 50%; bottom: 8px; width: 126px; height: 5px;
  transform: translateX(-50%); border-radius: 4px; background: rgba(255,255,255,.9);
}
.phone-frame[data-chrome="punch"] .phone-island { width: 12px; height: 12px; top: 12px; border-radius: 50%; }
.phone-frame[data-chrome="home"] .phone-island { display: none; }
.phone-frame[data-chrome="home"] .phone-time { color: #111; background: rgba(255,255,255,.62); }
.phone-frame[data-chrome="home"] .phone-sig { color: #111; }
.phone-frame[data-chrome="home"] .phone-home {
  width: 44px; height: 44px; bottom: 8px; border-radius: 50%; background: transparent;
  border: 2px solid rgba(0,0,0,.45);
}
.bench-stage iframe, .bench-stage .pane { flex: 1; width: 100%; min-height: 0; border: 0; background: #0c0e14; color: #f5f3ff; }
.bench-stage .pane { overflow: auto; padding: 28px 32px; }
.bench-stage .pane h2, .bench-stage .pane h3 { margin: 16px 0 6px; }
.bench-stage .pane p { margin: 0; white-space: pre-wrap; line-height: 1.6; color: #d5d1ea; }
.space { min-height: 100dvh; display: flex; background: #100e1c; color: #f5f3ff; }
.rail { width: 248px; flex: none; display: flex; flex-direction: column; min-height: 100dvh; padding: 16px 12px; background: #141226; border-right: 1px solid rgba(255,255,255,.06); }
.rail .brand { font-weight: 750; font-size: 16px; padding: 4px 8px 12px; color: inherit; text-decoration: none; }
.rail-link { display: block; margin: 0 8px 10px; color: #c4b5fd; text-decoration: none; font-size: 13px; }
.rail-link.on { color: #fff; font-weight: 700; }
.skill-space { background: #0e1018; }
.skill-space .rail { background: #141226; }
.skill-main { flex: 1; min-width: 0; padding: 28px 32px 48px; overflow: auto; }
.rail-cat {
  display: block; width: calc(100% - 16px); margin: 0 8px 4px; text-align: left;
  border: 0; background: transparent; color: #c9c4e0; border-radius: 10px; padding: 8px 10px; font-size: 13px;
}
.rail-cat.on, .rail-cat:hover { background: rgba(255,255,255,.06); color: #fff; }
.skill-space .skill-head h1 { font-size: 28px; }
.skill-space .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill-space .skill-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) {
  .skill-space .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .skill-space { flex-direction: column; }
  .skill-space .rail { width: auto; min-height: 0; }
  .skill-main { padding: 16px; }
  .skill-space .skill-grid { grid-template-columns: 1fr; }
}
.skill-page { margin: 0 -16px; padding: 16px; background: #12141c; color: #f4f6fb; min-height: 70dvh; }
.skill-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.skill-head h1 { margin: 0; font-size: 22px; flex: 1; }
.skill-head input, .skill-head button, .skill-tabs button, .skill-cats button {
  border: 0; background: #1b2030; color: #d5dbe8; border-radius: 999px; padding: 7px 14px;
}
.skill-tabs, .skill-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.skill-tabs button.on { background: #6d4dff; color: #fff; }
.skill-cats button { background: #232838; color: #d7deea; }
.skill-cats button.on { background: #fff; color: #171b28; font-weight: 700; }
.skill-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.skill-card {
  display: block; width: 100%; text-align: left; border: 1px solid #2c3348; background: #1b2030;
  color: #f4f6fb; border-radius: 16px; padding: 14px;
}
.skill-card strong { display: block; margin-top: 8px; font-size: 16px; }
.skill-card p { margin: 6px 0 0; color: #c5cdd8; font-size: 13px; line-height: 1.5; }
.skill-sub { color: #9aa3b5 !important; font-size: 12px !important; }
.skill-badge {
  display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.skill-tags span { border: 1px solid #6d7cff; color: #b7c0ff; border-radius: 8px; padding: 2px 8px; font-size: 11px; }
.skill-foot { display: flex; justify-content: space-between; margin-top: 10px; color: #8e97a8; font-size: 12px; }
.skill-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; }
.skill-dialog { width: min(720px, 100%); max-height: 86dvh; overflow: auto; background: #171b28; color: #f4f6fb; border-radius: 16px; padding: 18px; position: relative; }
.skill-dialog h2, .skill-dialog h3 { margin: 0; }
.skill-dialog h3 { margin-top: 16px; font-size: 14px; }
.skill-dialog-head { display: flex; gap: 10px; align-items: center; }
.skill-dialog-head div { flex: 1; }
.skill-add { border: 0; border-radius: 999px; background: #6d4dff; color: #fff; padding: 8px 14px; }
.skill-x { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: #fff; font-size: 22px; }
.skill-body { white-space: pre-wrap; background: #10131c; border-radius: 12px; padding: 12px; color: #d5dbe8; font-size: 12px; line-height: 1.55; }
.skill-doc { margin-top: 16px; border: 0; background: transparent; color: #8d7cff; font-size: 15px; font-weight: 700; padding: 0; cursor: pointer; }
.skill-doc-hint { margin: 4px 0 0; color: #8e97a8; font-size: 12px; }
.skill-doc-page { width: min(760px, 100%); height: min(86dvh, 900px); display: flex; flex-direction: column; background: #171b28; color: #f4f6fb; border-radius: 16px; overflow: hidden; }
.skill-doc-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.skill-doc-bar h2 { margin: 0; font-size: 18px; }
.skill-doc-bar button { border: 0; background: transparent; color: #c9d2e3; font-size: 14px; cursor: pointer; }
.skill-doc-body { margin: 0; flex: 1; overflow: auto; white-space: pre-wrap; padding: 18px 20px 28px; color: #e7ebf5; font-size: 15px; line-height: 1.7; font-family: inherit; }
.rail #deskNew { height: 36px; border: 0; border-radius: 10px; background: #7c5cff; color: #fff; font-weight: 650; }
.rail #deskQ { margin-top: 10px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #1b1830; padding: 0 10px; outline: none; }
.rail-label { margin: 16px 8px 8px; color: #8f8aa6; font-size: 12px; }
#deskList { overflow: auto; }
.rail-item { width: 100%; display: grid; grid-template-columns: 10px 1fr; grid-template-rows: auto auto; column-gap: 8px; text-align: left; border: 0; background: transparent; color: inherit; border-radius: 10px; padding: 8px; }
.rail-item:hover { background: rgba(255,255,255,.05); }
.rail-item i { grid-row: 1 / span 2; align-self: center; width: 8px; height: 8px; border-radius: 50%; }
.rail-item b { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item span { color: #8f8aa6; font-size: 12px; }
.rail-empty { color: #8f8aa6; font-size: 13px; padding: 8px; }
.space-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.space-hero { max-width: 420px; text-align: center; }
.space-hero h2 { margin: 0 0 10px; font-size: 28px; }
.space-hero p { margin: 0; color: #a39fba; line-height: 1.7; }
@media (max-width: 800px) {
  .space { flex-direction: column; }
  .rail { width: auto; min-height: 0; }
}
.phone-dev {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 28px; text-align: center; background: #100e1c; color: #f5f3ff;
}
.phone-dev p { margin: 0; max-width: 320px; color: #a39fba; line-height: 1.6; }
.phone-dev a { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; background: #6d4dff; color: #fff; }
.phone-dev a.line { background: transparent; border: 1px solid rgba(255,255,255,.16); }
.res-page { padding: 8px 16px 28px; }
.res-head h1 { margin: 8px 0 4px; font-size: 22px; }
.res-head p { margin: 0 0 12px; color: #6b7280; font-size: 13px; line-height: 1.5; }
.res-tabs, .res-kinds, .res-tools, .res-panel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.res-tabs { margin-bottom: 10px; }
.res-tabs button, .res-kinds button, .res-tools button, .res-panel button {
  height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: #1a2033;
}
.res-tabs button.on, .res-kinds button.on { background: #6d4dff; color: #fff; }
.res-tools { margin-bottom: 10px; }
.res-tools input, .res-panel input, .res-panel select, .res-panel textarea {
  height: 36px; border: 0; border-radius: 10px; padding: 0 12px; background: #fff; min-width: 0;
}
.res-tools input { flex: 1; }
.res-kinds { margin: 4px 0 12px; }
.res-panel { margin-bottom: 12px; }
.res-panel textarea { width: 100%; height: 84px; padding: 10px 12px; resize: vertical; }
.res-sec { margin: 16px 0 8px; font-size: 15px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.res-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 0; border-radius: 14px; background: #fff; text-align: left; }
.res-card b { font-size: 13px; font-weight: 600; }
.res-card small { color: #6b7280; }
.res-thumb { display: block; height: 108px; border-radius: 10px; background: #111 center/cover no-repeat; color: #d1d5db; font-size: 13px; line-height: 108px; text-align: center; }
.res-detail { width: min(520px, calc(100% - 32px)); margin: 8vh auto; padding: 18px; border-radius: 16px; background: #fff; }
.res-detail h2 { margin: 8px 0; font-size: 18px; }
.res-detail p { margin: 0 0 12px; color: #6b7280; line-height: 1.5; }
.res-preview img, .res-preview video { width: 100%; border-radius: 12px; background: #111; }
.res-preview audio { width: 100%; }
