html, body {
  margin: 0;
  min-height: 100%;
  background: #f7f3ec;
  color: #251d16;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.page {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 28px;
  background: linear-gradient(180deg, rgba(185, 47, 29, .08), rgba(247, 243, 236, 0) 34%), #f7f3ec;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #b92f1d;
  color: #fff;
  font-weight: 800;
}

.brand-name {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 3px;
  color: #6f6257;
  font-size: 12px;
}

.count {
  flex: 0 0 auto;
  border: 1px solid #e6d8c7;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 250, 242, .78);
  color: #6f6257;
  font-size: 12px;
  white-space: nowrap;
}

.panel {
  border: 1px solid #e6d8c7;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 18px 44px rgba(74, 45, 20, .14);
  overflow: hidden;
}

.hero {
  padding: 24px 20px 18px;
  border-bottom: 1px solid #e6d8c7;
  background: linear-gradient(135deg, #fff8ee, #fffdf8);
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
}

p {
  margin: 10px 0 0;
  color: #6f6257;
  font-size: 14px;
  line-height: 1.65;
}

.content {
  padding: 18px;
}

.copy-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid #e6d8c7;
  border-radius: 8px;
  background: #fff;
}

.empty-state,
.copy-text {
  font-size: 16px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.empty-state {
  color: #6f6257;
}

.status {
  min-height: 24px;
  margin-top: 12px;
  color: #6f6257;
  font-size: 13px;
  line-height: 1.5;
}

.status.is-success {
  color: #1d6f63;
}

.status.is-warning {
  color: #925f12;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
}

.button-primary {
  background: #b92f1d;
  color: #fff;
}

.button-secondary {
  border: 1px solid #e6d8c7;
  background: #fff;
  color: #251d16;
}

.button:disabled {
  opacity: .48;
}

.helper,
footer {
  color: #6f6257;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.helper {
  margin-top: 14px;
}

footer {
  margin-top: 16px;
}

@media (min-width: 420px) {
  .page {
    padding-top: 28px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }
}