/* Charm app surface — mobile-first and safe to reuse inside Capacitor. */

:root {
  --app-bg: #0a0a0b;
  --app-surface: #131315;
  --app-surface-2: #1b1b1e;
  --app-elevated: #232327;
  --app-text: #f7f7f5;
  --app-muted: #a0a0a8;
  --app-subtle: #6f7078;
  --app-accent: #e2a84b;
  --app-accent-soft: #f5d080;
  --app-border: color-mix(in srgb, var(--app-text) 12%, transparent);
  --app-border-strong: color-mix(in srgb, var(--app-text) 20%, transparent);
  --app-radius-sm: 10px;
  --app-radius-md: 16px;
  --app-radius-lg: 24px;
  --app-shadow: 0 18px 46px color-mix(in srgb, var(--app-bg) 75%, transparent);
  --app-display: 'Inter Tight', Inter, system-ui, sans-serif;
  --app-body: 'DM Sans', Inter, system-ui, sans-serif;
  --app-space: clamp(16px, 4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
html {
  background: var(--app-bg);
  color-scheme: dark;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--app-accent) 13%, transparent), transparent 34rem),
    var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.app-root {
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.app-main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 var(--app-space) 36px;
}
.app-topbar {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) var(--app-space) 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--app-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.app-mark {
  color: var(--app-accent-soft);
  font-size: 20px;
  line-height: 1;
}
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  max-width: 48%;
  padding: 7px 10px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 12px;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.location-pill:hover { border-color: var(--app-border-strong); color: var(--app-text); }
.location-pill:active { transform: translateY(1px); }
.location-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: 0 0 auto; }
.location-pill .location-chevron { width: 13px; height: 13px; margin-left: 1px; }
.location-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-strip {
  padding: 8px var(--app-space);
  background: color-mix(in srgb, var(--app-accent) 10%, var(--app-surface));
  border-bottom: 1px solid color-mix(in srgb, var(--app-accent) 28%, transparent);
  color: var(--app-accent-soft);
  font-size: 12px;
  text-align: center;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: var(--app-accent);
}

.app-hero { padding: 42px 0 28px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--app-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}
.app-hero h1 {
  font-family: var(--app-display);
  margin: 0;
  max-width: 11ch;
  font-size: clamp(44px, 12vw, 84px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}
.app-hero h1 span { color: var(--app-muted); }
.hero-copy {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--app-muted);
  font-size: 16px;
  line-height: 1.45;
}
.app-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 5px 6px 5px 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--app-bg) 45%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.app-search:focus-within {
  border-color: color-mix(in srgb, var(--app-accent) 56%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-accent) 10%, transparent);
}
.app-search > svg { width: 18px; height: 18px; fill: none; stroke: var(--app-subtle); stroke-width: 1.7; flex: 0 0 auto; }
.app-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 0;
  background: transparent;
  border: 0;
  color: var(--app-text);
  outline: 0;
}
.app-search input::placeholder { color: var(--app-subtle); }
.app-search button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--app-accent);
  color: var(--app-bg);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.app-search button:hover { background: var(--app-accent-soft); }
.app-search button:active { transform: scale(0.96); }
.app-search button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.quick-actions { padding-top: 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading--compact { margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-family: var(--app-display); font-size: 28px; font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.section-link { flex: 0 0 auto; color: var(--app-muted); font-size: 13px; transition: color 180ms ease; }
.section-link:hover { color: var(--app-text); }
.section-link span { color: var(--app-accent); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-card {
  position: relative;
  min-height: 166px;
  padding: 16px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: var(--app-surface);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.quick-card:hover { border-color: var(--app-border-strong); background: var(--app-surface-2); transform: translateY(-2px); }
.quick-card:active { transform: translateY(0); }
.quick-card::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  right: -46px;
  bottom: -52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--app-accent) 13%, transparent);
}
.quick-card--spaces::after { background: color-mix(in srgb, #9d6fff 14%, transparent); }
.quick-card--people::after { background: color-mix(in srgb, #4cc9b0 14%, transparent); }
.quick-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: auto; border-radius: 9px; background: color-mix(in srgb, var(--app-accent) 13%, transparent); color: var(--app-accent-soft); }
.quick-card--spaces .quick-icon { background: color-mix(in srgb, #9d6fff 16%, transparent); color: #c5b1ff; }
.quick-card--people .quick-icon { background: color-mix(in srgb, #4cc9b0 15%, transparent); color: #75e2cc; }
.quick-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.quick-label { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.quick-meta { color: var(--app-subtle); font-size: 11px; line-height: 1.25; }
.arrow-icon { position: absolute; right: 13px; top: 14px; width: 16px; height: 16px; fill: none; stroke: var(--app-subtle); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.install-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--app-accent) 25%, transparent);
  border-radius: var(--app-radius-md);
  background: color-mix(in srgb, var(--app-accent) 7%, var(--app-surface));
}
.install-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--app-accent) 15%, transparent); color: var(--app-accent-soft); }
.install-copy .eyebrow { margin-bottom: 3px; font-size: 9px; }
.install-copy p:last-child { margin: 0; color: var(--app-muted); font-size: 12px; line-height: 1.25; }
.text-button { border: 0; background: transparent; color: var(--app-accent-soft); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; }
.text-button:hover { color: var(--app-text); }
.dismiss-button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--app-subtle); cursor: pointer; font-size: 22px; line-height: 1; }
.dismiss-button:hover { background: color-mix(in srgb, var(--app-text) 8%, transparent); color: var(--app-text); }

.app-section { padding-top: 50px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.listing-card { min-width: 0; transition: transform 180ms ease; }
.listing-card:hover { transform: translateY(-2px); }
.listing-card:active { transform: translateY(0); }
.listing-image { position: relative; aspect-ratio: 1.05 / 1; overflow: hidden; border-radius: var(--app-radius-md); background: var(--app-surface); }
.listing-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--app-bg) 40%, transparent)); pointer-events: none; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms ease; }
.listing-card:hover .listing-image img { transform: scale(1.04); }
.listing-save { position: absolute; z-index: 1; top: 9px; right: 9px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--app-text) 18%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--app-bg) 54%, transparent); color: var(--app-text); font-size: 15px; }
.listing-save.is-saved { color: var(--app-accent-soft); }
.listing-meta { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 10px 2px 0; }
.listing-title { margin: 0; overflow: hidden; color: var(--app-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.listing-location { margin: 4px 0 0; overflow: hidden; color: var(--app-subtle); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.listing-price { flex: 0 0 auto; margin: 0; color: var(--app-text); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.listing-price span { display: block; color: var(--app-subtle); font-size: 10px; }
.empty-state { padding: 28px 0; color: var(--app-muted); font-size: 14px; }
.empty-state p { margin: 0 0 10px; }

.app-note { display: flex; align-items: start; gap: 14px; padding: 72px 0 18px; }
.note-rule { width: 36px; height: 1px; margin-top: 13px; background: var(--app-accent); flex: 0 0 auto; }
.app-note p { margin: 0; font-family: var(--app-display); color: var(--app-text); font-size: 24px; letter-spacing: -0.045em; line-height: 1.05; }
.app-note em { color: var(--app-muted); font-style: normal; }

/* Editable app views ---------------------------------------------------- */
.view-heading { padding: 36px 0 22px; }
.view-heading h1 { max-width: 12ch; margin: 0; font-family: var(--app-display); font-size: clamp(42px, 11vw, 72px); font-weight: 400; letter-spacing: -0.075em; line-height: 0.94; text-wrap: balance; }
.view-heading h1 span { color: var(--app-muted); }
.view-heading .view-copy { max-width: 38ch; margin: 18px 0 0; color: var(--app-muted); line-height: 1.45; }
.view-heading .app-search { margin-top: 24px; }
.category-row { display: flex; gap: 8px; overflow-x: auto; margin: 2px calc(var(--app-space) * -1) 0; padding: 0 var(--app-space) 4px; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.category-pill { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--app-border); border-radius: 999px; background: transparent; color: var(--app-muted); cursor: pointer; font-size: 12px; transition: background 180ms ease, border-color 180ms ease, color 180ms ease; }
.category-pill:hover { border-color: var(--app-border-strong); color: var(--app-text); }
.category-pill.is-active { border-color: var(--app-accent); background: color-mix(in srgb, var(--app-accent) 13%, transparent); color: var(--app-accent-soft); }
.results-meta { margin: -2px 0 16px; color: var(--app-subtle); font-size: 12px; }
.view-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-surface); }
.view-callout p { margin: 0; color: var(--app-muted); font-size: 13px; line-height: 1.35; }
.view-callout strong { display: block; margin-bottom: 3px; color: var(--app-text); font-family: var(--app-display); font-size: 18px; font-weight: 400; letter-spacing: -0.04em; }
.view-callout .text-button { flex: 0 0 auto; }

.form-stack { display: grid; gap: 16px; padding-bottom: 24px; }
.form-card { padding: 18px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-surface); }
.form-card h2 { margin: 0 0 16px; font-family: var(--app-display); font-size: 24px; font-weight: 400; letter-spacing: -0.05em; }
.form-field { display: grid; gap: 7px; margin-bottom: 15px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label { color: var(--app-muted); font-size: 12px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--app-border); border-radius: var(--app-radius-sm); outline: 0; background: var(--app-bg); color: var(--app-text); font-size: 15px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.form-field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--app-subtle); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: color-mix(in srgb, var(--app-accent) 58%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 10%, transparent); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 0; border-radius: var(--app-radius-sm); background: var(--app-accent); color: var(--app-bg); cursor: pointer; font-size: 14px; font-weight: 600; transition: background 180ms ease, transform 180ms ease; }
.primary-action:hover { background: var(--app-accent-soft); }
.primary-action:active { transform: translateY(1px); }
.primary-action[disabled] { cursor: not-allowed; opacity: 0.55; }
.form-status { min-height: 20px; margin: 11px 0 0; color: var(--app-muted); font-size: 12px; line-height: 1.4; }
.form-status.is-error { color: #ff9a8d; }
.form-status.is-success { color: #7be2b2; }
.form-hint { margin: 0 0 18px; color: var(--app-subtle); font-size: 12px; line-height: 1.4; }

.inbox-list { display: grid; gap: 9px; }
.inbox-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: start; gap: 11px; padding: 14px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-surface); }
.inbox-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--app-accent) 14%, transparent); color: var(--app-accent-soft); font-size: 12px; font-weight: 600; }
.inbox-card h3 { margin: 0; color: var(--app-text); font-size: 14px; font-weight: 500; }
.inbox-card p { margin: 4px 0 0; color: var(--app-muted); font-size: 12px; line-height: 1.35; }
.inbox-card time { color: var(--app-subtle); font-size: 10px; white-space: nowrap; }
.inbox-card.is-unread { border-color: color-mix(in srgb, var(--app-accent) 28%, transparent); }

.profile-hero { display: flex; align-items: center; gap: 14px; margin: 24px 0 22px; }
.profile-avatar { display: grid; place-items: center; width: 66px; height: 66px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--app-accent) 45%, transparent); border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--app-accent) 25%, var(--app-surface)), var(--app-surface-2)); color: var(--app-accent-soft); font-family: var(--app-display); font-size: 24px; }
.profile-hero h2 { margin: 0; font-family: var(--app-display); font-size: 28px; font-weight: 400; letter-spacing: -0.055em; line-height: 1; }
.profile-hero p { margin: 5px 0 0; color: var(--app-muted); font-size: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-surface); }
.profile-stat { padding: 15px 10px; text-align: center; }
.profile-stat + .profile-stat { border-left: 1px solid var(--app-border); }
.profile-stat strong { display: block; color: var(--app-text); font-family: var(--app-display); font-size: 24px; font-weight: 400; letter-spacing: -0.04em; }
.profile-stat span { display: block; margin-top: 2px; color: var(--app-subtle); font-size: 10px; }
.profile-actions { display: grid; gap: 9px; }
.profile-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 14px; border: 1px solid var(--app-border); border-radius: var(--app-radius-sm); background: var(--app-surface); color: var(--app-muted); font-size: 13px; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.profile-action:hover { border-color: var(--app-border-strong); background: var(--app-surface-2); color: var(--app-text); }
.profile-action span:last-child { color: var(--app-accent); font-size: 16px; }

.product-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--app-muted); font-size: 13px; transition: color 180ms ease; }
.product-back:hover { color: var(--app-text); }
.product-layout { display: grid; gap: 22px; padding: 20px 0 28px; }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1 / .86; border-radius: var(--app-radius-lg); background: var(--app-surface); }
.product-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--app-bg) 42%, transparent)); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding: 2px 2px 0; }
.product-copy h1 { margin: 0; max-width: 14ch; font-family: var(--app-display); font-size: clamp(36px, 9vw, 60px); font-weight: 400; letter-spacing: -0.075em; line-height: .94; text-wrap: balance; }
.product-copy h1 span { color: var(--app-muted); }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 0; color: var(--app-muted); font-size: 13px; }
.product-meta strong { color: var(--app-text); font-weight: 500; }
.product-meta .product-dot { color: var(--app-subtle); }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--app-border); }
.product-price { color: var(--app-text); font-family: var(--app-display); font-size: 30px; letter-spacing: -0.05em; }
.product-price span { margin-left: 5px; color: var(--app-subtle); font-family: var(--app-body); font-size: 12px; letter-spacing: 0; }
.product-save { min-height: 40px; padding: 8px 12px; border: 1px solid var(--app-border); border-radius: 999px; background: transparent; color: var(--app-muted); cursor: pointer; font-size: 12px; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.product-save:hover { border-color: var(--app-border-strong); color: var(--app-text); }
.product-save.is-saved { border-color: color-mix(in srgb, var(--app-accent) 55%, transparent); background: color-mix(in srgb, var(--app-accent) 10%, transparent); color: var(--app-accent-soft); }
.product-description { margin: 20px 0 0; color: var(--app-muted); font-size: 15px; line-height: 1.5; }
.product-seller { display: flex; align-items: center; gap: 11px; margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--app-border); }
.product-seller-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; background: color-mix(in srgb, var(--app-accent) 13%, transparent); color: var(--app-accent-soft); font-size: 12px; font-weight: 600; }
.product-seller p { margin: 0; color: var(--app-subtle); font-size: 11px; }
.product-seller strong { display: block; margin-bottom: 2px; color: var(--app-text); font-size: 13px; font-weight: 500; }
.booking-panel { margin-top: 22px; padding: 18px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-surface); }
.booking-panel h2 { margin: 0 0 5px; font-family: var(--app-display); font-size: 24px; font-weight: 400; letter-spacing: -0.05em; }
.booking-panel > p { margin: 0 0 16px; color: var(--app-muted); font-size: 12px; line-height: 1.4; }
.booking-panel .form-row { margin-bottom: 14px; }
.booking-summary { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 13px; padding: 10px 12px; border-radius: var(--app-radius-sm); background: var(--app-bg); color: var(--app-muted); font-size: 12px; }
.booking-summary strong { color: var(--app-text); font-weight: 500; }
.product-empty { padding: 60px 0; }
@media (min-width: 700px) {
  .product-layout { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 28px; }
  .product-image { position: sticky; top: 20px; aspect-ratio: 1 / 1; }
  .product-copy { padding-top: 12px; }
}

.dev-heading { padding: 32px 0 25px; }
.dev-heading h1 { margin: 0; max-width: 12ch; font-family: var(--app-display); font-size: clamp(42px, 12vw, 78px); font-weight: 400; letter-spacing: -0.08em; line-height: 0.92; }
.dev-heading h1 span { color: var(--app-muted); }
.dev-heading p:last-child { max-width: 40ch; margin: 18px 0 0; color: var(--app-muted); line-height: 1.45; }
.dev-back { display: inline-flex; align-items: center; gap: 7px; color: var(--app-muted); font-size: 13px; transition: color 180ms ease; }
.dev-back:hover { color: var(--app-text); }
.dev-grid { display: grid; gap: 10px; }
.dev-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-surface); transition: border-color 180ms ease, transform 180ms ease, background 180ms ease; }
.dev-card:hover { border-color: var(--app-border-strong); background: var(--app-surface-2); transform: translateY(-2px); }
.dev-card:active { transform: translateY(0); }
.dev-card.is-selected { border-color: color-mix(in srgb, var(--app-accent) 56%, transparent); background: color-mix(in srgb, var(--app-accent) 7%, var(--app-surface)); }
.dev-card-index { color: var(--app-accent); font-family: var(--app-display); font-size: 18px; }
.dev-card h2 { margin: 0; font-family: var(--app-display); font-size: 22px; font-weight: 400; letter-spacing: -0.045em; }
.dev-card p { margin: 4px 0 8px; color: var(--app-muted); font-size: 12px; line-height: 1.35; }
.dev-card code { color: var(--app-subtle); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.dev-card-arrow { align-self: center; color: var(--app-accent); font-size: 20px; }
.dev-notes { margin-top: 24px; padding: 18px; border: 1px dashed var(--app-border-strong); border-radius: var(--app-radius-md); color: var(--app-muted); font-size: 12px; line-height: 1.5; }
.dev-notes strong { display: block; margin-bottom: 5px; color: var(--app-text); font-family: var(--app-display); font-size: 18px; font-weight: 400; }
.dev-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; gap: clamp(28px, 6vw, 72px); }
.iphone-preview-wrap { display: grid; justify-items: center; position: sticky; top: 20px; }
.preview-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--app-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.preview-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7be2b2; box-shadow: 0 0 0 4px color-mix(in srgb, #7be2b2 12%, transparent); }
.iphone-frame { position: relative; width: min(100%, 344px); aspect-ratio: 390 / 844; padding: 10px; border: 1px solid color-mix(in srgb, #fff 24%, transparent); border-radius: 50px; background: linear-gradient(145deg, #34343a 0%, #111114 38%, #25252a 100%); box-shadow: 0 30px 70px color-mix(in srgb, #000 70%, transparent), inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent); }
.iphone-frame::before { content: ''; position: absolute; z-index: 3; top: 17px; left: 50%; width: 106px; height: 25px; border-radius: 999px; background: #050506; transform: translateX(-50%); box-shadow: inset 0 -1px 0 color-mix(in srgb, #fff 8%, transparent); pointer-events: none; }
.iphone-frame::after { content: ''; position: absolute; z-index: 4; top: 26px; left: calc(50% + 26px); width: 6px; height: 6px; border-radius: 50%; background: #18181c; box-shadow: 0 0 0 1px #303037; pointer-events: none; }
.iphone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 41px; background: var(--app-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, #000 60%, transparent); }
.iphone-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--app-bg); }
.iphone-side-button { position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #28282d; }
.iphone-side-button--top { top: 112px; height: 62px; }
.iphone-side-button--bottom { top: 190px; height: 38px; }
.preview-file { margin: 12px 0 0; color: var(--app-subtle); font-size: 11px; }
.preview-file code { color: var(--app-accent-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Mobile-first development workspace ----------------------------------- */
.dev-root { min-height: 100dvh; padding: 0 var(--app-space) 42px; overflow-x: clip; background: radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--app-accent) 10%, transparent), transparent 34rem), var(--app-bg); scrollbar-width: none; }
.dev-root::-webkit-scrollbar { width: 0; height: 0; display: none; }
.dev-toolbar { width: min(100%, 1080px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dev-toolbar .app-brand small { color: var(--app-subtle); font: 500 10px var(--app-body); letter-spacing: .08em; text-transform: uppercase; }
.dev-product-link { display: inline-flex; align-items: center; gap: 7px; color: var(--app-muted); font-size: 12px; transition: color 180ms ease; }
.dev-product-link:hover { color: var(--app-text); }
.dev-product-link span { color: var(--app-accent); font-size: 16px; }
.dev-main { width: min(100%, 1080px); margin: 0 auto; padding: clamp(34px, 6vw, 64px) 0 0; }
.dev-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.dev-intro h1 { margin: 0; font-family: var(--app-display); font-size: clamp(38px, 7vw, 66px); font-weight: 400; letter-spacing: -.08em; line-height: .92; }
.dev-intro h1 span { color: var(--app-muted); }
.dev-intro-copy { max-width: 28ch; margin: 0 0 3px; color: var(--app-muted); font-size: 14px; line-height: 1.45; }
.dev-preview-stage { display: grid; justify-items: center; padding: 20px 16px 22px; border: 1px solid var(--app-border); border-radius: 28px; background: linear-gradient(150deg, color-mix(in srgb, var(--app-surface-2) 75%, transparent), color-mix(in srgb, var(--app-surface) 80%, transparent)); box-shadow: 0 28px 80px color-mix(in srgb, #000 32%, transparent); }
.preview-meta { display: flex; align-items: center; justify-content: space-between; width: min(100%, 360px); margin-bottom: 12px; }
.preview-meta .preview-kicker { margin: 0; }
.preview-meta .preview-file { margin: 0; color: var(--app-accent-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.dev-preview-stage .iphone-frame { width: min(100%, 360px); }
.dev-stage-note { margin: 13px 0 0; color: var(--app-subtle); font-size: 11px; text-align: center; }
.view-switcher { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; scrollbar-width: none; }
.view-switcher::-webkit-scrollbar { display: none; width: 0; height: 0; }
.view-tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 66px; padding: 12px 13px; border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-surface); color: var(--app-muted); transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease; }
.view-tab:hover { border-color: var(--app-border-strong); background: var(--app-surface-2); color: var(--app-text); transform: translateY(-2px); }
.view-tab:active { transform: translateY(0); }
.view-tab.is-selected { border-color: color-mix(in srgb, var(--app-accent) 58%, transparent); background: color-mix(in srgb, var(--app-accent) 9%, var(--app-surface)); color: var(--app-text); }
.view-tab strong, .view-tab small { display: block; }
.view-tab strong { font-family: var(--app-display); font-size: 17px; font-weight: 400; letter-spacing: -.04em; }
.view-tab small { margin-top: 3px; color: var(--app-subtle); font-size: 10px; }
.view-tab-arrow { color: var(--app-accent); font-size: 17px; }
.dev-footer-note { margin: 18px auto 0; color: var(--app-subtle); font-size: 11px; text-align: center; }

@media (max-width: 680px) {
  .dev-main { padding-top: 27px; }
  .dev-intro { display: block; margin-bottom: 18px; }
  .dev-intro-copy { margin-top: 14px; max-width: 34ch; }
  .dev-preview-stage { margin: 0 calc(var(--app-space) * -1); border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .dev-preview-stage .iphone-frame { width: min(100%, 330px); }
  .view-switcher { display: flex; overflow-x: auto; margin-right: calc(var(--app-space) * -1); margin-left: calc(var(--app-space) * -1); padding: 0 var(--app-space) 3px; }
  .view-tab { flex: 0 0 142px; }
}

@media (max-width: 420px) {
  .view-callout { align-items: start; flex-direction: column; }
  .view-callout .text-button { align-self: flex-start; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inbox-card { grid-template-columns: 36px 1fr; }
  .inbox-avatar { width: 36px; height: 36px; }
  .inbox-card time { grid-column: 2; }
}
@media (max-width: 760px) {
  .dev-layout { grid-template-columns: 1fr; }
  .iphone-preview-wrap { position: static; }
  .iphone-frame { width: min(100%, 320px); }
}

.bottom-tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 8px var(--app-space) max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.tab-item { display: flex; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--app-subtle); font-size: 10px; transition: color 180ms ease, transform 180ms ease; }
.tab-item:hover, .tab-item.is-active { color: var(--app-text); }
.tab-item:active { transform: translateY(1px); }
.tab-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.tab-item.is-active svg { color: var(--app-accent-soft); }
.tab-item--create { color: var(--app-muted); }
.create-button { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0; border-radius: 12px; background: var(--app-accent); color: var(--app-bg); font-size: 24px; font-weight: 400; line-height: 1; transition: background 180ms ease, transform 180ms ease; }
.tab-item--create:hover .create-button { background: var(--app-accent-soft); }

.noscript-message { position: fixed; inset: 20px; z-index: 30; padding: 20px; border: 1px solid var(--app-border-strong); border-radius: var(--app-radius-md); background: var(--app-surface); color: var(--app-text); }
.noscript-message a { color: var(--app-accent-soft); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--app-accent-soft); outline-offset: 3px; }
@media (min-width: 720px) {
  .app-root { padding-bottom: 24px; }
  .bottom-tabs { position: sticky; margin-top: 10px; border: 1px solid var(--app-border); border-radius: 18px 18px 0 0; }
}
@media (max-width: 420px) {
  .app-hero { padding-top: 32px; }
  .quick-grid { gap: 7px; }
  .quick-card { min-height: 154px; padding: 13px 11px; }
  .quick-label { font-size: 14px; }
  .quick-meta { font-size: 10px; }
  .install-card { grid-template-columns: auto 1fr auto; }
  .install-card .text-button { grid-column: 2; justify-self: start; }
  .install-card .dismiss-button { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
