:root {
  --ys-readable-width: 72rem;
}

html {
  font-size: 16px;
}

body {
  color: #142033;
  line-height: 1.55;
}

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
select {
  min-height: 44px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #f4bd3f;
  outline-offset: 3px;
}

main h1,
main h2,
main h3,
main h4 {
  line-height: 1.2;
}

.ys-readable-copy {
  max-width: 65ch;
  color: #526174;
  font-size: 0.98rem;
  line-height: 1.65;
}

.ys-field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #243b63;
  font-size: 0.9rem;
  font-weight: 800;
}

.ys-field-help {
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ys-auth-brand {
  color: #153c80;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ys-auth-brand span {
  color: #d89b08;
}

.ys-auth-title {
  color: #142f61;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.ys-auth-subtitle {
  margin-top: 0.5rem;
  color: #607086;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Buyer dashboard: keep the choices small and the language conversational. */
.activity-menu-link {
  min-height: 46px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.92rem !important;
}

.activity-menu-group-label,
.activity-menu-description {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

#summaryCards > div > p:first-child {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.83rem !important;
}

#section-settings[hidden],
#section-overview[hidden],
#section-favorites[hidden],
#section-deadlines[hidden],
#section-payment-focus[hidden],
#section-fulfillment[hidden],
.activity-menu-link[hidden] {
  display: none !important;
}

/* Seller workspace: advanced areas stay available without crowding daily work. */
.seller-more-menu {
  position: relative;
  flex: 0 0 auto;
}

.seller-more-menu > summary {
  display: inline-flex;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  padding: 0.65rem 1rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}

.seller-more-menu > summary::-webkit-details-marker {
  display: none;
}

.seller-more-menu[open] > summary {
  background: #dbeafe;
  color: #163d7a;
}

.seller-more-menu.is-active > summary {
  background: #1e40af;
  color: #fff;
}

.seller-more-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  width: 14rem;
  gap: 0.35rem;
  border: 1px solid #dbe3ed;
  border-radius: 1rem;
  background: white;
  padding: 0.55rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.seller-more-menu-panel .tab {
  width: 100%;
  justify-content: flex-start;
}

#dashboardMain.dashboard-focus-mode {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 70rem !important;
}

#dashboardMain.dashboard-focus-mode > #dashboardHeaderCard,
#dashboardMain.dashboard-focus-mode > [id^="tab-"] {
  grid-column: 1 !important;
}

#listingForm > [id^="listing"],
#listingForm > button {
  scroll-margin-top: 7rem;
}

#listingBasics { order: 1; }
#listingDetails { order: 2; }
#listingPricing { order: 3; }
#listingPhotos { order: 4; }
#listingSchedule { order: 5; }
#listingForm > button[type="submit"],
#listingForm > button:not([type]) { order: 6; }

@media (min-width: 768px) {
  #listingDetails {
    grid-template-columns: 13rem minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  #listingPricing {
    grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.4fr) !important;
  }

  #listingPricing > section:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #listingPricing > section:first-child:has(#fStartWrap.hidden) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sale-format-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .sale-format-options > label {
    padding: 0.75rem !important;
  }
}

.listing-advanced-details > summary {
  cursor: pointer;
  color: #294f89;
  font-weight: 800;
}

.listing-advanced-details[open] > summary {
  margin-bottom: 1rem;
}

.listing-duration-button {
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.listing-duration-button.is-selected {
  border-color: #1e40af !important;
  background: #1e40af !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(244, 189, 63, 0.35);
}

.listing-duration-button.is-selected::before {
  content: "✓";
  margin-right: 0.4rem;
}

.listing-schedule-status {
  color: #1e3a70;
  font-size: 0.85rem;
  font-weight: 850;
}

/* Settings are intentionally narrow so each choice reads as one clear task. */
.ys-settings-shell {
  max-width: 62rem;
}

.ys-settings-card {
  border: 1px solid #dbe3ed;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.ys-settings-card h2 {
  color: #173d78;
  font-size: 1.2rem;
  font-weight: 900;
}

.ys-danger-details > summary {
  cursor: pointer;
  list-style: none;
}

.ys-danger-details > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 760px) {
  html { font-size: 17px; }

  .seller-more-menu-panel {
    position: fixed;
    right: 1rem;
    left: 1rem;
    top: auto;
    width: auto;
  }

  .dashboard-quick-actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }
}
