[hidden] { display: none !important; }
.stack-form, .entry-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.stack-form label, .entry-form label {
  display: grid;
  gap: 0.35rem;
}
.stack-form input, .stack-form textarea, .stack-form select,
.entry-form input, .entry-form textarea, .entry-form select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  width: 100%;
}
.stack-form textarea { min-height: 5rem; resize: vertical; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.check input { width: auto; margin-top: 0.3rem; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.upsell { background: var(--accent-soft); padding: 0.9rem 1rem; border-radius: 12px; }
.error-text { color: #8a1f11; }
.page.wide { width: min(56rem, calc(100% - 2rem)); }
.rules-body h1 { font-size: 1.6rem; }
.rules-body h2 { font-size: 1.25rem; margin-top: 1.4rem; }
.rules-body h3 { font-size: 1.1rem; }
.rules-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rules-body th, .rules-body td { border-bottom: 1px solid var(--line); padding: 0.4rem; text-align: left; }
.rules-body blockquote { border-left: 3px solid var(--accent); padding-left: 0.8rem; color: var(--muted); }
.hash { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.nav-links { display: flex; gap: 1rem; align-items: center; }

/* App chrome (login, dashboard, entry, giveaway rules). Landing uses style.css only. */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-nav, .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
}
.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.site-footer a { color: var(--accent); }
.status-msg[aria-live] { min-height: 1.4em; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: inherit;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
}
.empty-state { color: var(--muted); padding: 1rem 0; }

.host-logo {
  display: block;
  max-height: 72px;
  max-width: 220px;
  width: auto;
  height: auto;
  margin: 0 0 1rem;
  object-fit: contain;
}


.btn, a.btn {
  display: inline-block;
  background: var(--accent, #0b5e4e);
  color: #fff !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.btn:hover, a.btn:hover { filter: brightness(1.05); }
a.btn-secondary, .btn-secondary {
  display: inline-block;
  text-decoration: none;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
table.data {
  min-width: 32rem;
}
@media (max-width: 40rem) {
  table.data { font-size: 0.88rem; min-width: 28rem; }
  table.data th, table.data td { padding: 0.45rem 0.35rem; }
}
.share-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.qr-preview {
  width: min(20rem, 80vw);
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  padding: 0.75rem;
  margin: 0 auto;
}
.qr-preview svg, .qr-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.stack-form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}
.stack-form legend { font-weight: 650; padding: 0 0.3rem; }
