:root {
  --ui-font: "Segoe UI", "Segoe UI Web", "wf_segoe-ui_normal", "Helvetica Neue", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;
  --display-font: "Space Grotesk", "Avenir Next", sans-serif;
  --accent-font: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  --bg: #eef2f6;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-subtle: #f7f9fc;
  --surface-muted: #f2f5f9;
  --border: #d7dde7;
  --border-strong: #c6cfdb;
  --muted: #5f6f83;
  --muted-soft: #8390a2;
  --text: #0f1728;
  --text-soft: #243346;
  --primary: #18385f;
  --primary-strong: #102846;
  --primary-soft: #e9eff6;
  --accent-green: #1c7b5f;
  --accent-gold: #b8821f;
  --accent-red: #a84646;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.04);
  --shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.12);
  color: var(--text);
  font-family: var(--ui-font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(24, 56, 95, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(28, 123, 95, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border-radius: 10px;
  border: 1px solid var(--primary);
  padding: 0.64rem 0.98rem;
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
  font-family: var(--accent-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

button:hover:not(:disabled) {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

button.secondary,
.button-link.secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-soft);
}

button.secondary:hover:not(:disabled),
.button-link.secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

button.ghost,
.button-link.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

button.ghost:hover:not(:disabled),
.button-link.ghost:hover {
  background: rgba(24, 56, 95, 0.05);
  color: var(--text);
}

button.danger {
  background: #fff4f4;
  border-color: rgba(168, 70, 70, 0.28);
  color: var(--accent-red);
}

button.danger:hover:not(:disabled) {
  background: #ffe8e8;
  border-color: rgba(168, 70, 70, 0.42);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.64rem 0.98rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--accent-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.button-link:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  transform: translateY(-1px);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-soft);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(24, 56, 95, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 56, 95, 0.12);
}

.page-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.app-shell-header {
  padding: 0.2rem 0 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.app-shell-header--market {
  padding-bottom: 0.85rem;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.header-action-btn {
  min-height: 42px;
}

.market-main {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.market-toolbar {
  margin-top: 0;
}

.listings-grid--solo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.35rem;
  gap: 10px;
}

.listing-card--full {
  text-align: left;
}

.form-card--flush {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  gap: 0.75rem;
}

.form-card--flag {
  margin-top: 0.5rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-subtle);
}

.empty-card--wide {
  grid-column: 1 / -1;
}

.empty-copy--solo {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  padding: 1rem;
  overflow-y: auto;
}

.modal-center {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 2rem);
  display: grid;
  align-items: start;
  justify-items: center;
  padding-block: 0.35rem;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 940px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.modal-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  border-radius: 8px;
}

.modal-close:hover {
  background: rgba(24, 56, 95, 0.06);
  color: var(--text);
}

.modal-body {
  padding: 1rem 1rem 1.15rem;
}

.modal-body .form-card--flush {
  gap: 0.85rem;
}

.modal-panel--listing {
  width: min(560px, 100%);
}

.modal-panel--simple {
  width: min(560px, 100%);
}

.modal-head--with-tabs {
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

.modal-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-tab {
  flex: 1 1 50%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-soft);
  font-family: var(--accent-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.modal-tab:hover {
  background: rgba(24, 56, 95, 0.06);
  border-color: var(--border-strong);
}

.modal-tab.is-active {
  background: var(--primary-soft);
  border-color: rgba(24, 56, 95, 0.2);
  color: var(--primary);
}

.listing-modal-panel[hidden] {
  display: none !important;
}

.listing-card--simple {
  max-width: 760px;
}

.listing-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 2px 0;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.brand-mark {
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.96;
  color: var(--text);
  text-decoration: none;
}

.brand-subcopy {
  margin: 0;
  max-width: 44rem;
  font-size: 0.88rem;
  line-height: 1.56;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.92rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-family: var(--accent-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.site-nav-link:hover {
  background: rgba(24, 56, 95, 0.05);
  border-color: rgba(24, 56, 95, 0.08);
  color: var(--text);
}

.site-nav-link.is-active {
  background: var(--primary-soft);
  border-color: rgba(24, 56, 95, 0.08);
  color: var(--primary);
}

.hero-grid,
.market-layout,
.workspace-columns,
.faq-grid,
.step-grid,
.notice-grid,
.summary-strip,
.field-grid,
.preview-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  margin-top: 1.35rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
}

.hero-card,
.panel,
.form-card,
.stat-card,
.listing-card,
.listing-detail,
.notice-card,
.empty-card,
.credential-card,
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.hero-card,
.panel,
.form-card,
.login-card,
.listing-detail,
.credential-card {
  padding: 1.2rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-kicker,
.field-label,
.status-copy.muted {
  color: var(--muted-soft);
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.card-title,
.listing-detail-title,
.login-title {
  margin: 0;
  font-family: var(--display-font);
  letter-spacing: -0.05em;
  color: var(--text);
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 0.96;
  max-width: 12ch;
}

.section-title {
  font-size: 1.45rem;
  line-height: 1.02;
}

.card-title,
.listing-detail-title,
.login-title {
  font-size: 1.08rem;
  line-height: 1.08;
}

.section-copy,
.card-copy,
.listing-meta,
.status-copy,
.notice-copy,
.faq-answer,
.detail-copy,
.detail-label,
.pill,
.detail-list,
.empty-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 0.95rem 1rem;
}

.stat-label {
  display: block;
  color: var(--muted-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--display-font);
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  color: var(--text);
}

.stat-copy {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.notice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.notice-card {
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.notice-card.warning {
  border-color: rgba(184, 130, 31, 0.26);
  background: linear-gradient(180deg, #fffdf7, #fff9ec);
}

.notice-card.strong {
  border-color: rgba(24, 56, 95, 0.16);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.notice-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-soft);
}

.market-layout {
  margin-top: 1.35rem;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  align-items: start;
}

.rail-panel,
.workspace-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-panel {
  min-width: 0;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full-width {
  grid-column: 1 / -1;
}

.inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.callout-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 0.92rem;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.64rem;
  border-radius: 999px;
  background: rgba(24, 56, 95, 0.06);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.warning {
  background: rgba(184, 130, 31, 0.1);
  color: #8d6519;
}

.pill.success {
  background: rgba(28, 123, 95, 0.1);
  color: var(--accent-green);
}

.status-copy {
  min-height: 1.3rem;
}

.status-copy.error {
  color: var(--accent-red);
}

.status-copy.success {
  color: var(--accent-green);
}

.status-copy.info {
  color: var(--primary);
}

.credential-card {
  display: grid;
  gap: 0.8rem;
  border-color: rgba(184, 130, 31, 0.26);
  background: linear-gradient(180deg, #fffef9, #fff8ea);
}

.credential-grid {
  display: grid;
  gap: 0.75rem;
}

.credential-item {
  display: grid;
  gap: 0.38rem;
  padding: 0.86rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(184, 130, 31, 0.18);
}

.credential-label {
  color: var(--muted-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credential-value {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.workspace-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 0.8rem;
  align-items: end;
}

.workspace-columns {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.88fr);
  align-items: start;
}

.listings-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.listings-grid,
.preview-grid,
.step-grid,
.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.listing-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.listing-card:hover {
  border-color: rgba(24, 56, 95, 0.18);
  transform: translateY(-1px);
}

.listing-card.is-selected {
  border-color: rgba(24, 56, 95, 0.28);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.listing-topline,
.detail-stack,
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.listing-points {
  font-family: var(--display-font);
  font-size: 1.45rem;
  letter-spacing: -0.06em;
  color: var(--text);
}

.listing-rate {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.listing-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.listing-detail {
  display: grid;
  gap: 0.9rem;
  position: sticky;
  top: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.detail-value {
  color: var(--text-soft);
  font-weight: 700;
}

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

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(215, 221, 231, 0.9);
}

.detail-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-actions,
.detail-flag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-email {
  color: var(--text-soft);
  font-weight: 700;
  word-break: break-word;
}

.empty-card {
  padding: 1rem;
}

.empty-title {
  margin: 0 0 0.35rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.step-card,
.faq-card {
  padding: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 700;
}

.faq-question {
  margin: 0 0 0.45rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.preview-card {
  padding: 0.95rem;
}

.preview-card .listing-points {
  font-size: 1.22rem;
}

.login-shell {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.login-card {
  width: min(480px, 100%);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-card {
  padding: 1rem;
}

.admin-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.flag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.56rem;
  border-radius: 999px;
  background: rgba(168, 70, 70, 0.08);
  border: 1px solid rgba(168, 70, 70, 0.16);
  color: var(--accent-red);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-metadata {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-metadata .detail-row {
  padding: 0.76rem 0.82rem;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero-grid,
  .market-layout,
  .workspace-columns {
    grid-template-columns: 1fr;
  }

  .listing-detail {
    position: static;
  }
}

@media (max-width: 840px) {
  .summary-strip,
  .admin-metadata,
  .field-grid,
  .toolbar-row {
    grid-template-columns: 1fr;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding: 12px 0 28px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions,
  .button-row,
  .detail-actions,
  .detail-flag-actions,
  .admin-actions {
    flex-direction: column;
  }

  .button-link,
  button:not(.modal-close):not(.header-action-btn):not(.listing-flag-btn) {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .header-action-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav-link {
    flex: 1 1 100%;
  }
}

/* ---- Raw, minimal marketplace/admin styling override ---- */
body {
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
}

.page-shell {
  width: min(900px, calc(100vw - 24px));
  padding: 12px 0 24px;
}

.app-shell-header {
  border-bottom: 1px solid #ddd;
  padding: 0 0 10px;
}

.brand-mark {
  font-family: Arial, sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}

button,
.button-link,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  border-radius: 4px;
  box-shadow: none;
}

button,
.button-link {
  background: #f3f3f3;
  color: #111;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  font-weight: 600;
}

button:hover:not(:disabled),
.button-link:hover {
  background: #e9e9e9;
  border-color: #bbb;
  transform: none;
}

button.danger {
  background: #fff;
  color: #b00020;
  border: 1px solid #d9a7af;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  min-height: 38px;
  padding: 8px 10px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #999;
  box-shadow: none;
}

.listing-card,
.empty-card,
.credential-card,
.form-card,
.modal-panel,
.panel,
.login-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: none;
  background: #fff;
}

.listing-card,
.empty-card,
.credential-card,
.form-card,
.panel,
.login-card {
  padding: 10px;
}

.listing-card:hover {
  transform: none;
  border-color: #ccc;
}

.listing-points,
.listing-rate,
.section-title,
.modal-title,
.card-title,
.login-title {
  font-family: Arial, sans-serif;
  letter-spacing: 0;
}

.section-kicker,
.field-label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #666;
}

.status-copy,
.section-copy,
.listing-note,
.empty-copy {
  color: #444;
}

.detail-list li {
  border-top: 1px solid #eee;
  padding: 6px 0;
}

.callout-bar,
.pill {
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  color: #444;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.modal-panel {
  width: min(560px, 100%);
  max-height: 90vh;
}

.modal-head {
  border-bottom: 1px solid #e5e5e5;
  padding: 10px;
}

.modal-body {
  padding: 10px;
}

/* Ultra-raw mode */
.page-shell,
.market-main,
.header-brand-row,
.header-actions,
.toolbar-row,
.field-grid,
.button-row,
.detail-actions,
.credential-grid,
.panel-header {
  display: block;
  gap: 0;
}

.app-shell-header,
.market-main,
.listing-card,
.empty-card,
.credential-card,
.form-card,
.modal-panel,
.panel,
.login-card {
  margin: 0 0 10px;
}

.field,
label,
input,
textarea,
select,
button,
.button-link {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
}

.header-actions .header-action-btn {
  display: inline-block;
  width: auto;
  margin-right: 6px;
}

.header-actions .header-action-btn:last-child {
  margin-right: 0;
}

.detail-list li {
  display: block;
}

.listing-rate,
.detail-label,
.credential-label,
.section-kicker {
  font-weight: 400;
}

.modal {
  padding: 8px;
}

.modal-center {
  min-height: auto;
  display: block;
}

.modal-panel {
  position: relative;
  margin: 30px auto 0;
  overflow: visible;
}

.modal-head {
  position: static;
}

.modal-close {
  border: 1px solid #ccc;
  background: #f3f3f3;
  font-size: 14px;
  padding: 4px 8px;
}

/* Marketplace card layout tweaks */
.listing-card--simple {
  position: relative;
  padding-top: 32px;
}

.listing-card--simple .button-link {
  width: auto;
  margin: 0;
}

.listing-card--simple .listing-flag-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: auto;
  min-height: 24px;
  padding: 2px 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.1;
}

@media (max-width: 700px) {
  .listings-grid--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Calendar-inspired UI refresh */
body {
  background: #f3f5f8;
  color: #1f2937;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.page-shell {
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.app-shell-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8dee7;
}

.header-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.brand-mark {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #162235;
}

.market-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 10px;
  align-items: end;
}

.field,
label,
input,
textarea,
select,
button,
.button-link {
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.field.full-width {
  grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  background: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  color: #1f2937;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #8aa2c9;
  box-shadow: 0 0 0 3px rgba(99, 136, 191, 0.12);
}

button,
.button-link {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #b9c5d8;
  background: #ffffff;
  color: #1f2b3d;
  font-weight: 600;
}

button:hover:not(:disabled),
.button-link:hover {
  background: #f4f7fb;
  border-color: #9fb1ca;
  transform: none;
}

.header-action-btn {
  background: #253a5b;
  border-color: #253a5b;
  color: #fff;
}

.header-action-btn.secondary {
  background: #ffffff;
  color: #253a5b;
}

.header-action-btn:hover:not(:disabled) {
  background: #1d2f4a;
  border-color: #1d2f4a;
}

.header-action-btn.secondary:hover:not(:disabled) {
  background: #f2f6fb;
  border-color: #9fb1ca;
}

.status-copy {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

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

.listing-card {
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(17, 24, 39, 0.04);
}

.listing-card--simple {
  position: relative;
  padding: 16px 16px 14px;
}

.listing-topline {
  margin-bottom: 10px;
}

.listing-title {
  display: block;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1c2e4a;
  line-height: 1.2;
}

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

.listing-line {
  display: flex;
  gap: 8px;
  margin: 7px 0;
  align-items: baseline;
}

.listing-line span {
  color: #4b5563;
  min-width: 84px;
}

.listing-line strong {
  color: #111827;
}

.listing-line--full {
  margin-top: 8px;
}

.listing-card--simple .button-link {
  margin-top: 10px;
}

.listing-card--simple .listing-flag-btn {
  position: absolute;
  right: 14px;
  top: 12px;
  display: inline-flex;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
  border-color: #dfb3bc;
  color: #a13046;
  background: #fff8fa;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.listing-card--simple .listing-flag-btn:hover:not(:disabled) {
  background: #ffeef2;
  border-color: #d892a0;
}

.modal-backdrop {
  background: rgba(22, 34, 53, 0.4);
}

.modal-center {
  min-height: calc(100vh - 16px);
  display: grid;
  align-items: start;
  justify-items: center;
  padding-block: 4px;
}

.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 0;
  border: 1px solid #cfd6e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #d8dee7;
  background: #f7f9fc;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c2e4a;
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
}

.modal-body {
  padding: 14px 16px 16px;
}

.form-card--flush {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-card {
  border: 1px dashed #c6d0df;
  border-radius: 8px;
  background: #fafbfd;
}

.share-yikyak {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.share-yikyak-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.share-yikyak-text {
  flex: 1 1 auto;
  min-height: 72px;
  resize: vertical;
}

.share-yikyak-row .secondary {
  flex: 0 0 auto;
  align-self: flex-start;
}

#downloadPasscodeBtn {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .toolbar-row,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .listings-grid--solo {
    grid-template-columns: 1fr;
  }

  .listing-details-grid {
    grid-template-columns: 1fr;
  }

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

  .header-actions {
    width: 100%;
  }

  .header-actions .header-action-btn {
    flex: 1 1 0;
  }

  .share-yikyak-row {
    flex-direction: column;
  }

  .share-yikyak-row .secondary {
    width: 100%;
  }
}

/* Same home FAB as Workday planner (bottom-left, ⌂) — below modal z-index so overlays cover it */
.planner-help-fab {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  z-index: 40 !important;
  border: 1px solid #115bd6 !important;
  background: linear-gradient(180deg, #115bd6, #0c45a8) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(17, 91, 214, 0.24) !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.planner-home-fab {
  left: 18px !important;
  right: auto !important;
  font-size: 1.3rem !important;
  text-decoration: none !important;
}

.planner-help-fab:hover {
  background: #0c45a8;
  border-color: #0c45a8;
  box-shadow: 0 16px 32px rgba(17, 91, 214, 0.28);
}

.planner-help-fab:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(17, 91, 214, 0.16),
    0 14px 28px rgba(17, 91, 214, 0.24);
}

@media (max-width: 760px) {
  .planner-help-fab {
    left: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}
