/* ADSTA 0.8 — Home redo. Spiced Cherry & Cream, Poppins. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --inferno: #AA0003; --pink: #FF6B6B; --papaya: #FFEDD5; --cherry: #6E0002;
  --charcoal: #2B2728; --grey: #6B6667; --light: #DCD7D5;
  --bg: #F8F4F2; --card: #fff; --line: #EDE6E2; --muted: #8A8384; --ok: #1F8A5B;
  --tab-h: 70px;
  --shadow: 0 1px 2px rgba(43,39,40,.04), 0 10px 26px rgba(43,39,40,.06);
}

html, body { margin: 0; height: 100%; }
body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; color: var(--charcoal);
  background: radial-gradient(120% 70% at 50% 0%, #fff 0%, #F1EBE8 42%, #E5DCD8 100%);
  display: flex; align-items: center; justify-content: center; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.v11 #root { width: 100%; max-width: 430px; display: flex; justify-content: center; }
.v11 button { font: inherit; color: inherit; cursor: pointer; }
.v11 .app {
  position: relative; width: 100%; max-width: 430px; height: 100dvh; background: var(--bg);
  overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
}

@media (min-width: 900px) {
  .v11 .app { height: 884px; max-height: 94vh; border-radius: 40px;
    box-shadow: 0 0 0 11px #1b191a, 0 0 0 13px #3a3436, 0 40px 90px rgba(43,39,40,.28); }
}

/* ---------- header ---------- */
.v11 .topbar {
  position: relative; z-index: 20; flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top,0px) + 16px) 16px 12px; background: var(--bg);
}

.v11 .topbar.over { position: absolute; inset: 0 0 auto 0; background: linear-gradient(180deg, rgba(14,4,5,.62), rgba(14,4,5,0)); padding-bottom: 28px; color: #fff; }
.v11 .wordmark { font-size: 15px; font-weight: 700; letter-spacing: .16em; color: var(--cherry); flex: 0 0 auto; }
.v11 .topbar.over .wordmark { color: #fff; }
.v11 .spacer { flex: 1; }

.v11 .stats { flex: 1; display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 4px; min-width: 0; }
.v11 .stat { background: none; border: 0; padding: 4px 6px; border-radius: 10px; text-align: left; min-width: 0;
  display: flex; flex-direction: column; gap: 1px; transition: background .15s; }
.v11 .stat:active { transform: scale(.97); }
.v11 .stat:hover { background: rgba(255,255,255,.12); }
.v11 .stat-l { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .78; white-space: nowrap; }
.v11 .stat-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; display: flex; align-items: baseline; gap: 4px; }
.v11 .stat-v small { font-size: 10px; font-weight: 600; opacity: .85; }
.v11 .stat + .stat { border-left: 1px solid rgba(255,255,255,.22); border-radius: 0 10px 10px 0; }
.v11 .topbar:not(.over) .stat + .stat { border-left-color: var(--line); }
.v11 .stat .delta { font-size: 10px; font-weight: 700; color: #7CF0B0; animation: pop .5s ease both; }
.v11 .topbar:not(.over) .stat .delta { color: var(--ok); }
@keyframes pop { from { transform: translateY(4px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.v11 .stat.bump .stat-v { animation: bump .6s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* chips variant of stats */
.v11 .stats.chips .stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24) !important; border-radius: 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v11 .topbar:not(.over) .stats.chips .stat { background: #fff; border-color: var(--line) !important; box-shadow: var(--shadow); }

.v11 .logout { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--cherry); box-shadow: var(--shadow); }
.v11 .logout:active { transform: scale(.97); }

/* ---------- screens ---------- */
.v11 .screens { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 4px 16px calc(var(--tab-h) + 28px); scrollbar-width: none; }
.v11 .screens::-webkit-scrollbar { display: none; }
.v11 .screens.feed { padding: 0; position: absolute; inset: 0; overflow: hidden; }

/* ---------- feed ---------- */
.v11 .rail { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.v11 .rail::-webkit-scrollbar { display: none; }
.v11 .card-v { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #1a0b0c; color: #fff; user-select: none; }
.v11 .card-v img.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v11 .card-v .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.18) 55%, rgba(10,0,1,.78) 100%); pointer-events: none; }
.v11 .kind { position: absolute; top: 96px; left: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; background: rgba(170,0,3,.88); color: #fff; }
.v11 .kind i { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block; }
.v11 .kind.vision { background: rgba(43,39,40,.72); }
.v11 .kind.challenge { background: rgba(255,237,213,.95); color: var(--cherry); }
.v11 .kind.challenge i { background: var(--inferno); }

.v11 .side { position: absolute; right: 10px; bottom: calc(var(--tab-h) + 128px); display: grid; gap: 16px; justify-items: center; z-index: 3; }
.v11 .act { background: none; border: 0; display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); color: #fff; padding: 0; min-width: 44px; }
.v11 .act .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s; }
.v11 .act:active .ic { transform: scale(.88); }
.v11 .act svg { width: 22px; height: 22px; }
.v11 .act.on .ic { color: #FF6B6B; }
.v11 .act.on .ic svg { fill: currentColor; }

.v11 .meta { position: absolute; left: 16px; right: 74px; bottom: calc(var(--tab-h) + 22px); display: grid; gap: 6px; z-index: 2; }
.v11 .meta .where { font-size: 11.5px; opacity: .88; display: flex; align-items: center; gap: 6px; }
.v11 .meta h2 { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.v11 .meta .social { font-size: 11.5px; opacity: .92; display: flex; align-items: center; gap: 7px; }
.v11 .faces { display: inline-flex; }
.v11 .faces b { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(20,4,6,.9); margin-left: -6px; display: block; }
.v11 .faces b:first-child { margin-left: 0; }
.v11 .nudge { justify-self: start; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.v11 .nudge em { font-style: normal; color: #FFC9A8; }

.v11 .ci { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 14px;
  background: var(--inferno); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 26px rgba(170,0,3,.45); transition: transform .12s, background .2s; }
.v11 .ci:active { transform: scale(.98); }
.v11 .ci .cr { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.v11 .ci.busy { background: #7a1416; }
.v11 .ci.done { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v11 .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.v11 .chal { display: grid; gap: 8px; }
.v11 .chal .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.v11 .chal .bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFC9A8, #FF6B6B); border-radius: inherit; transition: width .6s ease; }
.v11 .chal .row { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .92; }
.v11 .chal .steps { display: flex; gap: 6px; }
.v11 .chal .steps span { flex: 1; height: 54px; border-radius: 10px; overflow: hidden; position: relative; border: 1.5px solid rgba(255,255,255,.3); }
.v11 .chal .steps span img { width: 100%; height: 100%; object-fit: cover; }
.v11 .chal .steps span.todo { border-style: dashed; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 18px; opacity: .8; }
.v11 .chal .steps span.ok::after { content: "✓"; position: absolute; right: 4px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); font-size: 10px; display: grid; place-items: center; font-weight: 700; }

/* reward burst */
.v11 .reward { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; }
.v11 .reward .box { display: grid; justify-items: center; gap: 4px; padding: 22px 26px; border-radius: 22px; background: rgba(20,4,6,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: rIn .5s cubic-bezier(.2,1.4,.4,1) both, rOut .4s ease 1.9s forwards; border: 1px solid rgba(255,255,255,.18); }
.v11 .reward .tick { width: 54px; height: 54px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.v11 .reward strong { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.v11 .reward small { font-size: 12px; opacity: .88; }
.v11 .reward .rows { display: flex; gap: 8px; margin-top: 6px; }
.v11 .reward .rows span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.14); }
@keyframes rIn { from { transform: scale(.6); opacity: 0; } }
@keyframes rOut { to { transform: scale(.94) translateY(-10px); opacity: 0; } }

.v11 .heart { position: absolute; z-index: 6; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #FF6B6B; pointer-events: none; animation: heart .8s ease forwards; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
@keyframes heart { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.15) rotate(-6deg); opacity: 1; } 70% { transform: scale(1) rotate(-6deg); opacity: 1; } 100% { transform: scale(1.2) translateY(-60px); opacity: 0; } }

.v11 .dots { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; gap: 5px; z-index: 4; pointer-events: none; }
.v11 .dots i { width: 3px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.35); transition: all .2s; }
.v11 .dots i.on { height: 22px; background: #fff; }

.v11 .endcard { display: grid; place-items: center; text-align: center; background: linear-gradient(170deg, #2b0a0c, var(--cherry) 60%, var(--inferno)); }
.v11 .endcard .in { display: grid; gap: 10px; justify-items: center; padding: 0 34px calc(var(--tab-h) + 10px); }
.v11 .endcard h2 { margin: 0; font-size: 22px; }
.v11 .endcard p { margin: 0; font-size: 13px; opacity: .85; max-width: 28ch; line-height: 1.5; }
.v11 .btn { border: 1px solid var(--line); background: #fff; color: var(--charcoal); border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 13px; }
.v11 .btn.primary { background: var(--inferno); border-color: var(--inferno); color: #fff; }
.v11 .btn.ghost-l { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.v11 .btn.block { width: 100%; }

/* ---------- tab bar ---------- */
.v11 .tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom,0px)); z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px env(safe-area-inset-bottom,0px);
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v11 .tabbar.dark { background: rgba(14,4,5,.86); border-top-color: rgba(255,255,255,.08); }
.v11 .tab { background: none; border: 0; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.v11 .tab svg { width: 23px; height: 23px; }
.v11 .tab.on { color: var(--inferno); font-weight: 600; }
.v11 .tabbar.dark .tab { color: rgba(255,255,255,.55); }
.v11 .tabbar.dark .tab.on { color: #fff; }

/* ---------- AD button (center of tab bar, raised) ---------- */
.v11 .tab-ad { position: relative; display: grid; justify-items: center; align-content: start; }
.v11 .ad-btn { position: relative; width: 62px; height: 62px; margin-top: -24px; border-radius: 50%; border: 4px solid var(--bg); padding: 0;
  background: linear-gradient(150deg, #D4161A, var(--inferno) 55%, var(--cherry)); color: #fff;
  box-shadow: 0 10px 24px rgba(170,0,3,.38); display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none; transition: transform .15s; }
.v11 .tabbar.dark .ad-btn { border-color: #140405; }
.v11 .ad-btn:active { transform: scale(.92); }
.v11 .ad-btn::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,107,107,.55); animation: ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(.95); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.v11 .ad-core { font-size: 15px; font-weight: 700; letter-spacing: .05em; }
.v11 .ad-mic { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--inferno); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.v11 .tab-ad .lbl { font-size: 10.5px; font-weight: 600; color: var(--inferno); margin-top: 3px; }
.v11 .tabbar.dark .tab-ad .lbl { color: #fff; }
.v11 .ad-float { position: absolute; right: 14px; bottom: calc(var(--tab-h) + 16px); z-index: 21; margin: 0; width: 58px; height: 58px; border: 0; }

/* ---------- ADSTA AI overlay ---------- */
.v11 .ai-ov { position: absolute; inset: 0; z-index: 50; color: #fff; display: flex; flex-direction: column; background: #120304; animation: aiIn .32s cubic-bezier(.2,.9,.3,1) both; overflow: hidden; }
@keyframes aiIn { from { clip-path: circle(0% at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }
.v11 .ai-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.v11 .ai-camscrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.75)); }
.v11 .ai-askbg { position: absolute; inset: 0; background: radial-gradient(90% 55% at 50% 100%, rgba(170,0,3,.55), rgba(18,3,4,0) 70%), #160506; }
.v11 .ai-frame { position: absolute; left: 12%; right: 12%; top: 26%; height: 36%; pointer-events: none; }
.v11 .ai-frame i { position: absolute; width: 28px; height: 28px; border: 3px solid #fff; }
.v11 .ai-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.v11 .ai-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.v11 .ai-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.v11 .ai-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

.v11 .ai-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top,0px) + 16px) 14px 8px; }
.v11 .ai-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 15px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v11 .ai-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.v11 .ai-title b { width: 24px; height: 24px; border-radius: 50%; background: var(--inferno); display: grid; place-items: center; font-size: 9px; letter-spacing: .04em; }
.v11 .ai-rec { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(170,0,3,.9); font-variant-numeric: tabular-nums; }
.v11 .ai-rec i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.v11 .ai-thread { position: relative; z-index: 2; flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.v11 .ai-thread::-webkit-scrollbar { display: none; }
/* in Photo / Video the same thread sits in the layout just above the controls (never on top of them) */
.v11 .ai-thread.dock { flex: 0 1 auto; min-height: 0; max-height: 34vh; margin-top: auto; padding: 0 14px 6px;
  background: linear-gradient(180deg, rgba(14,4,5,0) 0%, rgba(14,4,5,.5) 30%, rgba(14,4,5,.72) 100%); }
.v11 .ai-thread.dock + .ai-bottom { margin-top: 10px; }
.v11 .ai-thread.dock .bub { font-size: 13px; padding: 8px 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.v11 .ai-thread.dock .bub.ai { background: rgba(28,8,10,.72); border-color: rgba(255,255,255,.16); }
.v11 .ai-thread.dock .bub.me { background: rgba(170,0,3,.88); border-color: transparent; }
.v11 .bub { max-width: 88%; font-size: 13.5px; line-height: 1.45; padding: 10px 13px; border-radius: 18px; animation: bubIn .18s ease both; }
@keyframes bubIn { from { opacity: 0; transform: translateY(4px); } }
.v11 .bub:first-child { margin-top: auto; }
.v11 .bub.me { align-self: flex-end; background: var(--inferno); border-bottom-right-radius: 6px; }
.v11 .bub.ai { align-self: flex-start; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-bottom-left-radius: 6px; }
.v11 .dots3 { display: inline-flex; gap: 4px; }
.v11 .dots3 i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5; animation: blink 1s infinite; }
.v11 .dots3 i:nth-child(2) { animation-delay: .2s; }
.v11 .dots3 i:nth-child(3) { animation-delay: .4s; }
.v11 .slots { display: grid; gap: 6px; margin-top: 10px; }
.v11 .slot { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--charcoal); border-radius: 14px; padding: 7px 8px 7px 7px; }
.v11 .slot img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.v11 .slot .t { flex: 1; min-width: 0; }
.v11 .slot strong { display: block; font-size: 12.5px; }
.v11 .slot small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v11 .ai-bottom { position: relative; z-index: 2; margin-top: auto; padding: 0 16px calc(env(safe-area-inset-bottom,0px) + 16px); display: grid; gap: 12px; }
.v11 .ai-heard { justify-self: center; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 16px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); max-width: 100%; }
.v11 .wave { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.v11 .wave i { width: 3px; height: 100%; border-radius: 3px; background: #FF6B6B; animation: wave .9s ease-in-out infinite; }
.v11 .wave i:nth-child(2) { animation-delay: .1s; }
.v11 .wave i:nth-child(3) { animation-delay: .2s; }
.v11 .wave i:nth-child(4) { animation-delay: .3s; }
.v11 .wave i:nth-child(5) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.v11 .ai-sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.v11 .ai-sugg button { flex: none; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 500; padding: 8px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v11 .ai-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.v11 .ai-side { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v11 .ai-side.on { background: #fff; color: var(--inferno); }
/* mic sits left of the AD button, speaker right of it */
.v11 .ai-side.mic { justify-self: end; margin-right: 14px; }
.v11 .ai-side.spk { justify-self: start; margin-left: 14px; }
.v11 .ai-side .lbl { display: none; }
.v11 .ai-mic { width: 80px; height: 80px; border-radius: 50%; border: 0; background: linear-gradient(150deg, #D4161A, var(--inferno) 55%, var(--cherry)); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 0 0 6px rgba(255,255,255,.1), 0 14px 30px rgba(170,0,3,.5); transition: transform .15s; }
.v11 .ai-mic.on { animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(255,107,107,.25), 0 14px 30px rgba(170,0,3,.5); } 50% { box-shadow: 0 0 0 18px rgba(255,107,107,.12), 0 14px 30px rgba(170,0,3,.5); } }
.v11 .ai-shutter { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: transparent; padding: 5px; }
.v11 .ai-shutter i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: all .2s; }
.v11 .ai-shutter.vid i { background: var(--inferno); }
.v11 .ai-shutter.rec i { border-radius: 8px; transform: scale(.5); }
.v11 .ai-type input { width: 100%; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; font: inherit; font-size: 13px; outline: none; }
.v11 .ai-type input::placeholder { color: rgba(255,255,255,.5); }

/* WhatsApp-style composer: pill text field, with mic · speaker · send to its right */
.v11 .ai-compose { display: flex; align-items: center; gap: 6px; }
/* the text field now runs right up to the mic, so the row fills the width */
.v11 .ai-compose .field { flex: 1; min-width: 0; display: flex; align-items: center; height: 46px; padding: 0 16px;
  border-radius: 23px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v11 .ai-compose input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: 13.5px; outline: none; padding: 0; }
.v11 .ai-compose input::placeholder { color: rgba(255,255,255,.52); }
/* mic · speaker · send, all outside and to the right of the field */
.v11 .fld-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, color .15s, transform .12s; }
.v11 .fld-btn:active { transform: scale(.94); }
.v11 .fld-btn.on { color: #fff; background: rgba(255,255,255,.22); }
.v11 .fld-btn.mic.on { background: #fff; color: var(--inferno); animation: sendPulse 1.4s ease-in-out infinite; }
/* the same button becomes the send button while there is text in the field */
.v11 .fld-btn.mic.send { background: var(--inferno); color: #fff; box-shadow: 0 6px 18px rgba(170,0,3,.45); animation: none; }
.v11 .fld-btn.spk-in.off { color: rgba(255,255,255,.45); }
.v11 .ai-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, color .15s, transform .12s; }
.v11 .ai-send:active { transform: scale(.94); }
/* dim when there is nothing to send, solid red once you type */
.v11 .ai-send.send { background: var(--inferno); color: #fff; box-shadow: 0 8px 20px rgba(170,0,3,.45); }
@keyframes sendPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.35); } 50% { box-shadow: 0 0 0 8px rgba(255,107,107,0); } }
.v11 .ai-suggbox { display: grid; gap: 6px; padding: 9px 11px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v11 .sugg-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.v11 .sugg-row::-webkit-scrollbar { display: none; }
.v11 .sugg-lbl { flex: none; width: 62px; font-size: 10px; letter-spacing: .02em; text-transform: none; font-weight: 700; color: rgba(255,255,255,.5); }
.v11 .sugg { flex: none; white-space: nowrap; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: rgba(255,255,255,.92);
  font: inherit; font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px; line-height: 1.2; cursor: pointer; }
.v11 .sugg.hot { background: rgba(255,237,213,.14); border-color: rgba(255,237,213,.38); color: #FFEDD5; }
.v11 .sugg:hover { background: rgba(255,255,255,.16); }
/* mode switcher: icons only; the chosen one is filled */
.v11 .ai-modes.icons button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  color: rgba(255,255,255,.5); background: none; transition: color .15s, background .15s; }
.v11 .ai-modes.icons button svg { width: 21px; height: 21px; }
.v11 .ai-modes.icons button.on { color: var(--cherry); background: var(--papaya); }
.v11 .ai-modes.icons button.on::after { display: none; }
.v11 .ai-modes.icons button:not(.on):hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- cards ---------- */
.v11 .card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.v11 .card h2 { font-size: 16.5px; margin: 0 0 4px; letter-spacing: -.01em; }
.v11 .card h3 { font-size: 15px; margin: 0 0 6px; }
.v11 .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; line-height: 1.5; }

/* ---------- tabs (segmented) ---------- */
.v11 .tabs { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 12px; box-shadow: var(--shadow); }
.v11 .tab2 { flex: 1; border: 0; background: none; border-radius: 10px; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--grey); transition: background .2s, color .2s; }
.v11 .tab2.on { background: var(--charcoal); color: #fff; }

/* ---------- chips ---------- */
.v11 .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.v11 .chip { border: 1px solid var(--line); background: #fff; color: var(--grey); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; transition: all .2s; }
.v11 .chip.on { background: var(--inferno); border-color: var(--inferno); color: #fff; }

/* ---------- list items ---------- */
.v11 .item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.v11 .item:first-of-type { border-radius: 16px 16px 0 0; }
.v11 .item:last-of-type { border-radius: 0 0 16px 16px; border-bottom: 0; }
.v11 .item:only-of-type { border-radius: 16px; }
.v11 .item img.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.v11 .item .g { width: 36px; height: 36px; border-radius: 12px; background: var(--papaya); display: grid; place-items: center; font-size: 16px; flex: none; }
.v11 .item .t { flex: 1; min-width: 0; }
.v11 .item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.v11 .item small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v11 .pill { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--papaya); color: var(--cherry); flex: none; }
.v11 .pill.ok { background: #E2F6EC; color: var(--ok); }
.v11 .pill.due { background: #FFE1E2; color: #C81014; }

/* ---------- score ---------- */
.v11 .score-hero { display: flex; align-items: center; gap: 20px; }
.v11 .ringwrap { position: relative; width: 128px; height: 128px; flex: none; }
.v11 .ringwrap svg { width: 128px; height: 128px; }
.v11 .ringwrap .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.v11 .ringwrap .num b { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.03em; }
.v11 .ringwrap .num small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }
.v11 .bandname { font-size: 15px; font-weight: 700; margin: 2px 0 6px; }
.v11 .band.low { color: var(--muted); }
.v11 .band.mid { color: #C77700; }
.v11 .band.high { color: var(--ok); }
.v11 .subnote { font-size: 11px; color: var(--muted); line-height: 1.4; }

.v11 .ladder { display: flex; margin: 16px -4px 4px; }
.v11 .rung { flex: 1; text-align: center; padding: 0 4px; }
.v11 .rung i { display: block; height: 96px; width: 100%; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, rgba(255,107,107,.12), var(--pink)); opacity: .3; transition: opacity .3s; }
.v11 .rung:nth-child(1) i { height: 44px; background: #DCD7D5; }
.v11 .rung:nth-child(2) i { height: 60px; background: linear-gradient(180deg, rgba(255,201,168,.2), #FFC9A8); }
.v11 .rung:nth-child(3) i { height: 78px; background: linear-gradient(180deg, rgba(255,107,107,.2), var(--pink)); }
.v11 .rung:nth-child(4) i { height: 96px; background: linear-gradient(180deg, rgba(200,16,20,.85), var(--cherry)); }
.v11 .rung b { font-size: 10px; display: block; margin-top: 6px; }
.v11 .rung small { font-size: 9px; color: var(--muted); display: block; }
.v11 .rungs { position: relative; }
.v11 .marker { position: absolute; top: -8px; transform: translateX(-50%); transition: left .5s; }
.v11 .marker span { display: block; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--charcoal); }
.v11 .score-row { display: flex; gap: 12px; align-items: center; margin: 6px 0; padding: 8px 0; border-bottom: 1px solid var(--line); animation: sIn .3s ease both; }
.v11 .score-row:last-child { border-bottom: 0; }
@keyframes sIn { from { opacity: 0; transform: translateY(4px); } }
.v11 .delta { flex: none; width: 56px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.v11 .delta.up { color: var(--ok); }
.v11 .delta.down { color: #C81014; }
.v11 .sinfo { flex: 1; min-width: 0; }
.v11 .sinfo b { font-size: 13px; display: block; }
.v11 .sinfo small { font-size: 11px; color: var(--muted); }
.v11 .spark { flex: none; }

/* ---------- week ---------- */
.v11 .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0; }
.v11 .d { display: grid; place-items: center; gap: 3px; border: 0; background: none; padding: 6px 0; border-radius: 12px; color: var(--grey); cursor: pointer; }
.v11 .d small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.v11 .d b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.v11 .d.sel { background: var(--ink, #1d191a); }
.v11 .d.sel b { background: #fff; color: var(--cherry); }
.v11 .d.sel small { color: #fff; }
.v11 .d.done b { background: var(--ok); color: #fff; }
.v11 .d.today b { border: 2px solid var(--inferno); color: var(--cherry); }
.v11 .d.past { opacity: .5; }
.v11 .d.stub { pointer-events: none; opacity: 0; }

.v11 .heat { display: flex; gap: 5px; flex-wrap: wrap; }
.v11 .h { width: 22px; height: 22px; border-radius: 6px; background: var(--papaya); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--cherry); transition: transform .15s, opacity .3s; }
.v11 .h.on { background: var(--inferno); color: #fff; }
.v11 .h.today { outline: 2px solid var(--cherry); outline-offset: 1px; }
.v11 .h.past { opacity: .45; }
.v11 .h:active { transform: scale(.86); }

.v11 .ring { flex: none; }
.v11 .prog { height: 12px; border-radius: 99px; background: var(--papaya); overflow: hidden; }
.v11 .prog i { display: block; height: 100%; background: linear-gradient(90deg, #FF6B6B, var(--inferno)); border-radius: inherit; }

.v11 .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v11 .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v11 .tiles button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 16px 10px; font-size: 13px; font-weight: 600; display: grid; gap: 6px; justify-items: center; box-shadow: var(--shadow); }
.v11 .tiles button:active { transform: scale(.98); }
.v11 .tiles button span { font-size: 26px; }

.v11 form label { display: block; font-size: 13px; font-weight: 600; color: var(--grey); margin: 12px 0 6px; }
.v11 input, .v11 select, .v11 textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 14px; background: #fff; color: var(--charcoal); }
.v11 input:focus, .v11 select:focus, .v11 textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,107,107,.15); }
.v11 .btn-primary { width: 100%; border: 0; background: var(--inferno); color: #fff; border-radius: 14px; padding: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(170,0,3,.3); margin-top: 14px; }
.v11 .btn-primary:active { transform: scale(.99); }

/* ---------- bottom sheets ---------- */
.v11 .sheet-wrap { position: absolute; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
.v11 .sheet-wrap.closing { pointer-events: none; }
.v11 .sheet-bg { position: absolute; inset: 0; background: rgba(20,4,6,.45); opacity: 0; transition: opacity .32s ease; }
.v11 .sheet-wrap.open .sheet-bg { opacity: 1; }
.v11 .sheet { position: relative; width: 100%; max-height: 88%; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 8px 20px calc(env(safe-area-inset-bottom,0px) + 20px);
  transform: translateY(102%); transition: transform .34s cubic-bezier(.2,.9,.3,1), opacity .2s; }
.v11 .sheet-wrap.open .sheet { transform: none; }
.v11 .sheet-wrap.closing .sheet { transform: translateY(102%); opacity: 0; }
.v11 .sheet .grab { width: 40px; height: 4px; border-radius: 99px; background: var(--light); margin: 8px auto 12px; }
.v11 .sheet h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.v11 .sheet .item { padding: 12px 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0 !important; }
.v11 .sheet .item:last-of-type { border-bottom: 0; }
.v11 .sheet .btn-primary { margin-top: 16px; }

/* ---------- login ---------- */
.v11 .login { min-height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.v11 .login-hero { position: relative; height: 42dvh; min-height: 240px; background: url('./img/team.jpg') center 30%/cover no-repeat, var(--charcoal); }
.v11 .login-hero .lscrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(110,0,2,.32), rgba(20,4,6,.86)); }
.v11 .login-hero .lin { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.v11 .login-hero .wordmark { font-size: 14px; letter-spacing: .22em; color: #fff; opacity: .9; }
.v11 .login-hero .lin p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; opacity: .92; }
.v11 .login-body { background: #fff; border-radius: 24px 24px 0 0; margin-top: -18px; position: relative; padding: 22px 20px 30px; flex: 1; }
.v11 .login-body h2 { margin: 0 0 4px; font-size: 20px; }
.v11 .login-body > .sub { font-size: 12.5px; }
.v11 .field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.v11 .field > span { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--grey); }
.v11 .pw-wrap { position: relative; }
.v11 .pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--grey); cursor: pointer; }
.v11 .pw-eye:active { transform: translateY(-50%) scale(.9); }
.v11 .field input { border-radius: 12px; }
.v11 .demo-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.v11 .demo-chip { border: 1px dashed var(--line); background: none; color: var(--grey); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.v11 .demo-chip:active { transform: scale(.96); }
.v11 .login-body .note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }
.v11 .login-body form { margin-top: 0; }
.v11 .field .err { font-size: 11px; color: #C81014; min-height: 14px; font-weight: 600; }
.v11 .field.invalid input { border-color: #C81014; background: #FFF5F5; }

/* ---------- empty state ---------- */
.v11 .empty { text-align: center; padding: 40px 18px; color: var(--muted); }
.v11 .empty svg { width: 56px; height: 56px; color: var(--light); margin-bottom: 12px; }
.v11 .empty b { display: block; color: var(--grey); font-size: 14px; margin-bottom: 4px; }
.v11 .empty p { margin: 0; font-size: 12.5px; line-height: 1.5; }
