*{box-sizing:border-box}body {
  margin: 0;
  background: #07050a;
  color: #fff8f0;
  font-family: Inter, system-ui, sans-serif;
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #0c0811;
  border-bottom: 1px solid rgba(255, 210, 161, 0.16);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
}

.brand span {
  color: #ffd2a1;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #d4bfae;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  padding: 70px 0 34px;
}

.eyebrow {
  color: #ffd2a1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.intro,
.hint,
.result-summary {
  color: #d4bfae;
  line-height: 1.6;
}

.notice {
  display: none !important;
}

.coffee-panel {
  margin: 28px auto 70px;
  padding: 26px;
  border: 1px solid rgba(255, 210, 161, 0.22);
  border-radius: 28px;
  background: #15101b;
}

.coffee-form,
.field {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.field label {
  font-weight: 850;
}

.field textarea,
.field select,
.field input[type="file"] {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 210, 161, 0.25);
  border-radius: 16px;
  background: #09060d;
  color: #fff8f0;
  padding: 14px;
  font: inherit;
}

#sourceText { min-height: 86px; resize: vertical; }
#questionText {
  min-height: 120px;
  resize: vertical;
}

.preview-wrap {
  border: 1px solid rgba(255, 210, 161, 0.2);
  border-radius: 18px;
  overflow: hidden;
  max-width: 420px;
}

.preview-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
}

.decoder-question-row {
  align-items: start;
}

.price-card,
.result-card {
  border: 1px solid rgba(255, 210, 161, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: #0f0a14;
}

.price-card span {
  color: #9b8678;
}

.price-card strong {
  display: block;
  font-size: 1.25rem;
}

.button {
  border: 0;
  border-radius: 16px;
  padding: 15px 20px;
  background: #c9853d;
  color: #fff;
  font-weight: 950;
  font-size: 1rem;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
}

.loading {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(255, 210, 161, 0.22);
  border-radius: 16px;
  color: #ffd2a1;
}

.loading.visible {
  display: block;
}

.result {
  display: none;
  margin-top: 24px;
}

.result.visible {
  display: grid;
  gap: 16px;
}

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

.result-card h3,
.reading-output h3 {
  margin: 0 0 10px;
}

.result-card p,
.reading-output p {
  margin: 0 0 14px;
  color: #d4bfae;
  line-height: 1.62;
}

.upload-hint {
  margin: -4px 0 0;
  color: #9b8678;
  font-size: .92rem;
}

.file-list {
  color: #d4bfae;
  font-size: .92rem;
}

.error-box {
  border: 1px solid rgba(255, 120, 120, .35);
  border-radius: 16px;
  padding: 16px;
  color: #ffd4d4;
  background: rgba(120, 30, 30, .18);
}

.footer-inner {
  border-top: 1px solid rgba(255, 210, 161, 0.12);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9b8678;
}

@media (max-width: 760px) {
  .field-row,
  .result-grid {
    grid-template-columns: 1fr;
  }
}
