:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  background: #f3f5f7;
  color: #17212b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.app-shell {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100vh;
  justify-items: center;
  padding: 24px;
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 620px);
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(23 33 43 / 8%);
}

.nav-button {
  display: grid;
  min-height: 52px;
  place-items: center;
  gap: 2px;
  padding: 5px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #63717d;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
}

.nav-button span {
  font-size: 9px;
}

.nav-button:hover,
.nav-button.is-active {
  background: #e8f6fc;
  color: #1676a5;
}

.screen {
  width: min(100%, 620px);
}

.screen:not(.is-visible) {
  display: none;
}

.welcome-card {
  width: min(100%, 440px);
  padding: 40px 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgb(23 33 43 / 10%);
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 18px;
  background: #229ed9;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: #229ed9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
}

.description {
  margin: 16px 0 24px;
  color: #63717d;
  line-height: 1.5;
}

.status {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f6fc;
  color: #1676a5;
  font-size: 14px;
  font-weight: 700;
}

.status.is-error {
  background: #fff0f0;
  color: #c0392b;
}

.preview-badge {
  margin: 12px 0 0;
  color: #a66a00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.user-info {
  margin: 16px 0 0;
  color: #63717d;
  font-size: 14px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.stat {
  display: grid;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 12px;
  background: #f3f5f7;
  color: #63717d;
  font-size: 11px;
}

.stat strong {
  color: #17212b;
  font-size: 18px;
}

.listings-section {
  width: min(100%, 620px);
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgb(23 33 43 / 8%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 21px;
}

.section-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8f6fc;
  color: #1676a5;
  font-size: 13px;
  font-weight: 700;
}

.listings-status {
  margin: 16px 0 0;
  color: #63717d;
  font-size: 14px;
}

.listings-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.listing-card {
  padding: 16px;
  border: 1px solid #e5e9ec;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:hover,
.listing-card:focus-visible {
  border-color: #229ed9;
  box-shadow: 0 4px 14px rgb(34 158 217 / 14%);
  outline: none;
}

.listing-card-header,
.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.listing-card-header {
  align-items: flex-start;
}

.listing-price {
  flex-shrink: 0;
  color: #1676a5;
  font-weight: 700;
}

.listing-text {
  margin: 10px 0;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.listing-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #63717d;
  font-size: 12px;
}

.listing-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f5f7;
  font-weight: 700;
}

.listing-status--active {
  background: #e8f8ee;
  color: #218c4b;
}

.listing-status--pending {
  background: #fff7df;
  color: #9a7110;
}

.listing-status--rejected {
  background: #fff0f0;
  color: #c0392b;
}

.listing-status--closed {
  background: #f3f5f7;
  color: #63717d;
}

.listing-details {
  width: min(100%, 620px);
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgb(23 33 43 / 8%);
}

.placeholder-screen,
.profile-screen,
.data-card {
  width: min(100%, 620px);
}

.placeholder-card,
.profile-card,
.data-card {
  padding: 40px 28px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgb(23 33 43 / 8%);
  text-align: center;
}

.screen-kicker {
  display: block;
  margin-bottom: 5px;
  color: #229ed9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-card h2 {
  margin: 0;
  font-size: 23px;
}

.deals-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.deal-card {
  padding: 16px;
  border: 1px solid #e5e9ec;
  border-radius: 14px;
  text-align: left;
}

.deal-info {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  color: #63717d;
  font-size: 13px;
}

.deal-info strong {
  color: #17212b;
}

.placeholder-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 36px;
}

.placeholder-card h2,
.profile-card h2 {
  margin: 0;
  font-size: 23px;
}

.placeholder-card p {
  margin: 14px auto 20px;
  max-width: 440px;
  color: #63717d;
  line-height: 1.5;
}

.coming-soon {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #63717d;
  font-size: 12px;
  font-weight: 700;
}

.profile-screen-stats {
  margin-top: 20px;
}

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

.details-heading h2 {
  margin: 0;
  font-size: 21px;
}

.close-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3f5f7;
  color: #63717d;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.details-status {
  display: inline-block;
  margin-top: 16px;
}

.details-text {
  margin: 18px 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.details-item {
  padding: 12px;
  border-radius: 12px;
  background: #f3f5f7;
}

.details-item span {
  display: block;
  margin-bottom: 4px;
  color: #63717d;
  font-size: 12px;
}

.details-item strong {
  overflow-wrap: anywhere;
}

.details-reason {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff7df;
  color: #795b0c;
  font-size: 14px;
}

.listing-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e9ec;
}

.listing-edit-form h3 {
  margin: 0;
  font-size: 17px;
}

.listing-edit-form label {
  display: grid;
  gap: 6px;
  color: #63717d;
  font-size: 13px;
  font-weight: 700;
}

.listing-edit-form input,
.listing-edit-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7dfe5;
  border-radius: 10px;
  background: #ffffff;
  color: #17212b;
  font: inherit;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.secondary-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.primary-button {
  background: #229ed9;
  color: #ffffff;
}

.secondary-button {
  background: #f3f5f7;
  color: #63717d;
}

.edit-status {
  min-height: 18px;
  margin: 0;
  color: #218c4b;
  font-size: 13px;
}

.edit-status.is-error {
  color: #c0392b;
}