:root {
  --bark: #3B2F2F;
  --text: #3B2F2F;
  --text-light: #7A6E64;
  --text-muted: #A89880;
  --paper: #FFFDF9;
  --cream: #F5F0E8;
  --cream-dark: #E8DFD0;
  --ring: #D4A76A;
  --accent: #D4A76A;
  --border: #E8DFD0;
  --hover: rgba(0,0,0,0.05);
  --shadow: 0 2px 12px rgba(59,47,47,0.08);
  --shadow-lg: 0 8px 32px rgba(59,47,47,0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--cream);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
  z-index: 50;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar.closed {
  width: 0;
  min-width: 0;
  padding: 0;
  border-right: none;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--bark);
}

.btn-close-sidebar {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
}

.sidebar-section {
  padding: 12px 16px;
}

.sidebar-section-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 4px;
}

.sidebar-item {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-item:hover {
  background: var(--hover);
}

.sidebar-item.active {
  background: var(--paper);
  font-weight: 500;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

.sidebar-footer {
  padding: 12px 16px;
  margin-top: auto;
}

.sidebar-item.logout {
  color: #C46A5A;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--cream-dark);
  border-radius: 10px;
}

.sidebar-user-avatar {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ring);
  border-radius: 50%;
}

.sidebar-user-nickname {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hamburger {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-hamburger:hover {
  background: var(--hover);
}

.sidebar-hamburger, .topbar-hamburger {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar-hamburger:hover, .topbar-hamburger:hover {
  background: var(--hover);
}

.topbar-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--bark);
  cursor: pointer;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-light);
  font-size: 14px;
}

.user-status:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.user-avatar {
  font-size: 16px;
}

.user-name {
  font-weight: 500;
}

.btn-settings {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
}

/* 登录弹窗样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--hover);
  color: var(--ring);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(107, 142, 78, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-options {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}

.forgot-link {
  font-size: 13px;
  color: var(--ring);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-auth {
  padding: 14px;
  border: none;
  background: linear-gradient(135deg, var(--ring) 0%, #C49B5E 100%);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.3);
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  cursor: pointer;
  background: #2d2d2d;
}

.debug-toggle {
  background: none;
  border: none;
  color: #d4d4d4;
  font-size: 10px;
  cursor: pointer;
}

.debug-content {
  padding: 8px 12px;
  display: none;
}



.debug-item {
  margin: 4px 0;
  display: flex;
  gap: 8px;
}

.debug-label {
  color: #888;
  min-width: 80px;
}

#debug-recording { color: #f00; }
#debug-recording.recording { color: #0f0; }
#debug-api.success { color: #0f0; }
#debug-api.error { color: #f00; }
#debug-error { color: #f00; }

#debug-log {
  background: #0d0d0d;
  padding: 8px;
  margin: 8px 0 0 0;
  max-height: 100px;
  overflow-y: auto;
  font-size: 11px;
  color: #888;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages-inner {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.welcome-card {
  text-align: center;
  padding: 60px 20px;
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.welcome-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.msg {
  display: flex;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 24px;
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg.ai {
  align-self: flex-start;
}

.msg-bubble {
  padding: 16px 20px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg, #6B8E4E 0%, #5a7a40 100%);
  color: white;
  border-bottom-right-radius: 6px;
}

.msg.ai .msg-bubble {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.msg-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.msg.user .msg-time {
  text-align: right;
}

.input-area {
  position: relative;
  padding: 16px 20px calc(16px + var(--safe-bottom));
  background: var(--paper);
  flex-shrink: 0;
}

.input-area-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.input-wrapper {
  flex: 1;
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding-bottom: 52px;
}

.input-wrapper:focus-within {
  border-color: var(--ring);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.chat-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  max-height: 180px;
  padding: 14px 20px;
  border: none;
  font-size: 16px;
  resize: none;
  outline: none;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
}

.chat-input::placeholder {
  color: var(--text-muted);
  font-size: 16px;
}

.input-actions-row {
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-actions {
  display: flex;
  gap: 8px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--ring);
  background: rgba(212, 167, 106, 0.1);
  border-radius: 20px;
  color: var(--ring);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-btn:hover {
  background: rgba(212, 167, 106, 0.15);
  border-color: #b89050;
}

.send-area {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-toolbar {
  display: none;
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-mic {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-mic:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.btn-mic svg {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-mic .icon-mic {
  position: absolute;
}

.btn-mic .audio-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.btn-mic.active .icon-mic {
  opacity: 0;
  transform: scale(0.8);
}

.btn-mic.active .audio-wave {
  opacity: 1;
  transform: scale(1);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 2px;
}

.wave-bar {
  width: 3px;
  height: 12px;
  background: #4a9eff;
  border-radius: 2px;
  transition: height 0.1s ease;
}

.btn-mic.active .wave-bar {
  animation: waveAnimation 0.5s ease-in-out infinite;
}

.btn-mic.active .wave-bar:nth-child(1) { animation-delay: 0s; }
.btn-mic.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.btn-mic.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.btn-mic.active .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.btn-mic.active .wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveAnimation {
  0%, 100% { height: 6px; }
  50% { height: 16px; }
}

.btn-mic:hover .icon-mic rect,
.btn-mic:hover .icon-mic path,
.btn-mic:hover .icon-mic line {
  stroke: #555;
}

.btn-mic:hover .icon-dots circle {
  fill: #555;
}

.icon-mic rect,
.icon-mic path,
.icon-mic line {
  stroke: #8e8ea0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-dots circle {
  fill: #8e8ea0;
}

.btn-send {
  position: static;
  width: 40px;
  height: 40px;
  border: none;
  background: #4a9eff;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.4);
}

.btn-send:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-send:disabled {
  background: #ddd;
  color: #bbb;
  cursor: not-allowed;
  box-shadow: none;
}

/* Voice overlay - replaces input area */
.voice-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 10px;
  z-index: 20;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
}
.voice-overlay.active {
  display: flex;
}

/* Waveform + text area */
.voice-overlay .v-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.voice-overlay .v-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.voice-overlay .v-wave .bar {
  width: 3px;
  background: #e74c3c;
  border-radius: 2px;
  animation: v-bounce 0.7s ease-in-out infinite alternate;
}
.voice-overlay .v-wave .bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.voice-overlay .v-wave .bar:nth-child(2) { height: 22px; animation-delay: 0.08s; }
.voice-overlay .v-wave .bar:nth-child(3) { height: 16px; animation-delay: 0.16s; }
.voice-overlay .v-wave .bar:nth-child(4) { height: 26px; animation-delay: 0.24s; }
.voice-overlay .v-wave .bar:nth-child(5) { height: 14px; animation-delay: 0.12s; }
.voice-overlay .v-wave .bar:nth-child(6) { height: 20px; animation-delay: 0.2s; }
.voice-overlay .v-wave .bar:nth-child(7) { height: 10px; animation-delay: 0.04s; }

@keyframes v-bounce {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1); }
}

.voice-overlay .v-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 20px;
}
.voice-overlay .v-text .placeholder {
  color: #bbb;
}

/* Buttons */
.voice-overlay .v-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.v-btn-cancel {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
  transition: all 0.15s;
}
.v-btn-cancel:hover {
  border-color: #ccc;
  color: #666;
  background: #f5f5f5;
}
.v-btn-done {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e74c3c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  transition: all 0.15s;
}
.v-btn-done:hover {
  background: #d63031;
}
.v-btn-done:disabled {
  opacity: 0.35;
  cursor: default;
}
/* 文件上传区域 */
.upload-area {
  display: none;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.upload-area.dragover {
  border-color: var(--ring);
  background: rgba(107, 142, 78, 0.05);
}

.upload-area.show {
  display: block;
}

.upload-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.upload-text {
  font-size: 13px;
  color: var(--text-light);
}

/* 移动端优化 */
@media (max-width: 767px) {
  .input-wrapper {
    border-radius: 20px;
  }
  
  .chat-input {
    min-height: 70px;
    padding: 12px 90px 12px 16px;
    font-size: 14px;
  }

  .btn-mic,
  .btn-send {
    width: 34px;
    height: 34px;
  }

  .input-toolbar {
    padding: 6px 12px;
  }
  
  .input-hint {
    font-size: 11px;
  }

  .sidebar-hamburger {
    display: none;
  }

  .topbar-hamburger {
    display: flex !important;
  }
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 40;
  display: none;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
  display: block;
}

.toast {
  position: fixed;
  bottom: calc(100px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(59, 47, 47, 0.9);
  backdrop-filter: blur(12px);
  color: white;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1023px) {
  .sidebar {
    width: 240px;
  }
}

@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 240px;
    min-width: 240px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.closed {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .chat-messages-inner,
  .input-area-inner {
    max-width: 960px;
  }
  
  .msg {
    max-width: 100%;
  }
}

/* ==================== 面板 ==================== */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  display: none;
  backdrop-filter: blur(4px);
}

.panel-overlay.show {
  display: block;
}

.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--paper);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: none;
  flex-direction: column;
  z-index: 101;
  box-shadow: var(--shadow-lg);
}

.panel.show {
  display: flex;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--bark);
}

.btn-close-panel {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
}

.panel-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.panel-tab {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.panel-tab.active {
  background: var(--ring);
  color: white;
  border-color: var(--ring);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.panel-content .loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

/* 时间线样式 */
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.timeline-body {
  flex: 1;
}

.timeline-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.timeline-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.timeline-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: var(--cream);
  color: var(--text-light);
  margin-top: 4px;
}

/* 待审批记忆样式 */
.pending-item {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.pending-item:last-child {
  margin-bottom: 0;
}

.pending-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.pending-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pending-actions {
  display: flex;
  gap: 8px;
}

.btn-confirm {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: var(--leaf, #6B8E4E);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.btn-delete {
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* 记一笔样式 */
.quick-add-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  resize: none;
  margin-bottom: 12px;
  font-family: inherit;
}

.quick-add-input:focus {
  outline: none;
  border-color: var(--ring);
}

.quick-add-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-add-category label {
  font-size: 13px;
  color: var(--text-light);
}

.quick-add-category select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--paper);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  border: none;
  background: var(--ring);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

/* 回声回廊样式 */
.echo-item {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.echo-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--bark);
  margin-bottom: 6px;
}

.echo-summary {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.echo-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 14px;
}