:root {
  color-scheme: dark;
  --bg: #171514;
  --panel: #252220;
  --text: #f4f0e8;
  --muted: #bcb5ac;
  --line: #4a443c;
  --accent: #dacbb4;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
}
header > span {
  font-size: 11px;
  letter-spacing: 2px;
  flex: 1;
}
.wordmark {
  font-size: 23px;
  font-weight: 300;
  letter-spacing: 2px;
  border: 1px solid var(--muted);
  padding: 2px 12px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.wordmark span {
  font-size: 11px;
  letter-spacing: 1px;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 40px 24px 100px;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -1.5px;
  margin: 8px 0 16px;
  line-height: 1.2;
}
h2 {
  font-weight: 500;
  letter-spacing: -0.5px;
}
p {
  color: var(--muted);
  max-width: 760px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}
button,
select,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
}
button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
label {
  display: block;
  font-size: 13px;
  margin: 16px 0;
  color: var(--muted);
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
input:focus,
textarea:focus,
button:focus-visible,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
.check {
  display: inline-flex;
  gap: 8px;
  margin: 0 16px 0 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
legend {
  font-size: 13px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card h2 {
  margin: 8px 0;
}
.tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
nav {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
nav .selected {
  background: var(--panel);
  border-color: var(--accent);
}
#login {
  max-width: 520px;
  margin: 35px auto;
}
#local-login {
  margin-top: 28px;
  font-size: 12px;
}
#notice:not(:empty) {
  padding: 16px;
  border: 1px solid var(--accent);
  margin-bottom: 24px;
  border-radius: 8px;
}
#offer-error,
#spotlight-error {
  color: #f7aba1;
}
.partner-cards {
  display: grid;
  gap: 24px;
  margin: 28px 0;
}
.partner-card {
  overflow-wrap: anywhere;
}
.partner-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.partner-heading .eyebrow {
  margin: 0 0 4px;
}
.partner-heading h2 {
  font-size: 27px;
  margin: 0;
}
.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.partner-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 28px;
  padding-top: 22px;
}
.evergreen-summary > .eyebrow {
  margin-top: 0;
}
.evergreen-summary h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  margin: 12px 0;
}
.spotlight-summary {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.partner-benefits.single-benefit {
  grid-template-columns: minmax(0, 1fr);
}
.single-benefit .spotlight-summary {
  border: 0;
  padding: 0;
}
.spotlight-summary > .section-heading {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.spotlight-summary h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 8px 0;
}
.spotlight-add {
  color: var(--accent);
  font-size: 12px;
}
.spotlight-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.spotlight-row:first-of-type {
  margin-top: 16px;
}
.spotlight-row:last-child {
  padding-bottom: 0;
}
.spotlight-row h4 {
  font-size: 17px;
  font-weight: 500;
  margin: 6px 0;
  line-height: 1.4;
}
.spotlight-row p {
  margin: 8px 0;
}
.spotlight-row button {
  margin-top: 10px;
  font-size: 12px;
}
.offer-description {
  white-space: pre-line;
  font-size: 14px;
}
.empty-spotlight {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  font-size: 13px;
}
.editor-section-title {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 500;
}
.partner-context {
  background: var(--bg);
  border-left: 2px solid var(--accent);
  color: var(--text);
  padding: 12px 16px;
  margin-top: 24px;
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(760px, 94vw);
  max-height: 90vh;
  padding: 28px;
}
dialog::backdrop {
  background: #000a;
}
dialog h2 {
  margin: 0;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.row p {
  margin: 4px 0;
  font-size: 13px;
}
.row button {
  flex-shrink: 0;
}
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin: 25px 0;
}
summary {
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
code {
  font-size: 12px;
}
.verify {
  max-width: 520px;
  text-align: center;
  padding-top: 70px;
}
.verify .wordmark {
  display: inline-block;
  font-size: 20px;
}
.verify-icon {
  font-size: 56px;
  color: var(--accent);
  margin-top: 60px;
}
.sample {
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 11px;
  letter-spacing: 1px;
}
[hidden] {
  display: none !important;
}
html[data-preview="true"] #login,
html[data-preview="true"] [data-full-admin] {
  display: none !important;
}
#reserve-panel {
  margin: 28px 0;
}
#lookup-result:not(:empty) {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.source-warning {
  color: #f7c5a1;
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    padding: 20px;
  }
  header > span {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
  }
  main {
    padding: 28px 20px;
  }
  .wordmark {
    font-size: 20px;
  }
  .partner-benefits {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .spotlight-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .partner-card {
    padding: 20px;
  }
  dialog {
    padding: 22px;
  }
  dialog .section-heading {
    flex-direction: row;
  }
}

#invitations-panel,
#notice-form {
  margin: 18px 0;
}
#invitations-preview:not(:empty),
#notice-audience:not(:empty) {
  white-space: pre-wrap;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid var(--line, #d9d4ca);
  font-size: 0.92rem;
}
#notice-form button + button {
  margin-left: 10px;
}

.photo-uploader { margin: 1.25rem 0; border: 1px solid #70695e; border-radius: 12px; padding: 1rem; min-width: 0; }
.photo-uploader legend { padding: 0 .4rem; }
.photo-preview { display: block; width: 100%; max-width: 320px; height: 200px; object-fit: contain; border-radius: 8px; background: #eee9de; margin: .75rem 0; }
.photo-preview[hidden] { display: none; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.photo-uploader input[type=file] { width: 100%; box-sizing: border-box; }
.photo-uploader input::file-selector-button { padding: .65rem; margin-right: .5rem; border: 0; border-radius: 6px; cursor: pointer; }

.framing-previews { display:flex; flex-wrap:wrap; gap:20px; align-items:center; }
.framing-previews figure { margin:0; max-width:100%; }
.framing-previews figcaption { margin-top:6px; font-size:12px; }
.image-frame { overflow:hidden; position:relative; background:#171514; touch-action:none; cursor:move; outline:1px solid #666; border-radius:10px; }
.image-frame img { display:block; width:100%; height:100%; object-fit:contain; user-select:none; pointer-events:none; }
.list-frame { width:68px; height:72px; }
.detail-preview { width:354px; }
.detail-frame { width:100%; aspect-ratio:354 / 245; border-radius:16px; }
