:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1a1d1f;
  --muted: #5f666d;
  --accent: #c24b33;
  --border: #e1ddd6;
  --shadow: 0 10px 30px rgba(34, 34, 34, 0.08);
}

* {
  box-sizing: border-box;
  font-family: "Georgia", "Times New Roman", serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #f7ede2 0%, #f6f4ef 40%, #efe6d7 100%);
  color: var(--ink);
}

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 32px;
}

h2 {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 420px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fffaf3;
}

button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.tab.active {
  color: var(--ink);
  border-color: var(--accent);
}

.tab-panel {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffaf3;
}

.list-item h4 {
  margin: 0 0 4px;
}

.steps {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hidden {
  display: none;
}

.error {
  color: #b42318;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 720px) {
  #app {
    padding: 20px 16px 40px;
  }
  .tabs {
    gap: 6px;
  }
}
