.toast-host {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
@media (max-width: 768px) {
  .toast-host {
    top: calc(env(safe-area-inset-top, 0px) + 96px);
  }
}
.xx-native .toast-host {
  top: calc(var(--xx-statusbar-h, 0px) + 96px);
}
.toast {
  max-width: 80vw;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(47, 42, 40, 0.92);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(47, 42, 40, 0.18);
  animation: fadeInUp 0.24s ease both;
}
.toast-success {
  background: #3FAF87;
}
.toast-error {
  background: #E2604C;
}

.ios-guide {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.ios-guide-bg {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 20, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ios-guide-body {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.24);
  animation: ios-guide-up 0.32s cubic-bezier(0.22, 1.05, 0.36, 1);
}
@media (min-width: 521px) {
  .ios-guide-body {
    border-radius: 22px;
    margin-bottom: 24px;
  }
}
@keyframes ios-guide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ios-guide-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FF7A59, #FF9A3D);
  color: #fff;
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255, 122, 89, 0.38);
  margin-bottom: 10px;
}
.ios-guide-title {
  margin: 0;
  font-size: 18px;
  color: #2F2A28;
  letter-spacing: -0.2px;
}
.ios-guide-sub {
  margin: 5px 0 16px;
  font-size: 12.5px;
  color: #8A817D;
}
.ios-guide-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.ios-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #2F2A28;
  line-height: 1.55;
}
.ios-guide-steps li em {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  border-radius: 50%;
  background: #FFF1EC;
  color: #FF7A5C;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ios-guide-sharekey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin: 0 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  border-radius: 6px;
  background: #F2F2F7;
  border: 1px solid #DCDCE2;
  color: #3C82F7;
}
.ios-guide-btn {
  height: 46px;
}
.ios-guide-tip {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #B4A9A3;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FFFCFA;
}
.layout-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: rgba(255, 252, 250, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #F7F1ED;
}
.layout-header-inner {
  position: relative;
  max-width: 720px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.layout-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #2F2A28;
}
.layout-logo:hover {
  color: #FF7A5C;
}
.layout-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.layout-back {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8A817D;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.layout-back:hover,
.layout-back:active {
  background: #FFF1EC;
  color: #F2603F;
}
.layout-back svg {
  display: block;
}
@media (max-width: 768px) {
  .layout-back {
    display: inline-flex;
  }
  .layout-sub-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #2F2A28;
  }
}
.layout-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.layout-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.layout-nav-item {
  font-size: 14px;
  color: #8A817D;
}
.layout-nav-item:hover {
  color: #FF7A5C;
}
.layout-nav-login {
  padding: 6px 18px;
  border: 1px solid #FFD9CC;
  border-radius: 999px;
  color: #F2603F;
  background: #FFF1EC;
}
.layout-user {
  position: relative;
}
.layout-avatar {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #F1E9E4;
  border-radius: 50%;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layout-menu {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 176px;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(47, 42, 40, 0.1);
  animation: fadeIn 0.16s ease both;
}
.layout-menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #F7F1ED;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.layout-menu-head .muted {
  font-size: 12px;
}
.layout-menu-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: #2F2A28;
}
.layout-menu-item:hover {
  background: #FFF1EC;
  color: #F2603F;
}
.layout-main {
  flex: 1;
}
.xx-native .layout-header {
  height: auto;
  padding-top: var(--xx-statusbar-h, env(safe-area-inset-top, 0px));
}
.xx-native .layout-header-inner {
  height: 60px;
}
.xx-native .layout--chat .chat {
  padding-top: calc(8px + var(--xx-statusbar-h, env(safe-area-inset-top, 0px)));
}
.xx-native .layout--imm .layout-main {
  padding-top: 0;
}
.xx-native .layout--imm .vip-topbar,
.xx-native .layout--imm .freecode-topbar {
  height: auto;
  padding-top: calc(var(--xx-statusbar-h, env(safe-area-inset-top, 0px)) + 13px);
  padding-bottom: 13px;
}
.xx-native .layout--chat .chat-side-head {
  padding-top: calc(12px + var(--xx-statusbar-h, env(safe-area-inset-top, 0px)));
}
.layout-tabbar {
  display: none;
}
@media (max-width: 768px) {
  .layout-nav {
    display: none;
  }
  .layout-header-inner {
    padding: 0 16px;
  }
  .layout {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  .layout-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 252, 250, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #F7F1ED;
  }
  .layout--chat {
    padding-bottom: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .layout--chat .layout-header {
    display: none;
  }
  .layout--chat .layout-tabbar {
    display: none;
  }
  .layout--chat .layout-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .layout--chat .chat {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .layout--imm {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .layout--imm .layout-header {
    display: none;
  }
  .layout--imm .layout-tabbar {
    display: none;
  }
  .layout-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: #B4A9A3;
    -webkit-tap-highlight-color: transparent;
  }
  .layout-tab svg {
    display: block;
  }
  .layout-tab.is-active {
    color: #FF7A5C;
    font-weight: 600;
  }
}

.decision-input {
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 26px;
  padding: 18px 18px 14px;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.decision-input:focus-within {
  border-color: #FFD9CC;
  box-shadow: 0 14px 36px rgba(255, 122, 92, 0.15);
}
.decision-input-box {
  display: block;
  width: 100%;
  min-height: 86px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  line-height: 1.7;
  color: #2F2A28;
  resize: none;
}
.decision-input-box::placeholder {
  color: #B4A9A3;
}
.decision-input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #F7F1ED;
}
.decision-input-count {
  font-size: 12px;
  color: #B4A9A3;
}
.decision-input-count.is-warn {
  color: #E9A23B;
}
.decision-input .decision-input-btn {
  height: 32px;
  min-width: 78px;
  padding: 0 14px;
  font-size: 13px;
}

.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
}
.mode-switch-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 15px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #8A817D;
  font-size: 13px;
  transition: all 0.18s ease;
}
.mode-switch-item:hover:not(:disabled) {
  color: #FF7A5C;
}
.mode-switch-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.mode-switch-item.is-active {
  background: #FFF1EC;
  color: #F2603F;
  font-weight: 500;
}
.mode-switch-emoji {
  font-size: 14px;
}
@media (max-width: 640px) {
  .mode-switch {
    display: flex;
    flex: 1;
    gap: 2px;
    padding: 3px;
  }
  .mode-switch .mode-switch-item {
    flex: 1;
    justify-content: center;
    gap: 3px;
    padding: 0 4px;
    white-space: nowrap;
    font-size: 12.5px;
    letter-spacing: -0.2px;
  }
  .mode-switch .mode-switch-emoji {
    font-size: 13px;
  }
}

.thinking-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: thinking-in 0.18s ease;
}
@keyframes thinking-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.thinking-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 40px;
  background: #FFFFFF;
  border: 1px solid #FFD9CC;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(255, 122, 92, 0.18);
}
.thinking-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3.5px solid #FFF1EC;
  border-top-color: #FF7A5C;
  animation: thinking-spin 0.8s linear infinite;
}
@keyframes thinking-spin {
  to {
    transform: rotate(360deg);
  }
}
.thinking-tip {
  margin: 0;
  font-size: 14px;
  color: #8A817D;
}

.home {
  padding-top: 40px;
}
.home-hero {
  text-align: center;
  margin-bottom: 30px;
}
.home-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  padding-left: 0.2em;
}
.home-slogan {
  font-size: 16px;
  color: #8A817D;
}
.home-greeting {
  margin-top: 8px;
}
.home-input {
  margin-bottom: 10px;
  padding: 16px 16px 14px;
  border: 1px solid #FFD9CC;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, #FFF1EC);
  box-shadow: 0 10px 28px rgba(230, 126, 96, 0.08);
}
.home-console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.home-robot {
  flex: none;
  animation: home-robot-float 3.6s ease-in-out infinite;
}
.home-input:focus-within .home-robot {
  animation-duration: 1.6s;
}
.home-robot svg {
  display: block;
  transition: transform 0.25s ease;
}
.home-input:focus-within .home-robot svg {
  transform: scale(1.06);
}
.home-robot-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: home-robot-blink 4.2s infinite;
}
@keyframes home-robot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes home-robot-blink {
  0%,
  91%,
  100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.12);
  }
}
.home-console-hello {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  font-size: 14.5px;
  font-weight: 600;
  color: #F2603F;
}
.home-console-hello-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: #B4A9A3;
}
@media (max-width: 420px) {
  .home-console-hello-sub {
    display: none;
  }
}
.home-console-tabs {
  flex: none;
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #F1E9E4;
}
.home-console-tab {
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #8A817D;
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}
.home-console-tab.is-active {
  background: #FF7A5C;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(230, 126, 96, 0.32);
}
.home-mode-hint.home-console-hint {
  flex: none;
  text-align: center;
  margin: 12px 0 0;
  font-size: 12.5px;
}
.home-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .home-mode {
    margin-left: -8px;
    margin-right: -8px;
  }
}
.home-mode-hint {
  flex: 1;
  min-width: 160px;
  text-align: right;
}
@media (max-width: 640px) {
  .home-mode-hint {
    flex-basis: 100%;
    text-align: center;
    margin-top: 4px;
  }
}
.home-quota {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #B4A9A3;
}
.home-quota strong {
  color: #F2603F;
  font-weight: 600;
}
.home-quota.is-out {
  color: #E2604C;
}
.home-quota-link {
  color: #F2603F;
  font-weight: 500;
  white-space: nowrap;
}
.home-quota-link.muted {
  color: #B4A9A3;
  font-weight: 400;
}
.home-samples {
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .home-samples {
    margin-top: 6px;
  }
}
.home-samples-label {
  display: block;
  margin-bottom: 10px;
}
.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-chip {
  padding: 6px 14px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 13px;
  transition: all 0.18s ease;
}
.home-chip:hover {
  border-color: #FFD9CC;
  background: #FFF1EC;
  color: #F2603F;
}
@media (max-width: 640px) {
  .home-samples .home-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .home-samples .home-chip {
    width: 100%;
    padding: 9px 10px;
    text-align: center;
  }
}
.home-secondary {
  margin-bottom: 26px;
}
.home-chat-entry {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  background: #FFFFFF;
  transition: all 0.18s ease;
}
.home-chat-entry:hover {
  border-color: #FFD9CC;
  background: #FFF1EC;
}
.home-chat-entry:hover .home-chat-entry-arrow {
  color: #FF7A5C;
  transform: translateX(2px);
}
.home-chat-entry-emoji {
  flex: none;
  font-size: 17px;
}
.home-chat-entry-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-chat-entry-body strong {
  font-size: 13.5px;
  color: #2F2A28;
}
.home-chat-entry-body .muted {
  font-size: 12px;
}
.home-chat-entry-arrow {
  flex: none;
  color: #B4A9A3;
  font-size: 15px;
  transition: all 0.18s ease;
}
.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.home-card-head h3 {
  font-size: 15px;
}
.home-recent {
  margin-bottom: 30px;
}
.home-recent-list {
  display: grid;
  gap: 10px;
}
.home-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  background: #FFFFFF;
  color: #2F2A28;
  transition: all 0.18s ease;
}
.home-recent-item:hover {
  border-color: #FFD9CC;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
  transform: translateY(-1px);
}
.home-recent-emoji {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #FFF1EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.home-recent-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.home-recent-title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-recent-arrow {
  color: #B4A9A3;
  font-size: 18px;
}
.home-empty {
  padding: 26px 20px;
  border: 1px dashed #F1E9E4;
  border-radius: 18px;
  text-align: center;
}
.home-empty-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.home-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
}

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #FFFCFA;
}
.auth-panel {
  width: 100%;
  max-width: 380px;
  animation: fadeInUp 0.4s ease both;
}
.auth-brand {
  text-align: center;
  margin-bottom: 26px;
}
.auth-brand .auth-brand-name {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
}
.auth-brand .auth-brand-sub {
  display: block;
  margin-top: 6px;
  color: #8A817D;
  font-size: 14px;
}
.auth-card {
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
}
.auth-submit {
  margin-top: 6px;
}
.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #8A817D;
}
.auth-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FDF1EE;
  color: #E2604C;
  font-size: 13px;
  line-height: 1.6;
}
.auth-back {
  display: block;
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #B4A9A3;
}
.auth-back:hover {
  color: #FF7A5C;
}
.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 2px;
  font-size: 12px;
  line-height: 1.6;
  color: #8A817D;
  cursor: pointer;
  user-select: none;
}
.auth-agree input[type='checkbox'] {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  accent-color: #FF7A5C;
  cursor: pointer;
}
.auth-agree a {
  color: #FF7A5C;
}
.auth-docs {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
}
.auth-docs a {
  color: #B4A9A3;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.auth-docs a:hover {
  color: #FF7A5C;
  text-decoration-color: #FFD9CC;
}
.auth-docs span {
  margin: 0 8px;
}
.auth-ok {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #EEF8F3;
  color: #3FAF87;
  font-size: 13px;
  line-height: 1.6;
}
.auth-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #B4A9A3;
}
.auth-forgot {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
}
.auth-forgot a {
  color: #8A817D;
}
.auth-forgot a:hover {
  color: #FF7A5C;
}
.auth-done {
  text-align: center;
  padding: 10px 0 4px;
}
.auth-done .auth-done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFF1EC;
  font-size: 26px;
  line-height: 1;
}
.auth-done .auth-done-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
.auth-done .auth-done-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #8A817D;
  margin: 0 0 22px;
}
.auth-done .auth-done-desc strong {
  color: #2F2A28;
  font-weight: 600;
}

.ai-message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease both;
}
.ai-message-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FF7A5C;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.ai-message-body {
  position: relative;
  max-width: 100%;
  padding: 13px 17px;
  border-radius: 4px 18px 18px 18px;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  box-shadow: 0 4px 16px rgba(47, 42, 40, 0.04);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-message.is-user {
  flex-direction: row-reverse;
}
.ai-message.is-user .ai-message-body {
  background: #FFF1EC;
  border-color: #FFD9CC;
  border-radius: 18px 4px 18px 18px;
  color: #2F2A28;
}
.ai-message.tone-warn .ai-message-body {
  background: #FFF8EC;
  border-color: #F6E2C0;
}
.ai-message-text {
  white-space: pre-wrap;
}

.factor-list {
  display: grid;
  gap: 14px;
}
.factor-item {
  position: relative;
}
.factor-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.factor-item-name {
  font-size: 14px;
  color: #2F2A28;
}
.factor-item-weight {
  font-size: 12px;
  color: #F2603F;
  font-weight: 600;
}
.factor-item-track {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}
.factor-item-track input[type='range'] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.factor-item-track input[type='range']::-webkit-slider-runnable-track {
  height: 22px;
  background: transparent;
}
.factor-item-track input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FF7A5C;
  box-shadow: 0 2px 6px rgba(255, 122, 92, 0.35);
}
.factor-item-track input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FF7A5C;
}
.factor-item-track input[type='range']:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.factor-item-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF7A5C, #F2603F);
  transition: width 0.2s ease;
}
.factor-item-source {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #B4A9A3;
}

.option-card {
  padding: 16px 18px;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  background: #FFFFFF;
  transition: all 0.18s ease;
}
.option-card + .option-card {
  margin-top: 12px;
}
.option-card.is-selectable {
  cursor: pointer;
}
.option-card.is-selectable:hover {
  border-color: #FFD9CC;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
  transform: translateY(-1px);
}
.option-card.is-selected {
  border-color: #FF7A5C;
  background: #FFF1EC;
}
.option-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.option-card-index {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #F7F1ED;
  color: #8A817D;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.is-selected .option-card-index {
  background: #FF7A5C;
  color: #fff;
}
.option-card-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}
.option-card-check {
  color: #FF7A5C;
  font-weight: 700;
}
.option-card-desc {
  margin-top: 8px;
  color: #8A817D;
  font-size: 14px;
}
.option-card-lists {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.option-card-list {
  font-size: 14px;
  line-height: 1.85;
}
.option-card-list li {
  position: relative;
  padding-left: 17px;
  color: #2F2A28;
}
.option-card-list li::before {
  position: absolute;
  left: 0;
}
.option-card-list.is-pros li::before {
  content: '+';
  color: #3FAF87;
  font-weight: 700;
}
.option-card-list.is-cons li::before {
  content: '-';
  color: #B4A9A3;
  font-weight: 700;
}
.option-card-analysis {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #F7F1ED;
  color: #8A817D;
  font-size: 14px;
  line-height: 1.8;
}
.option-card-percent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.option-card-percent-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #F7F1ED;
  overflow: hidden;
}
.option-card-percent-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF7A5C, #F2603F);
  transition: width 0.5s ease;
}
.option-card-percent-num {
  font-size: 13px;
  font-weight: 600;
  color: #F2603F;
  min-width: 40px;
  text-align: right;
}

.decision {
  padding-top: 32px;
}
.decision-loading {
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.decision-error {
  padding: 40px 20px;
}
.decision-error-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.decision-head {
  margin-bottom: 18px;
}
.decision-question {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.decision-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.decision-section-title {
  font-size: 13px;
  color: #8A817D;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.decision-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.decision-section-head .decision-section-title {
  margin-bottom: 0;
}
.decision-risk {
  background: #FFF8EC;
  border-color: #F6E2C0;
  color: #8A6522;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.decision-conflict {
  margin-bottom: 18px;
}
.decision-conflict p {
  font-size: 15px;
  line-height: 1.8;
}
.decision-thread {
  margin-bottom: 18px;
}
.decision-ask {
  margin-bottom: 18px;
}
.decision-ask .ai-message:last-of-type {
  margin-bottom: 6px;
}
.decision-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.decision-hint {
  padding: 9px 16px;
  border: 1px solid #FFD9CC;
  border-radius: 999px;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s ease;
}
.decision-hint:hover:not(:disabled) {
  border-color: #F2603F;
}
.decision-hint:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 640px) {
  .decision-hint {
    flex: 1 1 auto;
    min-width: 88px;
    padding: 11px 16px;
    text-align: center;
  }
}
.decision-answer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 12px;
}
.decision-answer textarea {
  flex: 1;
}
.decision-answer .btn {
  flex: none;
  height: 50px;
  padding: 0 22px;
}
@media (max-width: 640px) {
  .decision-answer {
    flex-direction: column;
    align-items: stretch;
  }
  .decision-answer .btn {
    width: 100%;
  }
}
.decision-ask-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.decision-finish {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 0;
  border: 0;
  background: transparent;
  color: #8A817D;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: color 0.18s ease;
}
.decision-finish:hover:not(:disabled) {
  color: #F2603F;
}
.decision-finish:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 640px) {
  .decision-finish {
    padding: 14px 0;
    font-size: 14px;
  }
}
.decision-factor-note {
  margin-top: 14px;
  font-size: 12px;
}
.decision-options {
  margin-bottom: 18px;
}
.decision-options .decision-section-title {
  margin-bottom: 12px;
}
.decision-confidence {
  margin-bottom: 18px;
}
.decision-conclusion {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.decision-confidence-bar {
  height: 8px;
  border-radius: 999px;
  background: #F7F1ED;
  overflow: hidden;
}
.decision-confidence-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF7A5C, #F2603F);
  transition: width 0.5s ease;
}
.decision-confidence-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.decision-memory-hint {
  margin: -6px 0 14px;
  font-size: 12px;
}
.decision-memory-hint a {
  color: #F2603F;
}
.decision-external-hint {
  margin: -6px 0 14px;
  font-size: 12px;
}
.decision-external-hint .decision-external-note {
  opacity: 0.75;
}
.decision-missing {
  margin-bottom: 18px;
}
.decision-missing .decision-missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.decision-missing .decision-missing-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 13px;
  line-height: 1.5;
}
.decision-missing .decision-missing-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.decision-actions {
  margin-top: 24px;
}
.decision-cancel {
  margin-top: 10px;
}
.decision-decided {
  margin-bottom: 12px;
  padding: 13px 18px;
  border-radius: 18px;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 14px;
  text-align: center;
}

.satisfaction-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .satisfaction-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}
.satisfaction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  transition: all 0.18s ease;
}
.satisfaction-item:hover:not(:disabled) {
  border-color: #FFD9CC;
  background: #FFF1EC;
}
.satisfaction-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.satisfaction-item.is-active {
  border-color: #FF7A5C;
  background: #FFF1EC;
  box-shadow: 0 6px 18px rgba(255, 122, 92, 0.16);
}
.satisfaction-emoji {
  font-size: 24px;
  line-height: 1;
}
.satisfaction-label {
  font-size: 12px;
  color: #8A817D;
}

.detail {
  padding-top: 28px;
}
.detail-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
}
.detail-back:hover {
  color: #FF7A5C;
}
.detail-error {
  padding: 40px 20px;
}
.detail-error-btn {
  margin-top: 16px;
}
.detail-head {
  margin-bottom: 18px;
}
.detail-question {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-section-title {
  font-size: 13px;
  color: #8A817D;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.detail-chosen {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #FFF1EC;
  border-color: #FFD9CC;
}
.detail-chosen-label {
  font-size: 12px;
  color: #8A817D;
}
.detail-chosen-name {
  font-size: 19px;
  color: #F2603F;
}
.detail-result-satisfaction {
  font-size: 17px;
  margin-bottom: 8px;
}
.detail-result-feedback {
  font-size: 15px;
  line-height: 1.8;
  color: #2F2A28;
}
.detail-result-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #F7F1ED;
  font-size: 13px;
  line-height: 1.7;
}
.detail-result-note {
  margin-top: 10px;
  font-size: 12px;
}
.detail-learning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF1EC;
}
.detail-learning .detail-learning-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #F2603F;
  margin-bottom: 6px;
}
.detail-learning p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.8;
  color: #2F2A28;
}
.detail-learning .muted {
  font-size: 12px;
  line-height: 1.7;
}
.detail-hint p:first-child {
  font-size: 15px;
}
.detail-hint .muted {
  margin-top: 8px;
  line-height: 1.7;
}
.detail-feedback-field {
  margin-top: 18px;
}

.history {
  padding-top: 32px;
}
.history-title {
  font-size: 20px;
  margin-bottom: 16px;
}
.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.history-filter {
  height: 34px;
  padding: 0 16px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 13px;
  transition: all 0.18s ease;
}
.history-filter:hover {
  border-color: #FFD9CC;
  color: #FF7A5C;
}
.history-filter.is-active {
  border-color: #FF7A5C;
  background: #FFF1EC;
  color: #F2603F;
  font-weight: 500;
}
.history-empty {
  padding: 40px 20px;
}
.history-empty .muted {
  margin-top: 6px;
}
.history-empty-btn {
  margin-top: 18px;
}
.history-list {
  display: grid;
  gap: 10px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  background: #FFFFFF;
  color: #2F2A28;
  transition: all 0.18s ease;
}
.history-item:hover {
  border-color: #FFD9CC;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
  transform: translateY(-1px);
}
.history-emoji {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FFF1EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.history-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.history-question {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-meta {
  font-size: 12px;
}
.history-status {
  flex: none;
  font-size: 12px;
  color: #8A817D;
}
.history-more {
  margin-top: 18px;
}

.share {
  min-height: 100vh;
  padding: 40px 20px 60px;
  background: #FFFCFA;
  display: flex;
  justify-content: center;
}
.share-card {
  width: 100%;
  max-width: 460px;
  padding: 28px 24px;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 26px;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
}
.share-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 12px;
}
.share-question {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.share-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #F7F1ED;
}
.share-block p {
  font-size: 15px;
  line-height: 1.8;
}
.share-block-title {
  font-size: 12px;
  color: #8A817D;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.share-options {
  display: grid;
  gap: 8px;
}
.share-options li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.share-option-index {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #F7F1ED;
  color: #8A817D;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-chosen-name {
  font-size: 18px;
  font-weight: 600;
  color: #F2603F;
}
.share-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #F7F1ED;
  text-align: center;
}
.share-footer p {
  margin-bottom: 14px;
  font-size: 13px;
  color: #8A817D;
}
.share-cta-btn {
  margin-top: 16px;
}

.entry-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 22px;
}
.entry-solo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
  text-decoration: none;
  color: #2F2A28;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.entry-solo:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(255, 122, 92, 0.16);
  border-color: #FFD9CC;
}
.entry-solo:active {
  transform: translateY(0);
}
.entry-solo-arrow {
  margin-left: auto;
  color: #B4A9A3;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.entry-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
  text-decoration: none;
  color: #2F2A28;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.entry-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(255, 122, 92, 0.16);
  border-color: #FFD9CC;
}
.entry-switch:active {
  transform: translateY(0);
}
.entry-switch-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FFF1EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.entry-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.entry-switch-text strong {
  font-size: 14px;
  font-weight: 600;
}
.entry-switch-text i {
  font-style: normal;
  font-size: 12px;
  color: #B4A9A3;
  line-height: 1.4;
}
.entry-switch-list {
  overflow: hidden;
}
.entry-switch-list.card {
  margin-top: 10px;
  padding: 4px 10px;
}
.entry-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  background: none;
  border: none;
  border-bottom: 1px solid #F7F1ED;
  cursor: pointer;
  text-align: left;
  color: #2F2A28;
  font: inherit;
  transition: background 0.16s;
}
.entry-switch-row:last-child {
  border-bottom: none;
}
.entry-switch-row:hover {
  background: #FFF1EC;
}
.entry-switch-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #FFF1EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.entry-switch-row-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.entry-switch-row-main strong {
  font-size: 14px;
  font-weight: 600;
}
.entry-switch-row-main .muted {
  font-size: 12px;
}
.entry-switch-row-arrow {
  color: #B4A9A3;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.vip-entry {
  margin-top: 12px;
}
.vip-entry .entry-switch-row-icon.is-vip {
  background: linear-gradient(135deg, #FF9B76 0%, #F2603F 100%);
}

.profile {
  padding-top: 32px;
}
.profile-title {
  font-size: 20px;
  margin-bottom: 18px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}
.profile-head:active {
  background: #F7F1ED;
}
.profile-head-arrow {
  flex: none;
  margin-left: auto;
  color: #B4A9A3;
  font-size: 18px;
}
.profile-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-head-info {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
.profile-head-info strong {
  font-size: 17px;
}
.profile-head-info .muted {
  font-size: 12px;
}
.profile-gender {
  display: flex;
  gap: 8px;
}
.profile-gender-item {
  height: 40px;
  padding: 0 20px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 14px;
  transition: all 0.18s ease;
}
.profile-gender-item:hover {
  border-color: #FFD9CC;
  color: #FF7A5C;
}
.profile-gender-item.is-active {
  border-color: #FF7A5C;
  background: #FFF1EC;
  color: #F2603F;
  font-weight: 500;
}
.profile-form-foot {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid #F7F1ED;
}
.profile-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
}
.profile-docs {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}
.profile-docs a {
  color: #8A817D;
  text-decoration: underline;
  text-decoration-color: #F1E9E4;
  text-underline-offset: 3px;
}
.profile-docs a:hover {
  color: #FF7A5C;
  text-decoration-color: #FFD9CC;
}
.profile-docs span {
  margin: 0 10px;
  color: #B4A9A3;
}

.profile-edit {
  padding-top: 32px;
}
.profile-edit-title {
  font-size: 20px;
  margin-bottom: 18px;
}

.settings {
  padding-top: 32px;
}
.settings-title {
  font-size: 20px;
  margin-bottom: 18px;
}
.settings-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.settings-row-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-row-main strong {
  font-size: 15px;
}
.settings-row-main .muted {
  line-height: 1.7;
}
.settings-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-block strong {
  font-size: 15px;
}
.settings-block .muted {
  line-height: 1.7;
}
.settings-options {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.settings-option {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 14px;
  transition: all 0.18s ease;
}
.settings-option:hover:not(:disabled) {
  border-color: #FFD9CC;
  color: #FF7A5C;
}
.settings-option.is-active {
  border-color: #FF7A5C;
  background: #FFF1EC;
  color: #F2603F;
  font-weight: 500;
}
.settings-option:disabled {
  opacity: 0.6;
}
.settings-tone {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.settings-tone-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  text-align: left;
  transition: all 0.18s ease;
}
.settings-tone-item strong {
  font-size: 14px;
}
.settings-tone-item .muted {
  font-size: 12px;
}
.settings-tone-item:hover:not(:disabled) {
  border-color: #FFD9CC;
}
.settings-tone-item.is-active {
  border-color: #FF7A5C;
  background: #FFF1EC;
}
.settings-tone-item:disabled {
  opacity: 0.6;
}
.settings-danger {
  margin-top: 16px;
}
.settings-divider {
  height: 1px;
  margin: 14px 0;
  background: #F7F1ED;
}
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 22, 18, 0.55);
  animation: fadeIn 0.18s ease both;
}
.settings-modal-box {
  width: 100%;
  max-width: 360px;
  padding: 22px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.22s ease both;
}
.settings-modal-title {
  font-size: 17px;
  font-weight: 600;
}
.settings-modal-tip {
  margin: 6px 0 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #8A817D;
}
.settings-modal-err {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FDF1EE;
  color: #E2604C;
  font-size: 13px;
  line-height: 1.6;
}
.settings-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.settings-modal-actions .btn {
  flex: 1;
}

.memories {
  padding-top: 32px;
}
.memories-title {
  font-size: 20px;
  margin-bottom: 18px;
}
.memories-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.memories-head-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.memories-head-main strong {
  font-size: 15px;
}
.memories-head-main .muted {
  line-height: 1.7;
}
.memories-head-link {
  align-self: flex-start;
  font-size: 13px;
  color: #F2603F;
}
.memories-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.memories-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.memories-filter:hover {
  border-color: #FFD9CC;
  color: #F2603F;
}
.memories-filter.is-active {
  background: #FFF1EC;
  border-color: #FFD9CC;
  color: #F2603F;
  font-weight: 600;
}
.memories-filter-count {
  font-size: 11px;
  color: #B4A9A3;
}
.is-active .memories-filter-count {
  color: #F2603F;
}
.memories-add {
  padding: 0;
  overflow: hidden;
}
.memories-add-btn {
  width: 100%;
  padding: 16px;
  border: none;
  background: transparent;
  color: #F2603F;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.memories-add-btn:hover {
  background: #FFF1EC;
}
.memories-add-form {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.memories-add-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.memories-select {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  color: #2F2A28;
  font-size: 13px;
}
.memories-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  color: #2F2A28;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  font-family: inherit;
}
.memories-textarea:focus {
  outline: none;
  border-color: #FFD9CC;
  box-shadow: 0 0 0 3px rgba(255, 122, 92, 0.12);
}
.memories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.memories-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.memories-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.memories-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 12px;
  line-height: 1.8;
}
.memories-item-source,
.memories-item-used {
  font-size: 12px;
}
.memories-item-text {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.memories-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px dashed #F7F1ED;
  margin-top: 2px;
}
.memories-item-foot .muted {
  font-size: 12px;
}
.memories-item-ops {
  display: flex;
  gap: 6px;
}
.memories-op {
  padding: 3px 12px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.memories-op:hover {
  border-color: #FFD9CC;
  color: #F2603F;
}
.memories-op:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.memories-op-danger:hover {
  border-color: #E2604C;
  color: #E2604C;
}
.memories-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.memories-edit-actions {
  display: flex;
  gap: 8px;
}
.memories-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  text-align: center;
  padding: 28px 20px;
}
.memories-empty .muted {
  line-height: 1.8;
}
.memories-footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  padding-bottom: 20px;
}

.topics {
  padding-top: 32px;
}
.topics-title {
  font-size: 20px;
  margin-bottom: 6px;
}
.topics-sub {
  margin-bottom: 18px;
  line-height: 1.7;
}
.topics-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.topics-head-numbers {
  display: flex;
  gap: 36px;
}
.topics-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.topics-num strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.topics-num .muted {
  font-size: 13px;
}
.topics-days {
  display: flex;
  gap: 8px;
}
.topics-day {
  padding: 5px 12px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.topics-day:hover {
  border-color: #FFD9CC;
  color: #F2603F;
}
.topics-day.is-active {
  background: #FFF1EC;
  border-color: #FFD9CC;
  color: #F2603F;
  font-weight: 600;
}
.topics-updated {
  font-size: 12px;
}
.topics-filters {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.topics-filters::-webkit-scrollbar {
  display: none;
}
.topics-filter {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.topics-filter:hover {
  border-color: #FFD9CC;
  color: #F2603F;
}
.topics-filter.is-active {
  background: #FFF1EC;
  border-color: #FFD9CC;
  color: #F2603F;
  font-weight: 600;
}
.topics-filter-count {
  font-size: 11px;
  padding: 0 6px;
  border-radius: 999px;
  background: #F7F1ED;
  color: #B4A9A3;
  font-variant-numeric: tabular-nums;
}
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topics-item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.topics-item:hover {
  box-shadow: 0 12px 34px rgba(255, 122, 92, 0.16);
  transform: translateY(-1px);
}
.topics-item-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.topics-item-emoji {
  flex: none;
  font-size: 22px;
  line-height: 1.2;
}
.topics-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.topics-item-label {
  font-size: 15px;
  font-weight: 600;
}
.topics-item-meta {
  font-size: 12px;
}
.topics-item-arrow {
  flex: none;
  color: #B4A9A3;
  font-size: 18px;
}
.topics-item-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: #F7F1ED;
  overflow: hidden;
}
.topics-item-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #FF7A5C;
  transition: width 0.35s ease;
}
.topics-item-summary {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.topics-item-summary strong {
  color: #2F2A28;
}
.topics-item-pct {
  margin-left: 8px;
  font-weight: 600;
  color: #F2603F;
  font-variant-numeric: tabular-nums;
}
.topics-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.topics-empty .muted {
  line-height: 1.7;
}
.topics-empty-btn {
  margin-top: 6px;
}
.topics-policy {
  margin-top: 20px;
}
.topics-policy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.topics-policy ul {
  margin: 0;
  padding-left: 18px;
  color: #8A817D;
  font-size: 12px;
  line-height: 1.9;
}

.topic-bars {
  margin-top: 12px;
}
.topic-bars-track {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #F7F1ED;
}
.topic-bars-seg {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.35s ease;
}
.topic-bars-legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.topic-bars-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.topic-bars-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.topic-bars-name {
  flex: 1;
  min-width: 0;
  color: #2F2A28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-bars-count {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.topic-bars-percent {
  flex: none;
  min-width: 42px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #2F2A28;
  font-variant-numeric: tabular-nums;
}
.topic-bars.is-compact {
  margin-top: 10px;
}
.topic-bars.is-compact .topic-bars-legend {
  margin-top: 8px;
  gap: 4px;
}
.topic-bars.is-compact .topic-bars-item {
  font-size: 12px;
}
.topic-bars-empty {
  margin: 10px 0 0;
  font-size: 13px;
}
.topic-bars-seg.seg-0,
.topic-bars-dot.seg-0 {
  background: #FF7A5C;
}
.topic-bars-seg.seg-1,
.topic-bars-dot.seg-1 {
  background: #f3b65c;
}
.topic-bars-seg.seg-2,
.topic-bars-dot.seg-2 {
  background: #7fb79b;
}
.topic-bars-seg.seg-3,
.topic-bars-dot.seg-3 {
  background: #8fa8ce;
}
.topic-bars-seg.seg-4,
.topic-bars-dot.seg-4 {
  background: #c79ecb;
}
.topic-bars-seg.seg-5,
.topic-bars-dot.seg-5 {
  background: #B4A9A3;
}

.topic-detail {
  padding-top: 24px;
}
.topic-detail-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  text-decoration: none;
}
.topic-detail-back:hover {
  color: #F2603F;
}
.topic-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.topic-detail-emoji {
  flex: none;
  font-size: 30px;
  line-height: 1.1;
}
.topic-detail-head-main {
  flex: 1;
  min-width: 0;
}
.topic-detail-title {
  font-size: 20px;
  margin-bottom: 8px;
}
.topic-detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topic-detail-cat {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #F2603F;
  cursor: pointer;
}
.topic-detail-cat:hover {
  text-decoration: underline;
}
.topic-detail-numbers {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.topic-detail-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.topic-detail-num strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.topic-detail-num .muted {
  font-size: 12px;
  line-height: 1.5;
}
.topic-detail-days {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.topic-detail-day {
  padding: 5px 12px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8A817D;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.topic-detail-day:hover {
  border-color: #FFD9CC;
  color: #F2603F;
}
.topic-detail-day.is-active {
  background: #FFF1EC;
  border-color: #FFD9CC;
  color: #F2603F;
  font-weight: 600;
}
.topic-detail-options {
  margin-bottom: 16px;
}
.topic-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.topic-detail-card-head strong {
  font-size: 15px;
}
.topic-detail-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
}
.topic-detail-note.is-warning {
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFF9EE;
  border: 1px solid #F6E3C0;
  color: #9A6B1E;
}
.topic-detail-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic-detail-cta strong {
  font-size: 15px;
}
.topic-detail-cta .muted {
  line-height: 1.7;
}
.topic-detail-cta-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.topic-detail-empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.topic-detail-empty .muted {
  line-height: 1.7;
}
.topic-detail-window {
  margin-top: 18px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chat {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 20px 0;
  height: calc(100vh - 60px);
  display: flex;
  gap: 16px;
  overflow: hidden;
}
.chat-side {
  flex: none;
  width: 224px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  overflow: hidden;
}
.chat-side-head {
  padding: 12px;
  border-bottom: 1px solid #F7F1ED;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-new {
  flex: 1;
}
.chat-side-close {
  display: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8A817D;
  font-size: 18px;
  line-height: 1;
}
.chat-side-empty {
  padding: 18px 14px;
  font-size: 13px;
  line-height: 1.7;
}
.chat-list {
  flex: 1;
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
}
.chat-list-item {
  position: relative;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.16s ease;
}
.chat-list-item:hover {
  background: #FFF1EC;
}
.chat-list-item:hover .chat-list-ops {
  opacity: 1;
}
.chat-list-item:hover .chat-list-time {
  opacity: 0;
}
.chat-list-item.is-active {
  background: #FFF1EC;
}
.chat-list-item.is-active .chat-list-title {
  color: #F2603F;
  font-weight: 600;
}
.chat-list-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.chat-list-title {
  font-size: 14px;
  color: #2F2A28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-time {
  font-size: 11px;
  transition: opacity 0.16s ease;
}
.chat-list-ops {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.chat-list-ops button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #8A817D;
  font-size: 12px;
  line-height: 1;
}
.chat-list-ops button:hover {
  color: #F2603F;
  background: #fff;
}
.chat-list-input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #FFD9CC;
  border-radius: 8px;
  font-size: 14px;
  color: #2F2A28;
  background: #fff;
  outline: none;
}
.chat-side-foot {
  padding: 10px 14px;
  border-top: 1px solid #F7F1ED;
  font-size: 12px;
}
.chat-mask {
  display: none;
}
.chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  overflow: hidden;
}
.chat-head {
  flex: none;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #F7F1ED;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-head-title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2F2A28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-head-note {
  font-size: 12px;
}
.chat-head-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -4px;
  border-radius: 10px;
  color: #8A817D;
  background: transparent;
}
.chat-head-back:hover {
  background: #FFF1EC;
  color: #F2603F;
}
.chat-head-back svg {
  display: block;
}
.chat-side-toggle {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #F1E9E4;
  border-radius: 8px;
  background: transparent;
  color: #8A817D;
  font-size: 14px;
}
.chat-banner {
  padding: 9px 16px;
  background: #FFF8EC;
  border-bottom: 1px solid #F6E2C0;
  font-size: 13px;
  color: #8a6520;
}
.chat-quota-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px;
  background: #FBF7F4;
  border-bottom: 1px solid #F0E7E0;
  font-size: 12px;
  color: #9a8d84;
  text-align: center;
}
.chat-quota-tip.is-warn {
  background: #FFF8EC;
  border-bottom-color: #F6E2C0;
  color: #8a6520;
}
@media (max-width: 640px) {
  .chat-quota-tip {
    padding: 6px 12px;
    gap: 8px;
  }
}
.chat-quota-tip-link {
  flex: none;
  color: #F2603F;
  font-weight: 500;
}
.chat-quota-tip-link:hover {
  text-decoration: underline;
}
.chat-body {
  flex: 1;
  padding: 18px 18px 4px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.chat-loading {
  font-size: 13px;
}
.chat-intro {
  padding: 18px 4px;
}
.chat-intro-line {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #2F2A28;
}
.chat-intro-note {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
}
.chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-starter {
  padding: 8px 14px;
  border: 1px solid #F1E9E4;
  border-radius: 999px;
  background: #FFFCFA;
  font-size: 13px;
  color: #8A817D;
  transition: all 0.16s ease;
}
.chat-starter:hover {
  border-color: #FFD9CC;
  background: #FFF1EC;
  color: #F2603F;
}
.chat-text {
  font-size: 15px;
  line-height: 1.85;
}
.chat-text-p {
  margin: 0;
}
.chat-text-gap {
  height: 8px;
}
.chat-text-li {
  display: flex;
  gap: 6px;
}
.chat-text-mark {
  flex: none;
  min-width: 14px;
  color: #FF7A5C;
  font-weight: 600;
}
.chat-text code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #F7F1ED;
  font-size: 13px;
}
.chat-text strong {
  color: #2F2A28;
  font-weight: 600;
}
.chat-caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  margin-left: 3px;
  vertical-align: -2px;
  background: #FF7A5C;
  animation: chatCaret 1s steps(2, start) infinite;
}
@keyframes chatCaret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.chat-meta {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chat-meta a {
  color: #F2603F;
}
.chat-error {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border: 1px solid #F3D6CE;
  border-radius: 12px;
  background: #FFF4F1;
  font-size: 13px;
  color: #E2604C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-retry {
  flex: none;
  padding: 4px 12px;
  border: 1px solid #E2604C;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: #E2604C;
}
.chat-retry:hover {
  background: #E2604C;
  color: #fff;
}
.chat-quota-done {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border: 1px solid #F0E7E0;
  border-radius: 12px;
  background: #FDFBF9;
}
.chat-quota-done-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4a423d;
}
.chat-quota-done-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.chat-foot {
  flex: none;
  padding: 12px 14px 14px;
  border-top: 1px solid #F7F1ED;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  padding: 11px 14px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFCFA;
  font-size: 14px;
  line-height: 1.6;
  color: #2F2A28;
  resize: none;
  outline: none;
  font-family: inherit;
}
.chat-input:focus {
  border-color: #FFD9CC;
  background: #fff;
}
.chat-input:disabled {
  background: #F7F1ED;
  color: #B4A9A3;
}
.chat-send {
  flex: none;
  height: 44px;
  padding: 0 22px;
}
@media (max-width: 768px) {
  .chat {
    padding: 10px 10px 0;
    gap: 0;
    height: calc(100vh - 60px);
    height: calc(100vh - 60px - env(safe-area-inset-bottom));
    height: calc(100dvh - 60px - env(safe-area-inset-bottom));
  }
  .chat-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: 260px;
    border-radius: 0;
    border: none;
    border-right: 1px solid #F1E9E4;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  .chat-side.is-open {
    transform: translateX(0);
  }
  .chat-side-close {
    display: block;
  }
  .chat-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(47, 42, 40, 0.3);
  }
  .chat-side-toggle {
    display: block;
  }
  .chat-head-back {
    display: flex;
  }
  .chat-body {
    padding: 14px 12px 4px;
  }
  .chat-input {
    font-size: 16px;
  }
  .chat-foot {
    padding: 10px;
    gap: 8px;
  }
  .chat-send {
    padding: 0 16px;
  }
}

.freecode {
  max-width: 520px;
}
.freecode-topbar {
  position: sticky;
  top: 60px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  margin: 0 -20px;
  padding: 0 20px;
  background: rgba(255, 252, 250, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
@media (max-width: 768px) {
  .freecode-topbar {
    top: 0;
  }
}
.freecode-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8A817D;
  -webkit-tap-highlight-color: transparent;
}
.freecode-back:hover {
  background: #FFF1EC;
  color: #F2603F;
}
.freecode-back:active {
  background: #FFF1EC;
  color: #F2603F;
}
.freecode-back svg {
  display: block;
}
.freecode-title {
  font-size: 24px;
  margin: 0;
}
.freecode-hint {
  font-size: 13px;
  line-height: 1.7;
  color: #8A817D;
  margin: 0 0 14px;
}
.freecode-gzh {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FFF1EC;
  border: 1px solid #FFD9CC;
  border-radius: 12px;
  margin: 0 0 14px;
}
.freecode-gzh .freecode-gzh-qr {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #FFFFFF;
  flex-shrink: 0;
  display: block;
}
.freecode-gzh .freecode-gzh-text {
  min-width: 0;
}
.freecode-gzh .freecode-gzh-text strong {
  display: block;
  font-size: 14px;
  color: #F2603F;
}
.freecode-gzh .freecode-gzh-text p {
  font-size: 12px;
  line-height: 1.6;
  color: #8A817D;
  margin: 3px 0 0;
}
.freecode-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.freecode-card--got {
  background: linear-gradient(160deg, #FFF6F2 0%, #FFFFFF 62%);
  border-color: #FFD9CC;
}
.freecode-label {
  font-size: 13px;
  color: #8A817D;
  letter-spacing: 0.02em;
}
.freecode-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F2603F;
  background: #FFF1EC;
  border: 1px dashed #FFD9CC;
  border-radius: 12px;
  padding: 16px 12px;
  width: 100%;
  cursor: pointer;
  user-select: all;
  transition: background 0.16s, border-color 0.16s;
}
.freecode-code:hover {
  background: #FFE8E0;
}
.freecode-code:active {
  border-color: #FF7A5C;
}
.freecode-code-tip {
  font-size: 12px;
  text-align: center;
  margin-top: -4px;
}
.freecode-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #2F2A28;
  margin: 0;
}
.freecode-card--claim .freecode-label,
.freecode-card--claim .freecode-note {
  text-align: center;
}
.freecode-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.freecode-form .input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: #FFF1EC;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #F2603F;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.freecode-form .input::placeholder {
  color: #D8A896;
  font-weight: 400;
  letter-spacing: 0;
}
.freecode-form .input:focus {
  background: #FFFFFF;
  border-color: #FF7A5C;
  box-shadow: 0 0 0 4px rgba(255, 122, 92, 0.12);
}
.freecode-form .btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .freecode-form {
    flex-direction: column;
  }
  .freecode-form .input {
    width: 100%;
  }
  .freecode-form .btn {
    width: 100%;
    height: 46px;
  }
}
.freecode-note {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.freecode-card--closed,
.freecode-card--empty {
  text-align: center;
  gap: 10px;
}
.freecode-card--closed strong,
.freecode-card--empty strong {
  font-size: 16px;
}
.freecode-card--closed p,
.freecode-card--empty p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.freecode-stock {
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}

.vip {
  max-width: 520px;
}
.vip-topbar {
  position: sticky;
  top: 60px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  margin: 0 -20px;
  padding: 0 20px;
  background: rgba(255, 252, 250, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
@media (max-width: 768px) {
  .vip-topbar {
    top: 0;
  }
}
.vip-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8A817D;
  -webkit-tap-highlight-color: transparent;
}
.vip-back:hover,
.vip-back:active {
  background: #FFF1EC;
  color: #F2603F;
}
.vip-back svg {
  display: block;
}
.vip-title {
  font-size: 24px;
  margin: 0;
}
.vip-h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.vip-status {
  position: relative;
  overflow: hidden;
}
.vip-status--loading {
  font-size: 13px;
}
.vip-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vip-status-head strong {
  font-size: 17px;
}
.vip-status.is-member {
  border-color: transparent;
  background: linear-gradient(135deg, #FF9B76 0%, #F2603F 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(242, 96, 63, 0.24);
}
.vip-status.is-member::after {
  content: '';
  position: absolute;
  top: -46px;
  right: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.vip-status-badge {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  letter-spacing: 1px;
}
.vip-status-date {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.vip-status-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8A817D;
}
.vip-status.is-member .vip-status-sub {
  color: rgba(255, 255, 255, 0.86);
}
.vip-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vip-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vip-benefits strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.vip-benefits i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: #8A817D;
}
.vip-benefit-tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.vip-prices {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.vip-price {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #FFF4EF;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vip-price i {
  font-style: normal;
  font-size: 11px;
  color: #8A817D;
  white-space: nowrap;
}
.vip-price strong {
  font-size: 18px;
  color: #F2603F;
}
.vip-price span {
  font-size: 11px;
  color: #B4A9A3;
}
.vip-price.is-picked {
  border-color: #FF7A5C;
  background: #FFEDE6;
}
.vip-buy-btn {
  height: 46px;
}
.vip-pay-err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF1EC;
}
.vip-pay-err::before {
  flex: none;
  content: '!';
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #E2604C;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.vip-pay-err p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #B33D1E;
}
.vip-pay-rescue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: none;
  border-radius: 999px;
  background: #FFFCFA;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #F2603F;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease;
}
.vip-pay-rescue::after {
  content: '›';
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}
.vip-pay-rescue:hover,
.vip-pay-rescue:active {
  background: #FFF1EC;
}
.vip-copy-tip {
  text-align: left;
}
.vip-copy-url {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFCFA;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #8A817D;
  word-break: break-all;
  resize: none;
  -webkit-appearance: none;
}
.vip-modal-cancel {
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #8A817D;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vip-modal-cancel:active {
  background: #F7F1ED;
}
.vip-qr-btn {
  height: 40px;
  margin-top: 4px;
}
.vip-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.65;
}
.vip-redeem-form {
  display: flex;
  gap: 10px;
}
.vip-redeem-form .input {
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 1px;
}
.vip-redeem-form .btn {
  flex: none;
  height: 46px;
  padding: 0 22px;
}
.vip-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #F2603F;
}
.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 22, 18, 0.55);
}
.vip-modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(340px, 86vw);
  padding: 24px 20px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 18px 44px rgba(47, 42, 40, 0.22);
  text-align: center;
}
.vip-modal-box strong {
  font-size: 15px;
}
.vip-modal-box img {
  width: 210px;
  height: auto;
  border-radius: 10px;
}
.vip-modal-box p {
  margin: 0;
  font-size: 12px;
  color: #8A817D;
  line-height: 1.65;
}
.vip-modal-box .btn {
  width: 100%;
}
@media (max-width: 640px) {
  .vip-redeem-form {
    flex-direction: column;
  }
  .vip-redeem-form .input {
    width: 100%;
    font-size: 15px;
  }
  .vip-redeem-form .btn {
    width: 100%;
  }
  .vip-prices {
    overflow-x: auto;
  }
  .vip-prices .vip-price {
    min-width: 68px;
  }
}

.notfound {
  padding-top: 100px;
}
.notfound-emoji {
  font-size: 44px;
  margin-bottom: 14px;
}
.notfound-title {
  font-size: 19px;
  margin-bottom: 8px;
}
.notfound-btn {
  margin-top: 22px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  background: #FFFCFA;
  color: #2F2A28;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #FF7A5C;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: 15px;
  color: #2F2A28;
  outline: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
@media (max-width: 768px) {
  .page,
  .page.home,
  .page.decision,
  .page.detail,
  .page.history,
  .page.memories,
  .page.profile,
  .page.profile-edit,
  .page.settings,
  .page.topics,
  .page.topic-detail {
    padding-top: 14px;
  }
}
.page-narrow {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 20px;
}
.card {
  background: #FFFFFF;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 26px rgba(255, 122, 92, 0.09);
}
.card + .card {
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #FFFFFF;
  color: #2F2A28;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.18s ease;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: #FF7A5C;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 92, 0.28);
}
.btn-primary:hover:not(:disabled) {
  background: #F2603F;
  box-shadow: 0 12px 34px rgba(255, 122, 92, 0.16);
}
.btn-ghost {
  background: transparent;
  border-color: #F1E9E4;
  color: #8A817D;
}
.btn-ghost:hover:not(:disabled) {
  border-color: #FFD9CC;
  color: #FF7A5C;
  background: #FFF1EC;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}
.input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid #F1E9E4;
  border-radius: 12px;
  background: #FFFFFF;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.input::placeholder {
  color: #B4A9A3;
}
.input:focus {
  border-color: #FFD9CC;
  box-shadow: 0 0 0 4px #FFF1EC;
}
textarea.input {
  height: auto;
  padding: 14px 18px;
  line-height: 1.7;
  resize: none;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: #8A817D;
}
.muted {
  color: #8A817D;
  font-size: 13px;
}
.center {
  text-align: center;
}
.title-lg {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #FFF1EC;
  color: #F2603F;
  font-size: 12px;
  line-height: 1.7;
}
.tag-plain {
  background: #F7F1ED;
  color: #8A817D;
}
.switch {
  flex: none;
  position: relative;
  width: 50px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #E6DED9;
  transition: background 0.2s ease;
}
.switch.is-on {
  background: #FF7A5C;
}
.switch.is-on .switch-knob {
  transform: translateX(22px);
}
.switch:disabled {
  opacity: 0.6;
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(47, 42, 40, 0.18);
  transition: transform 0.2s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fade-in-up {
  animation: fadeInUp 0.36s ease both;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF7A5C;
  animation: blink 1.2s infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}


/*# sourceMappingURL=main.7919b368.css.map*/