/* Nudge — iOS demo. Tokens adapted from design-inspiration/theme.css (ink + indigo), resized for mobile. */
:root {
  --background: #FFFFFF;
  --foreground: #0F172A;
  --card: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --surface-muted: #F1F5F9;
  --app-bg: #F6F7FB;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-foreground: #FFFFFF;
  --brand-tint: #EEF2FF;
  --brand-tint-foreground: #3730A3;
  --brand-soft: #C7D2FE;
  --muted-foreground: #64748B;
  --subtle-foreground: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #15803D; --success-bg: #F0FDF4; --success-solid: #16A34A;
  --warning: #B45309; --warning-bg: #FFFBEB; --warning-solid: #D97706;
  --danger: #B91C1C;  --danger-bg: #FEF2F2;  --danger-solid: #DC2626;
  --info: #3730A3;    --info-bg: #EEF2FF;    --info-solid: #4F46E5;
  --neutral: #64748B; --neutral-bg: #F1F5F9; --neutral-solid: #94A3B8;
  --chart-1: #4F46E5; --chart-2: #A5B4FC; --chart-3: #0EA5E9; --chart-4: #F59E0B; --chart-5: #64748B;
  --app-indigo: #4F46E5; --app-sky: #0284C7; --app-violet: #7C3AED; --app-emerald: #059669; --app-amber: #D97706; --app-rose: #E11D48;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
  --dur-fast: 120ms; --dur-base: 180ms; --dur-slow: 260ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --shadow-popover: 0 8px 24px rgb(15 23 42 / 0.10), 0 2px 6px rgb(15 23 42 / 0.06);
  --r-card: 14px; --r-btn: 12px; --r-sheet: 18px;
  --tabbar-h: 84px;
  --status-h: 54px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-sans); color: var(--foreground); background: #E9ECF3;
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.4;
  font-feature-settings: "cv11", "ss01";
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------- Stage + device frame ---------------- */
.stage { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(1200px 700px at 20% 10%, #EEF2FF 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #E0F2FE 0%, transparent 55%), #EEF0F5; }
.stage-brand { position: absolute; top: 28px; left: 32px; display: flex; align-items: center; gap: 10px; color: var(--foreground); }
.stage-brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--foreground); color: #fff; display: grid; place-items: center; }
.stage-brand b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.stage-brand span { font-size: 13px; color: var(--muted-foreground); display: block; margin-top: 1px; }
.stage-note { position: absolute; bottom: 24px; left: 32px; font-size: 12px; color: var(--muted-foreground); max-width: 260px; }

.device { width: 430px; height: 902px; border-radius: 68px; padding: 14px; position: relative; flex: none;
  background: linear-gradient(145deg, #3B3B40, #1C1C1F 40%, #2A2A2E); box-shadow: 0 0 0 2px #0B0B0C inset, 0 40px 80px rgb(15 23 42 / .28), 0 12px 24px rgb(15 23 42 / .16);
  transform-origin: center center; }
.device::before { content: ""; position: absolute; left: -3px; top: 190px; width: 4px; height: 64px; border-radius: 3px; background: #2A2A2E; box-shadow: 0 90px 0 #2A2A2E; }
.device::after { content: ""; position: absolute; right: -3px; top: 250px; width: 4px; height: 100px; border-radius: 3px; background: #2A2A2E; }
.screen { width: 402px; height: 874px; border-radius: 55px; overflow: hidden; position: relative; background: var(--app-bg); isolation: isolate; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; background: #000; border-radius: 20px; z-index: 60; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: var(--status-h); display: flex; align-items: center; justify-content: space-between; padding: 4px 34px 0 46px; z-index: 55; font-size: 16px; font-weight: 600; pointer-events: none; }
.statusbar .sb-right { display: flex; gap: 6px; align-items: center; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 140px; height: 5px; border-radius: 3px; background: #0F172A; z-index: 70; pointer-events: none; }

@media (max-width: 520px) {
  body { background: var(--app-bg); }
  .stage { display: block; background: var(--app-bg); }
  .stage-brand, .stage-note { display: none; }
  .device { width: 100vw; height: 100dvh; border-radius: 0; padding: 0; background: none; box-shadow: none; transform: none !important; }
  .device::before, .device::after { display: none; }
  .screen { width: 100%; height: 100%; border-radius: 0; }
  .island, .statusbar, .home-indicator { display: none; }
  :root { --status-h: env(safe-area-inset-top, 12px); --tabbar-h: calc(58px + env(safe-area-inset-bottom, 10px)); }
}

/* ---------------- App layout ---------------- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.view { position: absolute; inset: 0; bottom: var(--tabbar-h); overflow: hidden; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-top: var(--status-h); scrollbar-width: none; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.page { padding: 0 16px 28px; }
.view.enter { animation: viewIn var(--dur-slow) var(--ease-out); }
.view.enter-back { animation: viewBack var(--dur-slow) var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes viewBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.view.fade { animation: fadeIn var(--dur-base) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Nav bar (compact, appears on scroll / pushed screens) */
.navbar { position: absolute; top: 0; left: 0; right: 0; z-index: 40; padding-top: var(--status-h); height: calc(var(--status-h) + 44px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-left: 8px; padding-right: 12px;
  background: rgb(246 247 251 / 0); transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); pointer-events: none; }
.navbar > * { pointer-events: auto; }
.navbar.solid { background: rgb(246 247 251 / .97); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--border); }
.navbar .nb-title { font-size: 17px; font-weight: 600; opacity: 0; transition: opacity var(--dur-base) var(--ease-out); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.navbar.solid .nb-title, .navbar.always .nb-title { opacity: 1; }
.navbar .nb-left { justify-self: start; } .navbar .nb-right { justify-self: end; display: flex; gap: 6px; }
.back-btn { display: inline-flex; align-items: center; gap: 0; color: var(--primary); font-size: 17px; height: 44px; padding: 0 8px 0 0; }
.back-btn svg { width: 26px; height: 26px; }
.icon-btn { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--foreground); }
.icon-btn:active { background: var(--surface-muted); }
.navbar + .scroll { padding-top: calc(var(--status-h) + 44px); }

.large-header { padding: 8px 16px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.large-header .eyebrow { font-size: 13px; font-weight: 500; color: var(--muted-foreground); margin-bottom: 2px; }
.large-header h1 { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.large-header .sub { font-size: 15px; color: var(--muted-foreground); margin-top: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--foreground); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.ai { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.avatar.harsh { background: #0F766E; }

/* ---------------- Tab bar ---------------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px 0; background: rgb(255 255 255 / .9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--border); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--subtle-foreground); font-size: 10.5px; font-weight: 500; position: relative; height: 50px; justify-content: center; }
.tab svg { width: 25px; height: 25px; }
.tab.active { color: var(--primary); }
.tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger-solid); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.tab.ask .ask-orb { width: 44px; height: 44px; border-radius: 22px; background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff; display: grid; place-items: center; margin-top: -6px; box-shadow: 0 6px 16px rgb(79 70 229 / .32); }
.tab.ask .ask-orb svg { width: 22px; height: 22px; }
.tab.ask { color: var(--muted-foreground); }
.tab.ask.active { color: var(--primary); }

/* ---------------- Primitives ---------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; }
.card + .card { margin-top: 12px; }
.grid2 > .card, .grid3 > .card, .grid2 > * > .card, .approve-strip > .card, .hscroll > .card, .row > .card, .impact-row > .card { margin-top: 0; }
.card.tight { padding: 12px 14px; }
.card.flush { padding: 0; overflow: hidden; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 10px; }
.section-title h2 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.section-title .link { font-size: 15px; color: var(--primary); font-weight: 500; }
.label { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt4 { margin-top: 4px; }
.w500 { font-weight: 500; } .w600 { font-weight: 600; }

.btn { height: 48px; border-radius: var(--r-btn); padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:active { background: var(--primary-hover); }
.btn.secondary { background: #fff; border: 1px solid var(--border-strong); color: var(--foreground); }
.btn.tint { background: var(--brand-tint); color: var(--brand-tint-foreground); }
.btn.ghost { color: var(--primary); padding: 0 10px; }
.btn.dark { background: var(--foreground); color: #fff; }
.btn.sm { height: 36px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; white-space: nowrap; height: 22px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.pill.success { background: var(--success-bg); color: var(--success); }
.pill.warning { background: var(--warning-bg); color: var(--warning); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.neutral { background: var(--neutral-bg); color: var(--neutral); }
.pill.running::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.delta { font-size: 13px; font-weight: 500; }
.delta.good { color: var(--success); } .delta.bad { color: var(--danger); } .delta.flat { color: var(--muted-foreground); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border-strong); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; transition: all var(--dur-fast) var(--ease-out); }
.chip.on { background: var(--foreground); border-color: var(--foreground); color: #fff; }
.chip.sel { background: var(--brand-tint); border-color: var(--primary); color: var(--brand-tint-foreground); }
.chip svg { width: 15px; height: 15px; }
.chip .count { font-size: 12px; opacity: .7; }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-muted); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { height: 32px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.segmented button.on { background: #fff; color: var(--foreground); box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 0 0 .5px rgb(15 23 42 / .06); }

.list { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; width: 100%; text-align: left; position: relative; }
.list-item + .list-item::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--border); }
.list-item:active { background: var(--surface-subtle); }
.list-item .li-title { font-size: 15.5px; font-weight: 500; }
.list-item .li-sub { font-size: 13px; color: var(--muted-foreground); margin-top: 1px; }
.list-item .chev { color: var(--subtle-foreground); width: 18px; height: 18px; flex: none; }
.list-item .li-right { text-align: right; flex: none; }

.icon-tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.icon-tile svg { width: 19px; height: 19px; }
.icon-tile.lg { width: 48px; height: 48px; border-radius: 13px; }
.icon-tile.lg svg { width: 24px; height: 24px; }
.icon-tile.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-tile.sm svg { width: 15px; height: 15px; }
.icon-tile.soft { background: var(--brand-tint); color: var(--primary); }
.icon-tile.gray { background: var(--surface-muted); color: var(--foreground); }
.c-indigo { background: var(--app-indigo); } .c-sky { background: var(--app-sky); } .c-violet { background: var(--app-violet); }
.c-emerald { background: var(--app-emerald); } .c-amber { background: var(--app-amber); } .c-rose { background: var(--app-rose); }

.toggle { width: 51px; height: 31px; border-radius: 16px; background: #E2E8F0; position: relative; transition: background var(--dur-base) var(--ease-out); flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .18); transition: transform var(--dur-base) var(--ease-out); }
.toggle.on { background: var(--success-solid); }
.toggle.on::after { transform: translateX(20px); }

.progress { height: 6px; border-radius: 3px; background: var(--surface-muted); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.progress.success > i { background: var(--success-solid); }

.input, .textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: #fff; outline: none; transition: border var(--dur-fast), box-shadow var(--dur-fast); }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / .15); }
.textarea { resize: none; min-height: 120px; line-height: 1.45; }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted-foreground); margin: 16px 2px 8px; display: block; }

.ai-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--primary); }
.ai-tag svg { width: 13px; height: 13px; }

/* Bottom action bar for pushed screens */
.action-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 14px; background: rgb(246 247 251 / .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); display: flex; gap: 10px; z-index: 30; }
.action-bar .btn { flex: 1; }
.has-action .scroll { padding-bottom: 84px; }

/* ---------------- Home ---------------- */
.brief { background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%); border: 1px solid #E0E7FF; border-radius: var(--r-card); padding: 16px; }
.brief .row svg { color: var(--primary); }
.brief p { margin: 8px 0 14px; font-size: 15.5px; line-height: 1.45; }
.northstar .ns-value { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; }
.northstar .spark { margin: 12px -4px 4px; }
.kpi { padding: 14px; }
.kpi .k-val { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.kpi .k-val small { font-size: 14px; font-weight: 500; color: var(--muted-foreground); margin-left: 2px; letter-spacing: 0; }
.mixbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 8px; background: var(--surface-muted); }
.mixbar i:first-child { background: var(--primary); } .mixbar i:last-child { background: var(--brand-soft); }
.tile { padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 120px; }
.tile .t-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tile .t-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-muted); display: grid; place-items: center; color: var(--foreground); }
.tile .t-icon svg { width: 15px; height: 15px; }
.tile .t-val { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.tile .t-val small { font-size: 13px; font-weight: 500; color: var(--muted-foreground); margin-left: 3px; letter-spacing: 0; }
.tile .t-detail { font-size: 12px; color: var(--muted-foreground); line-height: 1.35; margin-top: 2px; }
.approve-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.approve-strip::-webkit-scrollbar { display: none; }
.approve-mini { flex: none; width: 260px; scroll-snap-align: start; text-align: left; }
.approve-mini .am-title { font-size: 15px; font-weight: 500; line-height: 1.3; margin: 10px 0 8px; min-height: 40px; }
.feed-item { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.feed-item + .feed-item { border-top: 1px solid var(--border); }
.feed-item .icon-tile { margin-top: 1px; }

/* ---------------- Approvals ---------------- */
.rec { text-align: left; width: 100%; display: block; }
.rec .rec-top { display: flex; align-items: center; gap: 8px; }
.rec h3 { font-size: 16.5px; font-weight: 600; margin: 10px 0 6px; line-height: 1.3; letter-spacing: -0.01em; }
.rec .why { font-size: 14px; color: var(--muted-foreground); line-height: 1.45; margin: 0; }
.rec .rec-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; }
.rec .impact { color: var(--success); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.rec .impact svg { width: 14px; height: 14px; }
.rec .rec-foot > svg:last-child { margin-left: auto; color: var(--subtle-foreground); }
.rec.done { opacity: .62; }
.built { background: var(--brand-tint); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--brand-tint-foreground); line-height: 1.45; display: flex; gap: 10px; }
.built svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.impact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.impact-row .card { padding: 12px 14px; }

/* Ad preview (Meta feed mock) */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: center; flex: none; }
.fbad { width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.fbad .fb-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.fbad .fb-logo { width: 34px; height: 34px; border-radius: 50%; background: #1E293B url('assets/hotel/mansion-night.jpg') center/cover; flex: none; }
.fbad .fb-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.fbad .fb-spons { font-size: 12px; color: var(--muted-foreground); }
.fbad .fb-text { font-size: 14px; padding: 0 12px 10px; line-height: 1.4; }
.fbad .fb-img { aspect-ratio: 1 / 1; background: #E2E8F0 center/cover; position: relative; }
.fbad .fb-img.file { background-size: cover; aspect-ratio: 4 / 5; }
.fbad .fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--surface-subtle); border-top: 1px solid var(--border); }
.fbad .fb-foot .h { font-size: 14px; font-weight: 600; line-height: 1.25; }
.fbad .fb-foot .d { font-size: 12px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .02em; }
.fbad .fb-cta { height: 32px; padding: 0 12px; border-radius: 8px; background: #E4E6EB; font-size: 13.5px; font-weight: 600; flex: none; display: inline-flex; align-items: center; }
.fbad .fb-meta { display: flex; justify-content: space-between; padding: 10px 12px; font-size: 13px; border-top: 1px solid var(--border); }
.overlay-copy { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgb(15 23 42 / .78)); color: #fff; }
.overlay-copy .oc-kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.overlay-copy .oc-head { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin-top: 4px; font-family: Georgia, "Times New Roman", serif; }
.score { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.score b { font-weight: 600; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: all var(--dur-base) var(--ease-out); }
.dots i.on { width: 18px; background: var(--primary); }

/* Calendar list */
.cal-item { display: flex; gap: 12px; align-items: center; }
.cal-date { width: 48px; flex: none; text-align: center; border-radius: 10px; background: var(--surface-muted); padding: 6px 0; }
.cal-date .m { font-size: 11px; font-weight: 600; color: var(--danger); text-transform: uppercase; letter-spacing: .04em; }
.cal-date .d { font-size: 20px; font-weight: 600; line-height: 1.1; }

/* Email preview */
.email-mock { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.email-mock .em-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.email-mock .em-from { font-size: 13px; color: var(--muted-foreground); }
.email-mock .em-subj { font-size: 15.5px; font-weight: 600; margin-top: 2px; line-height: 1.3; }
.email-mock .em-body { padding: 0; }
.email-mock .em-brand { text-align: center; padding: 14px; font-family: Georgia, serif; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.email-mock .em-hero { aspect-ratio: 16 / 10; background: center/cover; }
.email-mock .em-copy { padding: 16px; font-size: 14.5px; line-height: 1.55; color: #334155; }
.email-mock .em-copy p { margin: 0 0 10px; }
.email-mock .em-cta { display: inline-flex; margin: 4px 0 8px; background: #0F172A; color: #fff; border-radius: 8px; height: 42px; align-items: center; padding: 0 18px; font-size: 14px; font-weight: 600; }
.email-file { width: 100%; display: block; }
.email-thumb { height: 320px; overflow: hidden; position: relative; }
.email-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, #fff); }

/* Conversational setup */
.convo { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.42; animation: bubbleIn var(--dur-base) var(--ease-out); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bubble.ai { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble.harsh { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; align-self: flex-start; }
.opt-group { align-self: stretch; padding: 2px 0 4px; }
.flow-msg { border-left: 3px solid var(--primary); }

/* ---------------- Chat ---------------- */
.chat-view .scroll { padding-bottom: 96px; }
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head .ch-name { font-size: 17px; font-weight: 600; line-height: 1.2; }
.chat-head .ch-sub { font-size: 12.5px; color: var(--muted-foreground); display: flex; align-items: center; gap: 5px; }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--success-solid); display: inline-block; }
.chat-empty { text-align: center; padding: 60px 20px 0; }
.chat-empty .orb { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 18px; background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgb(79 70 229 / .3); }
.chat-empty .orb svg { width: 34px; height: 34px; }
.chat-empty h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.chat-empty p { color: var(--muted-foreground); margin: 0 auto; max-width: 290px; font-size: 15px; }
.connected { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 0; text-align: left; }
.connected .cn { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.connected .cn .icon-tile { width: 28px; height: 28px; border-radius: 8px; }
.connected .cn .icon-tile svg { width: 15px; height: 15px; }
.msgs { display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 12px; }
.msg-me { align-self: flex-end; max-width: 84%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.msg-me .bubble { max-width: 100%; }
.msg-me img.att { width: 160px; border-radius: 14px; border: 1px solid var(--border); }
.msg-ai { align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.msg-ai .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.msg-ai .who .avatar { width: 24px; height: 24px; font-size: 10px; }
.msg-ai .who .avatar svg { width: 13px; height: 13px; }
.ai-text { font-size: 16px; line-height: 1.5; color: var(--foreground); }
.ai-text p { margin: 0 0 8px; } .ai-text p:last-child { margin-bottom: 0; }
.ai-text ul, .ai-text ol { margin: 4px 0 8px; padding-left: 20px; }
.ai-text li { margin: 3px 0; }
.ai-text strong { font-weight: 600; }
.cursor::after { content: ""; display: inline-block; width: 8px; height: 16px; border-radius: 2px; background: var(--primary); margin-left: 3px; vertical-align: -2px; animation: pulse .9s infinite; }
.steps { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 12px; }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; animation: bubbleIn var(--dur-base) var(--ease-out); }
.step + .step { border-top: 1px solid var(--border); }
.step .st-app { font-weight: 600; white-space: nowrap; }
.step .st-label { color: var(--muted-foreground); flex: 1; min-width: 0; }
.step .st-state { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.step .st-state svg { width: 16px; height: 16px; color: var(--success-solid); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand-soft); border-top-color: var(--primary); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thinking { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 18px; border-bottom-left-radius: 6px; align-self: flex-start; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle-foreground); animation: bounce 1.2s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; scroll-snap-align: start; }
.creative { width: 210px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #fff; text-align: left; }
.creative .cr-img { aspect-ratio: 4 / 5; background: #E2E8F0 center/cover; position: relative; }
.creative .cr-img .overlay-copy { padding: 30px 12px 12px; }
.creative .cr-img .overlay-copy .oc-head { font-size: 17px; }
.creative .cr-body { padding: 10px 12px; }
.creative .cr-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.creative .cr-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.mini-email { width: 230px; }
.composer { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 10px; background: rgb(246 247 251 / .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); z-index: 30; }
.composer .att-preview { display: flex; gap: 8px; margin: 0 0 8px 4px; }
.composer .att-preview .ap { position: relative; width: 56px; height: 56px; border-radius: 10px; background: center/cover; border: 1px solid var(--border); }
.composer .att-preview .ap button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 11px; background: var(--foreground); color: #fff; display: grid; place-items: center; }
.composer .att-preview .ap button svg { width: 12px; height: 12px; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer .c-btn { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--muted-foreground); flex: none; background: #fff; border: 1px solid var(--border); }
.composer .c-btn svg { width: 20px; height: 20px; }
.composer .c-input { flex: 1; min-height: 40px; max-height: 120px; overflow-y: auto; scrollbar-width: none; border: 1px solid var(--border-strong); border-radius: 20px; padding: 9px 14px; font-size: 16px; line-height: 1.35; background: #fff; outline: none; resize: none; }
.composer .c-input:focus { border-color: var(--primary); }
.composer .send { background: var(--primary); color: #fff; border-color: var(--primary); }
.composer .send[disabled] { background: var(--brand-soft); border-color: var(--brand-soft); }
.composer .mic.rec { background: var(--danger-solid); color: #fff; border-color: var(--danger-solid); animation: recPulse 1.4s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 6px rgb(220 38 38 / .18); } }

/* ---------------- Apps ---------------- */
.app-card { text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.app-card .ac-name { font-size: 15.5px; font-weight: 600; }
.app-card .ac-desc { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.35; margin-top: 2px; }
.app-card .ac-stat { font-size: 12.5px; font-weight: 500; margin-top: auto; display: flex; align-items: center; gap: 4px; }
.app-hero { display: flex; align-items: center; gap: 12px; padding: 4px 16px 16px; }
.app-hero h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.app-hero .sub { font-size: 14px; color: var(--muted-foreground); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); }
.stat-strip > div { padding: 12px 8px; text-align: center; }
.stat-strip > div + div { border-left: 1px solid var(--border); }
.stat-strip .sv { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.stat-strip .sl { font-size: 11.5px; color: var(--muted-foreground); margin-top: 1px; }
.stat-strip.three { grid-template-columns: repeat(3, 1fr); }
.camp { display: flex; gap: 12px; align-items: center; padding: 14px; }
.camp + .camp { border-top: 1px solid var(--border); }
.camp .cp-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.camp .cp-meta { font-size: 12.5px; color: var(--muted-foreground); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gauge-wrap { display: flex; gap: 16px; align-items: center; }
.wizard-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.wizard-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.wizard-steps i.on { background: var(--primary); }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; width: 100%; text-align: left; font-size: 15.5px; font-weight: 500; transition: border var(--dur-fast); }
.choice + .choice { margin-top: 10px; }
.choice.sel { border-color: var(--primary); background: var(--brand-tint); }
.choice .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.choice.sel .radio { border-color: var(--primary); background: var(--primary); color: #fff; }
.choice.sel .radio svg { width: 13px; height: 13px; }
.variant { width: 100%; text-align: left; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; background: #fff; }
.variant + .variant { margin-top: 10px; }
.variant.sel { border-color: var(--primary); background: var(--brand-tint); }
.variant .v-h { font-weight: 600; font-size: 15.5px; }
.variant .v-p { font-size: 14px; color: #334155; margin-top: 4px; line-height: 1.45; }
.variant .v-c { font-size: 12px; color: var(--muted-foreground); margin-top: 6px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick { aspect-ratio: 4/5; border-radius: 10px; background: #E2E8F0 center/cover; position: relative; border: 2px solid transparent; }
.pick.sel { border-color: var(--primary); box-shadow: 0 0 0 2px #fff inset; }
.pick .ck { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 11px; background: var(--primary); color: #fff; display: none; place-items: center; }
.pick.sel .ck { display: grid; }
.pick .ck svg { width: 13px; height: 13px; }
.range { width: 100%; accent-color: var(--primary); }
.review { padding: 14px; }
.review .rv-head { display: flex; align-items: center; gap: 10px; }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: 13px; }
.stars .off { color: #E2E8F0; }
.review .rv-text { font-size: 14.5px; line-height: 1.5; margin: 10px 0 0; color: #1E293B; }
.reply-box { margin-top: 12px; background: var(--surface-subtle); border-radius: 12px; padding: 12px; border: 1px solid var(--border); }
.reply-box .rb-label { font-size: 12px; font-weight: 500; color: var(--muted-foreground); display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.reply-box textarea { width: 100%; border: 0; background: transparent; outline: none; resize: none; font-size: 14.5px; line-height: 1.5; min-height: 96px; padding: 0; }
.plat { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.plat.google { background: #fff; border: 1px solid var(--border); color: #4285F4; }
.plat.tripadvisor { background: #00AF87; } .plat.booking { background: #003580; } .plat.expedia { background: #FFC72C; color: #0F172A; }
.inbox-item { display: flex; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; position: relative; }
.inbox-item + .inbox-item::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--border); }
.inbox-item .ii-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.inbox-item .ii-from { font-size: 15.5px; font-weight: 600; }
.inbox-item .ii-time { font-size: 12.5px; color: var(--muted-foreground); flex: none; }
.inbox-item .ii-subj { font-size: 14px; margin-top: 1px; }
.inbox-item .ii-ai { font-size: 12.5px; margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ch-icon { width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; flex: none; color: #fff; }
.ch-icon svg { width: 18px; height: 18px; }
.ch-call { background: #16A34A; } .ch-instagram { background: linear-gradient(45deg, #F59E0B, #E11D48, #7C3AED); } .ch-facebook { background: #1877F2; } .ch-chat { background: var(--primary); } .ch-email { background: #0284C7; }
.player { display: flex; align-items: center; gap: 12px; }
.player .play { width: 48px; height: 48px; border-radius: 24px; background: var(--foreground); color: #fff; display: grid; place-items: center; flex: none; }
.player .play svg { width: 20px; height: 20px; }
.wave { display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer; }
.wave i { flex: 1; border-radius: 2px; background: var(--border-strong); min-height: 4px; }
.wave i.on { background: var(--primary); }
.transcript { display: flex; flex-direction: column; gap: 8px; }
.tline { display: flex; flex-direction: column; max-width: 88%; }
.tline .tl-who { font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); margin: 0 4px 3px; }
.tline .bubble { max-width: 100%; font-size: 15px; animation: none; transition: background var(--dur-base), border-color var(--dur-base); }
.tline.ai { align-self: flex-start; } .tline.caller { align-self: flex-end; align-items: flex-end; }
.tline.caller .bubble { background: var(--surface-muted); border: 1px solid var(--border); border-bottom-right-radius: 6px; }
.tline.ai .bubble { background: var(--brand-tint); border-color: #E0E7FF; }
.tline.now .bubble { border-color: var(--primary); box-shadow: 0 0 0 2px rgb(79 70 229 / .18); }

/* ---------------- Concierge ---------------- */
.strat { display: flex; gap: 12px; align-items: center; }
.strat .s-name { font-size: 18px; font-weight: 600; }
.strat .s-title { font-size: 14px; color: var(--muted-foreground); }
.strat .s-status { font-size: 12.5px; color: var(--success); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.goal + .goal { margin-top: 12px; }
.goal .g-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.upcoming { background: var(--foreground); color: #fff; border: 0; }
.upcoming .muted { color: #94A3B8; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.slot-days::-webkit-scrollbar { display: none; }
.slot-day { flex: none; width: 64px; height: 76px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.slot-day .sd-w { font-size: 12px; color: var(--muted-foreground); font-weight: 500; }
.slot-day .sd-d { font-size: 22px; font-weight: 600; }
.slot-day.sel { border-color: var(--primary); background: var(--primary); color: #fff; }
.slot-day.sel .sd-w { color: #E0E7FF; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-size: 15px; font-weight: 500; }
.slot.sel { border-color: var(--primary); background: var(--brand-tint); color: var(--brand-tint-foreground); }
.plan { position: relative; }
.plan.highlight { border: 2px solid var(--primary); }
.plan .p-badge { position: absolute; top: -11px; right: 14px; }
.plan .p-name { font-size: 17px; font-weight: 600; }
.plan .p-price { font-size: 15px; color: var(--muted-foreground); }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; }
.plan li { display: flex; gap: 8px; font-size: 14px; padding: 3px 0; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--success-solid); flex: none; margin-top: 2px; }
.upsell-hero { border-radius: var(--r-card); overflow: hidden; position: relative; color: #fff; padding: 22px 18px; background: linear-gradient(160deg, #1E1B4B, #4F46E5); }
.upsell-hero h2 { font-size: 24px; line-height: 1.2; margin: 10px 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.upsell-hero p { margin: 0; color: #C7D2FE; font-size: 15px; line-height: 1.45; }

/* ---------------- Sheets + toasts ---------------- */
.sheet-backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / .35); z-index: 80; animation: fadeIn var(--dur-base) var(--ease-out); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 81; background: #fff; border-radius: var(--r-sheet) var(--r-sheet) 0 0; max-height: 88%; display: flex; flex-direction: column; box-shadow: var(--shadow-popover); animation: sheetIn var(--dur-slow) var(--ease-out); }
.sheet.closing { animation: sheetOut var(--dur-base) var(--ease-out) forwards; }
.sheet-backdrop.closing { animation: fadeOut var(--dur-base) var(--ease-out) forwards; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 8px auto 4px; flex: none; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.sheet .sheet-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet .sheet-body { overflow-y: auto; padding: 0 16px 28px; scrollbar-width: none; }
.sheet .sheet-body::-webkit-scrollbar { display: none; }
.toast-root { position: absolute; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 12px); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--foreground); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-popover); animation: toastIn var(--dur-slow) var(--ease-out); max-width: 100%; }
.toast svg { width: 18px; height: 18px; color: #4ADE80; flex: none; }
.toast.out { animation: fadeOut var(--dur-base) var(--ease-out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty-done { text-align: center; padding: 40px 20px; color: var(--muted-foreground); }
.empty-done .icon-tile { margin: 0 auto 12px; }
.err { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 4px 0 6px; padding-left: 18px; }

/* ---------------- New app colors ---------------- */
.c-pink { background: #DB2777; } .c-teal { background: #0D9488; }
.grid2 > .tile:last-child:nth-child(odd) { grid-column: span 2; min-height: 0; }
.connected { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.connected .cn { padding: 8px; font-size: 11.5px; gap: 6px; }

/* ---------------- Reels (videos made from photos) ---------------- */
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0F172A; color: #fff; isolation: isolate; }
.reel-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease-out); }
.reel-frame.on { opacity: 1; z-index: 1; }
.rf-img { position: absolute; inset: 0; background: center / cover; transform: scale(1.04); }
.reel-frame.on .rf-img { animation: kb 3.4s linear forwards; }
.reel-frame:nth-child(odd).on .rf-img { animation-name: kb2; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.18) translate(-2%, -1%); } }
@keyframes kb2 { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.04); } }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, transparent 18%, transparent 52%, rgb(0 0 0 / .65) 100%); }
.rf-text { position: absolute; left: 18px; right: 56px; bottom: 30%; z-index: 3; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.15; font-weight: 600; text-shadow: 0 2px 12px rgb(0 0 0 / .45); opacity: 0; }
.reel-frame.on .rf-text { animation: textUp 700ms var(--ease-out) 250ms forwards; }
@keyframes textUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reel-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 4; }
.reel-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.reel-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.reel-bars i.done b { width: 100%; }
.reel-bars i.on b { animation: barFill 2.8s linear forwards; }
.reel.paused .reel-bars i.on b, .reel.paused .rf-img { animation-play-state: paused; }
@keyframes barFill { to { width: 100%; } }
.reel-side { position: absolute; right: 12px; bottom: 90px; z-index: 4; display: flex; flex-direction: column; gap: 18px; }
.reel-ui { position: absolute; left: 14px; right: 56px; bottom: 14px; z-index: 4; }
.reel-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .92; line-height: 1.35; }
.reel-follow { border: 1px solid rgb(255 255 255 / .7); border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.reel-play { position: absolute; top: 22px; right: 12px; z-index: 5; width: 32px; height: 32px; border-radius: 16px; background: rgb(0 0 0 / .35); color: #fff; display: grid; place-items: center; }
.reel:not([data-auto]) .reel-play { display: none; }

/* Instagram post mock */
.igpost { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ig-media { aspect-ratio: 1 / 1; background: center / cover; position: relative; flex: none; width: 100%; scroll-snap-align: start; }
.ig-car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ig-car::-webkit-scrollbar { display: none; }
.ig-count { position: absolute; top: 10px; right: 10px; background: rgb(15 23 42 / .7); color: #fff; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 8px; }
.ig-actions { display: flex; gap: 14px; padding: 10px 12px 4px; }
.ig-cap { padding: 4px 12px 12px; font-size: 14px; line-height: 1.45; }
.ig-tags { color: #1D4ED8; }
.pcard { width: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #fff; text-align: left; }
.pc-img { aspect-ratio: 4 / 5; background: center / cover; position: relative; }
.pc-img .overlay-copy { padding: 26px 10px 10px; }
.pc-img .overlay-copy .oc-head { font-size: 14.5px; }
.pc-type { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgb(15 23 42 / .65); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 8px; }
.pc-body { padding: 8px 10px 10px; }
.pthumb { width: 52px; height: 52px; border-radius: 10px; background: center / cover; position: relative; flex: none; }
.pthumb span { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 6px; background: rgb(15 23 42 / .7); color: #fff; display: grid; place-items: center; }

/* ---------------- Website replica ---------------- */
.browser { border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: #fff; }
.br-bar { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px; font-size: 12px; color: var(--muted-foreground); background: var(--surface-muted); border-bottom: 1px solid var(--border); }
.site { --sa: #2F4A3A; --sbg: #FBF8F3; background: var(--sbg); color: #2B2B2B; font-family: Georgia, "Times New Roman", serif; }
.site.sans { font-family: var(--font-sans); }
.site .s-body, .site .s-sub, .site .s-banner, .site .s-btn, .site .s-link, .site .s-footer, .site .s-kicker, .site .small, .site .xs { font-family: var(--font-sans); }
.s-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--sbg); border-bottom: 1px solid rgb(0 0 0 / .06); }
.s-logo { font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--sa); font-weight: 600; }
.s-banner { text-align: center; padding: 9px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.s-banner.dark { background: #1C1C1C; color: #fff; } .s-banner.accent { background: var(--sa); color: #fff; } .s-banner.light { background: color-mix(in srgb, var(--sa) 12%, #fff); color: var(--sa); }
.s-hero { position: relative; min-height: 330px; background: center / cover; display: flex; align-items: flex-end; }
.s-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgb(0 0 0 / .62)); }
.s-hero-in { position: relative; padding: 18px 16px 20px; color: #fff; }
.s-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; opacity: .9; }
.s-h1 { font-size: 30px; line-height: 1.1; margin-top: 6px; }
.s-sub { font-size: 14px; line-height: 1.45; margin-top: 8px; opacity: .92; }
.s-h2 { font-size: 22px; line-height: 1.2; color: var(--sa); margin-bottom: 8px; }
.s-h3 { font-size: 17px; color: #1F1F1F; }
.s-body { font-size: 14px; line-height: 1.55; color: #4A4A4A; }
.s-pad { padding: 22px 16px; }
.s-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 4px; background: var(--sa); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.s-btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.s-btn.ghost { background: transparent; border: 1.5px solid #fff; }
.s-btn.light { background: #fff; color: var(--sa); }
.s-card { background: #fff; border: 1px solid rgb(0 0 0 / .07); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.s-card-img { aspect-ratio: 16 / 9; background: center / cover; }
.s-link { font-size: 13px; font-weight: 600; color: var(--sa); margin-top: 8px; }
.s-offer { margin: 16px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--sa) 9%, #fff); border: 1px solid color-mix(in srgb, var(--sa) 25%, #fff); }
.s-quote { font-size: 18px; line-height: 1.45; font-style: italic; margin: 10px 0 8px; color: #2B2B2B; }
.s-faq { padding: 10px 0; border-top: 1px solid rgb(0 0 0 / .08); }
.s-cta { background: var(--sa); color: #fff; padding: 24px 16px; text-align: center; }
.s-footer { background: #1C1C1C; color: #BDBDBD; font-size: 12px; text-align: center; padding: 16px; line-height: 1.5; }
.s-changed { position: relative; outline: 2.5px dashed var(--primary); outline-offset: -3px; }
.s-tag { position: absolute; top: 6px; right: 6px; z-index: 3; background: var(--primary); color: #fff; font-family: var(--font-sans); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.s-changed .s-banner { padding-right: 52px; padding-left: 14px; text-align: left; }
.grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid2 .creative { width: 100%; }
.igpost .fb-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.igpost .fb-logo, .reel .fb-logo { width: 34px; height: 34px; border-radius: 50%; background: #1E293B url('assets/hotel/mansion-night.jpg') center/cover; flex: none; }
.igpost .fb-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.igpost .fb-spons { font-size: 12px; color: var(--muted-foreground); }
.creative .cr-meta { flex-wrap: wrap; row-gap: 4px; }

.device { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 520px) { .device { position: relative; top: 0; left: 0; } }

/* ---------------- For you feed ---------------- */
.pill.violet { background: #F5F3FF; color: #6D28D9; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.fcard { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.fc-main { display: block; width: 100%; text-align: left; padding: 14px 16px 0; }
.fc-top { display: flex; align-items: center; gap: 7px; }
.icon-tile.xs { width: 22px; height: 22px; border-radius: 6px; }
.icon-tile.xs svg { width: 13px; height: 13px; }
.fc-agent { font-size: 13px; font-weight: 500; color: var(--foreground); }
.fc-time { font-size: 12.5px; color: var(--subtle-foreground); }
.fc-top .pill { height: 20px; font-size: 11.5px; padding: 0 8px; }
.fc-title { font-size: 16px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; margin: 10px 0 4px; }
.fc-title.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; font-weight: 500; }
.fc-why { font-size: 14px; color: var(--muted-foreground); line-height: 1.42; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }
.fc-impact { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--success); min-width: 0; }
.fc-impact svg { flex: none; }
.fc-acts { display: flex; gap: 6px; flex: none; }
.fc-btn { height: 34px; padding: 0 12px; border-radius: 17px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 2px; }
.fc-btn.primary { background: var(--brand-tint); color: var(--brand-tint-foreground); padding: 0 12px 0 14px; }
.fc-btn:active { transform: scale(.97); }
.fc-answers { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 14px; }
.fc-answers::-webkit-scrollbar { display: none; }
.fc-chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border-strong); background: #fff; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.fc-chip.ghost { border-style: dashed; color: var(--muted-foreground); }
.fc-chip:active { background: var(--brand-tint); border-color: var(--primary); }
.fcard.done { background: var(--surface-subtle); }
.fcard.done .fc-main { padding-bottom: 12px; }
.fcard.done .fc-title { color: var(--muted-foreground); }
.fc-closed { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--success); line-height: 1.4; }
.fc-closed svg { flex: none; margin-top: 2px; }
.team { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, #F8FAFC, #EEF2FF); }
.team-row { display: flex; flex: none; }
.team-row .team-dot { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #fff; margin-left: -8px; }
.team-row .team-dot svg { width: 13px; height: 13px; }
.team-row .team-dot:first-child { margin-left: 0; }
.team-row .team-dot:nth-child(n+5) { display: none; }
.fb-card { background: #fff; }
.fb-input textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; font-size: 15.5px; line-height: 1.4; resize: none; outline: none; min-height: 64px; }
.fb-input textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / .15); }
.fb-input.busy { opacity: .6; pointer-events: none; }
.choice[disabled] { opacity: .75; }
