:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #1d2327;
  --muted: #697177;
  --border: #d9ded8;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
  --success: #0f7a3b;
  --shadow: 0 10px 30px rgba(29, 35, 39, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.view {
  display: grid;
  gap: 16px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 10vw, 40px);
  line-height: 1;
}

h2 {
  font-size: 16px;
}

.panel,
.recent {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.icon-button,
.small-button {
  min-height: 36px;
  padding: 0 12px;
  background: #e7f3f1;
  color: var(--accent-strong);
  font-size: 13px;
}

.recent {
  padding: 14px;
}

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

.recent-list {
  display: grid;
  gap: 8px;
}

.recent-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.recent-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.recent-item strong {
  color: var(--text);
}

.message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

@media (min-width: 680px) {
  .app-shell {
    padding-top: 32px;
  }

  .panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel button,
  .panel .message {
    grid-column: 1 / -1;
  }
}
