:root {
  --bg: #f6f7f8;
  --panel: #ffffff;
  --text: #151515;
  --muted: #555f6d;
  --line: #d9dde3;
  --blue: #1769e0;
  --blue-dark: #0f4fae;
  --green-bg: #e9f7ef;
  --green-text: #145a2a;
  --warn-bg: #fff7e6;
  --warn-text: #8a5200;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 8px;
}

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

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

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

p {
  line-height: 1.6;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 16px;
}

.hidden {
  display: none;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #9aa3ad;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 6px;
  padding: 13px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

button:active {
  background: var(--blue-dark);
}

button:disabled {
  opacity: 0.68;
}

.hint {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.ok {
  background: var(--green-bg);
  color: var(--green-text);
}

.estimate-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  background: #fbfcfe;
}

.estimate-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.estimate-box strong {
  font-size: 17px;
}

.estimate-box p {
  margin: 8px 0 0;
  font-size: 14px;
}

.steps {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

pre {
  white-space: pre-wrap;
  overflow: auto;
  border-radius: 6px;
  padding: 12px;
  background: #111;
  color: #f5f5f5;
}
