:root {
  --cream: #f3f0ea;
  --grey: #c8cbcc;
  --peach: #e6c4b6;
  --rose: #d2a7a8;
  --butter: #e6d6a6;
  --sky: #b8d2de;
  --sage: #c3d0c4;
  --lilac: #c6bed4;
  --ink: #161616;
  --mute: #6e6e6e;
  --line: #c8cbcc;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --safe-bottom: max(20px, env(safe-area-inset-bottom));
  --mast: 58px;
  --dock: calc(56px + env(safe-area-inset-bottom));
  --gap: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html,
body {
  min-height: 100%;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}

.page {
  position: relative;
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 0 0 var(--dock);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--mast);
  padding: 0 6px 0 14px;
}

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

.mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.mark-line {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.burger {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span:not(.sr) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu {
  position: fixed;
  top: var(--mast);
  left: 50%;
  z-index: 4;
  width: min(390px, 100%);
  height: calc(100svh - var(--mast));
  padding: 8px 20px 32px;
  background: #fff;
  transform: translateX(-50%);
}

.menu[hidden] {
  display: none;
}

.menu a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  text-decoration: none;
}

.menu a[aria-current="page"] {
  color: var(--mute);
}

.sheet-kicker,
.photo-prompt,
.field > span,
.field-label,
.field legend,
.price,
.tally {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  height: calc((min(100svh, 844px) - var(--mast) - var(--dock) - (var(--gap) * 2)) / 2.25);
  background: var(--grey);
  color: inherit;
  text-decoration: none;
}

.card-plate {
  position: absolute;
  inset: 0;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 7px;
  background: rgba(243, 240, 234, 0.94);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-badge.is-live {
  background: var(--sage);
}

.card-badge.is-timeout {
  background: rgba(22, 22, 22, 0.58);
  color: #fff;
}

.card-badge.is-pending {
  background: var(--butter);
}

.card-badge.is-sold {
  background: var(--rose);
}

.plate-peach { background: var(--peach); }
.plate-sage { background: var(--sage); }
.plate-butter { background: var(--butter); }
.plate-sky { background: var(--sky); }
.plate-lilac { background: var(--lilac); }
.plate-rose { background: var(--rose); }

.card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 8px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 22, 22, 0.58) 58%);
  color: #fff;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card-top h3 {
  min-width: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  color: var(--butter);
  flex-shrink: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
}

.spark {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 16px;
  color: #fff;
}

.spark polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.tally {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.03em;
}

.tally span,
.posted {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tally svg {
  display: block;
  width: 11px;
  height: 11px;
}

.add {
  position: fixed;
  left: 50%;
  bottom: var(--safe-bottom);
  z-index: 2;
  transform: translateX(-50%);
  width: min(350px, calc(100% - 40px));
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.add:active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--ink);
}

body.menu-open .add,
body.menu-open .campaign-dock {
  visibility: hidden;
}

.campaign-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(390px, 100%);
  padding: 10px 16px var(--safe-bottom);
  transform: translateX(-50%);
  background: #fff;
}

.loc-hold {
  width: calc(100% - 40px);
  height: auto;
  min-height: 44px;
  margin: 8px 20px 16px;
  padding: 10px 12px;
  white-space: normal;
  line-height: 1.3;
}

.page-plain {
  padding-bottom: var(--safe-bottom);
}

.banners {
  display: grid;
  gap: var(--gap);
}

.banner {
  position: relative;
  display: block;
  min-height: 168px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.banner-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, transparent 8%, rgba(22, 22, 22, 0.58) 72%);
  color: #fff;
}

.banner-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.banner-top h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.banner-count,
.banner-money,
.banner-stats {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-count {
  color: var(--butter);
  flex-shrink: 0;
}

.banner-money {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.banner-money strong {
  font-weight: 500;
  color: #fff;
}

.banner-money span {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.5);
}

.banner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
}

.interior {
  padding: 28px 20px 8px;
}

.interior h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
}

.interior p {
  margin-top: 12px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
  max-width: 28ch;
}

.sheet {
  width: min(440px, calc(100vw - 24px));
  margin: auto;
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}

.sheet::backdrop {
  background: rgba(22, 22, 22, 0.32);
}

.sheet-kicker {
  color: #8a6d6e;
}

.sheet h2 {
  margin: 10px 0 22px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
}

.photo-field {
  display: block;
  position: relative;
  min-height: 220px;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--peach);
  cursor: pointer;
}

.photo-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-prompt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8a6d6e;
}

.photo-field img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--mute);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px var(--sans);
  padding: 10px 0;
  resize: vertical;
}

.field select {
  appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled,
.field input[readonly] {
  color: var(--mute);
}

.req {
  color: #c45c5c;
  font-weight: 500;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.ghost,
.save {
  height: 44px;
  padding: 0 16px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.ghost {
  border: 0;
  background: transparent;
  color: var(--mute);
}

.save {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.save:active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--ink);
}

.ghost:active {
  opacity: 0.65;
}

.setup-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.setup {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
}

.setup.is-on {
  color: var(--ink);
}

.setup-state {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-pickups {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.page-pickups.is-composing {
  padding-bottom: calc(130px + env(safe-area-inset-bottom));
}

#run-view[hidden] {
  display: none;
}

.run-title-row,
.compose-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.run-title-row h1,
.compose-head h1 {
  min-width: 0;
  flex: 1;
}

.run-left {
  flex: none;
  margin-top: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-dates {
  margin-top: 8px;
}

.run-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.run-actions .ghost {
  padding: 0;
  height: auto;
}

.run-back {
  width: 36px;
  font-size: 22px;
  line-height: 1;
}

.run-items {
  list-style: none;
  border-top: 1px solid var(--line);
}

.run-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.run-thumb {
  width: 72px;
  height: 72px;
}

.run-copy strong {
  display: block;
  font-weight: 600;
}

.run-copy p {
  margin-top: 4px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
}

.place-name {
  color: inherit;
  text-decoration: none;
}

.run-marks {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-pulse {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.run-badge {
  display: inline-block;
  margin-top: 6px;
  color: #8a6d6e;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#composer[hidden],
#list-view[hidden] {
  display: none;
}

.empty-note {
  padding: 20px;
  color: var(--mute);
  font-size: 15px;
}

.empty-note[hidden] {
  display: none;
}

.campaign-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  cursor: pointer;
}

.campaign-when,
.campaign-money {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
}

.campaign-money strong {
  color: var(--ink);
  font-weight: 600;
}

.campaign-money span {
  color: var(--line);
}

.campaign-pulse {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sold-posted {
  margin: 4px 0 16px;
}

.sold-posted-label,
.sold-posted p,
.sold-posted li {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}

.sold-posted-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sold-posted ul {
  list-style: none;
  margin-top: 8px;
}

.sold-posted li {
  padding: 4px 0;
}

.campaign-field {
  padding: 8px 20px 4px;
}

.composer .campaign-field > span,
.composer .when-field legend,
.composer .buffer > span,
.composer .cal-kicker {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.composer .campaign-field {
  padding-top: 18px;
}

.composer .when-field {
  padding-top: 18px;
}

.composer .when-field legend {
  padding: 0;
}

.composer .buffer {
  padding-top: 18px;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.composer .buffer-row strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.composer .cal-bar {
  align-items: flex-start;
  padding-top: 18px;
}

.composer .cal-kicker {
  flex: 1;
}

.when-field {
  padding: 8px 20px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.when-field legend {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.when-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

.when-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font: 400 12px/1 var(--sans);
}

.when-check input {
  accent-color: var(--ink);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 500 10px/1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.info[aria-expanded="true"] {
  background: var(--ink);
  color: var(--cream);
}

.info-tip {
  margin: 0;
  color: var(--mute);
  font: 400 13px/1.45 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  max-width: 36ch;
}

.info-tip[hidden] {
  display: none;
}

.buffer {
  display: grid;
  gap: 8px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buffer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buffer-row input {
  flex: 1;
  accent-color: var(--ink);
}

.buffer-row strong {
  min-width: 5.5em;
  color: var(--ink);
  text-align: right;
}

.loc-head {
  padding-top: 22px;
}

.loc-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.loc-card {
  border-bottom: 1px solid var(--line);
}

.loc-card.is-open {
  background: var(--cream);
}

.loc-toggle {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.loc-toggle strong {
  flex: 1;
  font-weight: 600;
}

.loc-toggle span,
.loc-toggle .fold {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loc-body {
  padding-bottom: 8px;
}

.loc-body[hidden] {
  display: none;
}

.loc-cal-range {
  padding: 10px 20px 0;
  color: var(--ink);
}

.slot-note {
  padding: 8px 20px 0;
  color: var(--mute);
  font: 400 13px/1.45 var(--sans);
}

.slot-note[hidden] {
  display: none;
}

.cal-scroll {
  overflow-x: auto;
  padding: 10px 12px 20px;
  -webkit-overflow-scrolling: touch;
}

.cal-board {
  display: grid;
  grid-template-columns: 36px repeat(var(--days), minmax(52px, 1fr));
  gap: 6px;
  min-width: 100%;
}

.loc-cal.is-wide .cal-board {
  grid-template-columns: 36px repeat(var(--days), 64px);
  width: max-content;
}

.cal-gutter,
.cal-col {
  display: grid;
  gap: 6px;
}

.cal-corner,
.cal-hour-label {
  display: grid;
  place-items: center;
  height: 28px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal-col .day-label {
  display: grid;
  place-items: center;
  height: 28px;
  text-align: center;
}

.cal-col .hour {
  min-width: 0;
  width: 100%;
  height: 28px;
  padding: 0;
}

.add-loc {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  text-align: left;
}

.loc-items {
  padding: 0 20px 12px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
}

.hour.is-away {
  border-color: transparent;
  background: var(--peach);
  color: #8a6d6e;
}

.hour.is-both {
  border-color: transparent;
  background: repeating-linear-gradient(
    -45deg,
    var(--peach) 0 5px,
    var(--sky) 5px 10px
  );
  color: var(--ink);
}

.item-place {
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.item-place-label {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-place-name {
  font-size: 16px;
  font-weight: 600;
}

.item-place-address {
  margin-top: 2px;
  color: var(--mute);
  font-size: 14px;
}

.item-campaign {
  margin-top: 10px;
}

.item-campaign[hidden] {
  display: none;
}

.item-campaign .item-place-label {
  display: block;
}

.item-campaign a {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px 4px;
  border-top: 1px solid var(--line);
}

.cal-kicker,
.cal-status,
.cal-hint,
.week-label,
.day-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cal-kicker {
  color: var(--ink);
}

.cal-connect {
  padding: 0;
}

.cal-status {
  color: #6f7d70;
}

.cal-hint {
  padding: 0 20px 10px;
  color: var(--mute);
}

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

.week-nav {
  width: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.week-label {
  color: var(--ink);
}

.week-grid {
  padding: 0 12px 24px;
  display: grid;
  gap: 14px;
}

.day-row {
  display: grid;
  gap: 8px;
}

.day-label {
  color: var(--mute);
}

.hour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hour {
  min-width: 42px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.hour.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.hour.is-busy {
  border-color: transparent;
  background: var(--sky);
  color: #3d5a66;
}

.page-item {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.item-status {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label {
  padding: 18px 16px 8px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-item .section-label,
.page-item .item-place-label {
  padding: 22px 16px 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.page-item .item-copy .section-label,
.page-item .price-board .section-label,
.page-item .listing .section-label {
  padding-left: 0;
  padding-right: 0;
}

.page-item .item-place-label {
  padding: 0;
}

.page-item .item-campaign .item-place-label {
  padding: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.places {
  padding-bottom: 56px;
}

.places .section-label {
  padding: 10px 16px 4px;
}

.page-item .places .section-label {
  padding: 22px 16px 8px;
}

.place-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.place {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.place-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.place-row .place-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-fields {
  margin-top: 12px;
}

.place-fields .field {
  margin: 0 0 10px;
}

.place-fields .field:last-child {
  margin-bottom: 2px;
}

.place-left {
  min-width: 4.6em;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.place.is-on .place-left {
  color: var(--ink);
}

.place-left.is-out {
  color: var(--mute);
}

.place.is-off {
  color: var(--mute);
}

.switch {
  width: 32px;
  height: 18px;
  border: 1px solid var(--ink);
  background: #fff;
  cursor: pointer;
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--ink);
}

.place.is-on .switch {
  background: var(--ink);
}

.place.is-on .switch::after {
  left: 16px;
  background: var(--cream);
}

.place.is-off .switch {
  border-color: var(--line);
  background: var(--cream);
  cursor: pointer;
}

.place.is-off .switch::after {
  background: var(--grey);
}

.photos {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.photo {
  flex: 0 0 100%;
  height: 280px;
  scroll-snap-align: start;
  display: grid;
  place-items: end start;
}

.photo figcaption {
  padding: 10px 14px;
  color: rgba(22, 22, 22, 0.4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.item-copy {
  padding: 20px 16px 8px;
}

.item-intro {
  padding-top: 16px;
  padding-bottom: 4px;
}

.item-intro .item-place {
  margin-top: 10px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
}

.item-intro .item-desc {
  margin-top: 14px;
}

.item-pricing {
  padding-top: 8px;
}

.item-pricing .price-board {
  margin-top: 0;
}

.item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.item-heading h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}

.item-heading .price {
  color: #8a6d6e;
}

.cl-copy {
  appearance: none;
  display: inline-block;
  margin-top: 10px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.cl-copy[hidden] {
  display: none;
}

.cl-copy:active {
  background: var(--sage);
  border-color: var(--sage);
}

.item-desc {
  margin-top: 10px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
}

.item-age {
  margin-top: 10px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listings {
  margin-top: 18px;
}

.listings[hidden] {
  display: none;
}

.listing {
  padding-bottom: 8px;
}

.listing .section-label {
  padding-left: 0;
  padding-right: 0;
}

.listing .field {
  margin-bottom: 12px;
}

.price-input {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-input em {
  font-style: normal;
  color: var(--ink);
}

.price-input input {
  flex: 1;
}

.price-board {
  margin-top: 18px;
}

.price-board[hidden] {
  display: none;
}

.price-board .section-label {
  padding-left: 0;
  padding-right: 0;
}

.price-all {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.price-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.price-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.price-repost {
  min-width: 72px;
}

.price-row-top strong {
  font-weight: 600;
}

.price-now,
.price-now-input {
  appearance: none;
  min-width: 72px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  background: #fff;
  color: #8a6d6e;
  font: 600 16px/1 var(--sans);
  text-align: right;
  cursor: pointer;
}

.price-now:disabled {
  border-color: var(--line);
  color: var(--mute);
  cursor: default;
}

.price-now-input {
  cursor: text;
}

.price-history {
  margin-top: 8px;
  overflow-x: auto;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-original {
  margin-top: 4px;
  color: var(--mute);
  font-size: 12px;
}

.price-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.price-btn {
  appearance: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.price-btn-fill {
  background: var(--ink);
  color: var(--cream);
}

.price-btn:active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--ink);
}

.price-all-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-all-row .price-btn {
  flex: 1;
  height: 44px;
}

.price-undo {
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.price-undo svg {
  display: block;
  width: 16px;
  height: 16px;
}

.price-undo:active {
  background: var(--sage);
  border-color: var(--sage);
}

.price-all-row .price-undo {
  width: 44px;
  height: 44px;
}

.price-note {
  margin-top: 8px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
}

.cl-link {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cl-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cl-link input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 13px/1.4 var(--sans);
  padding: 8px 0;
}

.cl-link .login-btn {
  flex: none;
}

.activity-chart {
  display: block;
  width: calc(100% - 32px);
  height: 120px;
  margin: 0 16px;
}

.activity-chart polyline {
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-views {
  stroke: #6f8f94;
}

.line-hands {
  stroke: #8a6d6e;
}

.line-repost {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-legend {
  display: flex;
  gap: 16px;
  padding: 8px 16px 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leg-views { color: #6f8f94; }
.leg-hands { color: #8a6d6e; }

.thread {
  padding: 0 16px 18px;
}

.thread h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thread ul {
  list-style: none;
}

.thread li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.thread-item {
  cursor: pointer;
}

.thread strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.thread p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}

.thread-empty {
  padding: 0 16px 20px;
  color: var(--mute);
  font-size: 14px;
}

.item-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(390px, 100%);
  padding: 10px 16px var(--safe-bottom);
  transform: translateX(-50%);
  background: #fff;
}

.item-action {
  width: 100%;
  height: 48px;
}

.item-action-outline {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

.item-live.is-sold {
  filter: grayscale(1);
  opacity: 0.72;
}

.item-live.is-pending .photos {
  opacity: 0.85;
}

.choices {
  border: 0;
  padding: 0;
}

.choices legend {
  margin-bottom: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  font: 400 16px var(--sans);
  text-transform: none;
  letter-spacing: 0;
}

.choice input {
  accent-color: var(--ink);
}

.other-name {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

body.menu-open .item-dock {
  visibility: hidden;
}

.confirm {
  padding-bottom: var(--safe-bottom);
}

.confirm-card {
  padding: 8px 16px 20px;
}

.confirm-text {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  resize: vertical;
}

.confirm-text:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.confirm-done {
  padding: 8px 16px 24px;
}

body.is-confirming .item-live,
body.is-confirming .item-dock,
body.is-chatting .item-live,
body.is-chatting .item-dock {
  display: none;
}

body.is-chatting .page-item {
  padding-bottom: var(--safe-bottom);
}

.chat-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 8px 12px 4px;
  border-bottom: 1px solid var(--line);
}

.chat-head p {
  font-size: 16px;
  font-weight: 600;
}

.chat-via {
  margin-top: 2px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-log {
  display: grid;
  gap: 12px;
  max-height: 48vh;
  overflow-y: auto;
  padding: 16px;
}

.chat-bubble {
  display: grid;
  gap: 4px;
  max-width: 32ch;
}

.chat-bubble strong {
  font-size: 12px;
  font-weight: 600;
}

.chat-bubble span {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-bubble.is-mine {
  justify-self: end;
  text-align: right;
}

.chat-bubble.is-mine span {
  color: var(--ink);
}

.chat-compose {
  padding: 8px 16px 24px;
}

.chat-autos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.chat-autos .ghost {
  height: auto;
  padding: 0;
}

.chat-compose textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  resize: vertical;
}

body.is-confirming .page-item {
  padding-bottom: var(--safe-bottom);
}

.item-dock[hidden] {
  display: none;
}

.save.is-sent,
.ghost.is-sent {
  pointer-events: none;
  border-color: var(--sage);
  background: var(--sage);
  color: var(--ink);
}

.account-sub {
  padding: 22px 20px 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.account-copy {
  padding: 0 20px 16px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
  max-width: 38ch;
}

.account-actions {
  padding: 0 20px 24px;
}

.account-status {
  margin-top: 10px;
  color: #6f7d70;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-status[hidden] {
  display: none;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 20px 24px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.agree input {
  margin-top: 3px;
  accent-color: var(--ink);
}

.login-btn {
  padding: 0;
  height: auto;
}

.pay-row {
  display: grid;
  grid-template-columns: 1.4em 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.grab {
  display: grid;
  align-content: center;
  gap: 3px;
  width: 20px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.grab span {
  display: block;
  width: 12px;
  height: 1px;
  background: var(--mute);
}

.pay-row.is-dragging {
  background: var(--cream);
}

.pay-row.is-dragging .grab {
  cursor: grabbing;
}

.pay-rank {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.pay-copy strong {
  display: block;
  font-weight: 600;
}

.page-market {
  padding-bottom: 48px;
}

.market-head .run-title-row {
  justify-content: flex-start;
}

.market-login .setup-list {
  margin-top: 8px;
}

.pay-note {
  display: block;
  margin-top: 3px;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.35;
}

.pos-list {
  list-style: none;
}

.pos-card {
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
}

.pos-remove {
  margin: 0 20px 12px;
  height: auto;
  padding: 0;
}

.place-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 12px;
}

.place-presets[hidden] {
  display: none;
}

.place-preset {
  appearance: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.place-preset:active {
  background: var(--sage);
  border-color: var(--sage);
}
