:root {
  color-scheme: dark;
  --ys-background: #070a08;
  --ys-panel: #101712;
  --ys-panel-light: #172019;
  --ys-border: #2b3d30;
  --ys-green: #7be481;
  --ys-green-dark: #173b1e;
  --ys-text: #f4f8f4;
  --ys-muted: #aab8ad;
  --ys-danger: #ff9292;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top,
      #132019 0,
      var(--ys-background) 44%
    );
  color: var(--ys-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: var(--ys-green);
}

.ys-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.ys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.ys-brand {
  color: var(--ys-text);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
}

.ys-brand span {
  color: var(--ys-green);
}

.ys-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.ys-header nav a {
  color: var(--ys-muted);
  text-decoration: none;
}

.ys-header nav a:hover {
  color: var(--ys-green);
}

.ys-hero {
  margin-bottom: 26px;
}

.ys-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 8vw, 4.6rem);
  line-height: .95;
}

.ys-hero p {
  max-width: 700px;
  color: var(--ys-muted);
  line-height: 1.65;
}

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

.ys-card {
  padding: 24px;
  border: 1px solid var(--ys-border);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(23, 32, 25, .98),
      rgba(10, 14, 11, .98)
    );
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .25);
}

.ys-card h2,
.ys-card h3 {
  margin-top: 0;
}

.ys-full {
  grid-column: 1 / -1;
}

.ys-field {
  margin-top: 15px;
}

.ys-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ys-muted);
  font-size: .9rem;
  font-weight: 750;
}

.ys-field input,
.ys-field textarea,
.ys-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ys-border);
  border-radius: 10px;
  background: #090d0a;
  color: var(--ys-text);
  font: inherit;
}

.ys-field textarea {
  min-height: 100px;
  resize: vertical;
}

.ys-field input:focus,
.ys-field textarea:focus,
.ys-field select:focus {
  outline: 2px solid var(--ys-green);
  outline-offset: 1px;
}

.ys-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ys-muted);
}

.ys-checkbox input {
  width: 18px;
  height: 18px;
}

.ys-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid #4f9e59;
  border-radius: 10px;
  background: var(--ys-green-dark);
  color: var(--ys-text);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.ys-button:hover {
  filter: brightness(1.14);
}

.ys-button-secondary {
  border-color: var(--ys-border);
  background: #171d18;
}

.ys-button-danger {
  border-color: #8e3d3d;
  background: #3d1818;
}

.ys-message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--ys-muted);
  line-height: 1.5;
}

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

.ys-hidden {
  display: none !important;
}

.ys-profile-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.ys-datum {
  padding: 15px;
  border: 1px solid var(--ys-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}

.ys-datum small {
  display: block;
  margin-bottom: 5px;
  color: var(--ys-muted);
}

.ys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ys-garage-list {
  display: grid;
  gap: 15px;
}

.ys-vehicle-card {
  padding: 20px;
  border: 1px solid var(--ys-border);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
}

.ys-vehicle-card.primary {
  border-color: #4f9e59;
  box-shadow:
    inset 0 0 0 1px rgba(123, 228, 129, .18);
}

.ys-vehicle-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ys-vehicle-title h3 {
  margin: 0;
}

.ys-primary-badge {
  padding: 5px 9px;
  border: 1px solid #4f9e59;
  border-radius: 999px;
  color: var(--ys-green);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.ys-vehicle-details {
  margin: 12px 0 0;
  color: var(--ys-muted);
  line-height: 1.6;
}

.ys-empty {
  padding: 28px;
  border: 1px dashed var(--ys-border);
  border-radius: 14px;
  color: var(--ys-muted);
  text-align: center;
}

@media (max-width: 740px) {
  .ys-grid,
  .ys-profile-grid {
    grid-template-columns: 1fr;
  }

  .ys-full {
    grid-column: auto;
  }

  .ys-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* YARDSNIPE PROFILE PICTURE */
.ys-avatar-editor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: start;

  margin-bottom: 28px;
  padding: 24px;

  border: 1px solid rgba(119, 227, 142, 0.22);
  border-radius: 18px;

  background: rgba(119, 227, 142, 0.045);
}

.ys-avatar-preview {
  position: relative;

  width: 112px;
  height: 112px;

  display: grid;
  place-items: center;
  overflow: hidden;

  border: 2px solid rgba(119, 227, 142, 0.45);
  border-radius: 50%;

  background: #122b18;
  color: #77e38e;

  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ys-avatar-preview img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: none;
  object-fit: cover;
}

.ys-avatar-preview.has-image img {
  display: block;
}

.ys-avatar-copy h2 {
  margin: 0 0 8px;
}

.ys-avatar-copy p {
  margin: 0 0 18px;
}

.ys-avatar-file {
  display: none;
}

.ys-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ys-avatar-actions button {
  width: auto;
}

@media (max-width: 620px) {
  .ys-avatar-editor {
    grid-template-columns: 1fr;
  }

  .ys-avatar-preview {
    width: 92px;
    height: 92px;
  }
}


/* YARDSNIPE_NOTIFICATIONS_PAGE_CSS_V1 */
.ys-notifications-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.ys-kicker {
  margin: 0 0 8px;
  color: var(--ys-green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ys-notifications-hero .ys-button {
  flex: 0 0 auto;
  margin: 0 0 6px;
}

.ys-notifications-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 14px;
  color: var(--ys-muted);
}

.ys-notifications-list {
  display: grid;
  gap: 14px;
}

.ys-notification-item {
  padding: 20px;
  border: 1px solid var(--ys-border);
  border-radius: 16px;
  background: rgba(10, 14, 11, .92);
}

.ys-notification-item.is-unread {
  border-color: rgba(123, 228, 129, .5);
  box-shadow: inset 4px 0 0 rgba(123, 228, 129, .85);
  background: linear-gradient(145deg, rgba(23, 59, 30, .3), rgba(10, 14, 11, .96));
}

.ys-notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--ys-muted);
  font-size: .78rem;
}

.ys-notification-type {
  color: var(--ys-green);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ys-notification-item h2 {
  margin: 0;
  font-size: 1.12rem;
}

.ys-notification-item p {
  margin: 9px 0 0;
  color: var(--ys-muted);
  line-height: 1.6;
}

.ys-notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ys-notification-open {
  color: var(--ys-green);
  font-weight: 850;
  text-decoration: none;
}

.ys-notification-open:hover,
.ys-notification-open:focus-visible {
  text-decoration: underline;
}

.ys-notification-read {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: .82rem;
}

@media (max-width: 620px) {
  .ys-notifications-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .ys-notifications-hero .ys-button {
    margin: 0;
  }

  .ys-notification-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* YARDSNIPE_MESSAGES_PAGE_V1 */
.ys-messages-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.65fr);
  gap: 18px;
  align-items: start;
}

.ys-messages-sidebar {
  display: grid;
  gap: 18px;
}

.ys-message-section-heading,
.ys-message-conversation-header,
.ys-message-composer-actions,
.ys-message-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ys-message-section-heading h2,
.ys-message-conversation-header h2 {
  margin: 0;
}

.ys-message-user-results,
.ys-message-thread-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ys-message-user-result,
.ys-message-thread {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ys-message-user-result {
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
}

.ys-message-user-result:hover,
.ys-message-user-result:focus-visible,
.ys-message-thread:hover,
.ys-message-thread:focus-visible,
.ys-message-thread.is-active {
  border-color: rgba(119, 227, 142, 0.45);
  background: rgba(119, 227, 142, 0.07);
}

.ys-message-thread {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.ys-message-thread.is-unread strong {
  color: var(--green, #77e38e);
}

.ys-message-thread time,
.ys-direct-message time,
.ys-message-composer-actions span,
.ys-message-unread-summary {
  color: var(--text-muted, #9aa49d);
  font-size: 12px;
}

.ys-message-thread-preview {
  overflow: hidden;
  color: var(--text-muted, #9aa49d);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ys-message-thread-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green, #77e38e);
  color: #071008;
  font-size: 11px;
  font-weight: 900;
}

.ys-message-conversation-card {
  min-height: 560px;
}

.ys-message-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
}

.ys-message-list {
  max-height: 520px;
  min-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 4px;
}

.ys-direct-message {
  max-width: min(78%, 680px);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.ys-direct-message.is-mine {
  align-self: flex-end;
  border-color: rgba(119, 227, 142, 0.28);
  background: rgba(119, 227, 142, 0.08);
}

.ys-direct-message.is-theirs {
  align-self: flex-start;
}

.ys-direct-message p {
  margin: 0 0 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ys-direct-message time {
  display: block;
  text-align: right;
}

.ys-message-composer {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ys-message-composer textarea {
  width: 100%;
  resize: vertical;
}

@media (max-width: 820px) {
  .ys-messages-layout {
    grid-template-columns: 1fr;
  }

  .ys-message-conversation-card {
    min-height: 480px;
  }

  .ys-message-list {
    max-height: 430px;
  }

  .ys-direct-message {
    max-width: 88%;
  }
}


/* YARDSNIPE_GARAGE_WATCHLIST_CSS_V1 */
.ys-watchlist-panel {
  margin-top: 4px;
}

.ys-watchlist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.ys-watchlist-heading h2 {
  margin-bottom: 8px;
}

.ys-watchlist-heading p:not(.ys-watchlist-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--ys-muted);
  line-height: 1.6;
}

.ys-watchlist-eyebrow {
  margin: 0 0 7px;
  color: var(--ys-green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ys-watchlist-count,
.ys-watch-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(123, 228, 129, .48);
  border-radius: 999px;
  background: rgba(123, 228, 129, .08);
  color: var(--ys-green);
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.ys-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.ys-watchlist-grid > .ys-empty {
  grid-column: 1 / -1;
}

.ys-watchlist-card {
  padding: 18px;
  border: 1px solid rgba(123, 228, 129, .26);
  border-radius: 15px;
  background: rgba(123, 228, 129, .045);
}

.ys-watchlist-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ys-watchlist-card-top h3 {
  margin: 0;
}

.ys-watch-button.is-watching {
  border-color: #4f9e59;
  background: rgba(79, 158, 89, .28);
  color: var(--ys-green);
}

.ys-watchlist-stop {
  margin-top: 12px;
}

.ys-actions .ys-button {
  margin-top: 18px;
}

@media (max-width: 620px) {
  .ys-watchlist-heading,
  .ys-watchlist-card-top {
    flex-direction: column;
  }

  .ys-watchlist-grid {
    grid-template-columns: 1fr;
  }
}
