* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Language toggle button */
/* 语言切换按钮 */
.language-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;

  min-width: 52px;
  height: 36px;
  padding: 0 14px;

  border: 1px solid rgba(120, 115, 105, 0.16);
  border-radius: 999px;

  background: rgba(255, 250, 242, 0.78);
  color: #6f675e;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 4px 14px rgba(90, 72, 50, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  user-select: none;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.language-toggle:hover {
  background: rgba(255, 246, 232, 0.94);
  color: #4f463d;
  border-color: rgba(120, 115, 105, 0.24);

  box-shadow:
    0 6px 18px rgba(90, 72, 50, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  transform: translateY(-1px);
}

.language-toggle:active {
  transform: translateY(0);
  box-shadow:
    0 3px 10px rgba(90, 72, 50, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.language-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(180, 148, 104, 0.22),
    0 4px 14px rgba(90, 72, 50, 0.08);
}

/* Mobile */
/* 移动端 */
@media (max-width: 600px) {
  .language-toggle {
    top: 12px;
    right: 12px;

    min-width: 48px;
    height: 34px;
    padding: 0 12px;

    font-size: 13px;
  }
}

/* Reduce motion */
/* 减少动效，照顾对动画敏感的用户 */
@media (prefers-reduced-motion: reduce) {
  .language-toggle {
    transition: none;
  }

  .language-toggle:hover,
  .language-toggle:active {
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible,
.gate-node:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

:root {
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-secondary: #94a3b8;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-gentle: #8b5cf6;
  --color-sky-top: #e0f2fe;
  --color-sky-bottom: #bae6fd;
  --color-sea: #7dd3fc;
  --color-cloud: rgba(255,255,255,0.8);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--color-sky-top) 0%, var(--color-sky-bottom) 60%, var(--color-sea) 100%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.home-page {
  padding-top: 10px;
}

.home-header {
  text-align: center;
  padding: 30px 0 20px;
  position: relative;
}

.home-header h1 {
  font-size: 26px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.home-header .subtitle {
  font-size: 13px;
  color: #64748b;
  letter-spacing: 1px;
}

.cloud {
  position: absolute;
  background: var(--color-cloud);
  border-radius: 50px;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: var(--color-cloud);
  border-radius: 50%;
}

.cloud-1 {
  width: 60px;
  height: 24px;
  top: 10px;
  left: 10%;
  animation-delay: 0s;
}

.cloud-1::before {
  width: 28px;
  height: 28px;
  top: -14px;
  left: 8px;
}

.cloud-1::after {
  width: 20px;
  height: 20px;
  top: -8px;
  left: 28px;
}

.cloud-2 {
  width: 80px;
  height: 30px;
  top: 20px;
  right: 15%;
  animation-delay: 2s;
}

.cloud-2::before {
  width: 35px;
  height: 35px;
  top: -18px;
  left: 12px;
}

.cloud-2::after {
  width: 25px;
  height: 25px;
  top: -10px;
  left: 40px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.safety-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.safety-notice .notice-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.safety-notice p {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fffdf8 0%, #f8f4ea 100%);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.quick-action-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.quick-action-text {
  font-size: 13px;
  font-weight: 600;
  color: #3d3a33;
  margin-bottom: 2px;
}

.quick-action-hint {
  font-size: 11px;
  color: #8a8478;
}

.quick-action-momentum {
  background: linear-gradient(180deg, #f0fff4 0%, #e0f4e8 100%);
  border-color: rgba(46, 125, 74, 0.2);
}

.quick-action-priority {
  background: linear-gradient(180deg, #fff8f0 0%, #f8ece0 100%);
  border-color: rgba(200, 130, 46, 0.2);
}

.quick-action-empathy {
  background: linear-gradient(180deg, #f5f8ff 0%, #e8eef8 100%);
  border-color: rgba(46, 74, 122, 0.2);
}

.main-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.module-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gentle));
  opacity: 0;
  transition: opacity 0.3s;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-card:hover::before {
  opacity: 1;
}

.module-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.module-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.module-card p {
  font-size: 12px;
  color: var(--color-text-light);
}

.places-section {
  margin-top: 24px;
}

.places-title {
  font-size: 16px;
  color: #6f654e;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 500;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.place-card {
  text-align: left;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fffdf8 0%, #f8f4ea 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.place-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.place-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #efe7d4;
  color: #6c5a2e;
  margin-bottom: 8px;
}

.place-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #3d3a33;
}

.place-desc {
  margin: 0 0 10px;
  line-height: 1.4;
  color: #5d5a54;
  font-size: 13px;
}

.place-meta {
  margin-top: auto;
}

.place-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f3efe6;
  font-size: 12px;
  color: #4e4a42;
}

.place-empathy { background: linear-gradient(180deg, #fff8f0 0%, #f8ece0 100%); }
.place-status { background: linear-gradient(180deg, #f5f8ff 0%, #e8eef8 100%); }
.place-habit { background: linear-gradient(180deg, #f0fff4 0%, #e0f4e8 100%); }
.place-priority { background: linear-gradient(180deg, #fff5e6 0%, #f8ece0 100%); }
.place-review { background: linear-gradient(180deg, #fff0f5 0%, #f8e8ee 100%); }

.place-empathy .place-badge { background: #f5e0c8; color: #7a5a2e; }
.place-status .place-badge { background: #c8d8f5; color: #2e4a7a; }
.place-habit .place-badge { background: #c8f0d8; color: #2e7a4a; }
.place-priority .place-badge { background: #f5dcc8; color: #7a4a2e; }
.place-review .place-badge { background: #f5c8d8; color: #7a2e4a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gentle) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--color-card);
  color: var(--color-text);
}

.btn-success {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--color-text-light);
}

.btn-text:hover {
  color: var(--color-text);
  background: rgba(0,0,0,0.03);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-back {
  background: rgba(255,255,255,0.7);
  border: none;
  color: var(--color-text-light);
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.btn-back:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-text);
}

.btn-option {
  padding: 8px 16px;
  border-radius: 20px;
}

.btn-option.selected {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gentle) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.btn-option:hover:not(.selected) {
  background: rgba(255,255,255,0.8);
}

.page-header {
  margin-bottom: 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin: -20px -20px 24px -20px;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-header p {
  color: var(--color-text-light);
  font-size: 14px;
}

.empathy-step, .empathy-result {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
}

.cloud-viz {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(226,232,240,0.3) 0%, rgba(203,213,225,0.2) 100%);
  border-radius: var(--radius-md);
  min-height: 100px;
}

.cloud-shape {
  display: inline-block;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50px 50px 50px 50px;
  font-size: 14px;
  color: var(--color-text-light);
  transition: all 0.5s ease;
  max-width: 200px;
}

.cloud-shape.faded {
  opacity: 0.5;
  background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
}

.cloud-shape.bright {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  box-shadow: 0 0 20px rgba(254, 240, 138, 0.5);
}

.step-indicator {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
}

.empathy-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-hint {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

textarea, input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: rgba(255,255,255,0.8);
  color: var(--color-text);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
  min-height: 100px;
}

.custom-input {
  margin-top: 12px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
}

.step-actions .btn {
  flex: 1;
}

.feelings-grid, .needs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.feeling-category, .need-category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feeling-chip, .need-chip {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.8);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.feeling-chip:hover, .need-chip:hover {
  border-color: var(--color-primary-light);
  background: rgba(255,255,255,1);
}

.feeling-chip.selected, .need-chip.selected {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gentle) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.target-select, .tone-select, .method-select {
  margin-bottom: 16px;
}

.target-select label, .tone-select label, .method-select label {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.target-select, .tone-select, .method-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.expression-card {
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.expression-card:last-child {
  margin-bottom: 0;
}

.expression-card label {
  display: block;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.expression-card p {
  font-size: 15px;
  line-height: 1.6;
}

.action-suggestion {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  border-left: 4px solid var(--color-success);
}

.action-suggestion h4 {
  font-size: 14px;
  color: var(--color-success);
  margin-bottom: 8px;
}

.action-suggestion ul {
  list-style: none;
  padding: 0;
}

.action-suggestion li {
  font-size: 14px;
  color: var(--color-text);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.action-suggestion li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-success);
}

.empathy-next-choices {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.empathy-choice-header {
  font-size: 13px;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.empathy-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empathy-choice-btn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  color: #5b21b6;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.empathy-choice-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border-color: #7c3aed;
  transform: translateY(-1px);
}

.empathy-choice-btn:active {
  transform: translateY(0);
}

.care-actions-section {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 14px;
  border: 1px dashed rgba(16, 185, 129, 0.3);
}

.care-actions-label {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.care-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.care-action-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(255,255,255,0.8);
  font-size: 13px;
  color: #065f46;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.care-action-btn:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(16, 185, 129, 0.5);
}

.care-action-btn.done {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #10b981;
}

.gentle-note {
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.status-form, .priority-form, .habits-progress, .habits-list {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 500;
}

.slider-group {
  display: flex;
  gap: 4px;
}

.slider-btn {
  flex: 1;
  padding: 10px 4px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.slider-btn:hover {
  border-color: var(--color-primary-light);
  background: rgba(255,255,255,1);
}

.slider-btn.selected {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gentle) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.slider-label {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.8;
}

.status-chips, .direction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip, .direction-chip {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.status-chip:hover, .direction-chip:hover {
  border-color: var(--color-gentle);
}

.status-chip.selected, .direction-chip.selected {
  background: linear-gradient(135deg, var(--color-gentle) 0%, #a78bfa 100%);
  color: white;
  border: none;
}

.recent-records {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.recent-records h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.record-item {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226,232,240,0.5);
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.record-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.record-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.record-time {
  font-size: 11px;
  color: var(--color-text-light);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.record-content {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-gentle) 100%);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.record-note {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 6px;
  font-style: italic;
}

.empty-note {
  color: var(--color-text-light);
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

.habits-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(226,232,240,0.5);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-success) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.habits-actions {
  margin-bottom: 16px;
}

.habit-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid rgba(226,232,240,0.3);
  transition: all 0.3s;
}

.habit-item:hover {
  box-shadow: var(--shadow-md);
}

.habit-item.completed {
  opacity: 0.8;
  border-color: var(--color-success);
}

.habit-item.skipped {
  opacity: 0.6;
  border-color: var(--color-secondary);
}

.habit-content {
  flex: 1;
}

.habit-identity {
  font-size: 13px;
  color: var(--color-gentle);
  margin-bottom: 4px;
  font-style: italic;
}

.habit-action {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.habit-trigger {
  font-size: 12px;
  color: var(--color-text-light);
}

.habit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.habit-badge {
  font-size: 12px;
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.habit-badge.skipped {
  color: var(--color-text-light);
  background: rgba(100, 116, 139, 0.1);
}

.seed-icon {
  font-size: 14px;
}

.btn.danger {
  color: var(--color-danger);
}

.create-habit-form {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.5);
}

.create-habit-form h3 {
  margin-bottom: 16px;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: rgba(255,255,255,0.8);
  color: var(--color-text);
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.gate {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s;
}

.gate:hover {
  box-shadow: var(--shadow-lg);
}

.gate-number {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
}

.gate h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.gate-buttons {
  display: flex;
  gap: 12px;
}

.gate-input {
  margin-top: 12px;
}

.priority-result {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.5);
}

.result-category {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-section {
  margin-bottom: 12px;
}

.result-section label {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.result-section p {
  font-size: 15px;
}

.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.8);
  color: var(--color-text-light);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gentle) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.quick-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.template-chip {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.8);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.template-chip:hover {
  background: rgba(255,255,255,1);
  border-color: var(--color-primary-light);
}

.simple-questions {
  padding: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
}

.simple-question {
  margin-bottom: 20px;
}

.simple-question label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
}

.simple-options {
  display: flex;
  gap: 12px;
}

.simple-options .btn-option {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
}

.result-section.gentle {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  border-left: 4px solid var(--color-success);
}

.result-section.gentle p {
  font-size: 14px;
  color: var(--color-text);
}

.result-action-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  border: 2px solid #f59e0b;
  text-align: center;
}

.result-action-label {
  font-size: 12px;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.result-action-text {
  font-size: 18px;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 8px;
  line-height: 1.4;
}

.result-action-time {
  font-size: 14px;
  color: #92400e;
  margin-bottom: 12px;
}

.result-action-item {
  font-size: 14px;
  color: #78350f;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
  line-height: 1.5;
}

.result-action-item:last-of-type {
  border-bottom: none;
}

.result-action-item strong {
  color: #92400e;
}

.btn-copy-action {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-copy-action.copied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.review-sections {
  margin-bottom: 24px;
}

.review-section {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.review-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-actions {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.review-actions h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.data-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.data-notice-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.data-notice-content {
  flex: 1;
}

.data-notice-content strong {
  display: block;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 4px;
}

.data-notice-content p {
  font-size: 12px;
  color: #3b82f6;
  line-height: 1.5;
  margin: 0;
}

.crisis-resources {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  overflow: hidden;
}

.crisis-resources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #991b1b;
}

.crisis-toggle {
  font-size: 12px;
  color: #dc2626;
}

.crisis-resources-content {
  padding: 0 16px 14px;
}

.crisis-resources-content p {
  font-size: 13px;
  color: #7f1d1d;
  margin-bottom: 10px;
}

.crisis-resources-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.crisis-resources-content li {
  font-size: 13px;
  color: #991b1b;
  padding: 6px 0;
}

.crisis-note {
  font-style: italic;
  font-size: 12px !important;
  color: #b91c1c !important;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gentle-glow {
  animation: gentleGlow 0.6s ease;
}

@keyframes gentleGlow {
  0% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
  100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
}

.seed-icon.completed {
  animation: seedPulse 0.5s ease;
}

@keyframes seedPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.habit-feedback-toast {
  transition: opacity 0.3s ease;
}

.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.gate-path {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.8);
}

.gate-connector {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #d1d5db, #e5e7eb, #d1d5db);
  flex-shrink: 0;
  border-radius: 1px;
}

.gate-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border: 2px solid transparent;
  position: relative;
}

.gate-node.pending {
  opacity: 0.4;
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.2);
}

.gate-node.active {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4), 0 4px 12px rgba(0,0,0,0.1);
  animation: gateGlow 2s ease-in-out infinite;
  transform: scale(1.08);
  z-index: 1;
}

.gate-node.completed {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.gate-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.gate-node.active .gate-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.gate-short-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gate-node.active .gate-short-label {
  color: #92400e;
  font-weight: 700;
}

.gate-node.completed .gate-short-label {
  color: #059669;
  font-weight: 600;
}

.gate-node.completed .gate-icon::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 10px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  border-radius: 20px;
  padding: 28px;
  margin-top: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.9);
  animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate-feedback {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 15px;
  color: #065f46;
  animation: fadeIn 0.4s ease;
  border-left: 4px solid #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.gate-header {
  text-align: center;
  margin-bottom: 24px;
}

.gate-icon-large {
  font-size: 48px;
  margin-bottom: 12px;
  animation: iconBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.gate-description {
  color: #6b7280;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.gate-question {
  font-size: 17px;
  font-weight: 500;
  margin: 20px 0;
  text-align: center;
  color: #374151;
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 10px;
}

.gate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.gate-options .btn-option {
  min-width: 110px;
  padding: 12px 20px;
  font-size: 14px;
}

.priority-path-summary {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
}

.path-summary-title {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.path-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-result {
  animation: fadeIn 0.5s ease;
}

.priority-result h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #1f2937;
  font-size: 20px;
}

.result-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.result-category {
  font-size: 18px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.result-time-block {
  font-size: 14px;
  color: #78350f;
  margin-top: 8px;
}

.next-stop {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf6ee 0%, #f3ede1 100%);
  border: 1px dashed rgba(120, 100, 60, 0.3);
}

.next-stop-label {
  font-size: 11px;
  color: #8b7d5a;
  margin-bottom: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}

.next-stop-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.next-stop-content strong {
  font-size: 14px;
  color: #4a4235;
  display: block;
  margin-bottom: 2px;
}

.next-stop-content p {
  margin: 0;
  color: #6d6356;
  font-size: 13px;
}

.next-stop-content .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.garden-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8f0 0%, #f8f0e8 100%);
  border: 1px solid rgba(200, 180, 150, 0.3);
}

.garden-summary-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eadfbe;
  color: #8b7d5a;
  font-size: 14px;
  flex-shrink: 0;
}

.garden-summary-text {
  font-size: 14px;
  color: #5a513f;
  line-height: 1.5;
}

.garden-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8a8478;
}

.garden-empty p {
  margin: 8px 0;
}

.garden-section {
  margin-bottom: 24px;
}

.garden-date {
  font-size: 15px;
  color: #6f654e;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(150, 130, 100, 0.2);
  font-weight: 500;
}

.garden-records {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.garden-record {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffdf9;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.garden-record:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.record-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.record-time {
  font-size: 12px;
  color: #8a8478;
}

.record-title {
  margin: 0;
  font-size: 14px;
  color: #3d3a33;
  line-height: 1.4;
}

.record-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6d6356;
  font-style: italic;
}

.record-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 8px;
}

.record-empathy { border-left: 3px solid #e8d4b8; }
.record-status { border-left: 3px solid #c8d8f5; }
.record-habit { border-left: 3px solid #c8f0d8; }
.record-priority { border-left: 3px solid #f5dcc8; }

@keyframes gateGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .gate-node.active {
    animation: none;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
    transform: none;
  }
  
  .gate-node.active .gate-icon {
    transform: none;
  }
  
  .record-item:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 16px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .slider-group {
    flex-wrap: wrap;
  }

  .slider-btn {
    min-width: calc(33.33% - 4px);
  }

  .home-header h1 {
    font-size: 24px;
  }

  .cloud {
    display: none;
  }

  .habits-gentle-stats {
    padding: 12px 16px;
  }

  .habits-gentle-stats div:last-child {
    gap: 12px;
    font-size: 12px;
  }

  .gate-path {
    justify-content: flex-start;
  }

  .gate-node {
    padding: 6px 8px;
  }

  .gate-node .gate-icon {
    font-size: 16px;
  }

  .gate-short-label {
    font-size: 10px;
  }
}

.quick-action-rating {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.quick-action-save-me {
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.save-me-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.save-me-actions .btn {
  min-height: 52px;
}

.rating-page {
  padding-bottom: 40px;
}

.rating-explanation {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.rating-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.rating-category {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.rating-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.rating-category-icon {
  font-size: 20px;
}

.rating-category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.rating-subitems {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-subitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}

.rating-subitem-name {
  font-size: 14px;
  color: var(--color-text-light);
}

.rating-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.rating-btn:active {
  transform: scale(0.95);
}

.rating-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 24px;
  text-align: center;
  transition: transform 0.2s;
}

.rating-score.pulse {
  animation: scorePulse 0.2s ease;
}

.rating-grid-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-grid {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.rating-grid-cell {
  flex: 1;
  aspect-ratio: 1;
  max-width: 36px;
  min-width: 28px;
  height: 28px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background: white;
  color: var(--color-text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-grid-cell:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.1);
}

.rating-grid-cell.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.rating-grid-cell.main-score {
  font-weight: 700;
  font-size: 14px;
  border-color: #9ca3af;
  color: #4b5563;
}

.rating-grid-cell.main-score:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.rating-grid-cell.main-score.selected {
  border-color: var(--color-primary);
}

.rating-grid-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-light);
  padding: 0 2px;
}

@keyframes scorePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.rating-save-row {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.rating-history {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
}

.rating-history h3 {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  font-size: 13px;
}

.history-item.today {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.history-date {
  color: var(--color-text-light);
  min-width: 40px;
}

.history-avg {
  font-weight: 700;
  color: var(--color-primary);
  min-width: 24px;
}

.history-scores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-score {
  font-size: 12px;
  color: var(--color-text-light);
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 6px;
}

.three-min-page {
  padding-bottom: 40px;
}

.task-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(253,244,208,0.4) 100%);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin: 24px 0;
  border: 1px solid rgba(245,158,11,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.task-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.task-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.task-time {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.home-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.student-templates {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
}

.student-templates h3 {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.templates-grid .template-chip {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(255,255,255,0.9);
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.templates-grid .template-chip:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%);
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

.procrastination-entrance {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px dashed rgba(99, 102, 241, 0.25);
}

.procrastination-entrance h3 {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.entrance-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entrance-btn {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.entrance-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255,255,255,1);
  transform: translateX(4px);
}

.procrastination-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(238, 242, 255, 0.6) 100%);
  border-radius: 20px;
  padding: 36px 28px;
  margin-top: 24px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 20px rgba(99,102,241,0.1);
}

.procrastination-icon {
  font-size: 56px;
  margin-bottom: 18px;
}

.procrastination-message {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 28px;
}

.quick-response-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
