.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);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #F7F1ED;
}
.layout-header-inner {
  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-nav {
  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;
}

.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-btn {
  min-width: 132px;
}

.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;
}

.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;
}
.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;
}

.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: 16px;
}
.home-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.home-mode-hint {
  flex: 1;
  min-width: 160px;
  text-align: right;
}
.home-samples {
  margin-bottom: 22px;
}
.home-samples-label {
  display: block;
  margin-bottom: 8px;
}
.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;
}
.home-entries {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}
@media (max-width: 640px) {
  .home-entries {
    flex-direction: column;
  }
}
.home-entry {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  background: #FFFFFF;
  color: #2F2A28;
  font-size: 14px;
  transition: all 0.18s ease;
}
.home-entry:hover,
.home-entry.is-active {
  border-color: #FFD9CC;
  background: #FFF1EC;
  color: #F2603F;
}
.home-entry-emoji {
  font-size: 17px;
}
.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.home-card-head h3 {
  font-size: 15px;
}
.home-topics {
  margin-bottom: 22px;
}
.home-topics-note {
  margin-top: 14px;
  line-height: 1.7;
}
.home-topics-lead {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF1EC;
  border: 1px solid #FFD9CC;
  font-size: 13px;
  line-height: 1.8;
}
.home-topics-lead strong {
  color: #F2603F;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.home-stat {
  padding: 16px 8px;
  border: 1px solid #F1E9E4;
  border-radius: 18px;
  background: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: #F2603F;
}
.home-stat span {
  font-size: 12px;
  color: #8A817D;
}
.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;
}

.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-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-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;
}

.profile {
  padding-top: 32px;
}
.profile-title {
  font-size: 20px;
  margin-bottom: 18px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.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-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
}

.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;
}

.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;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.topics-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.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-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-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-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: 640px) {
  .chat {
    padding: 12px 12px 0;
    gap: 0;
  }
  .chat-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    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: 55;
    background: rgba(47, 42, 40, 0.3);
  }
  .chat-side-toggle {
    display: block;
  }
  .chat-body {
    padding: 14px 12px 4px;
  }
  .chat-foot {
    padding: 10px;
    gap: 8px;
  }
  .chat-send {
    padding: 0 16px;
  }
}

.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;
}
.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.0a11f248.css.map*/