:root {
  --paper: #f2efe6;
  --ink: #171714;
  --orange: #ff5a36;
  --blue: #315cff;
  --line: #cfcbc0;
  --muted: #6d6a61;
  --white: #fffdf8;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.06em;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  font-weight: 400;
}
.brand i {
  color: var(--orange);
  font-style: normal;
}
.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #f2efe6e8;
  backdrop-filter: blur(15px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto 44px auto;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
}
.top-search {
  max-width: 620px;
  min-width: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #aaa69d;
  padding: 8px 2px;
  gap: 10px;
}
.top-search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font-size: 0.8rem;
}
.mobile-search {
  display: none;
}
.help-button,
.user-button {
  border: 0;
  background: none;
  font-size: 0.68rem;
  font-weight: 600;
}
.notification-button {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.notification-button svg {
  width: 21px;
  height: 21px;
}
.notification-button i {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 1px 3px;
  border-radius: 20px;
  background: var(--orange);
  color: white;
  font: 700 10px/16px "IBM Plex Mono", monospace;
  font-style: normal;
  text-align: center;
}
.notification-button.active {
  background: var(--ink);
  color: white;
}
.help-button {
  border-bottom: 1px solid;
  padding: 9px 0;
}
.user-button {
  background: var(--ink);
  color: white;
  padding: 11px 15px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar {
  position: fixed;
  top: 76px;
  bottom: 0;
  left: 0;
  width: 230px;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
}
.sidebar nav button {
  border: 0;
  background: none;
  text-align: left;
  padding: 15px 14px;
  color: var(--muted);
  font-size: 0.76rem;
}
.sidebar nav button span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  margin-right: 12px;
}
.sidebar nav button.active {
  background: var(--ink);
  color: white;
}
.side-note {
  border-top: 1px solid var(--line);
  padding: 20px 12px;
}
.side-note b,
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}
.side-note p {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
}
.workspace {
  margin-left: 230px;
  padding-top: 76px;
  min-height: 100vh;
}
.view {
  display: none;
  padding: 60px clamp(30px, 5vw, 78px) 100px;
}
.view.active {
  display: block;
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 45px;
}
.view-heading h1,
.compact-heading h1,
.host-hero h1 {
  font-size: clamp(3.5rem, 6vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 0.88;
  margin: 20px 0 0;
}
.view-heading h1 em,
.compact-heading h1 em,
.host-hero h1 em,
dialog h2 em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}
.view-heading > p {
  max-width: 410px;
  color: var(--muted);
  line-height: 1.7;
}
.filters {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 24px 0 30px;
  overflow: auto;
}
.filters button,
.filters select {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: none;
  padding: 10px 13px;
  font-size: 0.66rem;
}
.filters button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.filters select {
  margin-left: auto;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.market-pager {
  display: flex;
  justify-content: center;
  padding: 28px 0 10px;
}
.market-pager button {
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.market-pager button:hover,
.market-pager button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.market-pager button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.market-pager button[hidden] {
  display: none;
}
.listing-card {
  background: var(--paper);
  min-width: 0;
  cursor: pointer;
}
.listing-card .media {
  position: relative;
  overflow: hidden;
  height: 310px;
}
.listing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing-card:hover img {
  transform: scale(1.03);
}
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper);
  padding: 7px 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
}
.card-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 36px;
  height: 27px;
  padding: 3px 6px;
  background: #171714d9;
  color: var(--white);
  font: 600 0.6rem "IBM Plex Mono", monospace;
  pointer-events: none;
}
.card-photo-count svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.listing-copy {
  padding: 20px;
  overflow-wrap: anywhere;
}
.listing-copy > small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.53rem;
  color: var(--muted);
}
.listing-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: 1.9rem;
  font-weight: 400;
  margin: 12px 0;
}
.listing-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.listing-foot span {
  font-size: 0.68rem;
  color: var(--muted);
}
.listing-foot strong {
  font-size: 1.2rem;
}
.listing-foot strong small {
  font-size: 0.55rem;
}
.compact-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  margin-bottom: 30px;
}
.notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
}
.notification-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
}
.notification-section-title h2,
.notification-settings h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  letter-spacing: -0.05em;
}
.notification-section-title > span {
  color: var(--muted);
  font: 0.65rem "IBM Plex Mono", monospace;
  white-space: nowrap;
}
.notification-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 17px;
  padding: 22px 10px 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.notification-item:hover,
.notification-item:focus-visible {
  background: #e9e5da;
}
.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.notification-item.read .notification-dot {
  background: var(--line);
}
.notification-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.notification-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}
.notification-item time {
  color: var(--muted);
  font: 0.6rem "IBM Plex Mono", monospace;
  white-space: nowrap;
}
.notification-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.notification-item .notification-open {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font: 600 0.65rem "IBM Plex Mono", monospace;
}
#load-more-notifications {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: transparent;
}
.notification-settings {
  border: 1px solid var(--ink);
  padding: clamp(22px, 3vw, 36px);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--blue);
}
.notification-settings h2 {
  margin-top: 20px;
}
.notification-settings h2 span {
  color: var(--orange);
}
.notification-settings > p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.notification-settings form label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.notification-settings form label:first-child {
  margin-top: 25px;
}
.notification-settings label b,
.notification-settings label small {
  display: block;
}
.notification-settings label b {
  font-size: 0.85rem;
}
.notification-settings label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}
.notification-settings input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--blue);
}
.notification-settings form > button {
  width: 100%;
  min-height: 48px;
  margin-top: 13px;
  border: 0;
  background: var(--ink);
  color: white;
  font-size: 0.75rem;
}
.notification-settings .notification-required {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  font-size: 0.7rem;
}
.email-ops {
  border-top: 1px solid var(--ink);
  margin-top: 28px;
  padding-top: 25px;
}
.email-ops h3 {
  margin: 10px 0 4px;
  font-size: 1.2rem;
}
.email-ops p,
.email-ops small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}
.email-ops-item {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.email-ops-item b,
.email-ops-item small {
  display: block;
  overflow-wrap: anywhere;
}
.email-ops-item b {
  font-size: 0.72rem;
}
.email-ops-item button {
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 0.65rem;
}
.compact-heading .eyebrow,
.compact-heading h1 {
  grid-column: 1;
}
.compact-heading button,
.host-hero button {
  grid-column: 2;
  grid-row: 1/3;
  background: var(--orange);
  color: white;
  border: 0;
  padding: 16px 19px;
  font-size: 0.7rem;
}
.records {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.record {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.record img {
  width: 85px;
  height: 68px;
  object-fit: cover;
}
.record h3 {
  font-family: "Instrument Serif", serif;
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 5px;
}
.record p,
.record small {
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0;
}
.record-reviewed {
  align-self: center;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  padding: 8px 10px;
  background: #e0ddd3;
}
.record > button,
.empty button {
  border: 1px solid var(--ink);
  background: none;
  padding: 10px 12px;
  font-size: 0.62rem;
}
.empty {
  text-align: center;
  padding: 90px 20px;
}
.empty b {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  font-weight: 400;
}
.empty p {
  color: var(--muted);
  font-size: 0.8rem;
}
.support-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 520px;
  border: 1px solid var(--line);
}
.review-queue[hidden] {
  display: none;
}
.review-queue {
  margin: 0 0 36px;
  border: 1px solid var(--line);
  background: #faf9f3;
}
.review-heading {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}
.review-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0;
}
.review-heading p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
}
.review-card {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}
.review-card:last-child {
  border-bottom: 0;
}
.review-card-head h3 {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  margin: 7px 0;
}
.review-card-head small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.review-photos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0;
  scroll-snap-type: x proximity;
}
.review-photos a {
  flex: 0 0 160px;
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
}
.review-photos img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.review-photos small {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Mono", monospace;
}
.review-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.review-facts p {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.review-facts b {
  display: block;
  margin-bottom: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.review-confirm {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0;
  font-weight: 600;
}
.review-confirm input {
  width: 20px;
  height: 20px;
  flex: none;
}
.review-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.review-actions button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.review-actions button:last-child {
  background: transparent;
  color: var(--ink);
}
.review-actions button:disabled {
  opacity: 0.5;
}
.review-actions label {
  display: grid;
  gap: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.review-actions textarea {
  width: 100%;
  min-height: 48px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  padding: 10px;
}
.review-status {
  min-height: 1.3em;
  color: var(--orange);
}
.ticket-list,
.ticket-thread {
  min-width: 0;
}
.ticket-list {
  border-right: 1px solid var(--line);
}
.ticket-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 18px;
}
.ticket-item.active {
  background: var(--ink);
  color: white;
}
.ticket-item > span {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
}
.ticket-item h3 {
  font-size: 0.9rem;
  margin: 12px 0 7px;
  overflow-wrap: anywhere;
}
.ticket-item p {
  font-size: 0.65rem;
  margin: 0;
  opacity: 0.65;
}
.urgent {
  color: var(--orange);
}
.ticket-thread {
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.thread-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.thread-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: 2.3rem;
  font-weight: 400;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 25px 0;
}
.message {
  max-width: 75%;
  background: white;
  padding: 14px 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.message.mine {
  align-self: flex-end;
  background: var(--blue);
  color: white;
}
.message small {
  display: block;
  margin-top: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.48rem;
  opacity: 0.65;
}
.reply-form {
  display: flex;
  gap: 8px;
}
.reply-form textarea {
  flex: 1;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  resize: vertical;
}
.reply-form button {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 0 18px;
}
.escalate {
  align-self: start;
  border: 1px solid var(--orange);
  color: #c43d22;
  background: none;
  padding: 10px 12px;
  font-size: 0.62rem;
}
.host-hero {
  background: var(--blue);
  color: white;
  padding: 80px 7vw;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.host-hero p {
  max-width: 600px;
  line-height: 1.7;
  color: #e0e5ff;
}
.host-hero button {
  align-self: end;
}
.host-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: 2px;
}
.host-steps article {
  padding: 35px;
  border-right: 1px solid var(--line);
}
.host-steps article:last-child {
  border: 0;
}
.host-steps span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--orange);
  font-size: 0.6rem;
}
.host-steps h3 {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  font-weight: 400;
}
.host-steps p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
dialog {
  width: min(560px, calc(100% - 30px));
  border: 0;
  background: var(--paper);
  padding: 45px;
  box-shadow: 0 30px 90px #0006;
}
dialog::backdrop {
  background: #171714c9;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 3.4rem;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 22px 0;
}
dialog > p {
  color: var(--muted);
  line-height: 1.6;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 1.8rem;
}
.wide-dialog {
  width: min(920px, calc(100% - 30px));
  padding: 0;
}
.wide-dialog .dialog-close {
  z-index: 2;
  background: var(--paper);
  width: 36px;
  height: 36px;
}
#listing-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#listing-dialog .dialog-close {
  position: sticky;
  top: 12px;
  right: auto;
  float: none;
  margin: 12px 12px -58px auto;
  z-index: 5;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 460px;
}
.detail-visual {
  position: relative;
  min-width: 0;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  background: #d9d5cb;
  cursor: zoom-in;
}
.detail-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-zoom {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  min-height: 44px;
  border: 1px solid var(--white);
  padding: 10px 14px;
  background: #171714e8;
  color: var(--white);
  font: 600 0.56rem "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}
.listing-photo-rail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--ink);
  background: var(--white);
}
.listing-photo-rail > span {
  display: grid;
  gap: 5px;
  font: 600 0.57rem "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
}
.listing-photo-rail > span b {
  color: var(--muted);
  font-weight: 400;
}
.listing-photo-thumbs,
.gallery-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.listing-photo-thumbs button {
  position: relative;
  flex: 0 0 94px;
  height: 70px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--ink);
  scroll-snap-align: start;
}
.listing-photo-thumbs button[aria-current="true"] {
  border-color: var(--orange);
}
.listing-photo-thumbs img,
.gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-photo-thumbs small {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  background: var(--ink);
  color: white;
  font: 0.5rem "IBM Plex Mono", monospace;
}
#gallery-dialog {
  width: min(1160px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #4d4d49;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
#gallery-dialog::backdrop {
  background: #080806ed;
}
.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff80;
  background: var(--ink);
  color: white;
  font-size: 1.7rem;
}
.gallery-stage {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  align-items: center;
  height: min(68dvh, 720px);
  min-height: 240px;
}
.gallery-stage > img {
  display: block;
  grid-column: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.gallery-arrow {
  align-self: stretch;
  border: 0;
  background: none;
  color: white;
  font-size: 1.7rem;
}
.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: #ffffff20;
}
.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  border-top: 1px solid #ffffff3b;
  font: 0.68rem "IBM Plex Mono", monospace;
}
.gallery-thumbs {
  padding: 0 22px 18px;
}
.gallery-thumbs button {
  flex: 0 0 70px;
  height: 55px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  scroll-snap-align: start;
}
.gallery-thumbs button[aria-current="true"] {
  border-color: var(--orange);
}
.detail-visual figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 50px 32px 30px;
  background: linear-gradient(transparent, #171714c9);
  color: white;
}
.detail-visual figcaption span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}
.detail-visual figcaption strong {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: capitalize;
}
.detail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  overflow-wrap: anywhere;
}
.booking-form,
.booking-form input,
.booking-form select,
.booking-form textarea {
  min-width: 0;
  max-width: 100%;
}
.detail-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: 3.4rem;
  font-weight: 400;
}
.listing-sheet > .event-brief {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  box-shadow: none;
}
.listing-sheet > .event-brief > span {
  padding: 26px;
  font-size: 0.6rem;
}
.listing-sheet > .event-brief > div {
  padding: 26px clamp(32px, 4vw, 56px);
}
.listing-sheet > .event-brief h3 {
  font-size: 2.3rem;
}
.listing-booking {
  gap: 34px;
  padding: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--ink);
  background: #eae6dc;
}
.booking-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
}
.booking-head > span {
  color: var(--orange);
  font: 600 0.6rem "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
}
.booking-head h3 {
  margin: 0;
  font: 400 clamp(2.8rem, 4.5vw, 4.4rem)/0.95 "Instrument Serif", serif;
}
.booking-head p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.listing-booking .format-picker {
  min-width: 0;
  margin: 0;
}
.booking-controls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.booking-inputs,
.booking-submit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}
.booking-controls .date-hint {
  margin: -4px 0 2px;
}
.single-format .booking-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.single-format .booking-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding: 26px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}
.detail-host-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin: 0 0 18px;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.review-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: clamp(20px, 4vw, 40px);
  color: var(--ink);
}
.review-dialog::backdrop {
  background: #171714aa;
}
.review-dialog form {
  display: grid;
  gap: 18px;
}
.review-dialog h2 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0;
}
.review-dialog p {
  margin: 0;
  line-height: 1.45;
}
.review-dialog label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.review-dialog select,
.review-dialog textarea {
  min-height: 48px;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid var(--ink);
  font-size: 16px;
}
.review-dialog [type="submit"] {
  min-height: 48px;
  background: var(--orange);
  border: 1px solid var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.review-close {
  justify-self: end;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 600px) {
  .review-dialog {
    margin: auto 0 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 90dvh;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}
.detail-meta {
  display: flex;
  gap: 15px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
}
.detail-copy > p {
  line-height: 1.7;
  color: var(--muted);
}
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 13px;
  color: var(--ink);
  outline-color: var(--orange);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0;
}
form > button,
.booking-form button {
  border: 0;
  background: var(--orange);
  color: white;
  padding: 15px;
  font-size: 0.7rem;
  font-weight: 600;
}
.check {
  flex-direction: row;
  align-items: center;
}
.check input {
  width: auto;
}
.form-status {
  font-size: 0.7rem;
  min-height: 1em;
  color: var(--muted);
}
.date-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  margin: 20px 0;
}
.price-box b {
  font-size: 1.6rem;
}
.toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  color: white;
  padding: 14px 18px;
  font-size: 0.72rem;
  transform: translateY(80px);
  opacity: 0;
  transition: 0.3s;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.loading {
  padding: 70px;
  text-align: center;
  background: var(--paper);
  grid-column: 1/-1;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-layout {
    grid-template-columns: 270px 1fr;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #listing-dialog {
    width: min(920px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
  }
  .detail-visual {
    height: clamp(280px, 42vw, 440px);
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 68px;
    grid-template-columns: 1fr 44px auto;
    gap: 8px;
    padding: 0 15px;
  }
  .user-button {
    max-width: min(34vw, 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-search,
  .help-button {
    display: none;
  }
  .sidebar {
    z-index: 8;
    top: auto;
    bottom: 0;
    right: 0;
    width: auto;
    height: 62px;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: 0;
  }
  .sidebar nav {
    height: 100%;
    flex-direction: row;
  }
  .sidebar nav button {
    flex: 1;
    text-align: center;
    padding: 8px 3px;
    font-size: 0.57rem;
  }
  .sidebar nav button span {
    display: block;
    margin: 0 0 4px;
  }
  .side-note {
    display: none;
  }
  .workspace {
    margin-left: 0;
    padding-top: 68px;
    padding-bottom: 60px;
  }
  .view {
    padding: 38px 18px 65px;
  }
  .view-heading {
    display: block;
  }
  .view-heading h1,
  .compact-heading h1 {
    font-size: 3.7rem;
  }
  .notification-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .notification-heading {
    grid-template-columns: 1fr;
  }
  .notification-heading button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 20px;
  }
  .notification-heading h1 {
    font-size: 2.9rem;
  }
  .notification-item header {
    display: block;
  }
  .notification-item time {
    display: block;
    margin-top: 5px;
  }
  .view-heading > p {
    margin-top: 25px;
  }
  .filters select {
    margin-left: 0;
  }
  .listing-grid {
    grid-template-columns: 1fr;
  }
  .listing-card .media {
    height: 330px;
  }
  .compact-heading {
    grid-template-columns: 1fr;
  }
  .compact-heading button {
    grid-column: 1;
    grid-row: auto;
    margin-top: 20px;
  }
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket-list {
    border-right: 0;
  }
  .ticket-thread {
    border-top: 1px solid var(--line);
    padding: 20px;
  }
  .host-hero {
    padding: 50px 25px;
    display: block;
  }
  .host-hero h1 {
    font-size: 3.8rem;
  }
  .host-hero button {
    margin-top: 20px;
  }
  .host-steps {
    grid-template-columns: 1fr;
  }
  .host-steps article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  dialog {
    padding: 32px 22px;
  }
  dialog h2 {
    font-size: 2.8rem;
  }
  .detail-copy {
    padding: 30px 22px;
  }
  .detail-copy h2 {
    font-size: 2.8rem;
  }
  .record {
    grid-template-columns: 65px 1fr;
  }
  .record img {
    width: 65px;
  }
  .record .status,
  .record > button {
    grid-column: 2;
  }
  .date-pair {
    grid-template-columns: 1fr;
  }
}

/* Review round 2: clearer inventory scanning and stable card geometry. */
.market-meta {
  display: flex;
  justify-content: space-between;
  margin: -14px 0 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.listing-card {
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}
.listing-card:hover,
.listing-card:focus-visible {
  background: #fffdf8;
}
.listing-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}
.listing-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 190px;
}
.listing-foot {
  margin-top: auto;
  gap: 14px;
  align-items: center;
}
.listing-foot span {
  max-width: 68%;
  line-height: 1.45;
}
.listing-foot strong {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .filters {
    position: sticky;
    z-index: 5;
    top: 68px;
    margin-inline: -18px;
    padding: 14px 18px;
    background: #f2efe6f5;
    backdrop-filter: blur(12px);
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filters button,
  .filters select {
    min-height: 42px;
  }
  .market-meta {
    margin-top: 12px;
  }
  .listing-card .media {
    height: 285px;
  }
  .listing-copy {
    min-height: 170px;
  }
}

/* Review round 3: dates, booking clarity and safer dialogs. */
.date-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}
.date-hint.invalid {
  color: #b72f1b;
}
.booking-total {
  background: var(--ink);
  color: white;
}
.booking-total span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}
.booking-total small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: #c9c6bd;
}
.booking-total b {
  font-size: 1.15rem;
  white-space: nowrap;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
dialog {
  max-height: 92vh;
  overflow: auto;
}
.dialog-close {
  position: sticky;
  z-index: 4;
  float: right;
  margin: -30px -30px 0 0;
  background: var(--paper);
}
@media (max-width: 760px) {
  dialog {
    max-height: 90vh;
  }
  .wide-dialog {
    width: calc(100% - 16px);
  }
  .dialog-close {
    margin: -20px -10px 0 0;
  }
  .detail-visual {
    height: 245px;
  }
  .detail-copy > p {
    font-size: 0.82rem;
  }
  .detail-copy h2 {
    margin: 18px 0;
  }
}

/* Review round 4: support clarity and calmer modal behavior. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wide-dialog {
  overflow-x: hidden;
}
.wide-dialog .dialog-close {
  position: absolute;
  float: none;
  margin: 0;
}
.support-reassurance {
  border-left: 3px solid var(--blue);
  padding-left: 13px;
  font-size: 0.75rem;
}
.ticket-item:focus-visible,
.sidebar button:focus-visible,
.filters button:focus-visible,
.filters select:focus-visible,
.topbar button:focus-visible,
form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible,
form button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.empty button {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .support-layout {
    min-height: 0;
  }
  .ticket-thread:has(.empty) {
    display: none;
  }
  .support-reassurance {
    font-size: 0.7rem;
  }
  .wide-dialog .dialog-close {
    margin: 0;
  }
}

/* Review round 5: keyboard access, motion preferences and mobile safe areas. */
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
}
.skip-link:focus {
  transform: none;
}
.dialog-close {
  min-width: 44px;
  min-height: 44px;
}
.form-status {
  line-height: 1.5;
}
.sidebar nav button,
.user-button,
.help-button {
  min-height: 44px;
}
@media (max-width: 760px) {
  .sidebar {
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .workspace {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .toast {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 12px;
    text-align: center;
  }
  .market-meta {
    gap: 15px;
  }
  .market-meta span:last-child {
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .listing-card:hover img {
    transform: none;
  }
}

/* Mobile UX review: native-size controls, scroll affordances and thumb-friendly actions. */
@media (max-width: 760px) {
  .review-heading, .review-card { padding: 20px; }
  .review-facts, .review-actions { grid-template-columns: 1fr; }
  .review-actions button { min-height: 48px; }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .filters {
    scroll-snap-type: x proximity;
    padding-right: 36px;
    -webkit-overflow-scrolling: touch;
  }
  .filters button,
  .filters select {
    scroll-snap-align: start;
    min-height: 44px;
  }
  .record {
    align-items: start;
    gap: 12px 14px;
  }
  .record > div:last-child {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .record > div:last-child button,
  .record .status,
  .empty button,
  .reply-form button,
  .escalate {
    min-height: 44px;
  }
  .reply-form {
    align-items: stretch;
  }
  .reply-form button {
    padding-inline: 16px;
  }
  dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top));
    margin: auto 0 0;
    padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .wide-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    margin: auto 0 0;
  }
  #listing-dialog {
    width: 100%;
  }
  .detail-visual {
    height: 210px;
  }
  .detail-copy {
    padding: 26px 20px;
  }
  .detail-copy h2 {
    font-size: 2.55rem;
  }
  .booking-form button,
  form > button {
    min-height: 48px;
  }
  .message {
    max-width: 88%;
    font-size: 0.88rem;
  }
  .sidebar nav button {
    min-width: 0;
  }
  .sidebar nav button span {
    font-size: 0.58rem;
  }
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  margin-top: 14px;
}
.policy-links a {
  color: var(--muted);
  font-size: 0.58rem;
  text-underline-offset: 3px;
}
.legal-consent {
  font-size: 0.62rem !important;
  line-height: 1.5 !important;
  color: var(--muted);
  margin: 0;
}
.legal-consent a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.app-policy-footer {
  display: none;
}
@media (max-width: 760px) {
  .app-policy-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 18px 82px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }
  .app-policy-footer a {
    color: var(--muted);
    font-size: 0.68rem;
    text-underline-offset: 3px;
  }
}

/* Database-backed filters use a controlled menu instead of the oversized iOS select. */
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  overflow: visible;
}
.category-filters {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filters::-webkit-scrollbar {
  display: none;
}
.city-picker {
  position: relative;
}
.city-picker > button {
  width: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  font-weight: 600;
}
.city-picker > button i {
  color: var(--orange);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-style: normal;
}
.city-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 7px);
  width: 260px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--orange);
}
.city-menu button {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 15px;
  text-align: left;
  font-size: 0.78rem;
}
.city-menu button:last-child {
  border-bottom: 0;
}
.city-menu button:hover,
.city-menu button[aria-selected="true"] {
  background: var(--ink);
  color: white;
}
.city-menu button i {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.48rem;
  font-style: normal;
  color: var(--orange);
  letter-spacing: 0.08em;
}
.listing-intake {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(420px, 1.25fr);
  gap: clamp(45px, 8vw, 120px);
  padding: 90px clamp(25px, 7vw, 110px);
  background: #e5e0d4;
  border-top: 1px solid var(--ink);
}
.listing-intake h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.06em;
  margin: 22px 0;
}
.listing-intake h2 em {
  font-weight: 400;
}
.listing-intake > div > p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.7;
}
.listing-intake form {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: clamp(24px, 4vw, 45px);
  box-shadow: 10px 10px 0 var(--blue);
}
.photo-builder {
  min-width: 0;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--white);
}
.photo-builder legend {
  padding: 0 8px;
  font: 600 0.68rem "IBM Plex Mono", monospace;
}
.photo-builder p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.photo-builder > small {
  display: block;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}
.photo-add {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
}
.photo-add:focus-within {
  outline: 3px solid var(--blue);
}
.photo-add input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
}
.photo-preview {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-preview label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 7px;
  font-size: 0.7rem;
  cursor: pointer;
}
.photo-preview label input {
  accent-color: var(--orange);
}
.photo-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
  color: white;
  font-size: 1.2rem;
}
.photo-preview small {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 5px;
  background: var(--ink);
  color: white;
  font: 0.5rem "IBM Plex Mono", monospace;
}
.photo-builder .photo-error {
  margin: 10px 0 0;
  color: #9f301a;
  font-size: 0.72rem;
}
.form-pair,
.form-triple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-triple {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .filters {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding-right: 18px;
    scroll-snap-type: none;
  }
  .category-filters {
    scroll-snap-type: x proximity;
  }
  .category-filters button {
    scroll-snap-align: start;
  }
  .city-picker > button {
    width: auto;
    min-width: 118px;
  }
  .city-menu {
    position: fixed;
    top: 126px;
    right: 18px;
    left: 18px;
    width: auto;
    max-height: calc(100dvh - 220px);
    overflow: auto;
    box-shadow: 7px 7px 0 var(--orange);
  }
  .city-menu button {
    min-height: 54px;
    font-size: 1rem;
  }
  .listing-intake {
    display: block;
    margin-inline: -18px;
    padding: 60px 18px 90px;
  }
  .listing-intake form {
    margin-top: 38px;
    padding: 24px 18px;
    box-shadow: 6px 6px 0 var(--blue);
  }
  .form-pair,
  .form-triple {
    grid-template-columns: 1fr;
  }
  .listing-intake h2 {
    font-size: 3.9rem;
  }
}

/* Shared app typography: sans display type stays compact; serif stays breathable. */
:root {
  --tracking-app-display: -0.045em;
  --tracking-app-serif: -0.012em;
  --tracking-app-label: 0.1em;
}
.brand {
  letter-spacing: -0.035em;
}
.side-note b,
.eyebrow {
  letter-spacing: var(--tracking-app-label);
}
.view-heading h1,
.compact-heading h1,
.host-hero h1 {
  line-height: 0.91;
  letter-spacing: var(--tracking-app-display);
}
.view-heading h1 em,
.compact-heading h1 em,
.host-hero h1 em,
dialog h2 em {
  letter-spacing: var(--tracking-app-serif);
}
.listing-copy h2,
.record h3,
.empty b,
.thread-heading h2,
.host-steps h3,
.detail-copy h2,
.listing-intake h2 {
  letter-spacing: var(--tracking-app-serif);
}
.listing-intake h2 {
  line-height: 0.92;
}
dialog h2 {
  line-height: 1;
  letter-spacing: -0.04em;
}
.dialog-close,
.wide-dialog .dialog-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--orange);
}
.dialog-close:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  box-shadow: none;
}
@media (max-width: 760px) {
  :root {
    --tracking-app-display: -0.034em;
    --tracking-app-serif: -0.006em;
    --tracking-app-label: 0.085em;
  }
  .view-heading h1,
  .compact-heading h1,
  .host-hero h1 {
    line-height: 0.94;
  }
  .host-hero h1 {
    font-size: 3.5rem;
  }
  .listing-intake h2 {
    font-size: 3.65rem;
    line-height: 0.95;
  }
  .sidebar nav button {
    font-size: 0.63rem;
  }
  .sidebar nav button span {
    font-size: 0.61rem;
  }
  .card-tag,
  .listing-copy > small,
  .market-meta {
    font-size: 0.57rem;
  }
  .dialog-close,
  .wide-dialog .dialog-close {
    top: 12px;
    right: 12px;
    margin: 0;
  }
  .wide-dialog .dialog-close {
    background: var(--paper);
  }
}
@media (max-width: 390px) {
  :root {
    --tracking-app-display: -0.028em;
    --tracking-app-serif: -0.003em;
    --tracking-app-label: 0.075em;
  }
  .view-heading h1,
  .compact-heading h1 {
    font-size: 3.35rem;
  }
  dialog h2 {
    font-size: 2.45rem;
    letter-spacing: -0.028em;
  }
  .detail-copy h2 {
    font-size: 2.25rem;
  }
  .host-hero h1 {
    font-size: 3.25rem;
  }
  .listing-intake h2 {
    font-size: 3.3rem;
  }
}

/* Physical inventory and placement formats. */
.inventory-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.inventory-note b {
  color: var(--orange);
  font-weight: 600;
}
.format-picker {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.format-picker > legend,
.capacity-builder > legend {
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.format-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.format-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--white);
  cursor: pointer;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.format-option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--orange);
}
.format-option:has(input:disabled) {
  opacity: 0.46;
  cursor: not-allowed;
}
.format-option input {
  margin: 3px 0 0;
  accent-color: var(--orange);
}
.format-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  letter-spacing: 0;
}
.format-option b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
}
.format-option small {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.67rem;
  line-height: 1.45;
  color: var(--muted);
}
.format-option > strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  white-space: nowrap;
}
.format-option em {
  grid-column: 2/-1;
  font-style: normal;
  font-size: 0.58rem;
  color: var(--orange);
}
.availability-line {
  min-height: 18px;
  margin: 9px 0 0;
  font-size: 0.67rem;
  color: var(--muted);
}
.capacity-builder {
  border: 1px solid var(--ink);
  padding: 22px;
  margin: 8px 0;
}
.capacity-builder > p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}
.capacity-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--white);
  cursor: pointer;
}
.mode-card:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
}
.mode-card input {
  margin-top: 3px;
  accent-color: var(--blue);
}
.mode-card span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mode-card b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.mode-card small {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0;
}
.exclusive-plan,
.shared-plan {
  margin-top: 22px;
}
.format-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.format-editor article {
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #ebe7dc;
}
.format-editor article > span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  color: var(--orange);
  letter-spacing: 0.08em;
}
.format-editor .form-pair {
  grid-template-columns: 1fr 1fr;
}
.capacity-preview {
  margin: 14px 0 0 !important;
  padding: 12px;
  background: var(--ink);
  color: white !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem !important;
  letter-spacing: 0.05em;
}
.capacity-preview.invalid {
  background: #8a2817;
}
.record-format {
  display: block;
  margin-top: 5px;
  color: var(--orange) !important;
}
.exposure-builder {
  border: 1px solid var(--ink);
  padding: 22px;
  margin: 8px 0;
}
.exposure-builder > legend {
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.event-plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.event-plan,
.event-plan label,
.event-plan select,
.event-plan input,
.event-plan textarea {
  min-width: 0;
  max-width: 100%;
}
.event-plan select,
.event-plan input,
.event-plan textarea {
  width: 100%;
}
.event-card-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--blue);
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
}
.event-card-note b {
  font-weight: 500;
}
.event-brief {
  margin: 20px 0 4px;
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}
.event-brief > span {
  display: block;
  padding: 9px 12px;
  background: var(--blue);
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}
.event-brief > div {
  padding: 14px;
}
.event-brief h3 {
  margin: 0 0 7px;
  font-family: "Instrument Serif", serif;
  font-size: 1.55rem;
  font-weight: 400;
}
.event-brief p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.event-brief dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.event-brief dl > div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.event-brief dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
}
.event-brief dd {
  margin: 5px 0 0;
  font-size: 0.73rem;
  font-weight: 600;
}
.event-filter {
  flex: none;
  min-height: 44px;
  border: 1px solid var(--blue) !important;
  background: transparent;
  color: var(--blue);
  padding: 10px 14px;
  white-space: nowrap;
}
.event-filter.active,
.event-filter[aria-pressed="true"] {
  background: var(--blue);
  color: white;
}
.event-filter span {
  margin-left: 8px;
}
.record-warning {
  display: block;
  margin-top: 7px !important;
  color: #a33019 !important;
  font-weight: 700;
}
#event-booking-dialog,
#campaign-detail-dialog {
  padding: 32px;
}
#campaign-detail-content {
  overflow-wrap: anywhere;
}
.campaign-finance {
  margin: 12px 0;
}
.campaign-finance > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  font-size: 0.77rem;
}
.campaign-finance dt {
  color: var(--muted);
}
.campaign-finance dd {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
.campaign-review-notice {
  border-left: 3px solid var(--orange);
  background: #fff7ed;
  padding: 14px 16px;
  font-size: 0.78rem;
  line-height: 1.55;
}
.event-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.event-ops,
.event-change {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  padding: 18px;
  margin: 15px 0;
}
.event-ops h3 {
  margin: 0 0 12px;
  font:
    400 1.7rem "Instrument Serif",
    serif;
}
.event-ops p,
.event-change p {
  font-size: 0.78rem;
  line-height: 1.55;
}
.event-action {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.event-action button {
  min-height: 46px;
  background: var(--ink);
  color: white;
  border: 0;
  padding: 12px;
}
.event-action [role="status"] {
  margin: 0;
  color: #a33019;
}
.event-private {
  border: 1px solid var(--blue);
  padding: 12px;
  overflow-wrap: anywhere;
}
.event-private b,
.event-proof-grid span {
  font:
    600 0.6rem "IBM Plex Mono",
    monospace;
}
.event-private p {
  white-space: pre-wrap;
}
.event-alert {
  border-left: 5px solid var(--orange);
  padding: 15px;
  background: #fff0e9;
  line-height: 1.5;
}
.event-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.event-proof-grid span {
  border: 1px solid var(--line);
  padding: 10px;
}
.event-proof-grid .done {
  border-color: var(--blue);
  color: var(--blue);
}
.event-proof-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.event-proof-gallery figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}
.event-proof-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.event-proof-gallery figcaption {
  display: grid;
  gap: 5px;
  padding: 10px;
  overflow-wrap: anywhere;
}
.event-proof-gallery b,
.event-proof-gallery span {
  font-size: 0.64rem;
}
.event-proof-gallery span {
  color: var(--muted);
}
.event-proof-gallery p {
  margin: 0;
  white-space: pre-wrap;
}
.event-report {
  min-height: 44px;
  margin-top: 15px;
  border: 1px solid var(--ink);
  padding: 10px 12px;
  background: transparent;
  font-size: 0.72rem;
}
.event-change summary {
  cursor: pointer;
  font-weight: 700;
}
@media (min-width: 761px) and (max-width: 1250px) {
  .listing-intake {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 60px 30px;
  }
  .listing-intake form {
    min-width: 0;
  }
  .format-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .exposure-builder,
  .capacity-builder,
  .capacity-modes,
  .mode-card,
  .mode-card span {
    min-width: 0;
    max-width: 100%;
  }
  .mode-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  #event-booking-dialog,
  #campaign-detail-dialog {
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 760px) {
  .capacity-modes,
  .format-editor {
    grid-template-columns: 1fr;
  }
  .capacity-builder {
    padding: 18px 14px;
  }
  .exposure-builder {
    padding: 18px 14px;
  }
  .exposure-builder,
  .capacity-builder,
  .capacity-modes,
  .mode-card,
  .mode-card span {
    min-width: 0;
    max-width: 100%;
  }
  .mode-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .event-brief dl {
    grid-template-columns: 1fr;
  }
  .event-ops-grid,
  .event-proof-grid,
  .event-proof-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-ops,
  .event-change {
    padding: 14px;
  }
  .filters {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .category-filters {
    grid-column: 1 / -1;
  }
  .event-filter {
    grid-column: 1;
    justify-self: start;
  }
  .city-picker {
    grid-column: 2;
  }
  .mode-card {
    min-height: 76px;
  }
  .format-option {
    min-height: 76px;
  }
  .format-option b {
    font-size: 0.95rem;
  }
  .format-option small {
    font-size: 0.75rem;
  }
  .inventory-note {
    font-size: 0.56rem;
  }
}

/* Product language: define an ad lot once, then make the examples scannable. */
.lot-definition {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1.6fr) repeat(
      4,
      minmax(120px, 0.7fr)
    );
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  gap: 1px;
}
.lot-definition > * {
  margin: 0;
  background: var(--paper);
  padding: 16px 18px;
}
.lot-definition > strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.lot-definition > p {
  font-size: 0.75rem;
  line-height: 1.5;
}
.lot-definition > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.67rem;
  color: var(--muted);
}
.lot-definition > span b {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.detail-kicker {
  display: block;
  margin: 24px 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
}
@media (max-width: 1100px) {
  .lot-definition {
    grid-template-columns: 160px 1fr 1fr 1fr;
  }
  .lot-definition > p {
    grid-column: 2/-1;
  }
  .lot-definition > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .lot-definition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 18px 0 8px;
  }
  .lot-definition > strong,
  .lot-definition > p {
    grid-column: 1/-1;
  }
  .lot-definition > p {
    font-size: 0.82rem;
  }
  .lot-definition > span {
    font-size: 0.72rem;
    padding: 13px;
  }
  .lot-definition > span:last-child {
    display: flex;
  }
  .detail-kicker {
    margin-top: 20px;
    font-size: 0.58rem;
  }
  .mobile-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin-top: 24px;
    padding: 0 15px;
    border: 1px solid var(--ink);
    background: #fffdf8;
  }
  .mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font: inherit;
    font-size: 16px;
  }
  .mobile-search span {
    flex: none;
    font-size: 1.4rem;
    line-height: 1;
  }
  .mobile-search:focus-within {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
  }
}

/* Listing sheet: the image introduces the space; the booking workspace gets the full width. */
@media (max-width: 760px) {
  .detail-layout {
    min-height: 0;
  }
  .listing-sheet > .event-brief {
    grid-template-columns: 1fr;
  }
  .listing-sheet > .event-brief > span {
    padding: 12px 20px;
  }
  .listing-sheet > .event-brief > div {
    padding: 24px 20px;
  }
  .listing-sheet > .event-brief h3 {
    font-size: 1.9rem;
  }
  .listing-booking {
    gap: 25px;
    padding: 32px 20px calc(36px + env(safe-area-inset-bottom));
  }
  .booking-head {
    display: block;
  }
  .booking-head h3 {
    margin: 10px 0;
    font-size: 3rem;
  }
  .booking-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .booking-controls {
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .single-format .booking-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .listing-photo-rail {
    display: block;
    padding: 16px 20px;
  }
  .listing-photo-rail > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .listing-photo-thumbs button {
    flex-basis: 82px;
    height: 64px;
  }
  #gallery-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
    border: 0;
  }
  .gallery-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    height: min(69dvh, 620px);
  }
  .gallery-footer {
    padding-inline: 15px;
  }
  .gallery-thumbs {
    padding: 0 15px calc(15px + env(safe-area-inset-bottom));
  }
  .photo-builder {
    padding: 17px;
  }
}
