/*
 * Sell an item / Edit listing (items/new, items/edit, items/_form, items/_sell_aside).
 *
 * The controllers that show and hide parts of the form do it with Tailwind's
 * `hidden`, so nothing here sets `display` on those elements unguarded (it's
 * `:not(.hidden)`), or this sheet could win over it. The Boost section's border
 * is the shared boost gradient (boost.css).
 */

.sf-page { padding-bottom: 56px; }

.sf-page ::selection { background: #96E0FF; }

.sf-page :is(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid #2DC1FF;
  outline-offset: 2px;
}

.sf-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* -------------------------------------------------------------------- title */

.sf-title { margin-top: 22px; }
.sf-title--top { margin-top: 10px; }

.sf-title h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.05;
  color: #222222;
}

.sf-title p {
  margin: 8px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
  text-wrap: pretty;
}

.sf-title a {
  font-weight: 700;
  color: #10333F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------- grid */

.sf-grid {
  margin-top: 20px;
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.sf-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sf-aside {
  display: grid;
  gap: 12px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .sf-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 1020px) {
  .sf-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .sf-aside {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
  }
}

/* ------------------------------------------------------- errors and notices */

.sf-errors {
  padding: 14px 16px;
  border-radius: 14px;
  background: #FFF1EA;
  border: 1.5px solid #F86028;
  color: #222222;
}

.sf-errors__title { margin: 0; font-size: 14.5px; font-weight: 700; }

.sf-errors__list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.sf-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFCEB;
  border: 1px solid #E0D468;
  font-size: 13.5px;
  line-height: 1.45;
  color: #444444;
}

.sf-note strong { color: #222222; }

/* ------------------------------------------------------------- admin tools */

.sf-admin {
  background: #F4EFD3;
  border: 1px solid #DCD5B4;
  border-radius: 14px;
  overflow: hidden;
}

.sf-admin__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  color: #222222;
}

.sf-admin__head::-webkit-details-marker { display: none; }

.sf-admin__head > svg { flex: none; transition: transform 0.15s; }
.sf-admin[open] .sf-admin__head > svg { transform: rotate(180deg); }

.sf-admin__chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #222222;
  color: #F8F088;
}

.sf-admin__title { flex: 1; font-size: 14.5px; font-weight: 700; }

.sf-admin__summary { font-size: 13px; color: #666666; }

.sf-admin__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 16px;
}

.sf-admin__search { position: relative; }

.sf-admin__results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1.5px solid #222222;
  border-radius: 10px;
}

.sf-admin__chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 42px;
  padding: 0 6px 0 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #222222;
  font-size: 14px;
  font-weight: 700;
  color: #222222;
}

.sf-admin__chosen button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sf-admin__chosen button:hover { background: #F4EFD3; }

/* --------------------------------------------------------------- the cards */

.sf-card {
  background: #FFFFFF;
  border: 1px solid #E2DCBC;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sf-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-card__head > div { flex: 1; min-width: 0; }

.sf-card__title { margin: 0; font-size: 17px; font-weight: 700; color: #222222; }

.sf-card__sub { margin: 2px 0 0; font-size: 13px; color: #666666; }

/* Each step's number tile takes its own colour, then goes dark once the step is
   complete (sell-form). */
.sf-step {
  --step: #96E0FF;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  border: 1.5px solid #222222;
  background: var(--step);
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
}

.sf-step--2 { --step: #F8F088; }
.sf-step--3 { --step: #FFC2A6; }

.sf-step--done { background: #222222; color: var(--step); }

/* ------------------------------------------------------------------- fields */

.sf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sf-fieldset { margin: 0; padding: 0; border: 0; }

.sf-label {
  display: flex;
  justify-content: space-between;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #222222;
}

.sf-fieldset > .sf-label { margin-bottom: 8px; }

.sf-count { font-size: 12.5px; font-weight: 600; color: #666666; }

.sf-help { font-size: 12.5px; line-height: 1.45; color: #666666; }

.sf-mini-label {
  margin: 0 0 -6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #666666;
}

.sf-input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid #DCD5B4;
  background: #FFFCEB;
  font-size: 15.5px;
  color: #222222;
  font-family: inherit;
}

.sf-input:focus { outline: none; border-color: #2DC1FF; background: #FFFFFF; }
.sf-input:focus-visible { outline: none; }

.sf-input--white { height: 42px; background: #FFFFFF; font-size: 14.5px; }

.sf-input--area {
  height: auto;
  min-height: 120px;
  resize: vertical;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.45;
}

.sf-select {
  padding-right: 38px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Auto-fill marks what it filled in, briefly. */
.sf-filled { box-shadow: 0 0 0 3px #96E0FF; transition: box-shadow 0.3s; border-radius: 12px; }

/* -------------------------------------------------------------------- pills */

.sf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-pill { cursor: pointer; }

.sf-pill span {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid #E2DCBC;
  background: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  color: #222222;
}

.sf-pill:hover span { border-color: #222222; }

.sf-pill input:checked + span {
  background: #222222;
  border-color: #222222;
  color: #FFF9D0;
}

.sf-pill input:focus-visible + span { outline: 2px solid #2DC1FF; outline-offset: 2px; }

/* ------------------------------------------------------------ check boxes */

/* A real checkbox, hidden, with a drawn box after it. */
.sf-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #222222;
}

.sf-check > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sf-check__box,
.sf-boost__toggle .sf-check__box {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid #BCB28A;
  background: #FFFFFF;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-check input:checked + .sf-check__box,
.sf-boost__toggle input:checked + .sf-check__box {
  border-color: #222222;
  background: #2DC1FF;
  color: #10333F;
}

.sf-check input:focus-visible + .sf-check__box { outline: 2px solid #2DC1FF; outline-offset: 2px; }

.sf-check__title { display: block; font-size: 13.5px; font-weight: 700; }

.sf-check--inline { align-items: center; height: 50px; }
.sf-check--inline .sf-check__box { margin-top: 0; }
.sf-check--inline .sf-check__title { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------ photos */

.sf-photos { display: flex; flex-direction: column; gap: 10px; }

/* No new photos yet: the drop zone, not the grid. sell-form sets sf-photos--has. */
.sf-drop {
  width: 100%;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1.5px dashed #BCB28A;
  background: linear-gradient(135deg, #E6F7FF 0%, #FFFCEB 55%, #FFF1EA 100%);
  cursor: pointer;
}

.sf-drop:hover { border-color: #222222; }

.sf-drop--over,
.sf-drop--over:hover { border-color: #2DC1FF; background: #E6F7FF; }

.sf-drop__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F8F088;
  border: 1px solid #E0D468;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
}

.sf-drop__title { font-size: 15.5px; font-weight: 700; color: #222222; }

.sf-drop__hint { font-size: 13px; line-height: 1.45; color: #666666; }

.sf-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  border-radius: 12px;
}

/* The new-photo grid waits for its first photo (the drop zone stands in). */
.sf-photos:not(.sf-photos--has) .sf-tiles--new { display: none; }
.sf-photos.sf-photos--has .sf-drop { display: none; }

.sf-tiles--new.sf-drop--over { outline: 2px dashed #2DC1FF; outline-offset: 4px; }

.sf-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: grab;
  border: 1px solid #E2DCBC;
  background-color: #F4EFD3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* The cover is the first photo overall: the first current one when editing,
   otherwise the first new one. */
.sf-tile__cover {
  display: none;
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #F8F088;
  border: 1px solid #E0D468;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #222222;
}

.sf-tiles--existing > .sf-tile:first-child,
.sf-tiles--new:not(.sf-tiles--after-existing) > .sf-tile:first-child { border: 2px solid #222222; }

.sf-tiles--existing > .sf-tile:first-child .sf-tile__cover,
.sf-tiles--new:not(.sf-tiles--after-existing) > .sf-tile:first-child .sf-tile__cover { display: block; }

.sf-tile--dragging { border: 2px solid #2DC1FF !important; }
.sf-tile--ghost { opacity: 0.4; }

.sf-tile__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #DCD5B4;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sf-tile__remove:hover { border-color: #222222; }

.sf-tile-add {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px dashed #BCB28A;
  background: #FFFCEB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #222222;
  cursor: pointer;
}

.sf-tile-add:hover { border-color: #222222; }
.sf-tile-add[hidden] { display: none; }

.sf-tile-add__count { font-size: 11.5px; font-weight: 600; color: #666666; }

/* ------------------------------------------------------------- crop pop-up */

/* image-cropper toggles hidden/flex on it; display is left to those classes. */
.sf-crop {
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(20, 20, 20, 0.75);
}

.sf-crop__panel {
  width: 100%;
  max-width: 680px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid #222222;
  overflow: hidden;
}

.sf-crop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #EDE7C8;
}

.sf-crop__title { margin: 0; font-size: 17px; font-weight: 700; color: #222222; }

.sf-crop__count { margin: 2px 0 0; font-size: 13px; color: #666666; }

.sf-crop__close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid #E2DCBC;
  background: #FFFFFF;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sf-crop__stage {
  flex: 1;
  min-height: 300px;
  max-height: 62vh;
  overflow: hidden;
  background: #222222;
}

.sf-crop__stage img { display: block; max-width: 100%; }

.sf-crop__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #EDE7C8;
}

.sf-crop__skip {
  padding: 8px 6px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
}

.sf-crop__skip:hover { color: #222222; text-decoration: underline; }

.sf-crop__actions { display: flex; gap: 8px; }

/* -------------------------------------------------------------------- video */

.sf-video { display: flex; flex-direction: column; gap: 10px; }

.sf-video__row:not(.hidden) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #E2DCBC;
}

.sf-video__icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: #F4EFD3;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-video__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.sf-video__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-video__hint { margin: 0; font-size: 12px; color: #666666; }

.sf-video__state {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #E2DCBC;
  background: #FFFCEB;
}

.sf-video__state--error { background: #FFF1EA; border-color: #F86028; }

.sf-video__state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sf-video__pct { margin-top: 6px; text-align: right; }

.sf-video__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
}

.sf-video__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.sf-video__bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sf-video__ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #0E6E9E;
}

/* -------------------------------------------------------------- small buttons */

.sf-btn {
  height: 36px;
  flex: none;
  padding: 0 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #222222;
  font-size: 13.5px;
  font-weight: 700;
  color: #222222;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sf-btn:hover { background: #96E0FF; }

.sf-btn--ink { background: #222222; color: #FFF9D0; }
.sf-btn--ink:hover { background: #0E6E9E; }

.sf-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.12);
  overflow: hidden;
}

.sf-progress__bar { height: 100%; border-radius: 999px; background: #2DC1FF; transition: width 0.3s; }

/* ---------------------------------------------------------------- auto-fill */

.sf-ai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #EDF2D8;
  border: 1px solid #C9D8B4;
}

.sf-ai__icon { flex: none; }

.sf-ai__text {
  flex: 1 1 200px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #333333;
}

.sf-ai__btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #222222;
  font-size: 13.5px;
  font-weight: 700;
  color: #222222;
  cursor: pointer;
}

.sf-ai__btn:hover:not(:disabled) { background: #96E0FF; }

.sf-ai__btn:disabled { border-color: #C9D8B4; color: #8A9A7A; cursor: default; }

/* ------------------------------------------------------------------ pricing */

.sf-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
}

.sf-price__field { flex: 0 1 200px; }

.sf-money {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid #DCD5B4;
  background: #FFFCEB;
  font-size: 20px;
  font-weight: 700;
  color: #666666;
}

.sf-money:focus-within { border-color: #2DC1FF; background: #FFFFFF; }

.sf-money input {
  flex: 1;
  min-width: 0;
  padding-left: 4px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #222222;
}

.sf-money input:focus-visible { outline: none; }

.sf-free-note {
  display: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444444;
}

.sf-free-note strong { color: #222222; }

/* "It's free" picked: the note instead of the price. */
.sf-pricing:has(input[name="item[is_free]"][value="true"]:checked) .sf-price { display: none; }
.sf-pricing:has(input[name="item[is_free]"][value="true"]:checked) .sf-free-note { display: block; }

/* -------------------------------------------------------------------- boost */

.sf-boost {
  border-radius: 16px;
  padding: clamp(18px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  --np-boost-speed: 6s;
}

/* Picked: a thicker border, moving faster. */
.sf-boost:has(#boost_on_create:checked) { border-width: 3px; --np-boost-speed: 2.5s; }

.sf-boost__tile {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
}

.sf-boost__optional { font-size: 13px; font-weight: 600; color: #666666; }

.sf-boost__toggle {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #E2DCBC;
  background: #FFFFFF;
  cursor: pointer;
}

.sf-boost__toggle:has(input:checked) { border-color: #222222; background: #FFFCEB; }
.sf-boost__toggle:has(input:focus-visible) { outline: 2px solid #2DC1FF; outline-offset: 2px; }

.sf-boost__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.sf-boost__title { font-size: 15px; font-weight: 700; color: #222222; }

.sf-boost__sub { font-size: 13.5px; line-height: 1.45; color: #555555; }

.sf-boost__price { font-size: 17px; font-weight: 700; color: #222222; white-space: nowrap; }
.sf-boost__price s { font-size: 13px; font-weight: 600; color: #666666; margin-right: 4px; }

/* ------------------------------------------------------------------ actions */

.sf-actions {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.sf-actions__buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sf-upload:not(.hidden) { display: block; width: min(100%, 320px); }

.sf-upload__status { margin: 6px 0 0; font-size: 12.5px; color: #666666; text-align: right; }

.sf-cancel {
  height: 48px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  text-decoration: none;
}

.sf-cancel:hover { color: #B23A0E; }

.sf-submit {
  min-width: 180px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-radius: 12px;
  border: 2px solid #222222;
  background: linear-gradient(115deg, #2DC1FF 0%, #96E0FF 50%, #F8F088 100%);
  box-shadow: 0 3px 0 #222222;
  font-size: 15.5px;
  font-weight: 700;
  color: #10333F;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.sf-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #222222; }
.sf-submit:active { transform: translateY(2px); box-shadow: 0 1px 0 #222222; }

/* Not everything filled in yet (sell-form): it says what's missing if pressed. */
.sf-submit--waiting,
.sf-submit--waiting:hover,
.sf-submit--waiting:active {
  background: #B3E3EA;
  border-color: #A9C2BF;
  box-shadow: none;
  transform: none;
  color: #4F6E6B;
  cursor: default;
}

.sf-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

@media (max-width: 519px) {
  .sf-actions__buttons { width: 100%; justify-content: space-between; }
  .sf-submit { flex: 1; }
}

/* -------------------------------------------------------------------- aside */

.sf-tips {
  background: #FFFFFF;
  border: 1.5px solid #222222;
  border-radius: 16px;
  overflow: hidden;
}

.sf-tips__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  background: linear-gradient(115deg, #96E0FF 0%, #F8F088 60%, #FFC2A6 100%);
  border-bottom: 1.5px solid #222222;
}

.sf-tips__icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1.5px solid #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
}

.sf-tips__title { margin: 0; font-size: 15px; font-weight: 700; color: #222222; }

.sf-tips__list { margin: 0; padding: 4px 18px 8px; }

.sf-tip { padding: 12px 0; }
.sf-tip + .sf-tip { border-top: 1px solid #EDE7C8; }

.sf-tip dt { font-size: 14px; font-weight: 700; color: #222222; }

.sf-tip dd {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #555555;
  text-wrap: pretty;
}

.sf-wanted {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid #222222;
  background: linear-gradient(160deg, #EDF2D8 0%, #E6F7FF 100%);
}

.sf-wanted__title { margin: 0; font-size: 14px; font-weight: 700; color: #222222; }

.sf-wanted__sub { margin: 2px 0 0; font-size: 12.5px; color: #666666; }

.sf-wanted__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.sf-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid #222222;
  font-size: 13px;
  font-weight: 700;
  color: #222222;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.sf-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 0 #222222; }

.sf-chip--0 { background: #96E0FF; }
.sf-chip--1 { background: #F8F088; }
.sf-chip--2 { background: #FFC2A6; }
.sf-chip--3 { background: #FFFFFF; }
.sf-chip--4 { background: #2DC1FF; }

/* The sponsored slot above the title. */
.sf-sponsored { margin-top: 4px; }
