/* =========================================================
   Property-management app mockup (brand colors come from brand.js)
   Luxury multifamily · warm neutrals · deep teal accent
   ========================================================= */

:root {
  --bg: #f5f1eb;
  --bg-soft: #faf7f2;
  --surface: #ffffff;
  --ink: #1c2420;
  --ink-muted: #5c6862;
  --ink-faint: #8a948e;
  --line: #e6e0d6;
  --line-soft: #efeae2;
  --accent: #1f5c4d;
  --accent-deep: #164539;
  --accent-soft: #e8f2ee;
  --accent-mid: #2a7a66;
  --accent-night: #0f3228;
  --accent-rgb: 31, 92, 77;
  --glow: #5fd4ae;
  --glow-rgb: 95, 212, 174;
  --night: #07100d;
  --night-2: #04110c;
  --night-rgb: 7, 16, 13;
  --gold: #b8956c;
  --gold-soft: #f7f0e6;
  --danger: #a33b2d;
  --success: #1f5c4d;
  --shadow: 0 8px 28px rgba(28, 36, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 36, 32, 0.18);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --phone-w: 390px;
  --phone-h: 844px;
  --safe-top: 54px;
  --tab-h: 72px;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d8ebe4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f0e4d4 0%, transparent 50%),
    linear-gradient(160deg, #ebe4da 0%, #d9e5df 45%, #c9d8d1 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Stage / pitch chrome ---------- */
.pitch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(420px, 100%);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

.pitch-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pitch-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.pitch-sub {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 12px;
}

.demo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid #c9ddd5;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.pitch-hint {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 360px;
  line-height: 1.45;
}

/* ---------- Phone frame ---------- */
.phone-shell {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  max-width: 100%;
  background: #0e1210;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px #2a322e,
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #0a0d0b;
  border-radius: 20px;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.status-bar {
  position: relative;
  z-index: 30;
  height: var(--safe-top);
  padding: 14px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.status-bar .right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.status-bar svg {
  display: block;
}

/* App content */
.app {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.screens {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 18px calc(var(--tab-h) + 18px);
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.screen.leaving {
  opacity: 0;
  transform: translateX(-12px);
  z-index: 1;
}

.screen.no-tab {
  padding-bottom: 24px;
}

/* Floating DEMO watermark */
.demo-watermark {
  position: absolute;
  top: 62px;
  right: 14px;
  z-index: 35;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- Shared UI ---------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-header .sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  padding: 4px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card + .card {
  margin-top: 12px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 20px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 650;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-mid), var(--accent));
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #319078, var(--accent-deep));
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid #c5d9d1;
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 650;
  background: var(--gold-soft);
  color: #7a5a35;
}

.pill.green {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.divider {
  height: 1px;
  background: var(--line-soft);
  margin: 14px 0;
}

/* ---------- Tab bar ---------- */
.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tab-h);
  padding: 8px 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 25;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tab-bar.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.15s ease, background 0.15s ease;
}

.tab svg {
  width: 22px;
  height: 22px;
}

.tab.active {
  color: var(--accent);
}

.tab:active {
  background: var(--accent-soft);
}

.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #1c2420;
  border-radius: 4px;
  opacity: 0.25;
  z-index: 30;
  pointer-events: none;
}

/* ---------- Home ---------- */
.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a57a, #8a6a45);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(138, 106, 69, 0.3);
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 55%, var(--accent-night) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(22, 69, 57, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-card .label {
  font-size: 12px;
  opacity: 0.78;
  font-weight: 500;
}

.hero-card .amount {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}

.hero-card .meta {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.quick-action:active {
  transform: scale(0.96);
}

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.qa-icon svg {
  width: 20px;
  height: 20px;
}

.tip-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tip-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tip-card p {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.tip-card .link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent);
}

/* ---------- Pay ---------- */
.balance-block {
  text-align: center;
  padding: 8px 0 4px;
}

.balance-block .label {
  font-size: 13px;
  color: var(--ink-muted);
}

.balance-block .amount {
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -0.04em;
  margin: 4px 0;
}

.balance-block .due {
  font-size: 13px;
  color: var(--ink-muted);
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.method.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.method.selected .method-icon {
  background: #fff;
}

.method .info {
  flex: 1;
}

.method .info strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.method .info span {
  font-size: 12px;
  color: var(--ink-muted);
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.method.selected .radio {
  border-color: var(--accent);
}

.method.selected .radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

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

.toggle-row .copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.toggle-row .copy span {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cfc8bc;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.switch.on {
  background: var(--accent);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.switch.on::after {
  transform: translateX(20px);
}

.flex-preview {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px dashed #d5cdc0;
  display: none;
}

.flex-preview.show {
  display: block;
}

.flex-preview .row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.flex-preview .row span:last-child {
  font-weight: 650;
}

.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 40px 24px calc(var(--tab-h) + 24px);
}

.success-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  animation: pop 0.45s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-screen h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.success-screen p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 24px;
}

/* ---------- Documents ---------- */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
  transition: transform 0.12s ease;
}

.doc-item:active {
  transform: scale(0.985);
}

.doc-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.doc-item .info {
  flex: 1;
  min-width: 0;
}

.doc-item .info strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-item .info span {
  font-size: 12px;
  color: var(--ink-muted);
}

.chev {
  color: var(--ink-faint);
  flex-shrink: 0;
}

.pdf-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0 16px;
  box-shadow: var(--shadow);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f0ebe3;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.pdf-body {
  padding: 20px 18px 28px;
  min-height: 320px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      #f3efe8 22px,
      #f3efe8 23px
    );
  position: relative;
}

.pdf-body .fake-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pdf-body .fake-meta {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.pdf-body .fake-line {
  height: 8px;
  background: #ddd6cb;
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.pdf-body .fake-line.short {
  width: 62%;
}

.pdf-body .fake-line.mid {
  width: 84%;
}

.pdf-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 6px;
  transform: rotate(-8deg);
  opacity: 0.7;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tab-h) + 16px);
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Lease ---------- */
.term-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.term {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px;
}

.term .k {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.term .v {
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.renewal-card {
  background: linear-gradient(160deg, #faf7f2, #eef5f1);
  border: 1px solid #d7e5de;
}

.renewal-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.renewal-card p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.gift-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.gift {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.gift.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.gift strong {
  display: block;
  font-size: 13px;
}

.gift span {
  font-size: 11px;
  color: var(--ink-muted);
}

.esign-box {
  border: 1.5px dashed #c5bcae;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #fff;
  margin-bottom: 14px;
  color: var(--ink-muted);
  font-size: 13px;
}

.esign-box.signed {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 650;
}

.sig-canvas {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 28px;
  color: var(--accent-deep);
  margin-top: 6px;
}

/* ---------- Maintenance ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-chip.open {
  background: #f7efe0;
  color: #8a6428;
}

.status-chip.in-progress {
  background: #e4eef8;
  color: #2b5f8a;
}

.status-chip.done {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.req-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.req-item .info {
  flex: 1;
}

.req-item .info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.req-item .info span {
  font-size: 12px;
  color: var(--ink-muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.photo-drop {
  border: 1.5px dashed #c5bcae;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  background: var(--bg-soft);
  color: var(--ink-muted);
  font-size: 13px;
}

.photo-drop .icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.photo-drop.added {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 650;
}

/* ---------- Profile ---------- */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.profile-hero .avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
  margin-bottom: 12px;
}

.profile-hero h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.profile-hero p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .k {
  color: var(--ink-muted);
}

.info-row .v {
  font-weight: 650;
  text-align: right;
}

.info-row a.v {
  color: var(--accent);
}

.call-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-cta .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.call-cta strong {
  display: block;
  font-size: 14px;
}

.call-cta span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Responsive: real phone fills viewport ---------- */
@media (max-width: 480px) {
  body {
    padding: 0;
    background: var(--bg);
    display: block;
  }

  .pitch-bar,
  .pitch-hint {
    display: none;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    max-width: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-shell::before {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
  }

  .dynamic-island {
    top: max(8px, env(safe-area-inset-top, 8px));
  }

  .status-bar {
    padding-top: max(14px, env(safe-area-inset-top, 14px));
    height: calc(var(--safe-top) + env(safe-area-inset-top, 0px));
  }

  .tab-bar {
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 481px) and (max-height: 900px) {
  .phone-shell {
    height: min(var(--phone-h), calc(100vh - 120px));
  }
}

/* =========================================================
   Mode splash + role switcher + prospect screens
   ========================================================= */

.mode-splash {
  position: absolute;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 45%, var(--accent-night) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 72px 22px 36px;
  overflow-y: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mode-splash.hidden {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.mode-splash .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
}

.mode-splash h1 {
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.mode-splash .tagline {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.mode-splash .addr {
  font-size: 12.5px;
  opacity: 0.7;
  line-height: 1.45;
  margin-bottom: 28px;
}

.mode-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.mode-card {
  text-align: left;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mode-card:active {
  transform: scale(0.985);
  background: rgba(255,255,255,0.2);
}

.mode-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

.mode-card span {
  font-size: 12.5px;
  opacity: 0.8;
  line-height: 1.4;
}

.mode-splash .demo-note {
  text-align: center;
  font-size: 11px;
  opacity: 0.55;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* In-app mode switcher strip */
.mode-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--line-soft);
  border-radius: var(--radius-pill);
}

.mode-strip button {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mode-strip button.active {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 2px 8px rgba(28,36,32,0.08);
}

.mode-strip.compact {
  margin-bottom: 14px;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 650;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip.active,
.chip.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.perk-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid #c9ddd5;
}

.perk-chip.gold {
  background: var(--gold-soft);
  color: #7a5a35;
  border-color: #e4d4bc;
}

/* Prospect explore */
.explore-hero {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.1), transparent),
    linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 55%, var(--accent-night) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(22, 69, 57, 0.35);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.explore-hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -36px;
  top: -40px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
  pointer-events: none;
}

.explore-hero .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

.explore-hero h1 {
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.explore-hero p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
  margin-bottom: 14px;
}

.explore-hero .cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explore-hero .btn-primary {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: none;
}

.explore-hero .btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.contact-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.contact-mini a {
  color: var(--accent);
  font-weight: 650;
}

.perk-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.perk-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}

.perk-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.perk-card p {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Floor plans */
.plan-card {
  text-align: left;
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}

.plan-card:active {
  transform: scale(0.985);
}

.plan-card + .plan-card {
  margin-top: 10px;
}

.plan-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.plan-card .name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan-card .rent {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.plan-card .meta {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.plan-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.plan-tag {
  font-size: 10px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--ink-muted);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.amenity-item {
  font-size: 12px;
  line-height: 1.35;
  padding: 10px;
  background: var(--bg-soft);
  border-radius: 10px;
  color: var(--ink);
}

.amenity-item::before {
  content: "• ";
  color: var(--accent);
  font-weight: 700;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot {
  padding: 10px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-muted);
  text-align: center;
}

.slot.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.tour-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tour-type .chip {
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
}

.range-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 8px 0 4px;
  padding: 10px 12px;
  background: var(--gold-soft);
  border-radius: 10px;
  border: 1px solid #e4d4bc;
}

.app.mode-prospect .resident-only,
.app.mode-resident .prospect-only {
  display: none !important;
}

.tab-bar.prospect-tabs,
.tab-bar.resident-tabs {
  display: none;
}

.app.mode-prospect .tab-bar.prospect-tabs,
.app.mode-resident .tab-bar.resident-tabs {
  display: grid;
}

.app.mode-prospect .tab-bar.prospect-tabs.hidden,
.app.mode-resident .tab-bar.resident-tabs.hidden {
  display: none;
}

/* =========================================================
   v2 additions — top bar, events, community, perks, sheet
   (backup of v1 in _backup-2026-09-24/)
   ========================================================= */

[hidden] { display: none !important; }

.pitch-brand { cursor: pointer; }

/* Global top bar */
.top-bar {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 8px;
}
.top-home {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent-deep));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.25);
}
.top-home:active { transform: scale(0.94); }
.top-bar .mode-strip { flex: 1; margin: 0; }
.top-events {
  position: relative;
  height: 36px;
  padding: 0 12px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.top-events.active { background: var(--accent-soft); border-color: var(--accent); }
.top-events .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
/* per-screen strips replaced by the global top bar */
.screen > .mode-strip { display: none; }
/* DEMO watermark moves off the top bar */
.demo-watermark { top: auto; bottom: calc(var(--tab-h) + 10px); right: 14px; }

/* Resident tab bar now has 6 tabs */
.tab-bar.resident-tabs { grid-template-columns: repeat(6, 1fr); padding-left: 4px; padding-right: 4px; }
.tab-bar.resident-tabs .tab { font-size: 9.5px; }

.fine-print {
  text-align: center;
  font-size: 11px;
  color: var(--ink-faint);
  margin: 16px 0 8px;
}
.empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 28px 0;
}
.btn-sm { width: auto; min-height: 38px; padding: 8px 18px; font-size: 14px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; flex-shrink: 0; box-shadow: none; }
.avatar.official { background: linear-gradient(145deg, var(--accent-mid), var(--accent-deep)); }

/* Teasers on Home / Explore */
.teaser-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.teaser-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 18px;
}
.teaser-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.teaser-body strong { font-size: 14px; color: var(--ink); }
.teaser-body span { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teaser-card .chev { color: var(--ink-faint); font-size: 20px; }

.home-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-card {
  text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #c9ddd5;
}
.duo-card.gold { background: var(--gold-soft); border-color: #e4d4bc; }
.duo-card .duo-icon { font-size: 20px; margin-bottom: 4px; }
.duo-card strong { font-size: 14px; color: var(--ink); }
.duo-card span:last-child { font-size: 12px; color: var(--ink-muted); }
.duo-card:active { transform: scale(0.98); }

/* Events */
.event-card { display: flex; gap: 14px; align-items: stretch; }
.event-date {
  width: 54px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 0;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.event-date strong { font-size: 22px; line-height: 1.1; letter-spacing: 0; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 15px; margin: 6px 0 3px; color: var(--ink); }
.event-body p { font-size: 12px; color: var(--ink-muted); }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.event-foot .attend { font-size: 12px; color: var(--ink-muted); }
.rsvp {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.rsvp.going { background: var(--accent-soft); color: var(--accent-deep); border: 1.5px solid var(--accent); }
.rsvp.locked { background: var(--gold-soft); color: #7a5a35; border: 1px solid #e4d4bc; }

/* Community */
.composer { margin-bottom: 14px; }
.composer-row { display: flex; gap: 10px; align-items: flex-start; }
.composer textarea {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 14px;
  background: var(--bg-soft);
  min-height: 44px;
}
.composer textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.composer-foot select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-muted);
  background: #fff;
}
.chip-row.scroll-x { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px 2px; scrollbar-width: none; }
.chip-row.scroll-x::-webkit-scrollbar { display: none; }
.chip-row.scroll-x .chip { flex-shrink: 0; }
.post.pinned { border-color: #c9ddd5; background: linear-gradient(180deg, #f3f9f6, #fff 60%); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-who strong { font-size: 14px; color: var(--ink); }
.post-who span { font-size: 11px; color: var(--ink-faint); }
.verified { color: var(--accent); font-size: 12px; }
.post-text { font-size: 14px; line-height: 1.45; color: var(--ink); margin: 10px 0 8px; white-space: pre-wrap; }
.post-actions { display: flex; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.post-act { flex: 1; padding: 6px 0; border-radius: 8px; font-size: 12px; font-weight: 650; color: var(--ink-muted); }
.post-act:active { background: var(--accent-soft); }
.post-act.liked { color: #c2412d; }

/* Perks — delivery-app style */
.perk-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--line-soft);
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.perk-search input { flex: 1; border: none; background: none; font-size: 14px; outline: none; color: var(--ink); }
.perk-cats {
  display: flex; gap: 10px;
  overflow-x: auto;
  margin: 0 -18px 16px; padding: 0 18px 2px;
  scrollbar-width: none;
}
.perk-cats::-webkit-scrollbar { display: none; }
.perk-cat {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 650; color: var(--ink-muted);
  width: 58px;
}
.perk-cat span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 22px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.perk-cat.active { color: var(--accent-deep); }
.perk-cat.active span { background: var(--accent-soft); border-color: var(--accent); }

.perk-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-mid) 0%, var(--accent-deep) 70%);
  box-shadow: var(--shadow);
}
.perk-hero strong { font-size: 22px; letter-spacing: -0.01em; }
.perk-hero > span { font-size: 12px; opacity: 0.9; max-width: 72%; }
.perk-hero .perk-hero-tag {
  align-self: flex-start;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold); padding: 3px 8px; border-radius: 6px; opacity: 1;
}
.perk-hero .perk-hero-cta { margin-top: 8px; font-weight: 700; font-size: 13px; opacity: 1; }
.perk-hero .perk-hero-emoji { position: absolute; right: 12px; bottom: 6px; font-size: 64px; opacity: 1; max-width: none; transform: rotate(-8deg); }

.perk-rail {
  display: flex; gap: 12px;
  overflow-x: auto;
  margin: 0 -18px; padding: 0 18px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.perk-rail::-webkit-scrollbar { display: none; }
.perk-list { display: flex; flex-direction: column; gap: 14px; }

.perk-tile { text-align: left; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.perk-tile.rail { width: 200px; flex-shrink: 0; scroll-snap-align: start; }
.perk-img {
  position: relative;
  height: 118px;
  border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
}
.perk-tile.rail .perk-img { height: 104px; }
.perk-emoji { font-size: 46px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }
.perk-badge {
  position: absolute; left: 10px; top: 10px;
  background: #fff; color: var(--accent-deep);
  font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.perk-info { display: flex; flex-direction: column; gap: 2px; }
.perk-info strong { font-size: 14px; color: var(--ink); }
.perk-info span { font-size: 12px; color: var(--ink-muted); }
.perk-info em { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; }
.perk-tile.rail .perk-info em { display: none; }
.perk-tile:active .perk-img { transform: scale(0.98); }

/* Bottom sheet */
.sheet-backdrop {
  position: absolute; inset: 0;
  z-index: 50;
  background: rgba(20, 28, 24, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex; align-items: flex-end;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  background: var(--bg-soft);
  border-radius: 22px 22px 0 0;
  padding: 10px 18px 26px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-img { position: relative; height: 140px; border-radius: 16px; display: grid; place-items: center; font-size: 60px; }
.sheet h2 { font-size: 20px; margin: 14px 0 2px; color: var(--ink); }
.sheet-meta { font-size: 12px; color: var(--ink-muted); }
.sheet-detail { font-size: 14px; color: var(--ink); margin: 10px 0 12px; }
.code-box {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; margin-bottom: 12px;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 12px; color: var(--ink-muted);
}
.code-box strong { font-size: 16px; letter-spacing: 0.08em; color: var(--accent-deep); }

/* Layout option switcher (pitch bar) */
.layout-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line-soft); }
.layout-switch a { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--ink-muted); white-space: nowrap; }
.layout-switch a.active { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 6px rgba(28,36,32,.08); }
.pitch-bar { width: min(460px, 100%); }
