/* Colors, fonts and base type come from chronovox.css, loaded before this file. */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.actions {
  display: grid;
  gap: 0.75rem;
}

.btn {
  display: block;
  text-decoration: none;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.filename {
  font-weight: 600;
  overflow-wrap: anywhere;
  margin: 0 0 0.5rem;
}

progress {
  width: 100%;
  height: 1rem;
  accent-color: var(--accent);
}

.status {
  margin: 0.5rem 0 0;
}

.note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Recent uploads and the confirmation card (slice 2) --- */

a {
  color: var(--link);
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

#next {
  margin-top: 1rem;
}

.recent ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.recent .when {
  color: var(--muted);
}

mark,
.flag {
  background: #e3edf7;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.flag {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.event {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
}

.event legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0 0.4rem;
  font-weight: 600;
}

.include input {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  accent-color: var(--accent);
}

.kind {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

blockquote {
  margin: 0.25rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.said {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.fields {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 30rem) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }

  .field:first-child,
  .field:last-child {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field.flagged input {
  border-color: var(--link);
  background: #eef5fb;
}

.field.has-error input {
  border-color: var(--danger);
}

.error,
.error-summary {
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.error-summary {
  margin-bottom: 1rem;
  font-weight: 600;
}

.notice {
  padding: 0.75rem 1rem;
  border: 1px solid #b9d8b9;
  border-radius: 0.4rem;
  background: #e8f3e8;
}

button.btn {
  width: 100%;
  margin-top: 0.5rem;
  font: inherit;
  font-weight: 600;
}

details {
  margin-top: 2rem;
  color: var(--muted);
}

.back {
  margin-top: 1.5rem;
}

/* --- Destinations and calendar feed (slice 2b) --- */

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.choice label,
.dest label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-weight: 600;
}

.choice input,
.dest input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.dest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.dest label {
  font-weight: 400;
}

.dest-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.event-links {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.calendar form {
  display: grid;
  gap: 0.6rem;
}

.confirm-replace {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.95rem;
}

.feed-url code {
  display: block;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  overflow-wrap: anywhere;
  user-select: all;
}

.steps {
  padding-left: 1.25rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Phone hand-off QR (computers only) --- */

.phone-qr {
  display: none;
}

@media (min-width: 48rem) and (hover: hover) {
  .phone-qr {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: #fff;
  }
}

.phone-qr .qr {
  flex: 0 0 7.5rem;
}

.phone-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.phone-qr p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Platforms and calendars: picked once per musician, revealed per event --- */

.dest-group {
  display: grid;
  gap: 0.35rem;
}

.dest-group > label {
  font-weight: 400;
}

/* Folded away until "Share publicly" / "Calendar" is ticked. Browsers without :has() just show them. */
.dest-group .dest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding-left: 1.6rem;
}

.dest-group:has(> label input:not(:checked)) .dest-options {
  display: none;
}

.dest-options label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.dest-options input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.platform-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.platform-picks legend {
  padding: 0 0.3rem;
  font-weight: 600;
}

.platform-picks label {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.platform-picks input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.platforms-settings form > .btn {
  margin-top: 0.25rem;
}

/* --- Recording tips, poster photos, posters and posts (slice 3) --- */

.tips {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tips li + li {
  margin-top: 0.3rem;
}

.photos {
  margin-bottom: 1.5rem;
}

.frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.frame {
  position: relative;
  display: block;
  cursor: pointer;
}

.frame input {
  position: absolute;
  opacity: 0;
}

.frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid transparent;
  border-radius: 0.4rem;
  background: var(--line);
}

.frame input:checked + img {
  border-color: var(--accent);
}

.frame input:focus-visible + img {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.more-frames {
  margin-top: 0.5rem;
}

.more-frames .frames {
  margin-top: 0.5rem;
}

.posting-note {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.share-kit {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.poster {
  margin: 0;
}

.poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
}

.poster figcaption .btn {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.poster-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  border-radius: 0.4rem;
  color: var(--muted);
}

.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

/* --- Poster style (brand kit) and own posters (slice 3b) --- */

.style-settings form > .btn {
  margin-top: 0.75rem;
}

.style-picks {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.style-picks legend {
  padding: 0 0.25rem;
  font-weight: 600;
}

.style-picks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.style-picks input[type="color"] {
  width: 2.75rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: none;
}

.font-picker .font-mood {
  border-top: 1px solid var(--line);
}

.font-picker summary {
  padding: 0.75rem 0.25rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 600;
}

.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.5rem;
  padding: 0 0 0.75rem;
}

.style-picks .font-option {
  position: relative;
  display: block;
  padding: 0.25rem;
  border: 2px solid var(--line);
  border-radius: 0.4rem;
  cursor: pointer;
}

.font-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.font-option img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  background: var(--ink);
}

.font-option .font-name {
  display: block;
  padding: 0.2rem 0.1rem 0;
  font-size: 0.85rem;
}

.font-option:has(input:checked) {
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor;
}

.font-option:has(input:checked) .font-name::before {
  content: "\2713  ";
}

.font-option:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.poster.preview {
  max-width: 18rem;
  margin: 0 auto 1rem;
}

.poster.preview figcaption {
  margin-top: 0.4rem;
  text-align: center;
}

.assets {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 30rem) {
  .assets {
    grid-template-columns: 1fr 1fr;
  }
}

.asset {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.asset h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.asset input[type="file"],
.own-poster input[type="file"] {
  display: block;
  width: 100%;
  margin-bottom: 0.4rem;
  font: inherit;
  font-size: 0.9rem;
}

.asset-thumb {
  display: block;
  max-width: 100%;
  max-height: 8rem;
  margin-bottom: 0.5rem;
  border-radius: 0.35rem;
}

/* Checkerboard behind logos so see-through edges are visible. */
.asset-thumb.logo {
  padding: 0.5rem;
  background: repeating-conic-gradient(#e8e2d8 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}

.btn.small {
  display: inline-block;
  width: auto;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
}

.btn.quiet {
  border-color: var(--line);
  color: var(--muted);
}

.own-poster summary {
  cursor: pointer;
  color: var(--accent);
}

.own-poster[open] {
  padding-bottom: 0.25rem;
}

.own-poster {
  margin-top: 0;
  color: inherit;
}

/* --- Public page link and deleting (slice 4) --- */

.event-page-link {
  margin: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.danger-zone {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.danger-zone details {
  margin-top: 0;
  color: inherit;
}

.danger-zone summary {
  cursor: pointer;
  color: var(--danger);
  font-weight: 600;
}

.btn.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

/* --- Slice 5: where an event actually got to, and the manager's posting console --- */

.publish-status {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.publish-status li + li {
  margin-top: 0.25rem;
}

.publish-status .ok {
  color: #1b5e20;
}

.publish-status .error {
  color: var(--danger);
  font-size: 0.95rem;
}

.warn {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.flash {
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #b9d8b9;
  border-radius: 0.4rem;
  background: #f2f9f2;
}

.card {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line, #ddd);
  border-radius: 0.4rem;
}

.card h3 {
  margin: 0 0 0.2rem;
}

.card p {
  margin: 0.2rem 0 0;
}

form.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

form.row span {
  flex: 1 1 8rem;
}

form.danger {
  margin-top: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line, #ddd);
  text-align: left;
  vertical-align: top;
}

/* --- Report a problem (slice 6) --- */

.report-link {
  max-width: 34rem;
  margin: -1.5rem auto 0;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.report-link a {
  color: var(--muted);
}

.bug-report .field {
  margin: 0 0 1rem;
}

.bug-report .muted {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

/* --- When should it go out? and the Posts lists (WO #434) --- */

fieldset.when,
fieldset.usually {
  margin: 0.9rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

fieldset.when legend,
fieldset.usually legend {
  padding: 0;
  font-weight: 600;
}

.when-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
}

.when-opt input {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
}

.when-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.25rem 1.8rem;
}

.when-pick input {
  flex: 1 1 8rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
}

fieldset.when.js-on:not(:has(input[value="pick"]:checked)) .when-pick {
  display: none;
}

fieldset.when p.muted {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

ul.posts {
  margin: 0;
  padding: 0;
  list-style: none;
}

li.post {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

li.post .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-top: 0.15rem;
}

.chan {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
}

.channels {
  display: inline-flex;
  gap: 0.35rem;
}

form.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

li.post button,
form.settings button {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  font: inherit;
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

li.post details.change {
  margin-top: 0.4rem;
}

li.post details.change summary {
  cursor: pointer;
  color: var(--muted);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

ul.results {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}

ul.results li {
  margin: 0.2rem 0;
}

ul.results form {
  margin-top: 0.4rem;
}

section#posting-settings details {
  margin-top: 0;
}

section#posting-settings summary {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

form.settings {
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

label.setting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

label.setting select {
  min-height: 2.75rem;
  font: inherit;
}

.terms-agree {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

.terms-agree input {
  margin-top: 0.2rem;
}

.terms-error {
  color: var(--danger);
  font-weight: 600;
}

/* Onboarding (WO #403): trial banner, setup checklist, one-time link pages, seller board. */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.banner {
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: #fff;
  padding: 0.6rem 0.9rem;
  margin: 0 0 1rem;
}
.banner.ended {
  border-top-color: var(--danger);
}
.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.checklist > li {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.5rem;
}
.checklist > li.done {
  opacity: 0.75;
}
.checklist h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.checklist pre {
  white-space: pre-wrap;
  background: var(--bg);
  border: 1px dashed var(--line);
  padding: 0.6rem;
}
.secret {
  border: 2px solid var(--danger);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
  background: #fff;
  overflow-wrap: break-word;
}
/* A long link may break anywhere, but only inside the link itself: ordinary words in a card never split. */
.url {
  overflow-wrap: anywhere;
  word-break: normal;
}
.secret svg {
  max-width: 11rem;
  height: auto;
}
.board td.stuck,
.stuck {
  color: var(--danger);
  font-weight: 600;
}

/* Seller console: one-handed on a phone. Big tap targets, cards instead of a table. */
.seller button,
.seller select,
.seller input[type="text"],
.seller input[type="email"],
.seller input[type="tel"] {
  min-height: 3rem;
  font-size: 1rem;
}
.seller form button {
  width: 100%;
}
.seller .slot-actions form button {
  width: auto;
  min-height: 2.75rem;
}
.seller .choice label {
  display: block;
  padding: 0.5rem 0;
}
.fullqr {
  text-align: center;
  /* Nothing may push the page wider than the phone. */
  overflow-wrap: break-word;
  max-width: 100%;
}
.fullqr svg {
  width: 100%;
  max-width: 26rem;
  height: auto;
  display: block;
  margin: 1rem auto;
  background: #fff;
}

/* Seller console "New customer": one label above each box, full width on a phone. */
.stacked > label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.stacked > label input,
.stacked > label select {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.stacked .choice {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Seller QR handover: the note is for the seller, the rest for the customer looking at the screen. */
.fullqr .seller-note {
  color: var(--muted, #666);
  font-size: 0.9rem;
}

.fullqr code.link {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.fullqr a.button {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* Console: the Website (widget) section */
#website textarea { width: 100%; font: 0.85rem/1.4 ui-monospace, monospace; }
#website .widget-options { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
#website .widget-options input[type="number"] { width: 4rem; }
#widget-preview { width: 100%; border: 1px solid #ccc; border-radius: 0.4rem; background: #fff; }

/* Specials on the confirmation card. */
.specials-card {
  margin: 1.5rem 0;
}

.fields.pairs .field {
  grid-column: auto;
}

.legend-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.day-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.field .day-picks label {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin: 0;
  font-weight: 400;
}

.field .day-picks input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  accent-color: var(--accent);
}

.weekly {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.weekly label {
  font-weight: 600;
}

.weekly-when {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  margin-top: 0.4rem;
}

.weekly-when select,
.weekly-when input[type="time"] {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  font: inherit;
}

.special-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* --- Photos for a post: the poster, then up to nine more pictures --- */

.photo-strip {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.photo-strip h4 {
  margin: 0;
  font-size: 1.05rem;
}

.photo-strip p {
  margin: 0;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
}

.poster-tile {
  border-color: var(--ink);
}

.tile > img,
.tile-note {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.35rem;
  background: var(--line);
}

.tile-note {
  display: grid;
  place-items: center;
  padding: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.tile-note.error {
  color: var(--danger);
}

.tile-num {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  min-width: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5rem;
  text-align: center;
}

.tile-actions {
  display: flex;
  gap: 0.25rem;
}

.tile-btn {
  flex: 1 1 0;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.tile-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.tile-btn.remove {
  color: var(--danger);
}

.tile-btn.bg {
  flex: none;
  min-height: 2.5rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.8rem;
  line-height: 1.2;
}

.tile-btn.link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  text-decoration: underline;
}

.tile-bg {
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--muted);
}

.tile-bg.on {
  font-weight: 600;
}

.adders {
  display: grid;
  gap: 0.4rem;
}

.adder summary {
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.adder[open] > :not(summary) {
  margin-top: 0.5rem;
}

.picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.pick {
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 0.4rem;
  background: var(--line);
  cursor: pointer;
}

.pick img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.3rem;
}

.pick.pending {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: default;
}

@media (min-width: 640px) {
  .strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .picks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Claim page: the business name the owner is confirming, and a Confirm button that cannot be missed. */
.bizname {
  margin: 0.25rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: break-word;
}

.btn.big {
  padding: 1.15rem 1.25rem;
  font-size: 1.25rem;
  min-height: 3.75rem;
}


/* New tips post: tick earlier photos. */
.photo-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.photo-check {
  position: relative;
  display: block;
  border: 2px solid var(--line);
  border-radius: 0.4rem;
  cursor: pointer;
}

.photo-check input {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 1.4rem;
  height: 1.4rem;
}

.photo-check img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-check:has(input:checked) {
  border-color: var(--accent, #1f6f43);
}

.photo-check.pending {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  color: var(--muted);
  font-size: 0.75rem;
}

.tip-order {
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .photo-checks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
