:root {
  --paper: #fffdf7;
  --paper-warm: #fbf6ea;
  --paper-light: #fffefc;
  --ink: #3f3a4a;
  --ink-soft: #51495f;
  --muted: #6f6a78;
  --muted-light: #8c8793;
  --line: #e8e5ed;
  --line-light: rgba(81, 73, 95, 0.10);
  --sun: #f3c84b;
  --sun-light: rgba(243, 200, 75, 0.15);
  --leaf: #5e9f68;
  --leaf-light: rgba(94, 159, 104, 0.15);
  --coral: #e87d6d;
  --coral-light: rgba(232, 125, 109, 0.12);
  --sky: #8ec5e0;
  --sky-light: rgba(142, 197, 224, 0.15);
  --violet: #9b7bb8;
  --violet-light: rgba(155, 123, 184, 0.12);
  --blush: #f4c2c2;
  --blush-light: rgba(244, 194, 194, 0.12);
  --peach: #ffd1b3;
  --peach-light: rgba(255, 209, 179, 0.12);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 4px 20px rgba(81, 73, 95, 0.06);
  --shadow-md: 0 8px 32px rgba(81, 73, 95, 0.08);
  --shadow-lg: 0 16px 48px rgba(81, 73, 95, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(243, 200, 75, 0.12), transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #fbf6ea 100%);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  right: -8vw;
  bottom: -12vh;
  width: 66vw;
  aspect-ratio: 1 / 1;
  background-image: url("./earth-flower-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

button,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.steps {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.screen-0 ~ .steps {
  display: none;
}

.app-shell.show-steps .steps {
  display: none;
  opacity: 1;
  pointer-events: auto;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 229, 224, 0.6);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.steps li span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
}

.steps li.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(245, 188, 53, 0.4);
  color: var(--ink);
}

.steps li.active span {
  background: var(--sun);
  color: #2f2100;
}

.steps li.done {
  opacity: 1;
}

.steps li.done span {
  background: var(--leaf-light);
  color: var(--leaf);
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.hidden {
  display: none !important;
}

.screen-content {
  width: 100%;
  max-width: 680px;
}

.screen-3 .screen-content {
  max-width: 960px;
}

.screen-0 .screen-content {
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  z-index: 1;
}

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

.egg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.egg-particle {
  position: absolute;
  font-size: clamp(20px, 4vw, 32px);
  left: var(--x);
  top: var(--y);
  animation: eggFloat 4s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0.6;
  filter: blur(0.5px);
}

@media (prefers-reduced-motion: reduce) {
  .egg-particle {
    animation: none;
    opacity: 0.3;
  }
}

@keyframes eggFloat {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-12px) scale(1.1) rotate(3deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-8px) scale(0.95) rotate(-2deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-16px) scale(1.05) rotate(2deg);
    opacity: 0.7;
  }
}

.surprise-title {
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
  opacity: 0.9;
}

.surprise-subtitle {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 36px;
  line-height: 1.6;
  opacity: 0.85;
}

.loading-progress {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 8px;
  margin: 0 auto 32px;
  border-radius: 999px;
  background: rgba(139, 133, 149, 0.15);
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--sky), var(--leaf));
  transition: width 3s ease-out;
}

.progress-text {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s ease;
}

.surprise-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #51495f, #3f3a4a);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(81, 73, 95, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.surprise-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.surprise-button:hover::before {
  left: 100%;
}

.surprise-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(81, 73, 95, 0.16);
}

.surprise-button:active {
  transform: translateY(0);
}

.surprise-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.surprise-loop {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 229, 224, 0.6);
}

.surprise-loop-label,
.surprise-loop-unit {
  font-size: 14px;
  color: var(--muted);
}

.surprise-loop strong {
  font-size: 28px;
  font-weight: 900;
  color: var(--sun);
}

.screen-header {
  margin-bottom: 36px;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.screen-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sun);
}

.screen-header h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.state-form,
.feedback-form {
  display: grid;
  gap: 24px;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #6f6a78;
  font-size: 14px;
  font-weight: 700;
}

select,
textarea {
  width: 100%;
  border: 1px solid rgba(81, 73, 95, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #3f3a4a;
  outline: none;
  transition: all 0.3s ease;
}

select {
  min-height: 52px;
  padding: 0 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7874' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

select:hover {
  border-color: var(--sun);
}

select:focus {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun-light);
}

textarea {
  resize: vertical;
  min-height: 120px;
  padding: 16px;
  line-height: 1.6;
  font-size: 15px;
}

textarea:focus {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun-light);
}

.wide-label {
  grid-column: 1 / -1;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-button {
  background: linear-gradient(135deg, #51495f, #3f3a4a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(81, 73, 95, 0.12);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(81, 73, 95, 0.16);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  color: #51495f;
  border: 1px solid rgba(81, 73, 95, 0.14);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(81, 73, 95, 0.22);
}

.ghost-button {
  background: transparent;
  color: #8c8793;
  border: 1px solid rgba(81, 73, 95, 0.14);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(81, 73, 95, 0.22);
  color: #51495f;
}

.reset-link {
  margin-top: 16px;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.ai-card,
.execute-card,
.summary-card,
.empty-state {
  margin-top: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(81, 73, 95, 0.07);
  border: 1px solid rgba(81, 73, 95, 0.12);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

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

.ai-card,
.summary-card,
.execute-card {
  padding: 28px;
}

.ai-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.ai-card-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.understanding-actions,
.execute-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pill {
  background: var(--violet-light);
  color: var(--violet);
}

.task-box {
  margin-top: 24px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(81, 73, 95, 0.12);
  box-shadow: 0 6px 24px rgba(81, 73, 95, 0.06);
  animation: expandIn 0.4s ease-out;
  position: relative;
}

.task-box::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.5;
}

@keyframes expandIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.task-box .eyebrow {
  color: var(--violet);
}

.task-box h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.task-box p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.summary-card p {
  white-space: pre-line;
  line-height: 1.8;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.task-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--sun-light);
  color: #9b6a00;
  font-size: 28px;
}

.execute-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.progress-track {
  height: 8px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--sky));
  transition: width 0.4s ease;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--paper-warm);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.check-list label:hover {
  background: var(--sun-light);
}

.check-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--leaf);
  border-radius: 6px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.panel-main {
  display: grid;
  gap: 20px;
}

.panel-side {
  display: grid;
  gap: 20px;
}

.history-panel {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(81, 73, 95, 0.05);
  border: 1px solid rgba(81, 73, 95, 0.10);
  max-height: 400px;
  overflow-y: auto;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
}

.history-head span {
  color: var(--muted);
  font-size: 13px;
}

#historyList {
  list-style: none;
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
}

#historyList li {
  padding: 18px;
  border-radius: 16px;
  background: var(--paper-warm);
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.35s ease;
  border-left: 3px solid var(--line);
}

#historyList li:hover {
  transform: translateX(4px);
  border-left-color: var(--violet);
}

#historyList strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.history-time {
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 8px;
}

.history-task {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

.history-result {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  font-style: italic;
}

.history-state-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.timeline-section {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(81, 73, 95, 0.05);
  border: 1px solid rgba(81, 73, 95, 0.10);
}

.timeline-toggle {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--violet-light);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.35s ease;
}

.timeline-toggle:hover {
  background: rgba(179, 157, 219, 0.2);
  border-color: var(--violet);
}

.timeline-icon {
  font-size: 18px;
}

.timeline-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 44, 42, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.timeline-modal-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(81, 73, 95, 0.10);
  border: 1px solid rgba(81, 73, 95, 0.12);
  animation: slideUp 0.3s ease;
}

.timeline-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline-modal-header h2 {
  font-size: 26px;
  color: var(--ink);
  margin: 0;
}

.timeline-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--paper-warm);
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.timeline-close:hover {
  background: var(--line);
  color: var(--ink);
}

.timeline-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-button {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: var(--sun-light);
  border-color: var(--sun);
}

.filter-button.active {
  background: var(--sun-light);
  border-color: var(--sun);
  color: #9b6a00;
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--paper-warm);
  border-radius: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.stat-item strong {
  font-size: 28px;
  color: var(--ink);
}

.timeline-list {
  margin-bottom: 28px;
}

.timeline-empty {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  padding: 48px 0;
}

.timeline-date-section {
  margin-bottom: 36px;
}

.timeline-date-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sun-light);
}

.timeline-entry {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.timeline-entry:last-child {
  border-bottom: none;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-dot-completed {
  background: var(--leaf);
}

.timeline-dot-partial {
  background: var(--sun);
}

.timeline-dot-skipped {
  background: var(--muted);
}

.timeline-content {
  flex-grow: 1;
  min-width: 0;
}

.timeline-time {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-task {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.timeline-result {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.timeline-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-tag-completed {
  background: var(--leaf-light);
  color: var(--leaf);
}

.timeline-tag-partial {
  background: var(--sun-light);
  color: #9b6a00;
}

.timeline-tag-skipped {
  background: rgba(122, 120, 116, 0.12);
  color: var(--muted);
}

.timeline-input {
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
  background: var(--paper-warm);
  border-radius: 8px;
}

.timeline-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--sky);
  color: var(--ink);
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    top: 16px;
    right: 16px;
  }

  .steps li {
    padding: 6px 10px;
    font-size: 11px;
  }

  .steps li span {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .app-shell {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .screen {
    position: relative;
    min-height: 100dvh;
    padding: 20px 16px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    align-items: flex-start;
  }

  .screen-0 {
    align-items: center;
  }

  .screen-content {
    max-width: 480px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .surprise-title {
    font-size: clamp(24px, 9vw, 40px);
    margin-bottom: 16px;
  }

  .loading-progress {
    max-width: 240px;
    margin-bottom: 24px;
  }

  .surprise-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .surprise-button {
    min-height: 48px;
    padding: 0 28px;
    font-size: 15px;
  }

  .egg-particle {
    font-size: clamp(16px, 3.5vw, 24px);
  }

  .screen-header h2 {
    font-size: clamp(22px, 6vw, 32px);
    margin-top: 4px;
  }

  .screen-header {
    margin-bottom: 20px;
  }

  .screen-header .eyebrow,
  .screen-header .screen-subtitle {
    display: none;
  }

  .state-form,
  .feedback-form {
    gap: 16px;
  }

  label {
    gap: 6px;
    font-size: 13px;
  }

  select {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  textarea {
    min-height: 72px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }

  .reset-link {
    display: none;
  }

  .understanding-actions,
  .execute-actions,
  .action-row {
    flex-direction: column;
  }

  .ai-card,
  .summary-card,
  .execute-card {
    padding: 20px;
  }

  .task-box {
    padding: 20px;
  }

  .check-list label {
    padding: 12px 14px;
    font-size: 14px;
  }

  .timeline-modal {
    padding: 12px;
  }

  .timeline-modal-content {
    padding: 20px;
    max-height: 85vh;
  }

  .timeline-modal-header h2 {
    font-size: 22px;
  }

  .timeline-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .timeline-actions {
    flex-direction: column;
  }

  .timeline-actions button {
    width: 100%;
  }

  .timeline-filters {
    gap: 8px;
  }

  .filter-button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .history-panel {
    max-height: 300px;
  }

  body::before {
    width: 125vw;
    right: -38vw;
    bottom: -16vh;
    opacity: 0.14;
  }
}