:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #203229;
  background: #f9f6eb;
  --paper: #fffdf5;
  --ink: #203229;
  --muted: #4f6053;
  --line: #cbd1b9;
  --accent: #285541;
  --on-accent: #fffdf5;
  --wash: #eef1dd;
  --ribbon: #a34227;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
button:hover { filter: brightness(.9); }
button:disabled { opacity: .6; cursor: wait; }
button.secondary, button.quiet { background: var(--paper); color: var(--ink); }
button.secondary { border-color: var(--line); }
button.quiet { border-color: transparent; background: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.top { border-bottom: 1px solid var(--line); }
.top-inner {
  width: min(1000px, calc(100% - 40px));
  min-height: 62px;
  margin: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 750; text-decoration: none; }
.header-actions, .actions, .section-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav { color: var(--muted); font-size: .875rem; text-underline-offset: 3px; }
main {
  width: min(1000px, calc(100% - 40px));
  margin: 40px auto 60px;
  color: var(--ink);
}
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: 1.45rem; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; }
.muted, .section-head p, .empty { color: var(--muted); }
.section-head p, .list-intro > p, .card > p { margin-top: 6px; }
.section-head { justify-content: space-between; margin: 28px 0 12px; }
.dashboard-heading { margin: 0 0 26px; }
.list-index { list-style: none; margin: 0; padding: 0; }
.list-index li { border-top: 1px solid var(--line); }
.list-index li:last-child, .empty { border-bottom: 1px solid var(--line); }
.list-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; text-decoration: none; font-weight: 650; }
.list-index a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.list-index-meta { flex: none; color: var(--muted); font-weight: 400; font-size: .8rem; }
.empty { padding: 22px 0; border-top: 1px solid var(--line); }
.empty button { margin-top: 12px; }
.empty .symbol { display: none; }

.list-top {
  display: grid;
  border: 1px solid var(--line);
  background: var(--wash);
  overflow: hidden;
  border-radius: var(--frame-radius, 6px);
}
.list-intro { align-self: center; padding: clamp(21px, 4vw, 44px); min-width: 0; }
.list-intro h1 { margin: 9px 0; }
.eyebrow { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.theme-art { display: block; width: 100%; height: 100%; min-height: 230px; max-height: 390px; object-fit: cover; }
[data-theme="angine"], [data-theme="frog"] { border-radius: var(--frame-radius); background: var(--wash); padding: 14px; }
[data-theme="angine"] {
  --frame-radius: 0;
  --ink: #fcfaf1;
  --paper: #161616;
  --muted: #d0cec2;
  --line: #494943;
  --accent: #f6f46f;
  --on-accent: #111;
  --wash: #0c0c0c;
}
[data-theme="angine"] h1 { font-weight: 950; text-transform: uppercase; letter-spacing: -.075em; }
[data-theme="angine"] .eyebrow { color: var(--accent); font-family: ui-monospace, monospace; }
[data-theme="angine"] .list-top { border-top: 6px solid var(--accent); }
[data-theme="angine"] button, [data-theme="angine"] .card { border-radius: 0; }
[data-theme="frog"] {
  --frame-radius: 16px;
  --ink: #203625;
  --paper: #fffdf3;
  --muted: #465d47;
  --line: #c7cfac;
  --accent: #30583d;
  --on-accent: #fff;
  --wash: #edf0dc;
}
[data-theme="frog"] .list-top { background: #f8f1d8; }
[data-theme="frog"] h1, [data-theme="frog"] h2, [data-theme="frog"] h3 { font-family: Georgia, serif; }
[data-theme="frog"] .eyebrow { color: #6b4d11; }
[data-theme="frog"] .theme-art { border-radius: 0 15px 15px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 17px; min-width: 0; }
.card .line { margin-bottom: 12px; }
.invite-card { margin-top: 14px; }
.invite-card form { max-width: 540px; }
.badge { display: inline-block; font-size: .74rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.badge.claimed { background: var(--wash); color: var(--muted); }
.price { font-weight: 700; }
.product { color: var(--ink); font-weight: 650; font-size: .875rem; text-underline-offset: 3px; }
.actions { margin-top: 14px; }
dialog {
  width: min(460px, calc(100% - 30px));
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: #0006; }
label { display: block; font-weight: 650; font-size: .875rem; margin: 12px 0; }
input, select, textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 62px; }
.error { color: #a12716; }
[data-theme="angine"] .error { color: #ffb4a7; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #171717; color: #fff; padding: 10px 15px; border-radius: 5px; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 680px) {
  [data-theme="angine"] .list-top, [data-theme="frog"] .list-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (max-width: 679px) {
  .theme-art { min-height: 0; height: clamp(150px, 47vw, 265px); }
  [data-theme="frog"] .theme-art { border-radius: 0 0 15px 15px; }
}
@media (max-width: 440px) {
  main, .top-inner { width: calc(100% - 28px); }
  main { margin-top: 24px; }
  .header-actions .nav { display: none; }
  .list-index-meta { flex: 0 0 auto; max-width: 42%; text-align: right; overflow-wrap: anywhere; }
}
.invite-list { list-style: none; margin: 16px 0 0; padding: 0; }
.invite-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.top { background: #eef1dd; }
.brand { display: inline-flex; gap: 9px; align-items: center; }
.brand-mark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 17px;
  color: #fffdf5;
  border: 1px solid #285541;
  border-radius: 2px;
  background: linear-gradient(90deg, #4c7759 39%, #fff6d8 39% 60%, #4c7759 60%);
}
.brand-mark::before { content: ''; position: absolute; inset: 4px 0 auto; height: 2px; background: #fff6d8; }
.brand-mark::after { content: ''; position: absolute; inset: -4px 5px auto; height: 5px; border: 2px solid #285541; border-radius: 8px 8px 1px 1px; }
.brand-banner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #edf0d9;
}
.brand-banner-copy { padding: clamp(22px, 5vw, 55px); }
.brand-banner h1 { font: 700 clamp(2.65rem, 6.4vw, 4.75rem)/.96 Georgia, serif; letter-spacing: -.065em; }
.brand-banner h1 span { display: block; color: var(--ribbon); }
.brand-banner p { margin-top: 14px; max-width: 26ch; }
.brand-banner img { display: block; width: 100%; height: 100%; max-height: 355px; object-fit: cover; }
.brand-sign-in { display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent); font-size: .875rem; font-weight: 650; padding: 9px 14px; margin-top: 16px; border-radius: 5px; text-decoration: none; }
.brand-sign-in:hover { filter: brightness(.9); }
.dashboard { max-width: none; margin-top: 29px; }
.dashboard h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
[data-view="list"][data-theme="plain"] {
  --paper: #fff;
  --ink: #171717;
  --muted: #585858;
  --line: #dedede;
  --accent: #171717;
  --on-accent: #fff;
  --wash: #f7f7f7;
}
@media (max-width: 640px) {
  .brand-banner { grid-template-columns: 1fr; min-height: 0; }
  .brand-banner img { height: clamp(160px, 56vw, 280px); }
  .brand-banner h1 span { display: inline; }
}
.guest-invite-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.guest-invite-form label { flex: 1 1 180px; margin: 0; }
