* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #ffffff;
  --text: #000000;
  --text-2: #666666;
  --border: #e5e5e5;
  --blue: #0066ff;
  --green: #00c853;
  --yellow: #ffab00;
  --red: #ff1744;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}

.menu-btn {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}

.step-indicator {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

/* Question */
.question-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.question {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

/* Answer options */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.option:hover {
  border-color: #ccc;
}

.option.selected {
  border-color: var(--blue);
  background: #f0f7ff;
}

.option-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
}

/* Progress */
.progress-bar {
  height: 4px;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  transition: width 0.3s;
}

/* Bottom */
.bottom {
  padding: 20px 24px 32px;
}

.next-btn {
  width: 100%;
  padding: 18px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.next-btn:not(:disabled):active {
  transform: scale(0.98);
}

/* Summary screen */
.summary {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.summary-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.summary-emoji {
  font-size: 24px;
}

.summary-content {
  flex: 1;
}

.summary-q {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.summary-a {
  font-size: 16px;
  font-weight: 600;
}

.notes-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  margin-top: 24px;
  resize: none;
}

.notes-input:focus {
  outline: none;
  border-color: var(--blue);
}

/* History */
.history-title {
  font-size: 24px;
  font-weight: 700;
  padding: 0 24px 16px;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.entry {
  background: #fafafa;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.entry-time {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entry-del {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-2);
  cursor: pointer;
}

.entry-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
}

.entry-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
  font-style: italic;
}

.empty {
  text-align: center;
  color: var(--text-2);
  padding: 60px 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.2s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
