:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e9f4f6;
  color: #102a33;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(155deg, #dff4f3 0%, #f8f4ed 55%, #e8eff8 100%);
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px 42px;
}

header { padding: 4px 4px 22px; }

.eyebrow {
  margin: 0 0 8px;
  color: #155e75;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 9vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.intro, .show-card p { color: #4a5e65; line-height: 1.45; }

.capture-card, .show-card {
  border: 1px solid rgba(16, 42, 51, 0.13);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(37, 74, 82, 0.12);
}

.capture-card {
  padding: 20px;
  background: #fffefb;
}

label, h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 750;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 2px solid #9bd3dc;
  border-radius: 13px;
  padding: 14px;
  background: #f8ffff;
  color: #102a33;
  font: inherit;
  font-size: 1.08rem;
  line-height: 1.4;
}

textarea:focus {
  outline: 3px solid rgba(21, 94, 117, 0.22);
  border-color: #155e75;
}

.preview {
  min-height: 72px;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3cd;
}

.preview span {
  display: block;
  margin-bottom: 5px;
  color: #76560c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.preview code { font-size: 0.96rem; overflow-wrap: anywhere; }

.button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
}

.button:focus-visible { outline: 4px solid #102a33; outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: 0.48; }
.button-add { background: #18794e; }
.button-add:not(:disabled):active { background: #11633e; }

.show-card {
  margin-top: 18px;
  padding: 20px;
  background: #f3f8ff;
}

.show-card h2 { margin-bottom: 5px; }
.show-card p { margin-bottom: 16px; }
.button-show { background: #1769aa; }
.button-show:active { background: #125488; }

.status {
  min-height: 44px;
  margin: 18px 4px 0;
  color: #36515a;
  line-height: 1.4;
}

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