/* bolo — ink, paper and marigold */

/* the typeface is bundled with the app: nothing is fetched from a font server */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --desk: #000000;
  --surface: #0D0D0F;      /* lists, bars, cards */
  --paper: #17171A;        /* fields, quiet panels */
  --chat: #080809;         /* behind a conversation */
  --theirs: #1A1A1E;
  --mine: #2A2312;
  --on-mine: #F7EBCB;
  --ink: #F3EFE7;
  --ink2: #ABA69C;
  --ink3: #716D65;
  --line: rgba(243, 239, 231, .08);
  --line2: rgba(243, 239, 231, .15);
  --gold: #C9A55C;         /* champagne gold: the one accent */
  --brand: linear-gradient(140deg, #E6CB8B 0%, #C09A4C 55%, #A8822F 100%);
  --gold-text: #D8B56C;
  --gold-soft: rgba(201, 165, 92, .13);
  --gold-line: rgba(201, 165, 92, .32);
  --on-gold: #191304;
  --bubble-shadow: 0 1px .5px rgba(0, 0, 0, .5);
  --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --float: 0 2px 4px rgba(0, 0, 0, .4), 0 20px 60px rgba(0, 0, 0, .7);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--desk); color: var(--ink);
  font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
ul { list-style: none; margin: 0; padding: 0; }
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

/* every sign and icon is drawn with the same pen */
img.e { width: 1em; height: 1em; display: block; flex: none; -webkit-user-drag: none; }
svg.g { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.sub { font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 22px 20px 8px; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- frame ---------- */

.app { position: fixed; inset: 0; background: var(--surface); overflow: hidden; }
.side, .sheet { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.side { background: var(--surface); }
.sheet { background: var(--surface); transform: translateX(100%); }
.app.in-chat .side { transform: translateX(-20%); opacity: 0; pointer-events: none; }
.app.in-chat .sheet { transform: none; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

@media (min-width: 880px) {
  .app { inset: 24px; margin: auto; max-width: 1200px; max-height: 900px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--float); display: grid; grid-template-columns: 380px 1fr; grid-template-rows: minmax(0, 1fr); }
  .side, .sheet { min-height: 0; overflow: hidden; position: relative; inset: auto; transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
  .side { border-right: 1px solid var(--line); }
  .back { display: none !important; }
}

/* ---------- top bar, filters, navigation ---------- */

.top { display: flex; align-items: center; justify-content: space-between; height: 60px; flex: none; padding: env(safe-area-inset-top) 20px 0; }
.brand { display: inline-flex; color: var(--ink); }
.brand svg { height: 26px; width: auto; display: block; overflow: visible; }
.brand svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.brand svg circle { fill: var(--gold); }
.brand.big svg { height: 56px; }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); font-size: 22px; flex: none; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--line); color: var(--ink); }

.chips { display: flex; gap: 8px; padding: 2px 16px 10px; flex: none; }
.chip-f { height: 32px; padding: 0 14px; border-radius: 16px; font-size: 14px; font-weight: 500; color: var(--ink2); background: var(--paper); display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.chip-f.on { background: var(--gold-soft); color: var(--gold-text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--gold-line); }
.chip-f b { font-weight: 600; }

.nav { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--surface); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; color: var(--ink3); font-size: 23px; transition: color .2s; }
.nav button span { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 15px; transition: background .25s var(--ease); }
.nav small { font-size: 12px; font-weight: 500; }
.nav button.on { color: var(--ink); }
.nav button.on span { background: var(--gold-soft); color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-line); }
.nav button.on small { font-weight: 650; }
.nav button.on svg.g { stroke-width: 2; }

/* ---------- waiting for you ---------- */

.waiting { padding-bottom: 6px; }
.waiting .eyebrow { margin-top: 8px; }
.w-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 2px; scrollbar-width: none; }
.w-rail::-webkit-scrollbar { display: none; }
.w-card { box-shadow: inset 0 0 0 1px var(--line); flex: none; width: 84%; scroll-snap-align: start; scroll-margin-left: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--paper); transition: background .2s; }
.w-rail.one .w-card { width: 100%; }
.w-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.w-head .face { width: 28px; height: 28px; font-size: 13px; }
.w-head .p-name { flex: 1; font-size: 15px; }
.w-replies { display: flex; align-items: center; gap: 8px; width: 100%; cursor: default; }
.w-replies .gap { flex: 1; }
.chip { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: background .18s, color .18s, transform .12s var(--ease); }
.chip .tile { font-size: 21px; }
.chip:hover { background: var(--gold-soft); box-shadow: 0 0 0 1.5px var(--gold); }
.chip:active { transform: scale(.9); }

/* ---------- people ---------- */

.people-list { padding: 0 8px 8px; }
.person { position: relative; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.person + .person::before { content: ""; position: absolute; top: 0; left: 78px; right: 12px; height: 1px; background: var(--line); }
.person:hover { background: var(--paper); }
.person.active { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.person:hover::before, .person.active::before, .person:hover + .person::before, .person.active + .person::before { opacity: 0; }
.person.pressing { background: var(--line2); }
.intro .person { animation: settle .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }

/* a face is a sigil grown from the person's key */
.face { width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--up1), var(--up2)); box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--gold-text); font-weight: 600; font-size: 17px; line-height: 1; letter-spacing: .01em; }
.person .face { width: 52px; height: 52px; font-size: 22px; }

.p-name { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.p-last { display: flex; align-items: center; gap: 8px; margin-top: 4px; height: 20px; color: var(--ink2); font-size: 14px; }
.p-last svg.g, .p-last img.e { font-size: 19px; }
.p-last .n { font-weight: 600; font-size: 14.5px; }
.p-last .n i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--ink3); margin-left: 2px; }
.p-last .mine { font-size: 16px; color: var(--ink3); margin-right: -2px; }
.p-last .mine svg.g { stroke-width: 2; }
.p-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 40px; }
.p-time { font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.person.unread .p-time { color: var(--gold-text); font-weight: 600; }
.p-count { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: var(--on-gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.p-reply { width: 28px; height: 28px; margin: -4px -4px -3px 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink3); font-size: 17px; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.person:hover .p-reply, .p-reply:focus-visible { opacity: 1; }
.p-reply:hover { background: var(--brand); color: var(--on-gold); }
@media (hover: none) { .p-reply { display: none; } }
.list-empty { padding: 40px 24px; text-align: center; color: var(--ink3); font-size: 14.5px; }

/* ---------- signs ---------- */

.tile { display: inline-grid; place-items: center; font-size: inherit; line-height: 1; }
.tile.num { display: inline-flex; align-items: baseline; gap: 2px; }
.tile.num b { font-weight: 700; font-size: .82em; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.tile.num i { font-style: normal; font-weight: 600; font-size: .4em; opacity: .65; }
.tile svg.doodle { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }

/* a line of signs outside a conversation (cards, previews) */
.strip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 13px; font-size: 24px; border-radius: 12px; border-top-left-radius: 4px; background: var(--theirs); color: var(--ink); box-shadow: var(--bubble-shadow); }

/* ---------- conversation ---------- */

.sheet-empty { margin: auto; text-align: center; color: var(--ink3); padding: 24px; }
.sheet-empty p { margin: 18px 0 0; font-size: 17px; color: var(--ink2); }
.sheet-empty .strip { margin-top: 30px; }
.sheet-empty small { display: block; margin-top: 10px; font-size: 13px; font-style: italic; }
.sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.sheet-top { display: flex; align-items: center; gap: 10px; height: calc(60px + env(safe-area-inset-top)); flex: none; padding: env(safe-area-inset-top) 10px 0 4px; background: var(--surface); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 2; }
@media (min-width: 880px) { .sheet-top { padding-left: 16px; } }
.who { flex: 1; min-width: 0; }
.who-name { font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.who .sub { font-size: 12.5px; }

/* reaching out: rings leave the button, then come back from the face */
#touchBtn, #faceBtn { position: relative; }
#touchBtn::before, #faceBtn::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
#faceBtn::before { inset: 0; }
.touching #touchBtn { color: var(--gold-text); }
.touching #touchBtn::before, .touched #faceBtn::before { animation: ring 1s var(--ease) 2; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

/* the wallpaper is a quiet scatter of bolo's own signs */
.thread-wrap { flex: 1; min-height: 0; position: relative; display: flex; background: var(--chat); }
.thread-wrap::before { content: ""; position: absolute; inset: 0; background: var(--gold); opacity: .07; -webkit-mask: var(--wall) 0 0 / 320px 320px; mask: var(--wall) 0 0 / 320px 320px; pointer-events: none; }
.thread { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 12px 14px 14px; scrollbar-width: none; }
.thread::-webkit-scrollbar { display: none; }
.thread > :first-child { margin-top: auto; }
.thread > * { flex-shrink: 0; }
@media (min-width: 880px) { .thread { padding: 18px max(28px, calc((100% - 760px) / 2)); } }

.day { align-self: center; font-size: 12px; font-weight: 500; color: var(--ink2); background: var(--surface); box-shadow: var(--bubble-shadow); padding: 4px 11px; border-radius: 8px; margin: 4px 0 8px; }

.bol { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; margin-top: 8px; }
.bol.me { align-self: flex-end; align-items: flex-end; }
.bol.run + .bol { margin-top: 2px; }
.bubble { padding: 7px 9px 6px 11px; border-radius: 12px; background: var(--theirs); color: var(--ink); box-shadow: var(--bubble-shadow); cursor: pointer; }
.bol.them .bubble { border-top-left-radius: 4px; }
.bol.me .bubble { border-top-right-radius: 4px; background: var(--mine); color: var(--on-mine); box-shadow: inset 0 0 0 1px var(--gold-line), var(--bubble-shadow); }
.bol.run + .bol.them .bubble { border-top-left-radius: 12px; }
.bol.run + .bol.me .bubble { border-top-right-radius: 12px; }
.signs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 30px; font-size: 25px; }
.stamp { margin-left: auto; padding-left: 6px; align-self: flex-end; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateY(1px); }
.bol.me .stamp { color: color-mix(in srgb, var(--on-mine) 55%, transparent); }
.stamp svg.g { font-size: 15px; stroke-width: 1.9; color: var(--gold-text); }

.words { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.words > div { overflow: hidden; }
.words em { display: block; margin-top: 6px; padding: 6px 2px 2px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 14.5px; line-height: 1.35; user-select: text; -webkit-user-select: text; max-width: 260px; }
.bol.open .words { grid-template-rows: 1fr; }

.bol.fresh { animation: settle .35s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
/* a new Bol arrives sign by sign */
.bol.fresh .tile { animation: signin .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes signin { from { opacity: 0; transform: scale(.8); } }
/* each sign is written out by the pen as it arrives */
.bol.fresh .tile svg.g path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes ink { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* until it leaves, a Bol is held back and can be pulled */
.bol.leaving .bubble { opacity: .7; }
.bol.landed .bubble { animation: land .4s var(--ease) both; }
.bol.landed .stamp svg.g path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s var(--ease) .1s forwards; }
@keyframes land { from { opacity: .7; } }
.pull { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--gold-text); font-weight: 600; font-size: 12.5px; padding: 4px 10px 4px 6px; border-radius: 12px; background: var(--surface); box-shadow: var(--bubble-shadow); }
.count { width: 14px; height: 14px; transform: rotate(-90deg); }
.count circle { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 37.7; animation: count 3s linear forwards; }
@keyframes count { to { stroke-dashoffset: 37.7; } }

.touch-mark { align-self: center; display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--ink2); background: var(--surface); box-shadow: var(--bubble-shadow); padding: 4px 11px 4px 9px; border-radius: 8px; }
.touch-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.touch-mark.fresh { animation: settle .35s var(--ease) both; }

.speaking { display: inline-flex; align-self: flex-start; align-items: center; gap: 3px; height: 34px; margin-top: 8px; padding: 9px 13px; border-radius: 12px; border-top-left-radius: 4px; background: var(--theirs); box-shadow: var(--bubble-shadow); }
.speaking i, .bars i { width: 3px; border-radius: 2px; background: var(--ink3); height: 100%; animation: bar 1s ease-in-out infinite; }
.speaking i:nth-child(2), .bars i:nth-child(2) { animation-delay: -.2s; }
.speaking i:nth-child(3), .bars i:nth-child(3) { animation-delay: -.45s; }
.speaking i:nth-child(4), .bars i:nth-child(4) { animation-delay: -.7s; }
.bars i:nth-child(5) { animation-delay: -.3s; }
@keyframes bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- dock ---------- */

.dock { flex: none; position: relative; z-index: 2; }
.compose { display: flex; align-items: center; gap: 8px; padding: 8px max(8px, calc((100% - 776px) / 2)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.tray { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; gap: 5px; padding: 0 5px; border-radius: 24px; background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.tray::-webkit-scrollbar { display: none; }
.tray-hint { padding: 0 12px; color: var(--ink3); font-size: 15.5px; white-space: nowrap; }
.tray .tile { min-width: 38px; height: 38px; padding: 0 8px; flex: none; position: relative; border-radius: 19px; background: var(--surface); box-shadow: var(--bubble-shadow); font-size: 22px; cursor: pointer; touch-action: none; animation: pop .22s var(--ease) both; }
.tray .tile.ghost { opacity: .5; animation: none; }
.tray .tile.sel { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tray .tile.sel::after { content: "×"; position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--surface); font: 700 11px/16px var(--font); text-align: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.bars { display: flex; align-items: center; gap: 3px; height: 18px; padding: 0 10px; }
.bars i { background: var(--gold-text); }

.send, .speak { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 23px; position: relative; }
.send { background: var(--ink); color: var(--surface); animation: pop .22s var(--ease) both; }
.send svg.g { stroke-width: 2; }
.speak { background: var(--brand); color: var(--on-gold); box-shadow: 0 1px 2px rgba(var(--shade), .5), 0 0 0 1px rgba(255, 236, 190, .18) inset; transition: transform .25s var(--ease); touch-action: none; }
.speak svg.g { stroke-width: 2.1; }
.speak::before, .speak::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.speak:hover { transform: scale(1.05); }
.speak.on { transform: scale(1.25); }
.speak.on::before { animation: ring 1.4s var(--ease) infinite; }
.speak.on::after { animation: ring 1.4s var(--ease) .45s infinite; }
.speak.mini { width: 40px; height: 40px; font-size: 19px; }

.keys { background: var(--surface); padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.tabs { display: flex; gap: 0; padding: 0 max(6px, calc((100% - 780px) / 2)) 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 9px 11px 10px; font-size: 13.5px; font-weight: 500; color: var(--ink3); white-space: nowrap; transition: color .2s; }
.tab:hover { color: var(--ink2); }
.tab.on { color: var(--ink); font-weight: 650; }
.tab.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2.5px; border-radius: 2px; background: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); grid-auto-rows: 68px; align-content: start; height: 208px; gap: 0; padding: 2px max(6px, calc((100% - 780px) / 2)) 0; overflow-y: auto; scrollbar-width: none; }
.grid::-webkit-scrollbar { display: none; }
.key { border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--ink); transition: background .15s, transform .12s var(--ease); }
.key:hover { background: var(--paper); }
.key:active { transform: scale(.92); background: var(--gold-soft); }
.key .tile { font-size: 27px; height: 28px; color: var(--ink); }
.key small { font-size: 11.5px; color: var(--ink3); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key.add .tile { color: var(--gold-text); }
.grid-empty { grid-column: span 3; align-self: center; padding: 0 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink3); }

/* ---------- the Signs and You screens ---------- */

.book-intro { margin: 0 20px 4px; font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 2px; padding: 0 12px; }
.book .key { height: 76px; cursor: default; }
.book .key:active { transform: none; }
#signBook { padding-bottom: 20px; }

.you-sign { display: flex; flex-direction: column; align-items: center; padding: 14px 20px 6px; text-align: center; }
.you-sign .face { width: 104px; height: 104px; margin-bottom: 14px; font-size: 44px; }
.you-name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.you-sign .sub { margin-top: 3px; font-size: 14px; white-space: normal; }
.privacy-list { padding: 0 20px; }
.privacy-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 12px 0; align-items: start; }
.privacy-list li + li { border-top: 1px solid var(--line); }
.privacy-list .pi { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; font-size: 19px; }
.privacy-list b { display: block; font-weight: 600; font-size: 15px; }
.privacy-list span { display: block; color: var(--ink2); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.note { margin: 14px 20px 24px; padding: 11px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--ink2); line-height: 1.45; }

/* ---------- cards ---------- */

.scrim { position: fixed; inset: 0; background: rgba(8, 8, 10, .45); animation: fade .25s both; z-index: 10; }
@keyframes fade { from { opacity: 0; } }
.card { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 440px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 1px var(--line), var(--float); animation: rise .34s var(--ease) both; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 880px) { .card { bottom: auto; top: 50%; translate: 0 -50%; border-radius: 20px; } }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 16px; }
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.card-actions .gap { flex: 1; }
.text-btn { font-size: 14.5px; font-weight: 600; color: var(--ink2); padding: 9px 14px; border-radius: 20px; transition: background .2s; }
.text-btn:hover { background: var(--paper); }
.text-btn.strong { background: var(--brand); color: var(--on-gold); padding: 9px 22px; }

.quick-last { margin: 18px 0 2px; min-height: 44px; }
.quick-last .strip { background: var(--paper); box-shadow: none; }
.quick-tiles { display: flex; gap: 2px; margin: 12px -6px 0; overflow-x: auto; scrollbar-width: none; }
.quick-tiles::-webkit-scrollbar { display: none; }
.quick-tiles .key { width: 66px; height: 66px; flex: none; }
.quick-tiles .key.on { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.quick-speak { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.quick-speak .speak { width: 64px; height: 64px; font-size: 28px; }
.sheet-empty .strip { font-size: 34px; padding: 12px 16px; border-radius: 16px; border-top-left-radius: 5px; }

.pad { width: 100%; aspect-ratio: 1.5; display: block; background: var(--paper); border-radius: 14px; margin-bottom: 16px; touch-action: none; cursor: crosshair; fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- toast ---------- */

.toast { position: fixed; z-index: 20; left: 50%; top: calc(12px + env(safe-area-inset-top)); translate: -50% 0; display: flex; align-items: center; gap: 16px; background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 24px; font-size: 14px; font-weight: 500; max-width: calc(100vw - 32px); white-space: nowrap; box-shadow: var(--float); animation: drop .3s var(--ease) both; }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.toast button { color: var(--gold); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .count circle { animation-duration: 3s !important; }
}


/* =====================================================================
   Depth, glow and motion
   ===================================================================== */

.side { background: radial-gradient(130% 44% at 50% -6%, rgba(var(--glow), .14), transparent 62%), var(--surface); }
.eyebrow { font-size: 11px; letter-spacing: .16em; color: color-mix(in srgb, var(--gold-text) 62%, var(--ink3)); }
h1 { font-size: 28px; }
.top { height: 64px; }
.brand svg { height: 28px; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes turn { to { transform: rotate(1turn); } }

/* tactile gold: buttons have weight and press down */
.speak {
  width: 54px; height: 54px;
  background: radial-gradient(circle at 32% 26%, var(--acc1) 0%, var(--acc2) 40%, var(--acc3) 100%);
  box-shadow: 0 4px 0 var(--acc-edge), 0 10px 26px rgba(var(--glow), .3), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(90, 60, 0, .35);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.speak:hover { transform: none; }
.speak:active, .speak.on { transform: translateY(3px); box-shadow: 0 1px 0 var(--acc-edge), 0 4px 16px rgba(var(--glow), .45), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(90, 60, 0, .35); }
.speak.on::before, .speak.on::after { animation: none; }
.speak.mini { width: 42px; height: 42px; }
.quick-speak .speak { width: 68px; height: 68px; }
.send { background: linear-gradient(180deg, #FBF8F1, #D6D1C5); color: var(--up2); box-shadow: 0 4px 0 #86816F, inset 0 1px 0 #fff; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.send:active { transform: translateY(3px); box-shadow: 0 1px 0 #86816F, inset 0 1px 0 #fff; }
.text-btn.strong, .cta {
  background: linear-gradient(180deg, var(--acc1), var(--acc2)); color: var(--on-gold);
  border-radius: 12px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 4px 0 var(--acc-edge), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.text-btn.strong:active, .cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--acc-edge), inset 0 1px 0 rgba(255, 255, 255, .5); }
.chip { width: 42px; height: 42px; background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--line), 0 3px 0 var(--edge); }
.chip:hover { background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--gold-line), 0 3px 0 var(--edge); color: var(--gold-text); }
.chip:active { transform: translateY(2px); }
.p-count { background: linear-gradient(180deg, var(--acc1), var(--acc2)); box-shadow: 0 2px 0 var(--acc-edge); }

/* raised surfaces */
.w-card { background: linear-gradient(165deg, var(--card1) 0%, var(--card2) 72%); border-radius: 20px; padding: 16px; gap: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line), 0 14px 30px rgba(var(--shade), .45); }
.w-card .strip { font-size: 30px; background: none; box-shadow: none; padding: 2px 0; gap: 4px 16px; color: var(--ink); }
.w-head .face { width: 30px; height: 30px; }
.face { box-shadow: inset 0 0 0 1px var(--gold-line), inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 10px rgba(var(--shade), .4); }
.face.here::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2.5px var(--surface), 0 0 10px var(--gold); }
.p-name { font-size: 17px; }
.bubble { background: linear-gradient(180deg, var(--card1), var(--key1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--bubble-shadow); }
.bol.me .bubble { background: linear-gradient(160deg, var(--mine1), var(--mine2)); box-shadow: inset 0 0 0 1px var(--gold-line), inset 0 1px 0 rgba(255, 226, 150, .12), var(--bubble-shadow); }
.thread-wrap { background: radial-gradient(100% 36% at 50% 0%, rgba(var(--glow), .08), transparent 70%), var(--chat); }
.key:active .tile { color: var(--gold-text); filter: drop-shadow(0 0 8px var(--gold)); }
.tab.on::after { box-shadow: 0 0 8px var(--gold); }
.nav { margin: 0 12px calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-top: 0; border-radius: 24px; background: linear-gradient(180deg, var(--card1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--line), 0 12px 30px rgba(var(--shade), .6); }
.you-actions { display: flex; justify-content: center; padding: 0 20px 28px; }

/* who is around now */
.around { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 4px; scrollbar-width: none; }
.around::-webkit-scrollbar { display: none; }
.a-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; width: 66px; }
.a-item small { font-size: 12.5px; color: var(--ink2); }
.a-ring { position: relative; padding: 5px; border-radius: 50%; display: grid; }
.a-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--acc1), var(--acc-edge), var(--acc1), var(--acc-edge), var(--acc1)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), var(--edge) calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), var(--edge) calc(100% - 2px)); animation: turn 7s linear infinite; }
.a-ring .face { width: 54px; height: 54px; font-size: 22px; }
.a-item .face.reached { animation: halo 1.6s ease-out infinite; }
@keyframes halo { 0% { box-shadow: inset 0 0 0 1px var(--gold-line), 0 0 0 0 rgba(var(--glow), .7); } 100% { box-shadow: inset 0 0 0 1px var(--gold-line), 0 0 0 16px rgba(var(--glow), 0); } }
.a-item:active { transform: scale(.94); }

/* ---------- living signs ---------- */

[data-m] svg { transform-origin: 50% 60%; }
.play [data-m] svg, .key:hover [data-m] svg, .chip:hover [data-m] svg, .ping-signs [data-m] svg { animation: var(--mo) 2.4s var(--ease) 1; }
.live [data-m] svg, .w-card .strip [data-m] svg, .stage-signs [data-m] svg { animation: var(--mo) 2.8s var(--ease) infinite; animation-delay: calc(var(--i, 0) * .3s + .7s); }
.bol.fresh [data-m] svg { animation: var(--mo) 2.4s var(--ease) 1.1s 1; }
[data-m="beat"] { --mo: m-beat; } [data-m="ring"] { --mo: m-ring; } [data-m="dash"] { --mo: m-dash; } [data-m="flip"] { --mo: m-flip; }
[data-m="flash"] { --mo: m-flash; } [data-m="bob"] { --mo: m-bob; } [data-m="pop"] { --mo: m-pop; } [data-m="shake"] { --mo: m-shake; }
[data-m="nod"] { --mo: m-nod; } [data-m="droop"] { --mo: m-droop; } [data-m="rise"] { --mo: m-rise; } [data-m="spin"] { --mo: m-spin; }
@keyframes m-beat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.3); } 20% { transform: scale(1); } 30% { transform: scale(1.2); } }
@keyframes m-ring { 0%, 40%, 100% { transform: rotate(0); } 5% { transform: rotate(-16deg); } 10% { transform: rotate(14deg); } 15% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 25% { transform: rotate(-6deg); } 32% { transform: rotate(4deg); } }
@keyframes m-dash { 0%, 40%, 100% { transform: translateX(0); } 14% { transform: translateX(7px); } 26% { transform: translateX(-2px); } }
@keyframes m-flip { 0% { transform: rotate(0); } 34%, 100% { transform: rotate(180deg); } }
@keyframes m-flash { 0%, 40%, 100% { transform: scale(1); opacity: 1; filter: none; } 8% { transform: scale(1.3); filter: drop-shadow(0 0 10px var(--gold)); } 16% { opacity: .35; } 24% { opacity: 1; transform: scale(1.1); } }
@keyframes m-bob { 0%, 40%, 100% { transform: translateY(0) rotate(0); } 10% { transform: translateY(-6px) rotate(-6deg); } 20% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(5deg); } }
@keyframes m-pop { 0%, 40%, 100% { transform: scale(1); } 12% { transform: scale(1.32); } 24% { transform: scale(.94); } }
@keyframes m-shake { 0%, 40%, 100% { transform: translateX(0); } 6% { transform: translateX(-5px); } 12% { transform: translateX(5px); } 18% { transform: translateX(-4px); } 24% { transform: translateX(3px); } 30% { transform: translateX(-1px); } }
@keyframes m-nod { 0%, 40%, 100% { transform: rotate(0); } 10% { transform: rotate(12deg); } 22% { transform: rotate(-9deg); } 32% { transform: rotate(4deg); } }
@keyframes m-droop { 0%, 40%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(4px) rotate(7deg); } }
@keyframes m-rise { 0% { transform: translateY(5px); } 30%, 100% { transform: translateY(0); } }
@keyframes m-spin { 0% { transform: rotate(0); } 36%, 100% { transform: rotate(90deg); } }

/* ---------- the speak moment ---------- */

.stage {
  --amp: 0;
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 24px calc(34px + env(safe-area-inset-bottom));
  background: radial-gradient(90% 52% at 50% 100%, rgba(var(--glow), .24), transparent 72%), rgba(var(--veil), .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fade .25s both;
}
.stage.out { animation: fadeout .25s both; }
.stage-to { position: absolute; top: calc(30px + env(safe-area-inset-top)); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.stage-words { position: absolute; top: 13%; left: 24px; right: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .28em; font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; text-align: center; }
.stage-words span { animation: wordin .35s var(--ease) both; }
@keyframes wordin { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.stage-signs { position: absolute; top: 37%; left: 0; right: 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; font-size: 46px; color: var(--gold-text); }
.stage-signs .tile { filter: drop-shadow(0 0 14px rgba(var(--glow), .5)); }
.stage-signs .tile.new { animation: signin .4s var(--ease) both; }
.stage-signs .tile.new svg.g path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) forwards; }
.stage-wave { display: flex; align-items: center; gap: 4px; height: 60px; margin-bottom: 26px; }
.stage-wave i { width: 4px; height: 100%; border-radius: 2px; background: linear-gradient(var(--acc1), var(--acc3)); transform: scaleY(.06); transition: transform .08s linear; }
.stage-orb {
  width: 92px; height: 92px; border-radius: 50%; position: relative; display: grid; place-items: center; margin-bottom: 18px;
  font-size: 36px; color: var(--on-gold);
  background: radial-gradient(circle at 32% 26%, var(--acc1), var(--acc2) 40%, var(--acc3));
  transform: scale(calc(1 + var(--amp) * .28));
  box-shadow: 0 0 calc(30px + var(--amp) * 80px) rgba(var(--glow), calc(.35 + var(--amp) * .45)), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(90, 60, 0, .35);
}
.stage-orb b svg.g { stroke-width: 2.1; }
.stage-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; animation: ring2 2.4s var(--ease) infinite; }
.stage-orb i:nth-child(2) { animation-delay: .8s; }
.stage-orb i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring2 { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.7); opacity: 0; } }
.stage-hint { font-size: 13.5px; color: var(--ink2); text-align: center; }

/* ---------- a Bol arriving while you are elsewhere ---------- */

.ping { position: fixed; z-index: 25; top: calc(10px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; width: min(92vw, 400px); display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; cursor: pointer; background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px var(--gold-line), 0 18px 40px rgba(var(--shade), .65); }
.ping.in { animation: pingin .5s cubic-bezier(.2, 1.25, .3, 1) both; }
@keyframes pingin { from { transform: translateY(-80px); opacity: 0; } }
.ping b { font-size: 15px; font-weight: 650; }
.ping-signs { display: flex; gap: 12px; font-size: 22px; margin-top: 5px; color: var(--gold-text); }

/* ---------- the welcome ---------- */

.welcome { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; padding: calc(30px + env(safe-area-inset-top)) 28px calc(26px + env(safe-area-inset-bottom)); background: radial-gradient(120% 48% at 50% 0%, rgba(var(--glow), .2), transparent 62%), var(--deep); animation: fade .4s both; }
.welcome.out { animation: fadeout .4s both; }
.wl-slide { flex: 1; min-height: 0; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.wl-slide > * { animation: wordin .6s var(--ease) both; }
.wl-slide > h2 { animation-delay: .12s; }
.wl-slide > p { animation-delay: .22s; }
.wl-slide h2 { margin: 30px 0 12px; font-size: 36px; line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.wl-slide p { margin: 0; max-width: 320px; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.wl-art { width: 100%; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.wl-art .strip { font-size: 36px; gap: 6px 18px; padding: 13px 20px; border-radius: 18px; background: linear-gradient(180deg, var(--up1), var(--up2)); color: var(--gold-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--gold-line), 0 16px 34px rgba(var(--shade), .5); }
.wl-orb { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--on-gold); background: radial-gradient(circle at 32% 26%, var(--acc1), var(--acc2) 40%, var(--acc3)); animation: orb 1.5s ease-in-out infinite; }
.wl-orb svg.g { stroke-width: 2.1; }
@keyframes orb { 0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(var(--glow), .35), inset 0 2px 0 rgba(255, 255, 255, .55); } 50% { transform: scale(1.1); box-shadow: 0 0 70px rgba(var(--glow), .65), inset 0 2px 0 rgba(255, 255, 255, .55); } }
.wl-said { font-size: 17px; font-style: italic; color: var(--ink2); }
.wl-art.a1 { max-width: 290px; align-items: stretch; gap: 10px; }
.wl-b { display: flex; animation: settle .5s var(--ease) both; }
.wl-b.me { justify-content: flex-end; }
.wl-b:nth-child(1) { animation-delay: .25s; } .wl-b:nth-child(2) { animation-delay: .95s; } .wl-b:nth-child(3) { animation-delay: 1.65s; }
.wl-art.a1 .strip { font-size: 28px; padding: 10px 15px; border-radius: 14px; border-top-left-radius: 5px; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 20px rgba(var(--shade), .4); }
.wl-art.a1 .me .strip { border-radius: 14px; border-top-right-radius: 5px; background: linear-gradient(160deg, var(--mine1), var(--mine2)); color: var(--on-mine); box-shadow: inset 0 0 0 1px var(--gold-line), 0 8px 20px rgba(var(--shade), .4); }
.wl-seal { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; color: var(--gold-text); background: radial-gradient(circle at 30% 25%, var(--up1), var(--up2)); box-shadow: 0 0 80px rgba(var(--glow), .3), inset 0 1px 0 rgba(255, 255, 255, .1); }
.wl-seal::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(var(--acc1), var(--acc-edge), var(--acc1), var(--acc-edge), var(--acc1)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--edge) calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--edge) calc(100% - 2.5px)); animation: turn 8s linear infinite; }
.wl-foot { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wl-dots { display: flex; gap: 6px; }
.wl-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: width .35s var(--ease), background .35s; }
.wl-dots i.on { width: 24px; background: var(--gold); }
.cta { width: 100%; height: 54px; font-size: 16.5px; }
.wl-skip { font-size: 14px; color: var(--ink3); padding: 6px 14px; }


/* =====================================================================
   Reasons to come back: bond, reactions, shimmer, sparks
   ===================================================================== */

/* a slow sheen crosses anything gold */
.cta, .text-btn.strong, .speak, .p-count { position: relative; overflow: hidden; }
.cta::after, .text-btn.strong::after, .p-count::after, .speak::after {
  content: ""; position: absolute; inset: 0; border: 0; border-radius: inherit; opacity: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .55) 50%, transparent 64%);
  transform: translateX(-130%); animation: sheen 4.2s ease-in-out infinite;
}
.speak::before { display: none; }
.speak.on::after { animation: sheen 4.2s ease-in-out infinite; }
@keyframes sheen { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* the moment a Bol is sealed and sent */
.bubble { position: relative; overflow: hidden; }
.bol.landed .bubble::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 226, 150, .5) 50%, transparent 70%); animation: seal .7s var(--ease) both; }
@keyframes seal { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.spark { position: fixed; z-index: 60; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; pointer-events: none; background: var(--acc1); box-shadow: 0 0 8px var(--gold); animation: spark .8s cubic-bezier(.1, .7, .3, 1) both; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* waiting cards lean toward the pointer and catch the light */
.w-card { position: relative; transition: transform .25s var(--ease); transform-style: preserve-3d; overflow: hidden; }
.w-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, -20%), rgba(255, 226, 150, .1), transparent 65%); }

/* bond: a gold ring around the person that fills as you talk */
#faceBtn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--gold) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, .1) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), var(--edge) calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), var(--edge) calc(100% - 2px)); transition: background .6s; }
.sheet-top { gap: 14px; }
.who .sub { color: color-mix(in srgb, var(--gold-text) 60%, var(--ink3)); }
.key.locked { opacity: .55; cursor: default; }
.key.locked .tile { font-size: 22px; color: var(--ink3); }

.levelup { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; cursor: pointer; background: radial-gradient(70% 45% at 50% 46%, rgba(var(--glow), .28), transparent 70%), rgba(var(--veil), .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.levelup.in { animation: fade .35s both; }
.levelup.in > * { animation: wordin .6s var(--ease) both; }
.levelup.in > h3 { animation-delay: .25s; } .levelup.in > p { animation-delay: .4s; }
.lv-ring { position: relative; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 26%, var(--acc1), var(--acc2) 40%, var(--acc3)); box-shadow: 0 0 90px rgba(var(--glow), .55), inset 0 2px 0 rgba(255, 255, 255, .6); }
.levelup.in .lv-ring { animation: lvpop .7s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes lvpop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.lv-ring b { font-size: 60px; font-weight: 700; letter-spacing: -.04em; color: var(--on-gold); }
.levelup h3 { margin: 30px 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.levelup p { margin: 0; font-size: 15.5px; color: var(--ink2); }

/* reactions */
.bol { position: relative; }
.react { margin-top: -7px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; color: var(--gold-text); background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: 0 0 0 2px var(--chat), inset 0 0 0 1px var(--gold-line); }
.bol.them .react { margin-left: 8px; } .bol.me .react { margin-right: 8px; }
.react.new { animation: lvpop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.react [data-m] svg { animation: var(--mo) 2.4s var(--ease) .4s 1; }
.react-bar { position: absolute; bottom: calc(100% + 6px); z-index: 5; display: flex; gap: 2px; padding: 6px; border-radius: 26px; background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--gold-line), 0 16px 36px rgba(var(--shade), .65); animation: pop .22s var(--ease) both; }
.bol.them .react-bar { left: 0; } .bol.me .react-bar { right: 0; }
.react-bar button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; color: var(--ink); animation: signin .3s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transition: transform .15s var(--ease), color .15s; }
.react-bar button:hover { transform: scale(1.25) translateY(-3px); color: var(--gold-text); }
.react-bar [data-m] svg { animation: none; }
.react-bar button:hover [data-m] svg { animation: var(--mo) 2.4s var(--ease) 1; }

/* a switch row on the You screen */
.row-toggle { display: flex; align-items: center; gap: 14px; width: calc(100% - 40px); margin: 0 20px 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper); text-align: left; }
.row-toggle .pi { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; font-size: 19px; }
.row-toggle b { flex: 1; font-weight: 600; font-size: 15px; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--line2); position: relative; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink2); transition: transform .25s var(--ease), background .25s; }
.row-toggle.on .switch { background: linear-gradient(180deg, var(--acc1), var(--acc2)); }
.row-toggle.on .switch::after { transform: translateX(18px); background: var(--on-gold); }


/* =====================================================================
   Today's Bol: the daily reason to open the app
   ===================================================================== */

.aaj { margin: 6px 14px 10px; padding: 18px 18px 18px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--glow), .22), transparent 60%), linear-gradient(165deg, var(--card1) 0%, var(--card2) 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px var(--gold-line), 0 18px 40px rgba(var(--shade), .5); }
.aaj-top { display: flex; align-items: center; justify-content: space-between; }
.aaj-top .eyebrow { margin: 0; }
.aaj-streak { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--gold-text); padding: 4px 10px 4px 7px; border-radius: 12px; background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.aaj-streak svg.g { font-size: 14px; stroke-width: 2; }
.aaj h2 { margin: 14px 0 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.aaj-faces { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; }
.aaj-stack { display: flex; flex: none; }
.aaj-stack .face { width: 32px; height: 32px; font-size: 13px; margin-left: -9px; box-shadow: 0 0 0 2px var(--up2), inset 0 0 0 1px var(--gold-line); }
.aaj-stack .face:first-child { margin-left: 0; }
.aaj-count { font-size: 13.5px; line-height: 1.35; color: var(--ink2); }
.aaj .cta { height: 52px; }
.cta:disabled { opacity: .35; box-shadow: none; cursor: default; }
.cta:disabled::after { display: none; }

.aaj.answered h2 { font-size: 20px; color: var(--ink2); font-weight: 600; letter-spacing: -.02em; margin-top: 12px; }
.aaj-mine { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.aaj-mine small { font-size: 12.5px; color: var(--ink3); flex: none; }
.aaj-mine .strip { font-size: 34px; gap: 4px 18px; padding: 0; background: none; box-shadow: none; color: var(--gold-text); filter: drop-shadow(0 0 12px rgba(var(--glow), .35)); }
.aaj-rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.aaj-rail::-webkit-scrollbar { display: none; }
.aaj-card { flex: none; min-width: 132px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 14px 14px; border-radius: 16px; text-align: left; background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line), 0 3px 0 var(--edge); transition: transform .12s var(--ease); }
.aaj-card:active { transform: translateY(2px); }
.aaj-card.none { opacity: .5; }
.aaj-who { display: flex; align-items: center; gap: 8px; }
.aaj-who .face { width: 24px; height: 24px; font-size: 11px; }
.aaj-who b { font-size: 13.5px; font-weight: 600; }
.aaj-card .strip { font-size: 25px; gap: 4px 11px; padding: 0; background: none; box-shadow: none; }
.aaj-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink3); }
/* the reveal: your answer lands, then theirs turn over one by one */
.aaj.reveal .aaj-mine { animation: lvpop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.aaj.reveal .aaj-card { animation: flipin .55s var(--ease) both; animation-delay: calc(var(--k) * 90ms + 350ms); }
@keyframes flipin { from { opacity: 0; transform: perspective(600px) rotateY(-70deg) translateX(-20px); } }

/* the answer sheet */
.eyebrow.flush { margin: 0 0 8px; }
#aajCard .card-title { font-size: 24px; margin-bottom: 18px; }
.aaj-slots { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.aaj-slot { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; color: var(--gold-text); border: 1.5px dashed var(--line2); transition: border-color .2s, background .2s; }
.aaj-slot.full { border: 0; background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px var(--gold-line), 0 4px 0 var(--edge); animation: pop .25s var(--ease) both; }
.aaj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-auto-rows: 64px; height: 200px; overflow-y: auto; margin: 0 -8px 18px; scrollbar-width: none; }
.aaj-grid::-webkit-scrollbar { display: none; }
.aaj-grid .key .tile { font-size: 26px; height: 27px; }

/* welcome step */
.wl-q { font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }


/* =====================================================================
   Paheli: the daily sign puzzle
   ===================================================================== */

.nav button { position: relative; }
.nav button.due span::after { content: ""; position: absolute; top: 5px; left: calc(50% + 12px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--up2), 0 0 10px var(--gold); }
.pz-top { margin: 4px 20px 0; }
.pz-card { margin: 14px 14px 0; padding: 34px 18px 22px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  background: radial-gradient(110% 80% at 50% 0%, rgba(var(--glow), .22), transparent 62%), linear-gradient(165deg, var(--card1) 0%, var(--card2) 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px var(--gold-line), 0 18px 40px rgba(var(--shade), .5); }
.pz-card .strip { font-size: 52px; gap: 8px 26px; padding: 0; background: none; box-shadow: none; color: var(--gold-text); filter: drop-shadow(0 0 16px rgba(var(--glow), .4)); }
.pz-card p { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pz-opts { display: grid; gap: 10px; padding: 18px 14px 0; }
.pz-opt { height: 54px; padding: 0 18px; border-radius: 14px; font-size: 16px; font-weight: 600; text-align: left; color: var(--ink);
  background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line), 0 4px 0 var(--edge);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), opacity .2s; }
.pz-opt:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line), 0 1px 0 var(--edge); }
.pz-opt.wrong { opacity: .35; text-decoration: line-through; cursor: default; }
.pz-opt.shake { animation: m-shake 1.4s var(--ease) 1; }
.pz-opt.right { color: var(--on-gold); background: linear-gradient(180deg, var(--acc1), var(--acc2)); box-shadow: 0 4px 0 var(--acc-edge), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pz-left { margin: 14px 20px 20px; font-size: 13px; color: var(--ink3); text-align: center; }
.pz-result { margin: 16px 14px 6px; padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); animation: settle .45s var(--ease) both; }
.pz-result.won { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.pz-result small { font-size: 12.5px; color: var(--ink2); }
.pz-result b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pz-result.won b { color: var(--gold-text); }
.pz-result span { font-size: 13.5px; color: var(--ink3); }
.pz-people { padding: 0 20px; }
.pz-people li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.pz-people li + li { border-top: 1px solid var(--line); }
.pz-people .face { width: 34px; height: 34px; font-size: 14px; }
.pz-people b { flex: 1; font-size: 15px; font-weight: 600; }
.pz-people span { font-size: 13.5px; color: var(--ink3); }
.pz-people span.best { color: var(--gold-text); font-weight: 600; }
.nav small { font-size: 11.5px; }

/* =====================================================================
   Refinement: a smaller type scale and more air
   ===================================================================== */

body { font-size: 14.5px; }
h1 { font-size: 24px; letter-spacing: -.025em; }
.top { height: 60px; padding-left: 22px; padding-right: 22px; }
.brand svg { height: 24px; }
.eyebrow { font-size: 10.5px; margin: 26px 22px 10px; }
.sub { font-size: 12.5px; }

.chips { gap: 6px; padding: 0 20px 14px; }
.chip-f { height: 30px; padding: 0 13px; font-size: 13px; }

/* the list: lighter names, smaller faces, room between rows */
.people-list { padding: 4px 10px 12px; }
.person { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 13px 12px; border-radius: 16px; }
.person + .person::before { left: 70px; right: 12px; background: rgba(var(--inkrgb), .055); }
.person .face { width: 44px; height: 44px; font-size: 16px; }
.face { font-weight: 500; letter-spacing: .02em; }
.face.here::after { right: -1px; bottom: -1px; width: 9px; height: 9px; box-shadow: 0 0 0 2.5px var(--surface), 0 0 8px rgba(var(--glow), .8); }
.p-name { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.p-last { margin-top: 5px; height: 18px; gap: 9px; font-size: 13px; color: var(--ink3); }
.p-last svg.g { font-size: 17px; stroke-width: 1.6; }
.p-last .n { font-size: 13px; }
.p-last .mine { font-size: 14px; }
.p-side { gap: 7px; }
.p-time { font-size: 11.5px; }
.person.unread .p-time { font-weight: 500; }
.p-count { min-width: 19px; height: 19px; padding: 0 5px; font-size: 11px; box-shadow: 0 1.5px 0 var(--acc-edge); }

/* cards on the home screen */
.aaj { margin: 2px 16px 6px; padding: 20px; border-radius: 22px; }
.aaj h2 { font-size: 23px; margin-top: 16px; line-height: 1.15; }
.aaj-faces { margin: 18px 0 20px; }
.aaj-count { font-size: 12.5px; }
.aaj-streak { font-size: 11.5px; }
.aaj .cta { height: 48px; font-size: 15px; }
.aaj.answered h2 { font-size: 17px; }
.aaj-mine .strip { font-size: 30px; }
.aaj-card { min-width: 124px; padding: 12px 14px; gap: 11px; }
.aaj-who b { font-size: 12.5px; }
.aaj-card .strip { font-size: 22px; }
.w-rail { padding: 0 16px 4px; gap: 10px; }
.w-card { padding: 16px 18px; gap: 16px; }
.w-card .strip { font-size: 26px; }
.w-head .p-name { font-size: 14px; }
.chip { width: 40px; height: 40px; }
.chip .tile { font-size: 19px; }
.speak.mini { width: 40px; height: 40px; font-size: 18px; }

/* navigation */
.nav { margin: 0 14px calc(12px + env(safe-area-inset-bottom)); padding: 5px; }
.nav button { font-size: 21px; padding: 6px 0 4px; gap: 2px; }
.nav button span { width: 50px; height: 28px; }
.nav small { font-size: 10.5px; letter-spacing: .01em; }

/* conversation */
.sheet-top { height: calc(58px + env(safe-area-inset-top)); }
.who-name { font-size: 15.5px; font-weight: 600; }
.who .sub { font-size: 11.5px; margin-top: 2px; }
.thread { padding: 14px 16px 16px; }
.bol { margin-top: 10px; }
.bol.run + .bol { margin-top: 3px; }
.bubble { padding: 8px 10px 7px 12px; border-radius: 14px; }
.signs { font-size: 23px; gap: 4px 13px; min-height: 28px; }
.stamp { font-size: 10.5px; padding-left: 8px; }
.day { font-size: 11px; padding: 4px 10px; }
.words em { font-size: 13.5px; }
.compose { padding: 8px 12px 10px; gap: 10px; }
.tray { height: 46px; }
.tray-hint { font-size: 14.5px; }
.speak { width: 50px; height: 50px; font-size: 21px; }
.send { width: 46px; height: 46px; font-size: 21px; }
.tabs { padding: 2px 10px 0; }
.tab { font-size: 12.5px; padding: 9px 10px 10px; }
.grid { grid-auto-rows: 64px; height: 196px; padding: 4px 8px 0; }
.key .tile { font-size: 24px; height: 25px; }
.key small { font-size: 10.5px; }
.key { gap: 6px; }

/* other screens */
.book-intro { font-size: 13.5px; margin: 0 22px 4px; }
.privacy-list { padding: 0 22px; }
.privacy-list b { font-size: 14px; }
.privacy-list span { font-size: 12.5px; }
.you-name { font-size: 20px; }
.pz-card .strip { font-size: 46px; }
.pz-card p { font-size: 15.5px; }
.pz-opt { height: 50px; font-size: 14.5px; }
.pz-result b { font-size: 21px; }
.card-title { font-size: 19px; }
#aajCard .card-title { font-size: 21px; }


/* =====================================================================
   Home is the conversation list; Today's Bol is a row of rings above it
   ===================================================================== */

.today { margin: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; }
.today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 22px; }
.today-head .eyebrow { margin: 0; display: block; }
.today-q { margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.today-rail { display: flex; gap: 6px; overflow-x: auto; padding: 14px 16px 2px; scrollbar-width: none; }
.today-rail::-webkit-scrollbar { display: none; }
.t-item { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform .12s var(--ease); }
.t-item:active { transform: scale(.94); }
.t-item small { font-size: 11.5px; color: var(--ink2); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ring { position: relative; padding: 4px; border-radius: 50%; display: grid; }
.t-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--acc1), var(--acc3), var(--acc1), var(--acc3), var(--acc1)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), var(--edge) calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), var(--edge) calc(100% - 1.5px)); }
.t-ring .face { width: 48px; height: 48px; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
/* until you answer, theirs are sealed */
.t-item.locked .t-ring::before { background: var(--line2); }
.t-item.locked .face { color: var(--ink3); }
.t-item.locked small { color: var(--ink3); }
.t-item.todo .t-ring::before { background: none; border: 1.5px dashed var(--gold); -webkit-mask: none; mask: none; }
.t-item.todo small { color: var(--gold-text); font-weight: 600; }
.face.plus { color: var(--on-gold); font-size: 22px; background: radial-gradient(circle at 32% 26%, var(--acc1), var(--acc2) 40%, var(--acc3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.face.plus svg.g { stroke-width: 2.2; }
.face.signs3 { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 1px 2px; padding: 7px; font-size: 14px; color: var(--gold-text); }
.face.signs3 .tile:first-child { flex-basis: 100%; }
.today.reveal .t-item:not(.mine) { animation: lvpop .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--k) * 70ms + 200ms); }

/* an answer opened from its ring */
.view-signs { display: flex; justify-content: center; margin: 26px 0 12px; }
.view-signs .strip { font-size: 46px; gap: 8px 26px; padding: 0; background: none; box-shadow: none; color: var(--gold-text); filter: drop-shadow(0 0 14px rgba(var(--glow), .4)); }
.view-words { text-align: center; font-size: 13.5px; color: var(--ink2); margin-bottom: 6px; }

/* the list starts right under the rings */
.people-list { padding-top: 8px; }
.chips { padding-bottom: 12px; }


/* =====================================================================
   The bolo keyboard: signs only, likely replies first
   ===================================================================== */

svg.g path.f { fill: currentColor; stroke: none; opacity: .5; }

/* the first row: ranked by how likely you are to want each sign */
.predict { display: flex; align-items: stretch; gap: 6px; padding: 10px max(10px, calc((100% - 776px) / 2)) 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.predict::-webkit-scrollbar { display: none; }
.pk { flex: 1 0 44px; max-width: 76px; height: 52px; position: relative; display: grid; place-items: center; border-radius: 14px; font-size: 24px; color: var(--ink);
  background: linear-gradient(180deg, var(--up1), var(--up2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line), 0 3px 0 var(--edge);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease); touch-action: manipulation; }
.pk:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line), 0 1px 0 var(--edge); }
.pk.top { flex-grow: 1.5; color: var(--on-gold); background: linear-gradient(180deg, var(--acc1), var(--acc2)); box-shadow: 0 3px 0 var(--acc-edge), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pk.top:active { box-shadow: 0 1px 0 var(--acc-edge), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pk.top svg.g { stroke-width: 2; }
/* a thin bar shows how sure the keyboard is, relative to its first choice */
.pk i { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pk i::after { content: ""; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); border-radius: 1px; background: var(--gold); }
.pk.top i { background: rgba(26, 20, 5, .18); }
.pk.top i::after { background: var(--on-gold); }
.pk .tile { transform: translateY(-2px); }
.pk.new { animation: pkin .3s var(--ease) both; }
@keyframes pkin { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.pk [data-m] svg { animation: none; }
.pk:hover [data-m] svg { animation: var(--mo) 2.4s var(--ease) 1; }

/* send: dark until there is something to send, gold once there is, and it breathes when the Bol reads as complete */
.send { width: 50px; height: 50px; font-size: 22px; position: relative; overflow: visible;
  background: radial-gradient(circle at 32% 26%, var(--acc1) 0%, var(--acc2) 40%, var(--acc3) 100%); color: var(--on-gold);
  box-shadow: 0 4px 0 var(--acc-edge), 0 10px 26px rgba(var(--glow), .3), inset 0 1px 0 rgba(255, 255, 255, .55); animation: none; }
.send:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--acc-edge), inset 0 1px 0 rgba(255, 255, 255, .55); }
.send:disabled { background: linear-gradient(180deg, var(--up1), var(--up2)); color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 var(--edge); cursor: default; }
.send.glow::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold); animation: breathe 1.3s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .2; } 50% { transform: scale(1.06); opacity: .9; } }

.tabs { padding-top: 0; }
.grid { height: 132px; }

/* signs stand in for the words that used to be here */
.today-q { margin-top: 6px; }
.today-q .strip, .q-signs .strip { padding: 0; background: none; box-shadow: none; font-size: 22px; gap: 4px 10px; color: var(--ink); }
.q-signs { margin-top: 4px; }
.q-signs .strip { font-size: 18px; color: var(--ink2); }
#aajQ .strip { padding: 0; background: none; box-shadow: none; font-size: 34px; gap: 6px 16px; color: var(--ink); }
.bubble { cursor: default; }

/* with the labels switched off, the keyboard is signs alone */
.nolabels .key small { display: none; }
.nolabels .grid { grid-auto-rows: 52px; }

/* the puzzle: which sign completes the Bol */
.pz-card .strip { align-items: center; }
.pz-card .tile.blank { width: 1.25em; height: 1.25em; border-radius: 16px; border: 1.5px dashed var(--gold-line); color: var(--ink3); font-size: .7em; }
.pz-card .tile.answer { color: var(--ink); animation: lvpop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.pz-opts { grid-template-columns: repeat(4, 1fr); padding: 18px 16px 0; }
.pz-opt { height: 72px; padding: 0; display: grid; place-items: center; font-size: 32px; text-align: center; }
.pz-opt.wrong { text-decoration: none; }
.pz-left { display: flex; justify-content: center; gap: 6px; }
.pz-left i { width: 18px; height: 4px; border-radius: 2px; background: var(--line2); }
.pz-left i.on { background: var(--gold); }
.pz-next { margin: 14px 20px 20px; font-size: 12.5px; color: var(--ink3); text-align: center; }
.pz-people span { display: grid; place-items: center; font-size: 18px; }

/* welcome: a small picture of the ranked row */
.wl-row { display: flex; gap: 6px; margin-top: 8px; }
.wl-row .pk { flex: none; width: 46px; height: 50px; }
.wl-art.a3 .strip:first-child { background: none; box-shadow: none; color: var(--ink); padding: 0; }


/* =====================================================================
   Real people, and asking what a Bol means
   ===================================================================== */

/* a real person is known by two signs */
.face.real { font-size: 20px; }
.person .face.real { font-size: 22px; }
.face.real svg.g { stroke-width: 1.8; }
.signs-name { display: flex; align-items: center; gap: 8px; font-size: 19px; color: var(--ink); }
.who-name.signs-name { font-size: 20px; }
.ping .signs-name { font-size: 18px; }

/* the You screen */
.my-sign { display: flex; gap: 14px; font-size: 34px; color: var(--gold-text); margin-bottom: 8px; }
.you-sign .face { margin-bottom: 16px; }
.you-sign .face.real { font-size: 44px; }
.you-row { display: flex; gap: 10px; margin-top: 16px; }
.net-state { margin-top: 14px; font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 7px; }
.net-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); }
.net-state.on { color: var(--ink2); }
.net-state.on::before { background: #5BBF7B; box-shadow: 0 0 8px rgba(91, 191, 123, .7); }
.invite-link { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 11.5px; color: var(--ink2); word-break: break-all; text-align: left; user-select: all; -webkit-user-select: all; }

/* meaning: the one place words or voice appear, and only when asked for */
.ask-mean { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: var(--gold-text); margin-left: 4px; box-shadow: inset 0 0 0 1.5px var(--gold-line); animation: signin .3s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.mean { margin-top: 5px; max-width: 280px; padding: 7px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: var(--ink2); background: rgba(var(--inkrgb), .06); user-select: text; -webkit-user-select: text; animation: settle .35s var(--ease) both; }
.mean.asked { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink3); background: none; padding: 2px 4px; }
.mean.asked svg.g { font-size: 14px; color: var(--gold-text); }
.mean.ask-me { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; color: var(--ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.mean.ask-me span { font-size: 12.5px; }
.mean.ask-me .text-btn { padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.mean.voice { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-text); font-weight: 600; font-size: 13px; }
.mean.voice svg.g { font-size: 18px; stroke-width: 2; }
.mean-bol { margin-bottom: 14px; }
.mean-bol .strip { font-size: 26px; }
.mean-text { width: 100%; resize: none; padding: 12px 14px; border-radius: 14px; border: 0; outline: 0; background: var(--paper); color: var(--ink); font: 15px/1.4 var(--font); box-shadow: inset 0 0 0 1px var(--line); user-select: text; -webkit-user-select: text; }
.mean-text:focus { box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.mean-text::placeholder { color: var(--ink3); }
.rec { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); touch-action: none; }
.rec span { font-size: 18px; display: grid; }
.rec.on { color: var(--on-gold); background: linear-gradient(180deg, var(--acc1), var(--acc2)); box-shadow: none; animation: breathe 1s ease-in-out infinite; }


/* =====================================================================
   The keyboard shows every sign at once
   ===================================================================== */

/* the ranked row never scrolls: seven keys always fit */
.predict { overflow: hidden; gap: 5px; padding: 8px max(6px, calc((100% - 776px) / 2)) 8px; }
.pk { flex: 1 1 0; min-width: 0; max-width: none; height: 48px; font-size: 22px; }
.pk.top { flex-grow: 1.4; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 36px; height: auto; overflow: visible; gap: 3px; padding: 6px max(6px, calc((100% - 776px) / 2)) 4px; }
.kk { position: relative; display: grid; place-items: center; border-radius: 8px; font-size: 19px; color: var(--ink); background: var(--key1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1.5px 0 var(--edge); transition: transform .08s var(--ease), background .12s; touch-action: manipulation; }
/* neighbouring groups alternate in shade, so the eye finds the kind of sign it wants */
.kk.c-do, .kk.c-time, .kk.c-people { background: var(--key2); }
.kk.c-ours { color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-line), 0 1.5px 0 var(--edge); }
.kk.add { color: var(--gold-text); background: none; box-shadow: inset 0 0 0 1px var(--gold-line); }
.kk:active { transform: translateY(1.5px) scale(.96); background: var(--gold); color: var(--on-gold); }
.kk svg.g { stroke-width: 1.7; }
.kk [data-m] svg { animation: none; }
/* press a key to see its name above it, as a phone keyboard shows the letter */
.kk:active::after { content: attr(data-label); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 5; padding: 5px 9px; border-radius: 8px; white-space: nowrap; font: 600 12px/1 var(--font); color: var(--on-gold); background: linear-gradient(180deg, var(--acc1), var(--acc2)); box-shadow: 0 6px 16px rgba(var(--shade), .6); pointer-events: none; }
@media (hover: hover) { .kk:hover { background: var(--up1); } .kk:hover::after { content: attr(data-label); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 5; padding: 5px 9px; border-radius: 8px; white-space: nowrap; font: 600 12px/1 var(--font); color: var(--ink); background: var(--up1); box-shadow: 0 6px 16px rgba(var(--shade), .6); pointer-events: none; } }
@media (min-width: 880px) { .grid { grid-auto-rows: 40px; gap: 4px; } .kk { font-size: 21px; } }
.keys { padding-bottom: calc(4px + env(safe-area-inset-bottom)); }


/* =====================================================================
   Meet: finding people by what others say they are like
   ===================================================================== */

.sub.wrap { white-space: normal; line-height: 1.45; }
.row-toggle b small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ink3); line-height: 1.4; }

/* a trait is a sign with a bar under it: longer means more people said so */
.traits { display: flex; align-items: flex-end; gap: 12px; margin-top: 7px; }
.trait { position: relative; display: grid; justify-items: center; gap: 4px; font-size: 18px; color: var(--ink2); }
.trait i { width: 20px; height: 2px; border-radius: 1px; background: var(--line2); position: relative; overflow: hidden; }
.trait i::after { content: ""; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: var(--gold); }
.trait:first-child { color: var(--gold-text); }

.trait-rail { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.trait-rail::-webkit-scrollbar { display: none; }
.trait-chip { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px; border-radius: 17px; font-size: 17px; color: var(--ink2); background: var(--paper); transition: background .2s, color .2s; }
.trait-chip small { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.trait-chip.on { color: var(--gold-text); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }

.meet-list { padding: 0 10px 14px; }
.meet-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 13px 12px; animation: settle .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.meet-card + .meet-card { border-top: 1px solid rgba(var(--inkrgb), .055); }
.meet-card .face { width: 44px; height: 44px; }
.meet-card .signs-name em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line2); }
.meet-card .text-btn { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.meet-card .text-btn:not(.strong) { box-shadow: inset 0 0 0 1px var(--line2); }

/* the tag sheet */
.tag-theirs { display: flex; align-items: center; gap: 14px; min-height: 8px; margin: 12px 0 4px; }
.tag-theirs small { font-size: 12px; color: var(--ink3); }
.tag-theirs .traits { margin-top: 0; }
.tag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-height: 300px; overflow-y: auto; margin: 6px -6px 0; scrollbar-width: none; }
.tag-grid::-webkit-scrollbar { display: none; }
.tag-grid .key { height: 68px; }
.tag-grid .key small { font-size: 10.5px; max-width: 78px; }
.tag-grid .key.on { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tag-grid .key.on .tile, .tag-grid .key.on small { color: var(--gold-text); }
.nolabels .tag-grid .key small, .nolabels .trait-chip small { display: block; }
.text-btn.danger { color: #E0796B; }
#myTraits .traits { padding: 0 22px 4px; margin-top: 0; gap: 16px; }
#myTraits .trait { font-size: 22px; }
#myTraits .sub { padding: 0 22px; }
.you-actions { gap: 8px; }

/* someone who found you */
.request { align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4; color: var(--ink2); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.request div { display: flex; justify-content: flex-end; gap: 8px; }
.request .text-btn { padding: 7px 16px; font-size: 13px; border-radius: 10px; }
.sheet-top { gap: 8px; }
.sheet-top .who { margin-left: 6px; }
.nav button { font-size: 20px; }


/* =====================================================================
   Themes. Midnight is the original black and gold; Emerald is dark with a vivid green.
   ===================================================================== */

:root {
  --up1: #25252A; --up2: #18181B; --card1: #1F1F23; --card2: #121214; --key1: #1A1A1E; --key2: #232328; --edge: #000;
  --acc1: #EBD293; --acc2: #C9A55C; --acc3: #A27E33; --acc-edge: #6B5119;
  --mine1: #372C14; --mine2: #251E0E; --deep: #070708;
  --glow: 201, 165, 92; --inkrgb: 243, 239, 231; --shade: 0, 0, 0; --veil: 5, 5, 6;
}

/* the theme switch on the You screen */
.theme-row { display: flex; align-items: center; gap: 14px; width: calc(100% - 40px); margin: 0 20px 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.theme-row b { flex: 1; font-weight: 600; font-size: 15px; }
.theme-row .pi { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; font-size: 19px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px var(--line2); transition: transform .15s var(--ease); }
.swatch::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--paper); }
.swatch.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold); }
.swatch:active { transform: scale(.9); }
.swatch[data-theme="midnight"] { background: #0D0D0F; --dot: #C9A55C; }
.swatch[data-theme="emerald"] { background: linear-gradient(160deg, #0F7D55, #084C4B); --dot: #BDF2D5; }
.swatch[data-theme="teal"] { background: linear-gradient(160deg, #0E7885, #094C66); --dot: #BCEFF5; }
.swatch[data-theme="ocean"] { background: linear-gradient(160deg, #1A69B8, #123C86); --dot: #C7DEFA; }
.swatch[data-theme="royal"] { background: linear-gradient(160deg, #5A3BB4, #321C7E); --dot: #D9CCFA; }
.swatch[data-theme="berry"] { background: linear-gradient(160deg, #B03A6C, #70206E); --dot: #F7CBDD; }
.swatch[data-theme="ember"] { background: linear-gradient(160deg, #B8552A, #7E2E26); --dot: #F8D7BE; }
.swatch[data-theme="rose"] { background: linear-gradient(160deg, #B33448, #761B40); --dot: #F7CCD2; }

/* the ranked row shows its order by position alone: no bars under the keys */
.pk i { display: none; }
.pk .tile { transform: none; }

/* every key centres its sign exactly, whatever the key's width */
.pk, .kk, .chip, .send, .pz-opt, .aaj-slot, .react-bar button, .ask-mean, .t-ring { justify-content: center; align-content: center; }
.pk { padding: 0; }

/* the ranked row sits on one line: every key is the same height with no raised edge, so the highlighted key lines up with its neighbours */
.pk, .pk.top { height: 48px; box-shadow: inset 0 0 0 1px var(--line); transform: none; }
.pk.top { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.pk:active, .pk.top:active { transform: scale(.95); box-shadow: inset 0 0 0 1px var(--line); }
.predict { align-items: center; }


/* =====================================================================
   Background: light, grain and weave behind the whole app
   ===================================================================== */

:root { --bg1: #17151C; --bg2: #0C0C0F; --bg3: #08080A; --aur1: 201, 165, 92; --aur2: 150, 110, 220; --aur3: 70, 130, 180; --glass: 15, 15, 18; }

/* three soft lights, a fine diagonal weave, and the base colour */
.app {
  background:
    radial-gradient(72% 44% at 10% -6%, rgba(var(--aur1), .3), transparent 70%),
    radial-gradient(58% 38% at 110% 26%, rgba(var(--aur2), .15), transparent 70%),
    radial-gradient(84% 48% at 22% 110%, rgba(var(--aur3), .18), transparent 70%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, calc(.024 * var(--tex))) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(28deg, rgba(0, 0, 0, calc(.05 * var(--tex))) 0 1px, transparent 1px 9px),
    linear-gradient(165deg, var(--bg1), var(--bg2) 52%, var(--bg3));
}
/* a film of grain over everything, so no surface is perfectly flat */
.app::after {
  content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: calc(.1 * var(--tex)); mix-blend-mode: overlay;
}

/* the panels let the background through */
.side, .sheet { background: transparent; }
.thread-wrap { background: rgba(0, 0, 0, .12); }
.sheet-top, .compose, .keys, .nav { background: rgba(var(--glass), .58); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
.sheet-top { box-shadow: 0 1px 0 var(--line); }
.compose { box-shadow: 0 -1px 0 var(--line); }
.nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--line), 0 14px 34px rgba(var(--shade), .5); }
.today { border-bottom-color: var(--line); }
.tray { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.predict { border-bottom-color: var(--line); }
.day, .touch-mark, .pull { background: rgba(var(--glass), .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Emerald: bubbles and keys are tinted glass */


/* choosing a look: eight themes and three strengths of texture */
:root { --tex: 1; }
.theme-row { flex-wrap: wrap; row-gap: 14px; }
.theme-row b { flex: 1 0 calc(100% - 60px); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; padding-left: 2px; }
.swatch { width: 34px; height: 34px; }
.tex-pick { display: flex; align-items: center; gap: 6px; width: 100%; font-size: 13px; color: var(--ink2); }
.tex-pick span { margin-right: auto; font-weight: 600; font-size: 15px; color: var(--ink); }
.tex-pick button { padding: 6px 13px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.tex-pick button.on { background: var(--gold); color: var(--on-gold); box-shadow: none; }


/* =====================================================================
   People in colour: each face has its own, in every theme
   ===================================================================== */

html .face.col, html:not([data-theme="midnight"]) .face.col {
  background: linear-gradient(145deg, var(--a), var(--b)); color: #FFFFFF; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 10px rgba(var(--shade), .3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
html .face.col svg.g { stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }

/* Today's Bol: each ring takes the person's colours; yours is all of them */
.t-item:not(.mine) .t-ring::before { background: conic-gradient(from 210deg, var(--a), #FFE08A, var(--b), var(--a)); }
.t-item.mine .t-ring::before, .t-item.todo .t-ring::before { background: conic-gradient(#FF7A8A, #FFD15C, #5ED6A0, #6AA8FF, #C58CFF, #FF7A8A); border: 0;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
/* until you answer, theirs are muted rather than grey */
.t-item.locked .t-ring::before { background: conic-gradient(from 210deg, var(--a), #FFE08A, var(--b), var(--a)); opacity: .4; }
.t-item.locked .face.col { filter: saturate(.55) brightness(.9); opacity: .75; }
.t-item.locked .face { color: #fff; }
html .t-item.mine .face.signs3 { background: rgba(var(--shade), .28); color: #fff; }


/* signs in colour: each kind of sign has a soft tint of its own, so a Bol and the keyboard are never one flat tone */
:root { --k-do: #FFD79A; --k-place: #9BE7F2; --k-time: #CDC2FF; --k-feel: #FFB4CD; --k-people: #B9F2B0; }
.kk .tile.k-do, .signs .tile.k-do, .strip .tile.k-do, .pk:not(.top) .tile.k-do, .key .tile.k-do { color: var(--k-do); }
.kk .tile.k-place, .signs .tile.k-place, .strip .tile.k-place, .pk:not(.top) .tile.k-place, .key .tile.k-place { color: var(--k-place); }
.kk .tile.k-time, .signs .tile.k-time, .strip .tile.k-time, .pk:not(.top) .tile.k-time, .key .tile.k-time { color: var(--k-time); }
.kk .tile.k-feel, .signs .tile.k-feel, .strip .tile.k-feel, .pk:not(.top) .tile.k-feel, .key .tile.k-feel { color: var(--k-feel); }
.kk .tile.k-people, .signs .tile.k-people, .strip .tile.k-people, .pk:not(.top) .tile.k-people, .key .tile.k-people { color: var(--k-people); }
.kk:active .tile { color: inherit; }
/* the keys carry a whisper of the same colour */
.kk.c-do { background: color-mix(in srgb, var(--k-do) 9%, var(--key1)); }
.kk.c-place { background: color-mix(in srgb, var(--k-place) 9%, var(--key1)); }
.kk.c-time { background: color-mix(in srgb, var(--k-time) 9%, var(--key1)); }
.kk.c-feel { background: color-mix(in srgb, var(--k-feel) 9%, var(--key1)); }
.kk.c-people { background: color-mix(in srgb, var(--k-people) 9%, var(--key1)); }

/* the last Bol under each name keeps its colours too */
.p-last .tile { font-size: inherit; display: inline-grid; }
.p-last .tile.k-do { color: var(--k-do); } .p-last .tile.k-place { color: var(--k-place); } .p-last .tile.k-time { color: var(--k-time); }
.p-last .tile.k-feel { color: var(--k-feel); } .p-last .tile.k-people { color: var(--k-people); } .p-last .tile.k-say { color: var(--ink2); }
/* Today's Bol stays colourful before you answer; theirs are only slightly held back */
.t-item.locked .t-ring::before { opacity: .75; }
.t-item.locked .face.col { filter: saturate(.85); opacity: .9; }


/* =====================================================================
   The bolo look: one calm dark theme with a single green
   A deep blue-grey base, quiet panels, and green only where it means
   something: your own Bols, the likeliest reply, send, and what is new.
   ===================================================================== */

:root {
  --desk: #070C0F; --surface: #111B21; --paper: #1A262D; --chat: #0A1216; --deep: #0A1216;
  --theirs: #1C2930; --mine: #0B5C47; --on-mine: #EAFBF4;
  --ink: #E9EEF0; --ink2: #A3B3BA; --ink3: #6F8088;
  --line: rgba(233, 238, 240, .08); --line2: rgba(233, 238, 240, .15);
  --gold: #21C77C; --gold-text: #3DDC97; --gold-soft: rgba(33, 199, 124, .14); --gold-line: rgba(33, 199, 124, .36); --on-gold: #03241A;
  --brand: linear-gradient(160deg, #3DDC97, #17B26D);
  --up1: #22313A; --up2: #18242B; --card1: #1E2B33; --card2: #141F26; --key1: #18242B; --key2: #1E2B33; --edge: rgba(0, 0, 0, .45);
  --acc1: #5BE5AC; --acc2: #21C77C; --acc3: #14A565; --acc-edge: #0B6E44;
  --mine1: #0F6B52; --mine2: #0A5341;
  --glow: 33, 199, 124; --inkrgb: 233, 238, 240; --shade: 0, 0, 0; --veil: 6, 11, 14;
  --bg1: #121D24; --bg2: #0C1418; --bg3: #0A1014; --aur1: 33, 199, 124; --aur2: 60, 140, 200; --aur3: 33, 199, 124; --glass: 17, 27, 33;
  --tex: 1;
  --bubble-shadow: 0 1px .5px rgba(0, 0, 0, .35);
}

/* the texture stays, but quietly: a hint of light, a fine weave, a little grain */
.app { background:
    radial-gradient(72% 40% at 8% -8%, rgba(var(--aur1), .1), transparent 70%),
    radial-gradient(58% 36% at 110% 30%, rgba(var(--aur2), .07), transparent 70%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(28deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 9px),
    linear-gradient(170deg, var(--bg1), var(--bg2) 50%, var(--bg3)); }
.app::after { opacity: .08; }

/* bars are solid and calm */
.sheet-top, .nav { background: rgba(var(--glass), .92); }
.compose, .keys { background: rgba(var(--glass), .96); }
.thread-wrap { background: var(--chat); }
.thread-wrap::before { background: var(--ink); opacity: .045; }
.day, .touch-mark, .pull { background: var(--card1); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Bols: theirs grey-blue, yours deep green, no outlines */
.bubble { background: var(--theirs); box-shadow: var(--bubble-shadow); }
.bol.me .bubble { background: var(--mine); color: var(--on-mine); box-shadow: var(--bubble-shadow); }
.bol.me .stamp { color: rgba(234, 251, 244, .62); }
.stamp svg.g { color: #7FE7C0; }

/* green where it matters */
.send, .pk.top, .text-btn.strong, .cta, .face.plus { background: var(--gold); color: var(--on-gold); }
.send { box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.send:active { transform: scale(.94); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.send:disabled { background: var(--up1); color: var(--ink3); box-shadow: none; }
.send.glow::after { border-color: var(--gold); }
.text-btn.strong, .cta { border-radius: 22px; box-shadow: none; }
.text-btn.strong:active, .cta:active { transform: scale(.97); box-shadow: none; }
.cta::after, .text-btn.strong::after, .p-count::after, .speak::after { display: none; }
.p-count { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.pk { background: var(--up2); box-shadow: none; }
.pk.top { box-shadow: none; }
.kk { background: var(--key1); box-shadow: none; }
.kk.c-do, .kk.c-time, .kk.c-people, .kk.c-place, .kk.c-feel { background: var(--key1); }
.kk:active { background: var(--gold); color: var(--on-gold); }
.tray { background: var(--paper); box-shadow: none; }
.chip-f.on, .nav button.on span { box-shadow: none; }
.chip, .chip:hover { background: var(--up1); box-shadow: none; }
.nav { margin: 0; border-radius: 0; box-shadow: 0 -1px 0 var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.card { background: var(--surface); }
.toast { background: #E9EEF0; color: #0C1418; }
.toast button { color: #0B7A4B; }
.swatches, .tex-pick, .theme-row { display: none; }

/* the signs keep a soft colour by kind, a touch calmer on this base */
:root { --k-do: #F2CF94; --k-place: #93D9E6; --k-time: #BDB4F2; --k-feel: #F2A9C2; --k-people: #A9E3A2; }

/* =====================================================================
   Meet, tidied: one line of signs for the name, one quiet line of words
   for what people say about them, and a plain outlined action
   ===================================================================== */

.meet-list { padding: 4px 10px 14px; }
.meet-card { grid-template-columns: 46px 1fr auto; gap: 14px; padding: 15px 12px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.meet-card:hover { background: var(--paper); }
.meet-card + .meet-card { border-top: 1px solid var(--line); }
.meet-card .face { width: 46px; height: 46px; font-size: 21px; }
.meet-card .signs-name { font-size: 20px; gap: 9px; }
.meet-traits { margin-top: 6px; font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-go { flex: none; padding: 7px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-line); white-space: nowrap; }
.meet-go.known { color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line2); }
.trait-rail { padding: 6px 16px 10px; }
.trait-chip { height: 32px; background: var(--paper); }
.trait-chip.on { background: var(--gold-soft); color: var(--gold-text); box-shadow: none; }
#findToggle { margin-top: 2px; }
.row-toggle.on .switch { background: var(--gold); }
.row-toggle.on .switch::after { background: #fff; }

/* the middle column may shrink, so the action never leaves the row */
.meet-who { min-width: 0; }
.meet-card { grid-template-columns: 46px minmax(0, 1fr) auto; }

/* a sample profile is marked by one quiet word beside the name, never cut off */
.meet-card .signs-name em { padding: 0; box-shadow: none; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink3); margin-left: 2px; }


/* =====================================================================
   White: the bolo look on a white background
   White lists and bars, a soft off-white behind conversations, the same
   single green, and sign colours deep enough to read on white.
   ===================================================================== */

:root {
  color-scheme: light;
  --desk: #ECE5E3; --surface: #FFFFFF; --paper: #F3EEEC; --chat: #F3EEEC; --deep: #FFFFFF;
  --theirs: #FFFFFF; --mine: var(--t2); --on-mine: #0B2E1E;
  --ink: var(--ink); --ink2: #54656F; --ink3: #8696A0;
  --line: rgba(var(--inkc), .08); --line2: rgba(var(--inkc), .15);
  --gold: var(--a2); --gold-text: var(--a4); --gold-soft: rgba(var(--accc), .12); --gold-line: rgba(var(--accc), .38); --on-gold: #FFFFFF;
  --brand: linear-gradient(160deg, var(--a1), var(--a3));
  --up1: #FFFFFF; --up2: #F3EEEC; --card1: #FFFFFF; --card2: #F8F4F2; --key1: #F3EEEC; --key2: #EDE6E4; --edge: rgba(var(--inkc), .12);
  --acc1: var(--a1); --acc2: var(--a2); --acc3: var(--a4); --acc-edge: var(--a6);
  --mine1: var(--t2); --mine2: var(--t3);
  --glow: 183, 110, 121; --inkrgb: 46, 31, 43; --shade: 96, 112, 122; --veil: 255, 255, 255; --glass: 255, 255, 255;
  --bg1: #FFFFFF; --bg2: #FFFFFF; --bg3: #F7F3F1; --aur1: 183, 110, 121; --aur2: 60, 140, 200; --aur3: 183, 110, 121;
  --bubble-shadow: 0 1px .5px rgba(var(--inkc), .13);
  --lift: 0 1px 2px rgba(var(--inkc), .06), 0 2px 8px rgba(var(--inkc), .06);
  --float: 0 2px 4px rgba(var(--inkc), .05), 0 18px 50px rgba(var(--inkc), .18);
  --k-do: #B46A00; --k-place: #0E7C8C; --k-time: #5B4BC4; --k-feel: #C2356B; --k-people: #2E8B3A;
}

/* texture on white: the faintest weave and grain, and a breath of green at the top */
.app { background:
    radial-gradient(72% 36% at 8% -8%, rgba(var(--aur1), .07), transparent 70%),
    repeating-linear-gradient(118deg, rgba(var(--inkc), .014) 0 1px, transparent 1px 6px),
    linear-gradient(170deg, var(--bg1), var(--bg2) 50%, var(--bg3)); }
.app::after { opacity: .05; mix-blend-mode: multiply; }

.sheet-top, .nav, .compose, .keys { background: rgba(255, 255, 255, .96); }
.thread-wrap { background: var(--chat); }
.thread-wrap::before { background: var(--ink); opacity: .04; }
.day, .touch-mark, .pull { background: #FFFFFF; color: var(--ink2); }

.bubble { background: var(--theirs); color: var(--ink); }
.bol.me .bubble { background: var(--mine); color: var(--on-mine); }
.stamp { color: var(--ink3); }
.bol.me .stamp { color: rgba(var(--deepc), .55); }
.stamp svg.g { color: var(--a2); }

.send:disabled { background: var(--paper); color: var(--ink3); }
.send { box-shadow: 0 2px 6px rgba(var(--inkc), .18); }
.kk:active { background: var(--gold); color: var(--on-gold); }
.kk:active .tile { color: var(--on-gold); }
.chip, .chip:hover { background: var(--paper); }
.toast { background: var(--ink); color: #FFFFFF; }
.toast button { color: #5BE5AC; }
.scrim { background: rgba(var(--inkc), .35); }
.face.here::after { box-shadow: 0 0 0 2.5px #FFFFFF; }
.react { box-shadow: 0 0 0 2px var(--chat), inset 0 0 0 1px var(--line2); }
.switch::after { background: #FFFFFF; box-shadow: 0 1px 2px rgba(var(--inkc), .25); }
.switch { background: #D2C6C6; }
.text-btn.danger { color: #D0453A; }
.net-state.on::before { background: var(--a2); box-shadow: none; }
.welcome { background: radial-gradient(120% 44% at 50% 0%, rgba(var(--accc), .12), transparent 62%), #FFFFFF; }
.levelup { background: radial-gradient(70% 45% at 50% 46%, rgba(var(--accc), .16), transparent 70%), rgba(255, 255, 255, .96); }
.lv-ring { box-shadow: 0 0 60px rgba(var(--accc), .35); }
.mean { background: rgba(var(--inkc), .05); color: var(--ink2); }
.pad { stroke: var(--ink); }

html .t-item.mine .face.signs3 { background: var(--paper); color: var(--gold-text); }


/* =====================================================================
   Finish: a visible sign wallpaper, and keys, buttons and icons with depth
   ===================================================================== */

/* the conversation wallpaper: a warm paper tone with signs and faces scattered across it */
:root { --chat: #EFE8E5; }
.thread-wrap { background: var(--chat); }
.thread-wrap::before { background: #6B5B45; opacity: .17; -webkit-mask: var(--wall) 0 0 / 360px 360px; mask: var(--wall) 0 0 / 360px 360px; }
.react { box-shadow: 0 0 0 2px var(--chat), inset 0 0 0 1px var(--line2); }
.day, .touch-mark, .pull { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 1px rgba(var(--inkc), .1); }

/* signs are drawn a little heavier, so they read as made rather than sketched */
svg.g { stroke-width: 1.85; }
.kk svg.g, .p-last svg.g { stroke-width: 1.8; }
.signs svg.g, .strip svg.g { stroke-width: 1.95; }

/* Bols: soft, slightly raised paper */
.bubble { border-radius: 14px; box-shadow: 0 1px 1px rgba(var(--inkc), .1), 0 2px 6px rgba(var(--inkc), .05); }
.bol.me .bubble { background: linear-gradient(180deg, var(--t1), var(--t3)); box-shadow: 0 1px 1px rgba(var(--accc), .14), 0 2px 6px rgba(var(--accc), .06); }

/* header buttons sit in soft round wells */
.sheet-top .icon-btn { width: 38px; height: 38px; font-size: 20px; color: var(--ink2); background: var(--paper); transition: background .15s, color .15s, transform .12s var(--ease); }
.sheet-top .icon-btn:hover { background: #EBE4E2; color: var(--ink); }
.sheet-top .icon-btn:active { transform: scale(.92); }
.sheet-top .icon-btn.back { background: none; }
.sheet-top { box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(var(--inkc), .04); }

/* the keyboard: a light grey bed with white keys that sit up from it and press down */
.keys { background: #E9E2E0; box-shadow: inset 0 1px 0 rgba(var(--inkc), .06); }
.compose { background: #F8F4F2; box-shadow: 0 -1px 0 var(--line); }
.tray { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line2), 0 1px 2px rgba(var(--inkc), .04); }
.predict { border-bottom: 0; padding-top: 10px; padding-bottom: 6px; gap: 6px; }
.pk, .pk.top { height: 46px; border-radius: 12px; }
.pk { background: #FFFFFF; box-shadow: 0 1px 0 rgba(var(--inkc), .22), 0 1px 3px rgba(var(--inkc), .06); }
.pk.top { background: linear-gradient(180deg, var(--a1), var(--a3)); color: #FFFFFF; box-shadow: 0 1px 0 var(--a5), 0 4px 12px rgba(var(--accc), .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.pk:active, .pk.top:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(var(--inkc), .2); }
.grid { gap: 5px 4px; padding-top: 4px; padding-bottom: 6px; grid-auto-rows: 38px; }
.kk, .kk.c-do, .kk.c-time, .kk.c-people, .kk.c-place, .kk.c-feel { background: #FFFFFF; border-radius: 9px; box-shadow: 0 1px 0 rgba(var(--inkc), .24), 0 1px 2px rgba(var(--inkc), .05); }
.kk:active { background: linear-gradient(180deg, var(--a1), var(--a3)); transform: translateY(1px); box-shadow: 0 0 0 rgba(var(--inkc), .2); }
.kk.add { background: none; box-shadow: inset 0 0 0 1.5px var(--gold-line); }
@media (hover: hover) { .kk:hover { background: #FBF8F6; } .pk:hover { filter: brightness(1.02); } }

/* send: a green button with light on it */
.send { width: 48px; height: 48px; background: linear-gradient(180deg, var(--a1), var(--a3)); color: #FFFFFF; box-shadow: 0 1px 0 var(--a5), 0 6px 16px rgba(var(--accc), .38), inset 0 1px 0 rgba(255, 255, 255, .32); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s; }
.send svg.g { stroke-width: 2.2; }
.send:active { transform: translateY(1px) scale(.97); box-shadow: 0 0 0 var(--a5), 0 2px 6px rgba(var(--accc), .3); }
.send:disabled { background: #E7E0DE; color: #B0A3A7; box-shadow: none; }

/* buttons */
.text-btn { border-radius: 12px; transition: background .15s, transform .12s var(--ease), box-shadow .15s; }
.text-btn:hover { background: var(--paper); }
.text-btn:active { transform: scale(.97); }
.text-btn.strong, .cta { background: linear-gradient(180deg, var(--a1), var(--a3)); color: #FFFFFF; border-radius: 14px; font-weight: 650; letter-spacing: .005em; box-shadow: 0 1px 0 var(--a5), 0 6px 16px rgba(var(--accc), .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.text-btn.strong:hover, .cta:hover { background: linear-gradient(180deg, var(--a1), var(--a3)); }
.text-btn.strong:active, .cta:active { transform: translateY(1px); box-shadow: 0 0 0 var(--a5), 0 2px 6px rgba(var(--accc), .25); }
.cta:disabled { background: #E7E0DE; color: #B0A3A7; box-shadow: none; opacity: 1; }
.cta { height: 52px; border-radius: 16px; }

/* small controls */
.chip-f { height: 32px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line2); font-weight: 550; transition: background .15s, box-shadow .15s, color .15s; }
.chip-f.on { background: var(--gold-soft); color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-line); }
.aaj-streak { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--gold-line), 0 1px 2px rgba(var(--inkc), .04); }
.p-count { background: linear-gradient(180deg, var(--a1), var(--a3)); color: #fff; box-shadow: 0 1px 0 var(--a5); }
.meet-go { background: var(--gold-soft); color: var(--gold-text); box-shadow: none; padding: 8px 15px; border-radius: 18px; transition: background .15s; }
.meet-card:hover .meet-go { background: rgba(var(--accc), .2); }
.meet-go.known { background: var(--paper); color: var(--ink2); box-shadow: none; }
.trait-chip { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line2); }
.trait-chip.on { box-shadow: inset 0 0 0 1px var(--gold-line); }
.row-toggle { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(var(--inkc), .04); }
.row-toggle .pi, .privacy-list .pi { background: var(--gold-soft); color: var(--gold-text); }
.row-toggle.on .switch { background: linear-gradient(180deg, var(--a1), var(--a3)); }
.note { background: var(--paper); }
.chip, .chip:hover { background: #FFFFFF; box-shadow: 0 1px 0 rgba(var(--inkc), .2), 0 1px 3px rgba(var(--inkc), .06); }
.react-bar { background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(var(--inkc), .18); }
.react { background: #FFFFFF; }
.ask-mean { box-shadow: inset 0 0 0 1.5px var(--gold-line); color: var(--gold-text); }

/* navigation: clear icons, a soft green seat under the active one */
.nav { background: rgba(255, 255, 255, .97); box-shadow: 0 -1px 0 var(--line), 0 -4px 16px rgba(var(--inkc), .04); padding-top: 8px; }
.nav button { font-size: 22px; color: #7C8B95; }
.nav button svg.g { stroke-width: 1.9; }
.nav button.on { color: var(--ink); }
.nav button.on span { background: var(--gold-soft); color: var(--gold-text); }
.nav button.on svg.g { stroke-width: 2.1; }

/* faces: a fine light edge and a soft lift */
html .face.col { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 4px rgba(0, 0, 0, .08), 0 2px 6px rgba(var(--inkc), .14); }
.person:hover { background: #F8F4F2; }
.person.active { background: var(--gold-soft); box-shadow: none; }

/* cards rise on a soft shadow */
.card { box-shadow: 0 0 0 1px var(--line), 0 -8px 40px rgba(var(--inkc), .14); }
.aaj-slot.full { background: #FFFFFF; box-shadow: 0 1px 0 rgba(var(--inkc), .2), 0 2px 6px rgba(var(--inkc), .06), inset 0 0 0 1px var(--gold-line); }
.pz-opt { background: #FFFFFF; box-shadow: 0 1px 0 rgba(var(--inkc), .22), 0 2px 6px rgba(var(--inkc), .05); }
.pz-opt.right { background: linear-gradient(180deg, var(--a1), var(--a3)); color: #fff; box-shadow: 0 1px 0 var(--a5); }
.pz-card { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(var(--inkc), .06); }
.pz-card .strip { filter: none; }

/* a stronger wallpaper: the signs are plainly visible behind the Bols */
.thread-wrap::before { background: #5E4E38; opacity: .3; }

/* the wallpaper, lighter and closer together: many small signs, each one faint */
.thread-wrap::before { background: #7A6A54; opacity: .15; -webkit-mask-size: 250px 250px; mask-size: 250px 250px; }

/* smaller still: fine, closely packed signs */
.thread-wrap::before { -webkit-mask-size: 180px 180px; mask-size: 180px 180px; opacity: .17; }


/* =====================================================================
   Saying more with signs: the wheel behind a key, and one-tap replies
   ===================================================================== */

/* a small dot marks a key that has more signs behind it */
.kk.has-more::before { content: ""; position: absolute; right: 4px; top: 4px; width: 3.5px; height: 3.5px; border-radius: 50%; background: #BFB2B5; }
.kk.has-more:active::after { content: none; }

.wheel { position: fixed; z-index: 40; display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 14px 36px rgba(var(--inkc), .22); animation: pop .16s var(--ease) both; max-width: calc(100vw - 16px); }
.wheel.wide { flex-wrap: wrap; width: 330px; }
.wk { flex: none; min-width: 50px; padding: 7px 6px 6px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); animation: signin .22s var(--ease) both; animation-delay: calc(var(--i) * 18ms); transition: background .12s, transform .12s var(--ease); }
.wk:hover, .wk:active { background: var(--gold-soft); }
.wk:active { transform: scale(.94); }
.wk-signs { display: flex; align-items: center; gap: 3px; font-size: 23px; height: 26px; }
.wk-signs .tile + .tile { font-size: 19px; }
.wk small { font-size: 10.5px; color: var(--ink2); white-space: nowrap; }
.wk .tile.k-do { color: var(--k-do); } .wk .tile.k-place { color: var(--k-place); } .wk .tile.k-time { color: var(--k-time); }
.wk .tile.k-feel { color: var(--k-feel); } .wk .tile.k-people { color: var(--k-people); }
.wk [data-m] svg { animation: none; }

/* whole replies offered under the Bol you are answering: one tap sends */
.smart { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; max-width: 100%; }
.smart-chip { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px; border-radius: 19px; font-size: 20px; color: var(--ink);
  background: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 1px var(--gold-line), 0 1px 2px rgba(var(--inkc), .06); transition: background .15s, transform .12s var(--ease); animation: settle .3s var(--ease) both; }
.smart-chip:hover { background: #FFFFFF; }
.smart-chip:active { transform: scale(.95); background: var(--gold-soft); }
.smart-chip .tile.k-do { color: var(--k-do); } .smart-chip .tile.k-place { color: var(--k-place); } .smart-chip .tile.k-time { color: var(--k-time); }
.smart-chip .tile.k-feel { color: var(--k-feel); } .smart-chip .tile.k-people { color: var(--k-people); }
.smart-chip [data-m] svg { animation: none; }

/* a sign in a Bol can be tapped to reuse it: it gives a small nod when taken */
.signs .tile { cursor: pointer; border-radius: 8px; transition: background .15s; }
.signs .tile:hover { background: rgba(var(--inkc), .06); }
.signs .tile.took { animation: took .35s var(--ease); }
@keyframes took { 40% { transform: translateY(-5px) scale(1.15); } }

/* counting dots are solid, so a number reads at a glance */
svg.g path.f.solid { opacity: 1; }
.wheel.wide { width: min(330px, calc(100vw - 16px)); }


/* =====================================================================
   Who and when: two small marks a sign can wear
   who sits at the top left, when at the bottom right
   ===================================================================== */

.tile.marked { position: relative; padding: 0 .34em; }
.mk { position: absolute; display: grid; place-items: center; width: .5em; height: .5em; color: var(--gold-text); pointer-events: none; }
.mk svg.g { width: .5em; height: .5em; stroke-width: 2.7; animation: none !important; }
.mk.who { left: -.06em; top: -.26em; }
.mk.when { right: -.06em; bottom: -.26em; }
.bol.me .mk { color: var(--a5); }
.p-last .mk { display: none; }
.p-last .tile.marked { padding: 0; }
.tray .tile.marked { padding: 0 13px; }
.signs { row-gap: 10px; }

/* the strip that sets them: who on the left, when on the right */
.marks { display: flex; gap: 5px; padding: 8px max(6px, calc((100% - 776px) / 2)) 0; }
.mb { flex: 1 1 0; min-width: 0; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font-size: 16px; color: var(--ink2);
  background: #FFFFFF; box-shadow: 0 1px 0 rgba(var(--inkc), .2), 0 1px 2px rgba(var(--inkc), .05); transition: background .15s, color .15s, transform .1s var(--ease), opacity .15s; }
.mb small { font-size: 11.5px; font-weight: 600; }
.mb:active { transform: translateY(1px); }
.mb.on { background: var(--gold-soft); color: var(--gold-text); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.mb:disabled { opacity: .5; cursor: default; }
.mb-gap { width: 6px; flex: none; }
.nolabels .mb small { display: none; }
.predict { padding-top: 8px; }

.mk, .mk svg.g { width: .56em; height: .56em; }


/* =====================================================================
   People and places as signs
   a person is a coloured disc, a place a teal tile; each shows the first
   sign of its name large and the second as a small tag
   ===================================================================== */

.tile.ref { position: relative; width: 1.3em; height: 1.3em; min-width: 0; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; color: #FFFFFF;
  background: linear-gradient(145deg, var(--a, #6AA8FF), var(--b, #3B6FE0)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 3px rgba(var(--inkc), .18); }
.tile.ref.is-place { border-radius: .36em; background: linear-gradient(145deg, #2BB7C4, #0E7C8C); }
.tile.ref > svg.g { width: .7em; height: .7em; stroke-width: 2.4; animation: none !important; }
.ref-2 { position: absolute; right: -.24em; bottom: -.2em; width: .56em; height: .56em; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px var(--line2); }
.ref-2 svg.g { width: .38em; height: .38em; stroke-width: 3.2; animation: none !important; }
.tray .tile.ref { width: 34px; height: 34px; min-width: 34px; font-size: 26px; margin: 0 4px; background: linear-gradient(145deg, var(--a, #6AA8FF), var(--b, #3B6FE0)); }
.tray .tile.ref.is-place { border-radius: 10px; background: linear-gradient(145deg, #2BB7C4, #0E7C8C); }
.p-last .tile.ref { width: 19px; height: 19px; font-size: 15px; }
.p-last .ref-2 { display: none; }
.signs .tile.ref { margin-right: .16em; }
.wk-signs .tile.ref { font-size: 21px; }
.tile.add-place { width: 1.3em; height: 1.3em; border-radius: .36em; display: inline-grid; place-items: center; color: var(--gold-text); box-shadow: inset 0 0 0 1.5px var(--gold-line); font-size: 21px; }
.tile.add-place svg.g { width: .62em; height: .62em; }
#aajQ { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }


/* =====================================================================
   Decoding a Bol: tap it and each sign shows its meaning underneath
   ===================================================================== */

.sg { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.lab { display: block; max-height: 0; opacity: 0; overflow: hidden; max-width: 76px; font-size: 10.5px; font-weight: 550; line-height: 1.2; text-align: center; color: var(--ink2); white-space: normal; transition: max-height .25s var(--ease), opacity .2s, margin .25s var(--ease); }
.bol.me .lab { color: rgba(var(--deepc), .7); }
.bol.open .lab { max-height: 30px; opacity: 1; margin-top: 7px; }
.bol.open .signs { gap: 4px 14px; align-items: flex-start; }
.bol.open .stamp { align-self: flex-end; }
.bubble { cursor: pointer; }


/* =====================================================================
   A shorter keyboard that scrolls
   three rows and a peek of the fourth; slide up and down for the rest
   ===================================================================== */

.grid { height: 150px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; align-content: start; padding-bottom: 16px; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); }
.grid::-webkit-scrollbar { display: none; }
.grid .kk { touch-action: pan-y; }


/* =====================================================================
   Filled signs in a Bol
   every sign in a message is a coloured chip with a white glyph, tinted by
   its kind; people stay round. Suggested replies stay as outlines.
   ===================================================================== */

.bubble { padding: 9px 10px 7px; border-radius: 6px 18px 18px 18px; }
.bol.me .bubble { border-radius: 18px 6px 18px 18px; }
.bubble .signs { gap: 8px 7px; align-items: flex-start; }
.bubble .signs .tile { width: 36px; height: 36px; min-width: 36px; padding: 0; margin: 0; font-size: 21px; border-radius: 11px; color: #FFFFFF; position: relative;
  background: linear-gradient(145deg, var(--c1, #5E4A58), var(--c2, var(--ink)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(0, 0, 0, .1), 0 1px 2px rgba(var(--inkc), .2); transition: transform .12s var(--ease), filter .15s; }
.bubble .signs .tile:hover { background: linear-gradient(145deg, var(--c1, #5E4A58), var(--c2, var(--ink))); filter: brightness(1.06); }
.bubble .signs .tile:active { transform: scale(.94); }
.bubble .signs .tile svg.g { stroke-width: 2.15; }
.bubble .signs .tile.k-do { --c1: #F5AE45; --c2: #C87400; }
.bubble .signs .tile.k-place { --c1: #2BB7C4; --c2: #0E7C8C; }
.bubble .signs .tile.k-time { --c1: #8E7DF2; --c2: #5646C0; }
.bubble .signs .tile.k-feel { --c1: #F26D9E; --c2: #C2356B; }
.bubble .signs .tile.k-people { --c1: #58C267; --c2: #2A8537; }
.bubble .signs .tile.k-ours { --c1: var(--a1); --c2: var(--a4); }
.bubble .signs .tile.ref { border-radius: 50%; font-size: 27px; background: linear-gradient(145deg, var(--a, #6AA8FF), var(--b, #3B6FE0)); }
.bubble .signs .tile.ref.is-place { border-radius: 11px; background: linear-gradient(145deg, #2BB7C4, #0E7C8C); }

/* who and when ride on the chip as small white badges */
.bubble .signs .mk { width: 15px; height: 15px; border-radius: 50%; background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px rgba(var(--inkc), .1), 0 1px 2px rgba(var(--inkc), .16); }
.bubble .signs .mk svg.g { width: 10px; height: 10px; stroke-width: 2.8; }
.bubble .signs .mk.who { left: -5px; top: -5px; }
.bubble .signs .mk.when { right: -5px; bottom: -5px; }
.bubble .signs .stamp { align-self: flex-end; margin-left: auto; padding-left: 4px; }
.bol.open .lab { margin-top: 6px; }
.lab { max-width: 64px; }

/* suggested replies: clearly not messages yet. Outlined, dashed, on your side, with a send arrow */
.smart { align-self: flex-end; justify-content: flex-end; gap: 7px; margin: 10px 0 2px; }
.smart-chip { height: 34px; padding: 0 9px 0 12px; gap: 8px; font-size: 18px; border-radius: 17px; background: rgba(255, 255, 255, .55);
  box-shadow: none; border: 1.5px dashed rgba(var(--accc), .65); }
.smart-chip::after { content: ''; width: 18px; height: 18px; margin-left: 2px; border-radius: 50%; background: var(--a2) center / 11px 11px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }
.smart-chip:hover { background: #FFFFFF; border-style: solid; }


/* =====================================================================
   Reply suggestions: one strip above the box you write in
   slides sideways; fades at the right edge to show there is more
   ===================================================================== */

.smart { align-self: auto; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 7px; margin: 0; max-width: none; padding: 8px 12px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-x; scroll-snap-type: x proximity; scroll-padding-left: 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.smart::-webkit-scrollbar { display: none; }
.smart[hidden] { display: none; }
.smart::after { content: ''; flex: none; width: 20px; }
.smart-chip { flex: none; scroll-snap-align: start; background: #FFFFFF; }


/* =====================================================================
   Smaller Bols
   ===================================================================== */

.bubble { padding: 6px 8px 5px 7px; border-radius: 5px 15px 15px 15px; }
.bol.me .bubble { border-radius: 15px 5px 15px 15px; }
.bubble .signs { gap: 6px 5px; }
.bubble .signs .tile { width: 28px; height: 28px; min-width: 28px; font-size: 16.5px; border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 1.5px rgba(var(--inkc), .16); }
.bubble .signs .tile svg.g { stroke-width: 2.2; }
.bubble .signs .tile.ref { font-size: 21.5px; }
.bubble .signs .tile.ref.is-place { border-radius: 9px; }
.bubble .signs .mk { width: 12px; height: 12px; }
.bubble .signs .mk svg.g { width: 8px; height: 8px; stroke-width: 3; }
.bubble .signs .mk.who { left: -4px; top: -4px; }
.bubble .signs .mk.when { right: -4px; bottom: -4px; }
.bubble .signs .stamp { font-size: 10.5px; padding-left: 5px; }
.lab { font-size: 10px; max-width: 58px; }
.bol.open .lab { margin-top: 5px; }


/* =====================================================================
   The box you write in: draw your own sign on the left, attach inside
   ===================================================================== */

.compose { gap: 8px; padding: 8px 10px 10px; }
.make { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; color: var(--a4); background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .5), 0 1px 2px rgba(var(--inkc), .06); transition: transform .12s var(--ease), background .15s; }
.make svg.g { stroke-width: 2.3; }
.make:hover { background: var(--t1); }
.make:active { transform: scale(.93); }
.traywrap { position: relative; flex: 1; min-width: 0; display: flex; }
.traywrap .tray { flex: 1; min-width: 0; padding-right: 42px; }
.attach { position: absolute; right: 5px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--ink3); transition: color .15s, background .15s; }
.attach:hover { color: var(--ink); background: rgba(var(--inkc), .05); }

/* who and when: six even buttons, icon and word centred on one line */
.marks { gap: 6px; padding: 8px 6px 0; align-items: stretch; }
.mb { height: 34px; padding: 0 4px; gap: 5px; border-radius: 10px; font-size: 15px; line-height: 1; color: var(--ink2); background: #FFFFFF; border: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--inkc), .09), 0 1px 0 rgba(var(--inkc), .12); }
.mb svg.g { flex: none; width: 15px; height: 15px; display: block; }
.mb small { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .005em; }
.mb.on { background: var(--t1); color: var(--a5); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .7); }
.mb:disabled { opacity: 1; color: #B5A8AC; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .06); }
.mb-gap { width: 4px; }

/* =====================================================================
   Reply, forward, links and files
   ===================================================================== */

.react-bar { flex-wrap: wrap; width: 264px; border-radius: 20px; }
.acts { flex: 0 0 100%; display: flex; gap: 4px; margin-top: 4px; padding-top: 6px; box-shadow: 0 -1px 0 var(--line); }
.react-bar .act { flex: 1; width: auto; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink2); background: rgba(var(--inkc), .04); animation: none; }
.react-bar .act svg.g { width: 15px; height: 15px; }
.react-bar .act:hover { transform: none; color: var(--a5); background: var(--t1); }

.mini { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 15px; color: var(--ink2); }
.mini .tile { width: auto; height: auto; min-width: 0; padding: 0; background: none; box-shadow: none; font-size: 15px; }
.mini .tile.ref { width: 1.3em; height: 1.3em; }
.mini .ref-2, .mini .mk { display: none; }
.mini [data-m] svg { animation: none; }
.mini small { font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.mini.gone { font-size: 12px; color: var(--ink3); }

.quote { display: flex; width: 100%; margin: 0 0 6px; padding: 5px 9px; border-radius: 8px; text-align: left; background: rgba(var(--inkc), .055); box-shadow: inset 3px 0 0 #8E7DF2; }
.quote.mine { box-shadow: inset 3px 0 0 var(--a2); }
.bol.me .quote { background: rgba(var(--deepc), .08); }
.bol.flash .bubble { animation: flash 1.1s var(--ease); }
@keyframes flash { 0%, 55% { box-shadow: 0 0 0 3px rgba(var(--accc), .55); } 100% { box-shadow: 0 0 0 3px rgba(var(--accc), 0); } }
.fwd-tag { display: flex; align-items: center; gap: 4px; margin: 0 0 5px 1px; font-size: 11px; font-style: italic; color: var(--ink3); }
.fwd-tag svg.g { width: 12px; height: 12px; }

.linkbox { display: flex; align-items: center; gap: 9px; max-width: 240px; margin: 1px 0 5px; padding: 7px 10px 7px 7px; border-radius: 10px; background: rgba(var(--inkc), .05); color: var(--ink); text-decoration: none; }
.bol.me .linkbox { background: rgba(var(--deepc), .08); }
.linkbox i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; color: #FFFFFF; background: linear-gradient(145deg, #5AA2F5, #2F6FDB); }
.linkbox span { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.linkbox b { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox small { font-size: 11px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic { display: block; max-width: 220px; max-height: 240px; margin: 0 0 5px; border-radius: 10px; cursor: zoom-in; }
.bubble .signs:first-child:last-child .stamp:only-child { margin-left: 0; }
.pic-view { padding: 10px; }
.pic-view img { display: block; width: 100%; max-height: 76vh; object-fit: contain; border-radius: 12px; }

.replybar { display: flex; align-items: center; gap: 9px; margin: 8px 10px 0; padding: 6px 6px 6px 10px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 3px 0 0 var(--a2), 0 0 0 1px var(--line); }
.replybar[hidden] { display: none; }
.rb-ic { flex: none; display: grid; font-size: 16px; color: var(--a4); }
.replybar .mini { flex: 1; overflow: hidden; }
.rb-x { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--ink3); }
.rb-x:hover { background: var(--paper); color: var(--ink); }

.fwd-bol { margin: -6px 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.fwd-list { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; margin: 0 -8px; }
.fwd-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-align: left; font-size: 15px; }
.fwd-row:hover { background: var(--paper); }
.fwd-row .face { width: 38px; height: 38px; flex: none; }
.fwd-row b { flex: 1; font-weight: 600; }
.fwd-go { display: grid; font-size: 18px; color: var(--a4); }
#linkText { height: 46px; }


/* =====================================================================
   Reading a Bol: tap it and one tidy line of meaning opens under the signs
   ===================================================================== */

.read { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .26s var(--ease), opacity .2s, margin .26s var(--ease); }
.read > div { overflow: hidden; min-height: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; max-width: 250px; font-size: 12.5px; font-weight: 550; line-height: 1.35; letter-spacing: .003em; color: var(--ink2); }
.read i { font-style: normal; color: var(--ink3); }
.bol.open .read { grid-template-rows: 1fr; opacity: 1; margin-top: 6px; padding-top: 6px; box-shadow: 0 -1px 0 rgba(var(--inkc), .08); }
.bol.me .read > div { color: rgba(var(--deepc), .78); }
.bol.me.open .read { box-shadow: 0 -1px 0 rgba(var(--deepc), .12); }


/* =====================================================================
   A wider vocabulary: describing, things, work, money, public life,
   then digits, arithmetic and letters. One board, with chips to jump.
   ===================================================================== */

:root { --k-adj: #9A45CC; --k-obj: #8A5A2B; --k-work: #2F6FDB; --k-money: #A87400; --k-civic: #C0453A; }
.tile.k-adj { color: var(--k-adj); } .tile.k-obj { color: var(--k-obj); } .tile.k-work { color: var(--k-work); } .tile.k-money { color: var(--k-money); } .tile.k-civic { color: var(--k-civic); }
.tile.k-char { color: var(--ink); }
.kk.c-adj, .kk.c-obj, .kk.c-work, .kk.c-money, .kk.c-civic, .kk.c-char { background: #FFFFFF; }
.bubble .signs .tile.k-adj { --c1: #C583F2; --c2: #8E3FC4; }
.bubble .signs .tile.k-obj { --c1: #B8926C; --c2: #7A5230; }
.bubble .signs .tile.k-work { --c1: #5AA2F5; --c2: #2F6FDB; }
.bubble .signs .tile.k-money { --c1: #EDC04A; --c2: #B88A0B; }
.bubble .signs .tile.k-civic { --c1: #EE7B6C; --c2: #BC4033; }
.pk.top .tile { color: #FFFFFF; }

svg.g.ch { overflow: visible; }
svg.g.ch text { fill: currentColor; stroke: none; font: 650 17px var(--font); letter-spacing: 0; }
.bubble .signs .tile.k-char { margin-right: -2px; }

/* jump chips */
.jump { display: flex; gap: 5px; padding: 0 6px 6px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.jump::-webkit-scrollbar { display: none; }
.jp { flex: none; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em; color: var(--ink2); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .07); transition: background .15s, color .15s; }
.jp.on { background: var(--a2); color: #FFFFFF; box-shadow: none; }

/* a thin heading before each family */
.grid { grid-auto-rows: auto; }
.grid .kk { height: 38px; }
.sec { grid-column: 1 / -1; height: 18px; display: flex; align-items: flex-end; padding: 0 2px 1px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.sec.first { height: 0; padding: 0; margin-bottom: -5px; }

/* the top row slides sideways: likely signs first, then signs already used in this chat */
.predict { overflow-x: auto; scrollbar-width: none; touch-action: pan-x; scroll-snap-type: x proximity; }
.predict::-webkit-scrollbar { display: none; }
.predict .pk { flex: 0 0 calc((100% - 36px) / 7); scroll-snap-align: start; }
.pk.re { background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .08); }
.pk.re .tile.ref { font-size: 22px; }
.pk.re .mk { color: var(--a5); }
#doodleName { height: 46px; margin-top: 2px; }


/* =====================================================================
   Keyboard finish
   a soft graded bed, keys with a lit top edge and a real press,
   heavier and slightly larger line icons, calmer chips and headings
   ===================================================================== */

.keys { background: linear-gradient(180deg, #F0EAE8, #E6DEDC 60%, #DFD6D4); box-shadow: inset 0 1px 0 #FFFFFF, inset 0 2px 0 rgba(var(--inkc), .04); padding-bottom: 6px; }

/* keys */
.grid { gap: 6px 5px; padding-left: 7px; padding-right: 7px; }
.kk, .kk.c-do, .kk.c-time, .kk.c-people, .kk.c-place, .kk.c-feel, .kk.c-adj, .kk.c-obj, .kk.c-work, .kk.c-money, .kk.c-civic, .kk.c-char, .kk.c-ours {
  border-radius: 10px; font-size: 20px; background: linear-gradient(180deg, #FFFFFF, #FBF8F6);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 .5px rgba(var(--inkc), .1), 0 1.5px 0 rgba(var(--inkc), .2), 0 3px 5px -2px rgba(var(--inkc), .14);
  transition: transform .07s var(--ease), box-shadow .07s var(--ease), background .12s; }
.grid .kk { height: 40px; }
.kk:hover { background: #FFFFFF; }
.kk:active { transform: translateY(1.5px) scale(.97); background: #F1EAE8; box-shadow: inset 0 1px 2px rgba(var(--inkc), .16), 0 0 0 .5px rgba(var(--inkc), .12); }
.kk svg.g { stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.kk.c-char { font-size: 21px; }
.kk.has-more::after { width: 4px; height: 4px; top: 4px; right: 4px; opacity: .55; }
.kk.add { background: var(--t1); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .45); }

/* deeper, more even sign colours on white */
:root { --k-do: #B8690A; --k-place: #0B7F8F; --k-time: #5846C8; --k-feel: #C42D69; --k-people: #24803A; --k-adj: #8E3CC2; --k-obj: #8A5526; --k-work: #2563D4; --k-money: #9A6A00; --k-civic: #BB3B30; }

/* the top row */
.predict { gap: 6px; padding: 8px 7px 7px; }
.pk, .pk.top { height: 48px; border-radius: 13px; font-size: 23px; }
.pk { background: linear-gradient(180deg, #FFFFFF, #FAF6F4); box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 .5px rgba(var(--inkc), .1), 0 1.5px 0 rgba(var(--inkc), .2), 0 4px 8px -3px rgba(var(--inkc), .18); transition: transform .08s var(--ease), box-shadow .08s var(--ease); }
.pk svg.g { stroke-width: 1.9; }
.pk.top { background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 1.5px 0 var(--a6), 0 6px 14px -3px rgba(var(--accc), .5); }
.pk:active, .pk.top:active { transform: translateY(1.5px) scale(.97); box-shadow: inset 0 1px 3px rgba(var(--inkc), .2); }
.pk.re { background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .09); }
.pk.re:first-of-type, .pk:not(.re) + .pk.re { margin-left: 6px; position: relative; }
.pk:not(.re) + .pk.re::before { content: ''; position: absolute; left: -7px; top: 10px; bottom: 10px; width: 1px; background: rgba(var(--inkc), .14); }

/* jump chips as one quiet control */
.jump { gap: 2px; margin: 0 7px 7px; padding: 3px; border-radius: 12px; background: rgba(var(--inkc), .055); }
.jp { flex: 1 0 auto; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 11.5px; font-weight: 650; color: var(--ink2); background: none; box-shadow: none; }
.jp.on { background: #FFFFFF; color: var(--a5); box-shadow: 0 1px 2px rgba(var(--inkc), .16), 0 0 0 .5px rgba(var(--inkc), .06); }

/* family headings with a hairline */
.sec { height: 20px; gap: 8px; align-items: center; padding: 4px 2px 0; font-size: 10px; letter-spacing: .1em; color: #8A959D; }
.sec::after { content: ''; flex: 1; height: 1px; background: rgba(var(--inkc), .08); }
.sec.first { height: 0; padding: 0; margin-bottom: -6px; }
.sec.first::after { display: none; }

/* who and when */
.marks { padding: 8px 7px 0; }
.mb { height: 34px; border-radius: 10px; background: linear-gradient(180deg, #FFFFFF, #FBF8F6); box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 .5px rgba(var(--inkc), .1), 0 1px 0 rgba(var(--inkc), .16); }
.mb svg.g { stroke-width: 1.9; }
.mb.on { background: linear-gradient(180deg, var(--t1), var(--t3)); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .75); }
.mb:disabled { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .06); }

/* the box you write in */
.compose { background: #F8F4F2; }
.traywrap .tray { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(var(--inkc), .1), inset 0 1px 2px rgba(var(--inkc), .05); }
.make { background: linear-gradient(180deg, #FFFFFF, var(--t1)); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .55), 0 2px 5px -1px rgba(var(--accc), .25); }

/* icons everywhere share one pen */
svg.g { stroke-linecap: round; stroke-linejoin: round; }
.bubble .signs .tile svg.g { stroke-width: 2.1; }
.smart-chip svg.g, .wk svg.g { stroke-width: 1.9; }
.wheel { border-radius: 16px; box-shadow: 0 0 0 .5px rgba(var(--inkc), .12), 0 18px 40px -8px rgba(var(--inkc), .3); }


/* backspace, inside the box beside the paperclip */
.attach.erase { right: 41px; color: var(--ink2); }
.attach.erase[hidden] { display: none; }
.attach.erase:active { transform: scale(.9); color: #D0453A; }
.traywrap .tray.has { padding-right: 80px; }


/* =====================================================================
   Themes
   one layout, four palettes. Each theme names its accent (a1 light to a6 deep),
   three tints of it, its ink, and its surfaces. Pearl and rose gold is the default.
   ===================================================================== */

:root {
  --a1: #D79AA2; --a2: #B76E79; --a3: #A9606B; --a4: #9C5560; --a5: #8A4553; --a6: #7E3F4A;
  --t1: #FBEFEE; --t2: #F7E1E2; --t3: #F2D6D9;
  --accc: 183, 110, 121; --inkc: 46, 31, 43; --deepc: 74, 34, 44;
  --ink: #2E1F2B; --ink2: #63505D; --ink3: #9C8B95; --on-mine: #4A222C;
  --line: rgba(var(--inkc), .09); --line2: rgba(var(--inkc), .16);
  --gold: var(--a2); --gold-text: var(--a4); --gold-soft: rgba(var(--accc), .13); --gold-line: rgba(var(--accc), .42); --on-gold: #FFFFFF;
  --brand: linear-gradient(160deg, var(--a1), var(--a3));
  --desk: #E9E1DF; --surface: #FBF8F6; --paper: #F1EBE8; --chat: #EEE6E3; --deep: #FBF8F6;
  --bg1: #FBF8F6; --bg2: #F7F2F0; --bg3: #F1EAE7; --glowa: 183, 110, 121; --glowb: 212, 175, 140;
  --aur1: var(--glowa); --aur2: var(--glowb); --aur3: var(--glowa); --glow: var(--accc);
  --chat1: #F1EAE7; --chat2: #EBE2DF; --wall: unset; --wallc: #B07A6E; --wallo: .17;
  --bar: #F7F2F0; --bed1: #F0E9E6; --bed2: #E5DCD9; --bed3: #DED4D1; --bedline: #FFFDFC;
  --card: #FFFDFC; --key1c: #FFFEFD; --key2c: #FAF5F3; --keydown: #F1E9E6;
  --theirs: #FFFDFC; --mine: var(--t2); --mine1: #F8E5E6; --mine2: #F2D6D9;
  --up1: #FFFDFC; --up2: #F3EDEA; --card1: #FFFDFC; --card2: #F8F3F1; --key1: #F3EDEA; --key2: #ECE4E1;
  --neutral1: #6A5564; --neutral2: #2E1F2B; --off: #E7DEDB; --offink: #B5A8AC;
}
:root[data-theme="ivory"] {
  --a1: #3FA57B; --a2: #0F7B55; --a3: #0C6B4A; --a4: #0A5C40; --a5: #084D36; --a6: #063B29;
  --t1: #EEF7F1; --t2: #DFF0E5; --t3: #CDE7D7;
  --accc: 15, 123, 85; --inkc: 31, 42, 36; --deepc: 8, 60, 42;
  --ink: #1F2A24; --ink2: #4F5D55; --ink3: #8B978F; --on-mine: #0B3A29;
  --gold-line: rgba(185, 151, 91, .55);
  --desk: #EDE5D3; --surface: #FFFCF5; --paper: #F5EEDF; --chat: #F1E9D9; --deep: #FFFCF5;
  --bg1: #FFFCF5; --bg2: #FAF5E9; --bg3: #F3EBDA; --glowa: 15, 123, 85; --glowb: 201, 165, 97;
  --chat1: #F4ECDC; --chat2: #EDE3CF; --wallc: #B08A45; --wallo: .2;
  --bar: #FAF5EA; --bed1: #F2EBDC; --bed2: #E8DFCB; --bed3: #E0D5BE; --bedline: #FFFCF5;
  --card: #FFFDF8; --key1c: #FFFEFA; --key2c: #FBF6EA; --keydown: #F0E8D6;
  --theirs: #FFFDF8; --mine1: #E3F2E8; --mine2: #D2E9DB;
  --up1: #FFFDF8; --up2: #F5EEDF; --card1: #FFFDF8; --card2: #FAF5EA; --key1: #F5EEDF; --key2: #EDE4D0;
  --neutral1: #4F5D55; --neutral2: #1F2A24; --off: #E9E1CF; --offink: #B3AC9A;
}
/* the two dark themes: deep backgrounds, champagne gold, and cream for everything you read or press */
:root[data-theme="navy"], :root[data-theme="emerald"] {
  color-scheme: dark;
  --a1: #EBD7A6; --a2: #CDAE66; --a3: #BC9A4E; --a4: #A5843A; --a5: #8C6E2C; --a6: #6F5621;
  --t1: #FBF5E4; --t2: #F5E8C8; --t3: #EEDCB0;
  --accc: 205, 174, 102; --deepc: 60, 44, 10;
  --on-gold: #1B1608; --gold-text: var(--a1); --on-mine: #3C2C0A;
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .17);
  --glowa: 205, 174, 102; --wallc: #CDAE66; --wallo: .13;
  --card: #FBF7EC; --key1c: #FDFAF1; --key2c: #F3ECDB; --keydown: #E9E0CA; --bedline: rgba(255, 255, 255, .07);
  --theirs: #FBF7EC; --mine1: #F8EDCF; --mine2: #EFDDB0;
  --up1: #FBF7EC; --up2: #F1EADA; --card1: #FBF7EC; --card2: #F3ECDB; --key1: #F3ECDB; --key2: #E9E0CA;
  --off: rgba(255, 255, 255, .1); --offink: rgba(255, 255, 255, .38);
}
:root[data-theme="navy"] {
  --inkc: 10, 15, 30; --ink: #F3ECDD; --ink2: #B8B6C2; --ink3: #8088A0;
  --desk: #080D1A; --surface: #151E36; --paper: #1D2845; --chat: #0F1729; --deep: #151E36;
  --bg1: #141D34; --bg2: #101829; --bg3: #0B1120; --glowb: 70, 100, 190;
  --chat1: #111A30; --chat2: #0C1324; --bar: #151E36; --bed1: #1B2542; --bed2: #151D36; --bed3: #10172B;
  --neutral1: #3A4666; --neutral2: #141C33; --cream-ink: #1A2238; --cream-ink2: #566080; --cream-ink3: #8E96AC;
}
:root[data-theme="emerald"] {
  --inkc: 3, 20, 14; --ink: #F3EEDD; --ink2: #B5C4B8; --ink3: #7E9A8A;
  --desk: #06221A; --surface: #0F4132; --paper: #15503E; --chat: #0B3327; --deep: #0F4132;
  --bg1: #0F3F31; --bg2: #0B3327; --bg3: #08271E; --glowb: 40, 150, 110;
  --chat1: #0D382B; --chat2: #092B21; --bar: #0F4132; --bed1: #134A39; --bed2: #0E3B2D; --bed3: #0A2E23;
  --neutral1: #2F5A49; --neutral2: #0E2F24; --cream-ink: #12281F; --cream-ink2: #4D6358; --cream-ink3: #8A9A90;
}

/* shared surfaces, drawn from the theme */
.app { background:
    radial-gradient(80% 40% at 10% -10%, rgba(var(--glowa), .10), transparent 70%),
    radial-gradient(70% 36% at 100% 0%, rgba(var(--glowb), .10), transparent 70%),
    linear-gradient(170deg, var(--bg1), var(--bg2) 50%, var(--bg3)); }
.thread-wrap { background: linear-gradient(180deg, var(--chat1), var(--chat2)); }
.thread-wrap::before { background: var(--wallc); opacity: var(--wallo); }
.bol.them .bubble { background: var(--theirs); }
.bol.me .bubble { background: linear-gradient(170deg, var(--mine1), var(--mine2)); }
.stamp svg.g { color: var(--a2); }
.day { background: var(--card); color: var(--ink2); }
.card, .wheel, .react-bar { background: var(--card); }
.compose { background: var(--bar); }
.traywrap .tray { background: var(--card); }
.keys { background: linear-gradient(180deg, var(--bed1), var(--bed2) 60%, var(--bed3)); box-shadow: inset 0 1px 0 var(--bedline), inset 0 2px 0 rgba(var(--inkc), .04); }
.kk, .kk.c-do, .kk.c-time, .kk.c-people, .kk.c-place, .kk.c-feel, .kk.c-adj, .kk.c-obj, .kk.c-work, .kk.c-money, .kk.c-civic, .kk.c-char, .kk.c-ours, .pk, .mb { background: linear-gradient(180deg, var(--key1c), var(--key2c)); }
.kk:active { background: var(--keydown); }
.pk.top { background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1.5px 0 var(--a6), 0 6px 14px -3px rgba(var(--accc), .55); }
.pk.top .tile { color: var(--on-gold); }
.pk.re { background: color-mix(in srgb, var(--card) 55%, transparent); }
.mb.on { background: linear-gradient(180deg, var(--t1), var(--t3)); }
.mb:disabled { background: color-mix(in srgb, var(--card) 55%, transparent); }
.jp.on { color: var(--a5); background: var(--card); }
.send { background: linear-gradient(180deg, var(--a1), var(--a3)); color: var(--on-gold); box-shadow: 0 1px 0 var(--a6), 0 6px 16px rgba(var(--accc), .42), inset 0 1px 0 rgba(255, 255, 255, .36); }
.send:disabled { background: var(--off); color: var(--offink); box-shadow: none; }
.text-btn.strong, .cta { color: var(--on-gold); }
.make { color: var(--a4); background: linear-gradient(180deg, var(--card), var(--t1)); }
.bubble .signs .tile { --c1: var(--neutral1); --c2: var(--neutral2); }
.bubble .signs .tile.k-ours { --c1: var(--a1); --c2: var(--a3); }
.kk.add { background: var(--t1); }
.smart-chip { background: var(--card); }
.smart-chip::after { background-color: var(--a2); }
.replybar { background: var(--card); }
.jump { background: rgba(var(--inkc), .06); }

/* in the dark themes, everything cream keeps dark ink of its own */
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.bubble, .kk, .pk, .mb, .card, .wheel, .react-bar, .tray, .smart-chip, .replybar, .day, .ping, .toast, .mean, .jp.on, .request, .make, .quick-last) {
  --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); --line: rgba(var(--inkc), .1); --line2: rgba(var(--inkc), .18); --gold-text: var(--a5); }
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.bubble, .card, .wheel, .react-bar, .tray, .replybar, .day, .ping, .toast, .kk, .pk, .mb, .smart-chip) { color: var(--ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .pk.top { color: var(--on-gold); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .mb:disabled { color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .jump { background: rgba(255, 255, 255, .07); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .jp { color: var(--ink2); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .jp.on { color: var(--a6); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .sec { color: var(--ink3); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .sec::after { background: rgba(255, 255, 255, .1); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .smart-chip { border-color: rgba(var(--accc), .8); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .smart-chip::after { filter: none; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .attach { color: var(--cream-ink3); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .kk, :root:is([data-theme="navy"], [data-theme="emerald"]) .pk { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1.5px 0 rgba(0, 0, 0, .45), 0 4px 8px -3px rgba(0, 0, 0, .4); }

/* the theme picker */
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 18px; }
.th { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px 9px; border-radius: 14px; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .15s, transform .12s var(--ease); }
.th:active { transform: scale(.97); }
.th i { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--sw1) 0 50%, var(--sw2) 50% 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 3px 8px -2px rgba(0, 0, 0, .25); }
.th.on { color: var(--ink); box-shadow: inset 0 0 0 2px var(--a2); }


/* each chat sits on the faintest wash of that person's own colour */
.person { background: color-mix(in srgb, var(--row, transparent) 7%, transparent); border-radius: 16px; margin: 4px 8px; }
.person + .person::before { display: none; }
.person:hover { background: color-mix(in srgb, var(--row, transparent) 12%, transparent); }
.person.active { background: color-mix(in srgb, var(--row, transparent) 16%, transparent); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person { background: color-mix(in srgb, var(--row, transparent) 11%, transparent); }

/* bars follow the theme; small white controls become cream with their own dark ink in the dark themes */
.nav, .sheet-top { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.chip-f, .aaj-streak, .row-toggle, .react { background: var(--card); }
.tray .tile { background: var(--key2c); }
.person { background: color-mix(in srgb, var(--row, transparent) 7%, transparent); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person { background: color-mix(in srgb, var(--row, transparent) 14%, transparent); }
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.chip-f, .aaj-streak, .row-toggle, .react, .th) {
  --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); --line: rgba(var(--inkc), .1); --line2: rgba(var(--inkc), .18); --gold-text: var(--a5); color: var(--ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .th { background: var(--card); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .aaj-streak { color: var(--a5); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .chip-f.on { background: var(--a2); color: var(--on-gold); }

/* the row of faces sits in a tray: rounded on the left, open on the right where it keeps scrolling */
:root { --rail1: #FFFDFC; --rail2: rgba(255, 253, 252, .35); --railline: rgba(var(--accc), .28); }
:root[data-theme="ivory"] { --rail1: #FFFEFA; --rail2: rgba(255, 254, 250, .3); --railline: rgba(185, 151, 91, .42); }
:root[data-theme="navy"] { --rail1: rgba(255, 255, 255, .075); --rail2: rgba(255, 255, 255, .02); --railline: rgba(var(--accc), .38); }
:root[data-theme="emerald"] { --rail1: rgba(255, 255, 255, .085); --rail2: rgba(255, 255, 255, .02); --railline: rgba(var(--accc), .4); }
.today-rail { margin: 12px 0 0 12px; padding: 12px 22px 9px 8px; border-radius: 30px 0 0 30px; border: 1px solid var(--railline); border-right: 0;
  background: linear-gradient(90deg, var(--rail1) 30%, var(--rail2)); box-shadow: 0 6px 18px -12px rgba(var(--inkc), .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
.today-rail::-webkit-scrollbar { display: none; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .today-rail { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }


/* =====================================================================
   Chat rows, finished
   each row a soft card washed in that person's colour: a ringed face,
   a firmer name, calmer preview signs, the time above a small count
   ===================================================================== */

.people-list { padding: 10px 12px 16px; }
.person { margin: 0 0 8px; padding: 12px 14px 12px 12px; gap: 13px; align-items: center; border-radius: 22px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--row, transparent) 12%, var(--card)) 0%, color-mix(in srgb, var(--row, transparent) 4%, var(--card)) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--row, transparent) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 14px -12px rgba(var(--inkc), .5);
  transition: transform .14s var(--ease), box-shadow .2s, background .2s; }
.person:hover { background: linear-gradient(100deg, color-mix(in srgb, var(--row, transparent) 17%, var(--card)) 0%, color-mix(in srgb, var(--row, transparent) 7%, var(--card)) 70%); }
.person:active { transform: scale(.985); }
.person.active { background: linear-gradient(100deg, color-mix(in srgb, var(--row, transparent) 22%, var(--card)), color-mix(in srgb, var(--row, transparent) 10%, var(--card))); }
.person .face { width: 48px; height: 48px; font-size: 17px; box-shadow: 0 0 0 2.5px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--row, transparent) 38%, transparent), 0 6px 12px -6px color-mix(in srgb, var(--row, #000) 70%, transparent); }
.person .face.here::after { right: 0; bottom: 0; width: 10px; height: 10px; background: #35C27A; box-shadow: 0 0 0 2.5px var(--card); }
.person .p-name { font-size: 15.5px; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; color: var(--ink); }
.person .p-last { margin-top: 5px; gap: 8px; align-items: center; min-height: 18px; font-size: 12.5px; color: var(--ink2); opacity: .92; }
.person .p-last .tile { font-size: 16px; }
.person .p-last svg.g { stroke-width: 1.9; }
.person .p-last .mine { color: var(--a2); font-size: 15px; display: grid; }
.person .p-side { align-self: stretch; justify-content: space-between; align-items: flex-end; gap: 6px; padding: 2px 0 1px; min-width: 44px; }
.person .p-time { font-size: 11px; font-weight: 500; letter-spacing: .01em; color: var(--ink3); }
.person.unread .p-name { font-weight: 720; }
.person.unread .p-time { color: var(--a4); font-weight: 650; }
.p-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--on-gold); background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: 0 2px 6px -1px rgba(var(--accc), .55), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* in the dark themes the rows are tinted glass on the deep background, with light ink */
:root:is([data-theme="navy"], [data-theme="emerald"]) .person {
  background: linear-gradient(100deg, color-mix(in srgb, var(--row, transparent) 20%, rgba(255, 255, 255, .05)), color-mix(in srgb, var(--row, transparent) 6%, rgba(255, 255, 255, .03)) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--row, transparent) 26%, rgba(255, 255, 255, .06)), inset 0 1px 0 rgba(255, 255, 255, .07); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person:hover { background: linear-gradient(100deg, color-mix(in srgb, var(--row, transparent) 27%, rgba(255, 255, 255, .06)), color-mix(in srgb, var(--row, transparent) 10%, rgba(255, 255, 255, .04)) 70%); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person .face { box-shadow: 0 0 0 2.5px var(--bg2), 0 0 0 3.5px color-mix(in srgb, var(--row, transparent) 55%, transparent); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person .face.here::after { box-shadow: 0 0 0 2.5px var(--bg2); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person.unread .p-time { color: var(--a1); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person .p-last .tile { filter: brightness(1.55) saturate(.9); }


/* =====================================================================
   Header: search, profile, menu
   ===================================================================== */

.top { display: flex; align-items: center; justify-content: space-between; }
.top-acts { display: flex; align-items: center; gap: 4px; margin-right: -8px; }
.ta { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: var(--ink2); transition: background .15s, color .15s, transform .12s var(--ease); }
.ta svg.g { stroke-width: 1.9; }
.ta:hover { background: rgba(var(--accc), .12); color: var(--ink); }
.ta:active { transform: scale(.92); }
#menuBtn svg.g { stroke-width: 2.6; }
.ta-face .face { width: 30px; height: 30px; font-size: 15px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.2px var(--a2); }

.menu { position: fixed; z-index: 45; min-width: 232px; padding: 6px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 .5px rgba(var(--inkc), .14), 0 18px 44px -10px rgba(var(--inkc), .4); transform-origin: top right; animation: pop .16s var(--ease) both; }
.mi { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 11px; text-align: left; font-size: 14.5px; color: var(--ink); transition: background .12s; }
.mi:hover { background: rgba(var(--accc), .1); }
.mi b { flex: 1; font-weight: 550; }
.mi-ic { display: grid; font-size: 19px; color: var(--a4); }
.mi .switch { flex: none; transform: scale(.82); transform-origin: right center; }
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.menu, .search-box) { --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); --line: rgba(var(--inkc), .1); --line2: rgba(var(--inkc), .18); color: var(--ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .mi-ic { color: var(--a5); }

.card.tall { top: 56px; display: flex; flex-direction: column; padding-top: 16px; }
.card.tall[hidden] { display: none; }
.search-box { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 23px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line2); font-size: 19px; color: var(--ink3); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .search-box { background: #F1EADA; }
.search-box span { display: grid; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 15.5px var(--font); color: var(--ink); user-select: text; -webkit-user-select: text; }
.search-box input::placeholder { color: var(--ink3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-out { flex: 1; min-height: 0; overflow-y: auto; margin: 10px -8px 0; padding: 0 0 8px; scrollbar-width: none; }
.so-head { padding: 12px 8px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.so-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-align: left; font-size: 15px; }
.so-row:hover { background: rgba(var(--accc), .09); }
.so-row .face { width: 38px; height: 38px; flex: none; font-size: 15px; }
.so-row b { font-weight: 600; }
.so-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.so-who { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--ink3); }
.so-who .p-name { font-weight: 600; color: var(--ink2); font-size: 12px; }
.so-who small { margin-left: auto; font-size: 11px; }
.so-signs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.so-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 30px; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--ink3); }
.so-empty svg.g { font-size: 30px; opacity: .6; }
.prof-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.prof-head .face { width: 60px; height: 60px; font-size: 28px; flex: none; }
.prof-head .my-sign { justify-content: flex-start; margin: 0 0 4px; }
#themeCard .themes { margin-bottom: 4px; }
.mi .switch.on { background: linear-gradient(180deg, var(--a1), var(--a3)); }
.mi .switch.on::after { transform: translateX(18px); background: #fff; }

/* chat rows, more compact */
.people-list { padding: 8px 10px 14px; }
.person { margin: 0 0 4px; padding: 8px 12px 8px 9px; gap: 11px; border-radius: 16px; }
.person .face { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--row, transparent) 36%, transparent); }
.person .face.real { font-size: 19px; }
.person .face.here::after { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--card); }
.person .p-name { font-size: 14.5px; font-weight: 620; }
.person .p-last { margin-top: 3px; gap: 7px; min-height: 16px; font-size: 12px; }
.person .p-last .tile { font-size: 14px; }
.person .p-last .mine { font-size: 13.5px; }
.person .p-time { font-size: 10.5px; }
.p-count { min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; border-radius: 9px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person .face { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3px color-mix(in srgb, var(--row, transparent) 55%, transparent); }


/* =====================================================================
   Groups
   ===================================================================== */

.grp-tag { display: inline-grid; margin-left: 6px; font-size: .82em; color: var(--ink3); vertical-align: -1px; }
.by { display: flex; align-items: center; gap: 4px; margin: 2px 0 3px 4px; font-size: 11.5px; font-weight: 650; color: color-mix(in srgb, var(--by, var(--a4)) 78%, var(--ink)); }
.by svg.g { width: 13px; height: 13px; stroke-width: 2.2; }
.touch-mark.note::before { display: none; }
.touch-mark.note { font-size: 11.5px; padding: 4px 11px; }
.fwd-row.pick .tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: transparent; box-shadow: inset 0 0 0 1.5px var(--line2); }
.fwd-row.pick.on .tick { color: var(--on-gold); background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: none; }
.fwd-row.pick.on { background: rgba(var(--accc), .1); }
.fwd-row b { display: flex; align-items: center; gap: 5px; }
.fwd-row.mem { cursor: default; }
.mem-tag { font-size: 11px; font-weight: 600; color: var(--a4); padding: 2px 8px; border-radius: 9px; background: rgba(var(--accc), .12); }
.mem-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--ink3); }
.mem-x:hover { background: rgba(208, 69, 58, .12); color: #D0453A; }
.gi-head { flex: 1; min-width: 0; }
.gi-name { width: 100%; border: 0; outline: 0; background: none; padding: 2px 0; font: 700 20px var(--font); letter-spacing: -.02em; color: var(--ink); border-bottom: 1.5px solid transparent; user-select: text; -webkit-user-select: text; }
.gi-name:not([readonly]):focus { border-bottom-color: var(--a2); }
#groupName { height: 46px; margin-bottom: 4px; }
#groupName[hidden] { display: none; }
#giMute { margin-top: 6px; }
#giAdd[hidden] { display: none; }
#sheetTop .who, #faceBtn { cursor: pointer; }
.icon-btn[hidden] { display: none; }


/* =====================================================================
   The sign keyboard stays down until the box is tapped
   ===================================================================== */

.dock:not(.kb) .keys { display: none; }
.dock:not(.kb) .compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.dock.kb .keys { animation: kbUp .22s var(--ease) both; }
@keyframes kbUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.traywrap .tray { cursor: pointer; }

/* the first key of the top row sits level with the rest */
.predict { align-items: center; scroll-padding-left: 7px; }
.predict .pk, .predict .pk.top { flex: 0 0 calc((100% - 36px) / 7); height: 48px; margin: 0; align-self: center; }
.predict .pk.top { transform: none; }
.predict .pk:active, .predict .pk.top:active { transform: translateY(1.5px) scale(.97); }

/* =====================================================================
   The text pad: letters without the phone keyboard
   ===================================================================== */

.textpad { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 440px; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--bed1), var(--bed2) 60%, var(--bed3)); box-shadow: 0 -1px 0 rgba(var(--inkc), .1), 0 -10px 30px -12px rgba(var(--inkc), .35); animation: kbUp .2s var(--ease) both; }
.textpad[hidden] { display: none; }
.tp-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; }
.tp-row:last-child { margin-bottom: 0; }
.tp { flex: 1 1 0; min-width: 0; max-width: 40px; height: 42px; border-radius: 9px; display: grid; place-items: center; font: 500 17px var(--font); color: var(--cream-ink, var(--ink));
  background: linear-gradient(180deg, var(--key1c), var(--key2c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .5px rgba(var(--inkc), .1), 0 1.5px 0 rgba(var(--inkc), .22); transition: transform .06s, background .1s; }
.tp:active { transform: translateY(1.5px); background: var(--keydown); }
.tp.wide { flex: 1.6 1 0; max-width: 64px; font-size: 13px; font-weight: 650; color: var(--cream-ink2, var(--ink2)); }
.tp.space { flex: 5 1 0; max-width: none; }
.tp.done { color: var(--on-gold); background: linear-gradient(180deg, var(--a1), var(--a3)); }
.tp-shift.on { color: var(--a4); box-shadow: inset 0 0 0 1.5px var(--a2); }
.tp svg.g { font-size: 19px; }
body.pad-open .card { bottom: var(--padh, 0px); border-radius: 20px; transition: bottom .2s var(--ease); }
body.pad-open .card.tall { top: 12px; }
html, body { overscroll-behavior: none; }


/* chat rows are open on the right, like the row of faces */
.people-list { padding-right: 0; }
.person { border-radius: 18px 0 0 18px; padding-right: 16px; border: 1px solid color-mix(in srgb, var(--row, transparent) 20%, transparent); border-right: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 13%, var(--card)) 0%, color-mix(in srgb, var(--row, transparent) 4%, transparent) 92%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.person:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 18%, var(--card)) 0%, color-mix(in srgb, var(--row, transparent) 7%, transparent) 92%); }
.person.active { background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 24%, var(--card)), color-mix(in srgb, var(--row, transparent) 10%, transparent)); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person { border-color: color-mix(in srgb, var(--row, transparent) 30%, rgba(255, 255, 255, .07));
  background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 22%, rgba(255, 255, 255, .05)), color-mix(in srgb, var(--row, transparent) 4%, transparent) 92%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .person:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 28%, rgba(255, 255, 255, .06)), color-mix(in srgb, var(--row, transparent) 8%, transparent) 92%); }

.chips { overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-f { flex: none; }
.list-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 54px 34px; text-align: center; color: var(--ink3); }
.list-empty span { display: grid; font-size: 34px; opacity: .6; }
.list-empty p { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.mem-adm { flex: none; padding: 5px 9px; border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.mem-adm:hover { color: var(--a4); box-shadow: inset 0 0 0 1px var(--a2); }
#giShare[hidden], #giLink[hidden] { display: none; }
#giShare { margin-top: 6px; }


/* =====================================================================
   Groups in Meet, and the public / private choice
   ===================================================================== */

.meet-eye { margin: 18px 22px 8px; }
.meet-groups { list-style: none; display: flex; gap: 10px; padding: 2px 16px 6px; margin: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.meet-groups::-webkit-scrollbar { display: none; }
.meet-card.gcard { flex: 0 0 236px; scroll-snap-align: start; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 12px; align-items: center; padding: 14px; border-radius: 20px; cursor: pointer;
  background: linear-gradient(150deg, color-mix(in srgb, var(--row, transparent) 16%, var(--card)), color-mix(in srgb, var(--row, transparent) 4%, var(--card)) 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--row, transparent) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 22px -16px rgba(var(--inkc), .55); transition: transform .14s var(--ease); }
.meet-card.gcard:active { transform: scale(.98); }
.gcard .face { width: 46px; height: 46px; font-size: 18px; border-radius: 15px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--row, transparent) 40%, transparent); }
.gcard .p-name { font-size: 15px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .meet-traits { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.gkind { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 5px; border-radius: 8px; font-weight: 650; font-size: 10.5px; }
.gkind svg.g { width: 11px; height: 11px; stroke-width: 2.4; }
.gkind.pub { color: #1E7B4A; background: rgba(53, 194, 122, .16); }
.gkind.priv { color: var(--a5); background: rgba(var(--accc), .16); }
.gcard .meet-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; height: 34px; line-height: 34px; padding: 0; border-radius: 11px; font-size: 13px; font-weight: 650; color: var(--on-gold); background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: 0 1px 0 var(--a6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.gcard .meet-go.known { color: var(--a4); background: rgba(var(--accc), .12); box-shadow: none; }
.gcard .meet-go.wait { color: var(--ink2); background: rgba(var(--inkc), .07); box-shadow: none; }
.meet-none { flex: 1; padding: 14px 6px; font-size: 13px; line-height: 1.5; color: var(--ink3); }
.link-btn { font-weight: 650; color: var(--a4); text-decoration: underline; text-underline-offset: 2px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .meet-card.gcard { --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); color: var(--ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .gkind.priv { color: var(--a6); }

.g-opts { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.g-opts[hidden] { display: none; }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(var(--inkc), .06); }
.seg button { flex: 1; height: 32px; border-radius: 9px; font-size: 13px; font-weight: 620; color: var(--ink2); transition: background .15s, color .15s; }
.seg button.on { background: var(--card); color: var(--a5); box-shadow: 0 1px 2px rgba(var(--inkc), .16), 0 0 0 .5px rgba(var(--inkc), .06); }
.row-toggle.slim { margin: 0; padding-top: 9px; padding-bottom: 9px; }
.g-opts .sub { font-size: 12px; line-height: 1.4; margin: -2px 2px 0; }
.fwd-row.req { background: rgba(var(--accc), .08); margin-bottom: 4px; }
.mem-adm.yes { color: var(--on-gold); background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: none; }
.fwd-row.req b { flex: 1; }
#giMembersHead[hidden] { display: none; }
#groupInfo .search-out { min-height: 90px; }

/* group info: settings line up, buttons stay on one line */
#groupInfo .row-toggle, #groupCard .row-toggle { width: 100%; margin: 0; padding: 8px 12px; }
#groupInfo .g-opts { margin: 6px 0; gap: 6px; }
#groupInfo #giShare, #groupInfo #giMute { margin-top: 6px; }
#groupInfo .card-actions { margin-top: 12px; gap: 6px; }
#groupInfo .card-actions .text-btn { white-space: nowrap; padding: 9px 12px; font-size: 13.5px; }
#groupInfo .card-actions .text-btn.strong { padding: 9px 16px; }
#groupInfo .prof-head { margin-bottom: 4px; }
#groupInfo .prof-head .face { width: 48px; height: 48px; font-size: 20px; }
#groupInfo .search-out { margin-top: 0; }


/* group actions: three quiet tiles, an icon over a small label */
.gi-acts { display: flex; gap: 8px; margin-top: 12px; }
.gi-act { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 9px; border-radius: 14px; color: var(--ink2);
  background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s, transform .12s var(--ease); }
.gi-act span { display: grid; font-size: 19px; color: var(--a4); }
.gi-act svg.g { stroke-width: 1.9; }
.gi-act small { font-size: 11.5px; font-weight: 600; letter-spacing: .005em; white-space: nowrap; }
.gi-act:hover { background: rgba(var(--accc), .1); color: var(--ink); }
.gi-act:active { transform: scale(.97); }
.gi-act.leave span, .gi-act.leave small { color: #C24A40; }
.gi-act.leave:hover { background: rgba(194, 74, 64, .08); }
.gi-act[hidden] { display: none; }


/* =====================================================================
   Today's Bol as an answer wall
   tickets instead of rings: each shows a person and their three signs.
   Sealed until you answer, then they all open.
   ===================================================================== */

.today-rail.wall { gap: 8px; padding: 10px 26px 10px 10px; align-items: stretch; }
.tk { flex: none; width: 112px; display: flex; flex-direction: column; gap: 7px; padding: 9px 9px 8px; border-radius: 16px; text-align: left; color: var(--cream-ink, var(--ink));
  background: linear-gradient(160deg, color-mix(in srgb, var(--a, var(--a2)) 13%, var(--card)), var(--card) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a, var(--a2)) 24%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 12px -10px rgba(var(--inkc), .5);
  transition: transform .14s var(--ease); animation: tkIn .4s var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tk:active { transform: scale(.97); }
.tk-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tk-who b { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--font); font-style: normal; color: #FFFFFF; background: linear-gradient(145deg, var(--a, var(--a1)), var(--b, var(--a3))); }
.tk-dot.you { background: linear-gradient(145deg, var(--a1), var(--a3)); box-shadow: 0 0 0 2px rgba(var(--accc), .22); }
.tk-signs { display: flex; gap: 4px; }
.tk-signs .tile, .tk-signs .slot { flex: 1 1 0; aspect-ratio: 1; min-width: 0; width: auto; height: auto; padding: 0; border-radius: 9px; display: grid; place-items: center; font-size: 16px; }
.tk-signs .tile { color: #FFFFFF; background: linear-gradient(145deg, var(--c1, var(--neutral1)), var(--c2, var(--neutral2))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 1.5px rgba(var(--inkc), .18); }
.tk-signs .tile svg.g { stroke-width: 2.2; animation: none; }
.tk .tile.k-do { --c1: #F5AE45; --c2: #C87400; } .tk .tile.k-place { --c1: #2BB7C4; --c2: #0E7C8C; } .tk .tile.k-time { --c1: #8E7DF2; --c2: #5646C0; }
.tk .tile.k-feel { --c1: #F26D9E; --c2: #C2356B; } .tk .tile.k-people { --c1: #58C267; --c2: #2A8537; } .tk .tile.k-adj { --c1: #C583F2; --c2: #8E3FC4; }
.tk .tile.k-obj { --c1: #B8926C; --c2: #7A5230; } .tk .tile.k-work { --c1: #5AA2F5; --c2: #2F6FDB; } .tk .tile.k-money { --c1: #EDC04A; --c2: #B88A0B; } .tk .tile.k-civic { --c1: #EE7B6C; --c2: #BC4033; }
.tk-signs .slot { font-style: normal; color: var(--a4); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .45); border-radius: 9px; }
.tk-signs .slot svg.g { width: 13px; height: 13px; stroke-width: 2.4; }
.tk.mine.todo .slot { border: 0; box-shadow: none; background: repeating-linear-gradient(135deg, rgba(var(--accc), .16) 0 4px, rgba(var(--accc), .06) 4px 8px); }
.tk.mine.todo .slot:nth-child(2) { color: var(--on-gold); background: linear-gradient(180deg, var(--a1), var(--a3)); box-shadow: 0 2px 6px -1px rgba(var(--accc), .6); }
.tk-signs .slot.seal { box-shadow: none; color: var(--cream-ink3, var(--ink3)); background: color-mix(in srgb, var(--a, var(--a2)) 16%, rgba(var(--inkc), .05)); }
.tk small { font-size: 10.5px; font-weight: 550; color: var(--cream-ink3, var(--ink3)); letter-spacing: .01em; }
.tk.mine { background: linear-gradient(160deg, var(--t1), var(--card) 75%); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .5), 0 6px 14px -10px rgba(var(--accc), .8); }
.tk.mine.todo small { color: var(--a4); font-weight: 650; }
.today.reveal .tk:not(.mine) { animation: tkOpen .55s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms + 120ms); }
@keyframes tkOpen { 0% { transform: rotateY(88deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
.today-foot { display: flex; align-items: center; gap: 8px; margin: 9px 22px 0; font-size: 11.5px; color: var(--ink3); }
.today-foot i { flex: none; width: 34px; height: 4px; border-radius: 2px; background: rgba(var(--accc), .2); position: relative; overflow: hidden; }
.today-foot i::after { content: ''; position: absolute; inset: 0; border-radius: 2px; background: var(--a2); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .5s var(--ease); }

/* =====================================================================
   Group info, finished
   a tinted crown with the face and name centred, one settings panel
   ===================================================================== */

#groupInfo { padding-top: 0; overflow: hidden; }
.gi-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 -20px 6px; padding: 26px 20px 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--row, var(--a2)) 22%, var(--card)), var(--card)); }
.gi-hero::after { content: ''; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(var(--inkc), .16); }
.gi-hero .face { width: 68px; height: 68px; font-size: 27px; border-radius: 24px; box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px color-mix(in srgb, var(--row, var(--a2)) 45%, transparent), 0 12px 22px -12px color-mix(in srgb, var(--row, #000) 80%, transparent); }
.gi-hero .gi-name { width: 100%; text-align: center; font-size: 21px; padding: 2px 8px; border-radius: 8px; border-bottom: 0; }
.gi-hero .gi-name:not([readonly]):hover { background: rgba(var(--inkc), .05); }
.gi-hero .gi-name:not([readonly]):focus { background: rgba(var(--accc), .1); }
.gi-count { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: var(--ink3); }
.gkind.adm { color: var(--a5); background: rgba(var(--accc), .16); padding: 2px 7px; }
.gkind.meet { color: #2563D4; background: rgba(90, 162, 245, .16); padding: 2px 7px; }
#groupInfo .so-head { padding-left: 2px; }
#groupInfo .search-out { margin: 0 -6px; min-height: 80px; }
#groupInfo .fwd-row.mem { padding: 7px 8px; gap: 11px; border-radius: 12px; }
#groupInfo .fwd-row.mem + .fwd-row.mem { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
#groupInfo .fwd-row.mem .face { width: 34px; height: 34px; font-size: 14px; }
#groupInfo .fwd-row.mem b { flex: 1; font-size: 14.5px; }
.mem-tag { font-size: 10.5px; padding: 2px 7px; }
.mem-adm { padding: 4px 8px; font-size: 10.5px; box-shadow: none; color: var(--a4); background: rgba(var(--accc), .09); }
.mem-adm:hover { box-shadow: none; background: rgba(var(--accc), .18); }
.mem-x { width: 26px; height: 26px; font-size: 13px; opacity: .7; }
.gi-panel { margin-top: 10px; border-radius: 16px; background: rgba(var(--inkc), .03); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.gi-panel .g-opts { margin: 0 !important; gap: 0 !important; }
#groupInfo .gi-panel .row-toggle { background: none; box-shadow: none; border-radius: 0; padding: 10px 12px; margin: 0 !important; font-size: 14px; }
#groupInfo .gi-panel > .row-toggle, .gi-kind { box-shadow: 0 -1px 0 var(--line) !important; }
.gi-panel .row-toggle .pi { width: 28px; height: 28px; font-size: 15px; }
.gi-kind { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px 10px; }
.gi-kind .seg button { height: 28px; font-size: 12.5px; }
.gi-kind .sub { margin: 0 2px; font-size: 11.5px; }
.gi-panel [hidden] { display: none !important; }


/* the question is the first ticket on the wall */
.today { padding-top: 0; }
.today-rail.wall { margin-top: 6px; }
.tk.ask { width: 124px; color: var(--on-gold); background: linear-gradient(155deg, var(--a1), var(--a3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 16px -10px rgba(var(--accc), .9); }
.tk.ask .tk-who b { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .92; }
.tk-q { display: flex; align-items: center; min-height: 31px; }
.tk-q .strip { display: flex; gap: 7px; font-size: 23px; }
.tk-q .tile { color: inherit; }
.tk-q svg.g { stroke-width: 2.1; }
.tk.ask small { display: flex; align-items: center; gap: 4px; color: inherit; opacity: .9; font-weight: 600; }
.tk.ask small svg.g { width: 12px; height: 12px; stroke-width: 2.4; }

/* filter tabs sit just above the chats */
.scroll > .chips { padding: 12px 14px 4px; margin: 0; position: sticky; top: 0; z-index: 3; background: linear-gradient(180deg, var(--bg1) 70%, transparent); }
.today-foot { margin-bottom: 2px; }

/* an opened answer reads out when its signs are tapped */
.aaj-read { display: flex; flex-direction: column; align-items: center; }
.aaj-read .view-signs { cursor: pointer; border-radius: 16px; padding: 6px 10px; transition: background .15s; }
.aaj-read .view-signs:hover { background: rgba(var(--accc), .08); }
.aaj-mean { display: grid; grid-template-rows: 0fr; opacity: 0; width: 100%; transition: grid-template-rows .26s var(--ease), opacity .2s, margin .26s var(--ease); }
.aaj-mean > div { overflow: hidden; min-height: 0; display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.aaj-mean small { flex: none; width: 66px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.aaj-mean b { font-weight: 650; color: var(--ink); }
.aaj-read.open .aaj-mean { grid-template-rows: 1fr 1fr; opacity: 1; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(var(--inkc), .04); }
.aaj-hint { margin-top: 8px; font-size: 11.5px; color: var(--ink3); }
.aaj-read.open .aaj-hint { display: none; }

/* a reply that points at an answer to Today's Bol */
.quote.sref { flex-direction: column; align-items: flex-start; gap: 4px; box-shadow: inset 3px 0 0 var(--a2); cursor: default; }
.sref-top { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--a4); }
.sref-top > svg.g { width: 11px; height: 11px; stroke-width: 2.6; }
.sref-top .mini { margin-left: 3px; opacity: .8; }
.sref-top .mini .tile { font-size: 12px; }
.rb-tag { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--a4); }


/* a group's Bol: on the wall, in its info, and at the top of its conversation */
.tk-dot.sq { border-radius: 6px; }
.tk.grp small { color: var(--a4); font-weight: 650; }
.gi-bol { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 7px 12px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--accc), .35), 0 4px 10px -8px rgba(var(--inkc), .5); transition: transform .12s var(--ease); }
.gi-bol:active { transform: scale(.98); }
.gi-bol small, .gbol small { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a4); }
.gi-bol small svg.g, .gbol small svg.g { width: 11px; height: 11px; stroke-width: 2.6; }
.gi-bol .mini, .gbol .mini { gap: 8px; }
.gi-bol .mini .tile, .gbol .mini .tile { font-size: 19px; }
.gb-none { font-size: 12.5px; color: var(--ink3); }
.gbol { align-self: center; display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 7px 14px; border-radius: 16px; background: var(--card); color: var(--cream-ink, var(--ink)); box-shadow: inset 0 0 0 1px rgba(var(--accc), .4), 0 6px 14px -10px rgba(var(--inkc), .6); position: sticky; top: 6px; z-index: 2; }
.tk-q .strip, .tk-q .tile { background: none !important; box-shadow: none !important; padding: 0; }
.tk.ask .tk-q .tile, .tk.ask .tk-q svg.g { color: var(--on-gold) !important; }


/* =====================================================================
   Legibility pass
   deeper accent behind any label, firmer muted text, no white-on-pale,
   and the welcome screen follows the theme
   ===================================================================== */

/* anything that carries a label on the accent uses its deeper half */
.cta, .text-btn.strong, .send, .pk.top, .p-count, .tp.done, .mem-adm.yes, .gcard .meet-go, .tk.ask, .fwd-row.pick.on .tick, .tk.mine.todo .slot:nth-child(2) {
  background: linear-gradient(180deg, var(--a2), var(--a4)); }
.cta:hover, .text-btn.strong:hover { background: linear-gradient(180deg, var(--a2), var(--a5)); }
.send:disabled { background: var(--off); }
.gcard .meet-go.known { background: rgba(var(--accc), .12); } .gcard .meet-go.wait { background: rgba(var(--inkc), .07); }
.cta, .text-btn.strong, .send, .pk.top, .pk.top .tile, .tp.done, .mem-adm.yes, .tk.ask { color: var(--on-gold); }
:root { --ink3: #7F6D78; }
:root[data-theme="ivory"] { --ink3: #6C7A72; }
:root[data-theme="navy"] { --ink3: #8E96B0; --ink2: #C3C2CE; --cream-ink3: #6A7289; --a2: #D4B56C; --a4: #B08C3C; }
:root[data-theme="emerald"] { --ink3: #8FAC9B; --ink2: #C2D0C5; --cream-ink3: #63746A; --a2: #D4B56C; --a4: #B08C3C; }
.mb:disabled { color: var(--cream-ink3, var(--ink3)); opacity: .75; }
.tk.ask .tk-who b, .tk.ask small { opacity: 1; }

/* the welcome screen and the level-up screen take the theme's background */
.welcome { background: radial-gradient(120% 44% at 50% 0%, rgba(var(--accc), .16), transparent 62%), linear-gradient(170deg, var(--bg1), var(--bg2) 50%, var(--bg3)); color: var(--ink); }
.welcome h2 { color: var(--ink); } .welcome p { color: var(--ink2); } .wl-skip { color: var(--ink3); }
.wl-dots i { background: rgba(var(--accc), .3); } .wl-dots i.on { background: var(--a2); }
.pk { display: flex; align-items: center; justify-content: center; }
.wl-row .pk, .wl-row .pk.top { flex: 0 0 48px; width: 48px; height: 48px; }

/* in the dark themes, every pale card keeps its own dark ink */
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.pz-card, .trait-chip, .wl-b, .wl-art .strip, .wl-art .pk, .meet-card, .privacy-list li, .note, .you-sign, .lv-card, .waiting .w-card, .key, .aaj-slot) {
  --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); --line: rgba(var(--inkc), .1); --line2: rgba(var(--inkc), .18); --gold-text: var(--a5); }
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.pz-card, .trait-chip, .wl-b, .meet-card, .key) { color: var(--ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .trait-chip { background: var(--card); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .trait-chip.on { background: var(--a2); color: var(--on-gold); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .pz-card { background: var(--card); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .chip-f.on { background: var(--a2); color: var(--on-gold); box-shadow: none; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .jp { color: rgba(255, 255, 255, .74); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .jp.on { color: var(--a6); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .pk.top .tile { color: var(--on-gold); }


/* =====================================================================
   Tags: what people say you are like, and what members say a group is like
   ===================================================================== */

.tagchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tagchip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: rgba(var(--accc), .11); box-shadow: inset 0 0 0 1px rgba(var(--accc), .28); }
.tagchip svg.g { width: 15px; height: 15px; stroke-width: 2; color: var(--a4); }
.tagchip b { min-width: 16px; height: 16px; padding: 0 4px; margin-right: -4px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--on-gold); background: var(--a3); }
.prof-traits { margin: 14px 0 2px; }
.prof-traits .eyebrow, #myTraits .eyebrow { margin: 0 0 8px; }
.tag-from { margin-top: 8px; font-size: 11.5px; }
.gi-tags .tagchips { justify-content: center; margin-top: 8px; }
.gi-tags .tagchip { height: 24px; font-size: 11.5px; padding: 0 8px 0 6px; }
.gi-tags:empty { display: none; }
.gcard .gtags { margin-top: 3px; font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-acts { gap: 6px; }
.gi-act small { font-size: 11px; }
#tagBlock[hidden] { display: none; }
.tag-theirs .tagchips { margin: 6px 0 10px; }

/* your tags, under the wall: a quiet strip that slides sideways */
.mytags { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 0; padding: 4px 0 4px 20px; text-align: left; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.mytags::-webkit-scrollbar { display: none; }
.mytags > small { flex: none; display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--a4); }
.mytags > small svg.g { width: 12px; height: 12px; stroke-width: 2.4; }
.mytags .tagchips { flex-wrap: nowrap; padding-right: 30px; }
.mytags .tagchip { flex: none; height: 26px; font-size: 12px; background: var(--card); color: var(--cream-ink, var(--ink)); }
.mt-none { flex: none; font-size: 12px; color: var(--ink3); padding-right: 30px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .mytags > small { color: var(--a1); }

/* search in the header reads as a field you tap into */
.top .brand { flex: none; }
.top-acts { flex: 1; min-width: 0; justify-content: flex-end; margin-left: 14px; gap: 6px; }
.search-pill { flex: 1 1 auto; min-width: 0; max-width: 300px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; border-radius: 18px; text-align: left; color: var(--cream-ink3, var(--ink3));
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 2px rgba(var(--inkc), .05); transition: box-shadow .15s, transform .12s var(--ease); }
.search-pill span { display: grid; font-size: 17px; }
.search-pill svg.g { stroke-width: 2; }
.search-pill em { font-style: normal; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill:hover { box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .6); }
.search-pill:active { transform: scale(.985); }


/* =====================================================================
   Meet, finished
   a short lead, one filter for everything, group cards, then people as
   soft rows that match the chat list
   ===================================================================== */

.meet-top { height: auto; padding-top: 14px; padding-bottom: 6px; align-items: flex-start; }
.meet-top h1 { line-height: 1.1; }
.meet-lead { margin-top: 4px; font-size: 13px; color: var(--ink3); }
.meet-eye { margin: 16px 20px 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--ink3); }
#viewMeet .scroll > .meet-eye:first-child { margin-top: 8px; }

/* the filter */
.trait-rail { gap: 7px; padding: 2px 16px 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
.trait-rail::after { content: ''; flex: none; width: 24px; }
.trait-chip { flex: none; height: 34px; padding: 0 13px 0 10px; gap: 7px; border-radius: 17px; font-size: 16px; color: var(--ink2); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line2), 0 3px 8px -6px rgba(var(--inkc), .4); transition: background .15s, color .15s, transform .12s var(--ease), box-shadow .15s; }
.trait-chip small { font-size: 12.5px; font-weight: 600; }
.trait-chip svg.g { stroke-width: 1.9; color: var(--a4); }
.trait-chip:active { transform: scale(.96); }
.trait-chip.on { background: linear-gradient(180deg, var(--a2), var(--a4)); color: var(--on-gold); box-shadow: 0 5px 12px -6px rgba(var(--accc), .9); }
.trait-chip.on svg.g { color: var(--on-gold); }

/* groups */
.meet-groups { gap: 10px; padding: 2px 16px 8px; }
.meet-card.gcard { flex-basis: 224px; padding: 13px; gap: 9px 11px; border-radius: 18px; }
.gcard .face { width: 42px; height: 42px; font-size: 17px; border-radius: 14px; }
.gcard .meet-go { height: 32px; line-height: 32px; border-radius: 10px; font-size: 12.5px; }

/* people */
.meet-list { padding: 2px 0 6px 10px; }
.meet-card.pcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 0 0 4px; padding: 9px 14px 9px 9px; border-radius: 16px 0 0 16px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--row, transparent) 20%, transparent); border-right: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 13%, var(--card)) 0%, color-mix(in srgb, var(--row, transparent) 4%, transparent) 92%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); transition: transform .14s var(--ease), background .2s; }
.meet-card.pcard::before { display: none; }
.meet-card.pcard:active { transform: scale(.985); }
.pcard .face { width: 40px; height: 40px; font-size: 19px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--row, transparent) 36%, transparent); }
.pcard .p-name { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--ink); }
.pcard .p-name svg.g { width: 17px; height: 17px; stroke-width: 2; }
.pcard .p-name em { margin-left: 2px; padding: 1px 6px; border-radius: 6px; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); background: rgba(var(--inkc), .06); }
.meet-traits.chips3 { display: flex; gap: 4px; margin-top: 5px; overflow: hidden; }
.meet-traits.chips3 span { flex: none; padding: 2px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 600; color: var(--ink2); background: color-mix(in srgb, var(--row, var(--a2)) 14%, transparent); white-space: nowrap; }
.meet-traits.chips3 span.new { color: var(--ink3); background: rgba(var(--inkc), .05); }
.pcard .meet-go { height: 30px; line-height: 30px; padding: 0 13px; border-radius: 15px; font-size: 12px; font-weight: 650; color: var(--a5); background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--accc), .45); white-space: nowrap; }
.pcard .meet-go.known { color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
:root[data-theme="navy"] .meet-card.pcard, :root[data-theme="emerald"] .meet-card.pcard { --ink: #F3ECDD; --ink2: #C3C2CE; --ink3: #8E96B0; color: var(--ink); border-color: color-mix(in srgb, var(--row, transparent) 30%, rgba(255, 255, 255, .07));
  background: linear-gradient(90deg, color-mix(in srgb, var(--row, transparent) 22%, rgba(255, 255, 255, .05)), color-mix(in srgb, var(--row, transparent) 4%, transparent) 92%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .pcard .face { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3px color-mix(in srgb, var(--row, transparent) 55%, transparent); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .pcard .p-name em { background: rgba(255, 255, 255, .1); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .pcard .meet-go { color: var(--cream-ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .meet-traits.chips3 span.new { background: rgba(255, 255, 255, .08); }

/* being found, last and quiet */
.row-toggle.meet-find { margin: 14px 16px 18px; padding: 10px 12px; border-radius: 16px; }
.row-toggle.meet-find b { font-size: 14px; }
.row-toggle.meet-find small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; line-height: 1.35; color: var(--cream-ink3, var(--ink3)); }
.meet-none { padding: 14px 18px; font-size: 13px; color: var(--ink3); list-style: none; }


/* a group's three leading tags, each with how many members gave it; tap one to filter Meet by it */
.gcard .gtags { display: flex; gap: 4px; margin-top: 6px; overflow: hidden; white-space: nowrap; }
.gtag { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 4px 0 6px; border-radius: 11px; font-size: 10.5px; font-weight: 650; color: var(--ink2);
  background: color-mix(in srgb, var(--row, var(--a2)) 16%, transparent); transition: background .15s, color .15s; }
.gtag svg.g { width: 12px; height: 12px; stroke-width: 2.2; }
.gtag b { min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--card); background: color-mix(in srgb, var(--row, var(--a3)) 70%, var(--ink)); }
.gtag.on { color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); }
.gtag.on b { color: var(--a5); background: var(--card); }
.gtag.none { padding: 0 8px; font-weight: 550; color: var(--ink3); background: rgba(var(--inkc), .05); }
.meet-card.gcard { flex-basis: 248px; }

.gcard > .gtags { grid-column: 1 / -1; margin-top: 0; flex-wrap: nowrap; }
.gcard > .gtags .gtag { flex: 0 1 auto; min-width: 0; }
.meet-card.gcard { grid-template-rows: auto auto auto; }


/* Meet: a search field beside the title */
.meet-top { gap: 12px; }
.meet-top > div { min-width: 0; }
.search-pill.meet-search { flex: 0 0 132px; margin-top: 2px; }
.so-sub { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-main > b { font-weight: 600; font-size: 14.5px; }

/* =====================================================================
   Play, finished
   the puzzle on a tinted card with filled signs, two small figures,
   raised answer keys, and your people as tickets
   ===================================================================== */

#playBody { padding: 4px 16px 20px; }
.pz-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 8px 0 0; padding: 18px 16px 18px; border-radius: 24px; color: var(--cream-ink, var(--ink));
  background: linear-gradient(170deg, color-mix(in srgb, var(--a2) 16%, var(--card)), var(--card) 62%);
  box-shadow: inset 0 0 0 1px rgba(var(--accc), .26), inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 30px -22px rgba(var(--inkc), .7); }
.pz-eye { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a4); }
.pz-card .strip { display: flex; align-items: center; gap: 10px; background: none; box-shadow: none; padding: 0; font-size: 26px; }
.pz-card .strip .tile { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #FFFFFF; padding: 0;
  background: linear-gradient(145deg, var(--c1, var(--neutral1)), var(--c2, var(--neutral2))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 6px 12px -6px rgba(var(--inkc), .5); }
.pz-card .tile.k-do { --c1: #F5AE45; --c2: #C87400; } .pz-card .tile.k-place { --c1: #2BB7C4; --c2: #0E7C8C; } .pz-card .tile.k-time { --c1: #8E7DF2; --c2: #5646C0; }
.pz-card .tile.k-feel { --c1: #F26D9E; --c2: #C2356B; } .pz-card .tile.k-people { --c1: #58C267; --c2: #2A8537; }
.pz-card .strip .tile svg.g { stroke-width: 2.1; }
.pz-card .strip .tile.blank { color: var(--a4); background: repeating-linear-gradient(135deg, rgba(var(--accc), .18) 0 5px, rgba(var(--accc), .07) 5px 10px); box-shadow: inset 0 0 0 2px rgba(var(--accc), .5); animation: pzWait 1.8s ease-in-out infinite; }
@keyframes pzWait { 50% { box-shadow: inset 0 0 0 2px rgba(var(--accc), .95), 0 0 0 5px rgba(var(--accc), .12); } }
.pz-card .strip .tile.answer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 0 3px var(--card), 0 0 0 5px var(--a2), 0 8px 16px -6px rgba(var(--accc), .8); }
.pz-card.lost .strip .tile.answer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 0 3px var(--card), 0 0 0 5px rgba(var(--inkc), .25); }
.pz-card p { margin: 0; font-size: 14.5px; font-weight: 600; text-align: center; color: var(--cream-ink, var(--ink)); }
.pz-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 9px; border-radius: 14px; font-size: 12px; font-weight: 650; color: #1E7B4A; background: rgba(53, 194, 122, .16); }
.pz-badge svg.g { width: 14px; height: 14px; stroke-width: 2.4; }
.pz-card.lost .pz-badge { color: var(--cream-ink2, var(--ink2)); background: rgba(var(--inkc), .07); }

.pz-stats { display: flex; gap: 8px; margin-top: 10px; }
.pz-stat { flex: 1 1 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; color: var(--cream-ink, var(--ink)); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pz-stat span { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: var(--a4); background: rgba(var(--accc), .13); }
.pz-stat b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.pz-stat small { font-size: 11px; color: var(--cream-ink3, var(--ink3)); }
.pz-eyebrow { margin: 18px 4px 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--ink3); }

.pz-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.pz-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; height: auto; padding: 14px 4px 10px; border-radius: 16px; font-size: 28px; color: var(--cream-ink, var(--ink));
  background: linear-gradient(180deg, var(--key1c), var(--key2c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .5px rgba(var(--inkc), .1), 0 2px 0 rgba(var(--inkc), .2), 0 8px 14px -8px rgba(var(--inkc), .4); transition: transform .08s var(--ease), box-shadow .08s, opacity .2s; }
.pz-opt small { font-size: 11px; font-weight: 600; color: var(--cream-ink2, var(--ink2)); }
.pz-opt:active { transform: translateY(2px); box-shadow: inset 0 1px 3px rgba(var(--inkc), .2); }
.pz-opt.wrong { opacity: .38; box-shadow: inset 0 0 0 1px var(--line); }
.pz-opt .tile { background: none; box-shadow: none; }

.pz-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tk.pz-tk { width: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; cursor: default; }
.pz-res { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; font-weight: 650; color: var(--cream-ink3, var(--ink3)); }
.pz-res svg.g { width: 13px; height: 13px; stroke-width: 2.4; }
.pz-tk.done .pz-res { color: #1E7B4A; }


/* =====================================================================
   Profile and settings, finished
   a tinted hero, then grouped panels: tags, appearance, preferences, privacy
   ===================================================================== */

.you-top { justify-content: flex-start; gap: 6px; padding-left: 10px; }
.you-top h1 { font-size: 20px; letter-spacing: -.02em; }
.you-scroll { padding: 4px 16px 28px; }
.you-eye { margin: 20px 4px 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--ink3); }

.you-sign.you-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 0; padding: 22px 16px 14px; border-radius: 24px; text-align: center; color: var(--cream-ink, var(--ink));
  background: linear-gradient(175deg, color-mix(in srgb, var(--a2) 20%, var(--card)), var(--card) 58%); box-shadow: inset 0 0 0 1px rgba(var(--accc), .24), inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 30px -22px rgba(var(--inkc), .7); }
.you-hero .face { width: 76px; height: 76px; font-size: 34px; box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px var(--a2), 0 14px 24px -12px rgba(var(--accc), .9); }
.you-hero .my-sign { display: flex; justify-content: center; gap: 12px; margin: 4px 0 0; font-size: 26px; color: var(--cream-ink, var(--ink)); }
.you-hero .my-sign svg.g { stroke-width: 1.9; }
.you-hero .sub { max-width: 250px; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--cream-ink3, var(--ink3)); }
.you-hero .net-state { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 10px; border-radius: 11px; font-size: 11px; font-weight: 650; color: var(--cream-ink2, var(--ink2)); background: rgba(var(--inkc), .06); }
.you-hero .net-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #B8A9AE; }
.you-hero .net-state.on { color: #1E7B4A; background: rgba(53, 194, 122, .15); }
.you-hero .net-state.on::before { background: #35C27A; }
.you-acts { width: 100%; margin-top: 8px; }
.you-acts .gi-act { background: var(--card); }
.you-hero .invite-link { width: 100%; margin-top: 4px; padding: 8px 10px; border-radius: 10px; font-size: 11px; line-height: 1.35; word-break: break-all; color: var(--cream-ink2, var(--ink2)); background: rgba(var(--inkc), .05); }

.you-panel { margin: 0; padding: 12px; border-radius: 18px; list-style: none; color: var(--cream-ink, var(--ink)); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px -18px rgba(var(--inkc), .6); }
.you-panel.you-tags { margin-top: 12px; padding: 14px; }
.you-panel.you-tags:empty { display: none; }
.you-tags .eyebrow { color: var(--a4); }
.you-tags .sub { color: var(--cream-ink3, var(--ink3)); }
.you-panel .themes { margin: 0; }
.you-panel.list { padding: 0; overflow: hidden; }
.you-panel.list > * { margin: 0; padding: 11px 12px; border-radius: 0; background: none; box-shadow: none; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
.you-panel.list > * + * { box-shadow: 0 -1px 0 var(--line); }
.you-panel.list .pi { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; font-style: normal; color: var(--a4); background: rgba(var(--accc), .12); }
.you-panel.list b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--cream-ink, var(--ink)); }
.you-panel.list small, .you-panel.list li span { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--cream-ink3, var(--ink3)); }
.you-panel.list li > div { flex: 1; min-width: 0; }
.you-panel.list li { align-items: flex-start; }
.you-panel.list li .pi { margin-top: 1px; }
.row-toggle.link .chev { display: grid; font-size: 16px; font-style: normal; color: var(--cream-ink3, var(--ink3)); transform: rotate(180deg); }
.row-toggle.link:hover { background: rgba(var(--accc), .06); }
.note.you-note { margin: 12px 4px 0; padding: 0; background: none; box-shadow: none; font-size: 11.5px; line-height: 1.5; color: var(--ink3); }
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.you-panel, .you-hero) { --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); --line: rgba(var(--inkc), .1); --line2: rgba(var(--inkc), .18); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .note.you-note { --ink3: #8E96B0; color: var(--ink3); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .you-top .icon-btn { color: var(--ink); }

.tag-from { white-space: normal; line-height: 1.4; }
.you-tags .tagchips { margin-bottom: 2px; }


/* a person's card, the blocked list, and blocking inside a group */
#personCard { padding-top: 0; overflow: hidden; }
#personCard .gi-hero .face { border-radius: 50%; }
.pi-name { display: flex; justify-content: center; align-items: center; gap: 8px; font: 700 21px var(--font); letter-spacing: -.02em; color: var(--ink); }
.pi-name svg.g { width: 24px; height: 24px; stroke-width: 1.9; }
.pi-tags { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px; }
.pi-tags small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-top: 6px; }
.pi-tags:empty { display: none; }
#personCard .gi-panel .row-toggle { background: none; box-shadow: none; border-radius: 0; padding: 10px 12px; margin: 0; width: 100%; }
.mem-adm.quiet { color: var(--ink3); background: none; box-shadow: inset 0 0 0 1px var(--line2); }
.mem-adm.quiet:hover { color: #C24A40; background: rgba(194, 74, 64, .07); box-shadow: inset 0 0 0 1px rgba(194, 74, 64, .4); }
.fwd-row.mem.is-blocked .face, .fwd-row.mem.is-blocked b { opacity: .5; }
#blockedCard .sub { margin: -8px 0 6px; }

/* group info scrolls as one page, so the member list is never squeezed */
#groupInfo { overflow-y: auto; scrollbar-width: none; }
#groupInfo::-webkit-scrollbar { display: none; }
#groupInfo .search-out { flex: none; overflow: visible; min-height: 0; }
#groupInfo .gi-hero, #groupInfo .gi-panel, #groupInfo .gi-acts { flex: none; }


/* your answer: seen-by and reactions */
.tk-stats { display: flex; gap: 10px; color: var(--a4) !important; font-weight: 650 !important; }
.tk-stats span { display: inline-flex; align-items: center; gap: 3px; }
.tk-stats svg.g { width: 13px; height: 13px; stroke-width: 2.2; }
.tk-signname { display: flex; gap: 4px; } .tk-signname svg.g { width: 14px; height: 14px; stroke-width: 2.1; }
.tk-dot svg.g { width: 11px; height: 11px; stroke-width: 2.6; }
.aaj-react { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.aaj-react button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(var(--inkc), .045); transition: transform .14s var(--ease), background .15s, box-shadow .15s; }
.aaj-react button:hover { transform: translateY(-2px) scale(1.08); }
.aaj-react button.on { background: var(--t1); box-shadow: inset 0 0 0 2px var(--a2), 0 6px 12px -6px rgba(var(--accc), .8); }
.aaj-stats { margin-top: 12px; }
.aaj-figs { display: flex; gap: 8px; }
.aaj-figs span { flex: 1; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 14px; font-size: 12px; color: var(--ink2); background: rgba(var(--accc), .09); }
.aaj-figs svg.g { width: 16px; height: 16px; stroke-width: 2; color: var(--a4); }
.aaj-figs b { font-size: 16px; font-weight: 700; color: var(--ink); }
.aaj-seen { max-height: 190px; overflow-y: auto; margin: 8px -6px 0; scrollbar-width: none; }
.aaj-seen .fwd-row.mem { padding: 6px 8px; cursor: default; }
.aaj-seen .fwd-row.mem .face { width: 30px; height: 30px; font-size: 13px; }
.aaj-seen .fwd-row.mem b { flex: 1; font-size: 14px; }
.aaj-rx { display: grid; font-size: 19px; }

/* who gave your tags */
.tw-head { display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; }
.tw-head small { font-size: 11.5px; color: var(--ink3); }
.tw-more { padding: 4px 10px 6px 58px; font-size: 12px; color: var(--ink3); }
#tagWho .fwd-row.mem { width: 100%; padding: 7px 8px; }
#tagWho .fwd-row.mem .face { width: 34px; height: 34px; font-size: 14px; }
.tappable { cursor: pointer; }

/* =====================================================================
   The conversation, finished
   a lighter header, softer bubbles that sit closer in a run, a quieter day
   mark, and a dock that floats on a hairline
   ===================================================================== */

.sheet-top { height: 60px; padding: 0 10px 0 6px; gap: 10px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 18px -16px rgba(var(--inkc), .5); }
.sheet-top .icon-btn { width: 36px; height: 36px; border-radius: 50%; font-size: 19px; color: var(--ink2); background: rgba(var(--inkc), .045); transition: background .15s, transform .12s var(--ease); }
.sheet-top .icon-btn.back { background: none; width: 32px; }
.sheet-top .icon-btn:hover { background: rgba(var(--accc), .14); }
.sheet-top .icon-btn:active { transform: scale(.92); }
.sheet-top .icon-btn svg.g { stroke-width: 1.9; }
#faceBtn { width: 40px; height: 40px; font-size: 16px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.2px rgba(var(--accc), .5); }
.sheet-top .who { min-width: 0; flex: 1; }
.sheet-top .who-name { font-size: 16px; font-weight: 680; letter-spacing: -.012em; line-height: 1.2; }
.sheet-top .sub { margin-top: 1px; font-size: 11.5px; color: var(--ink3); }

.thread { padding: 10px 12px 12px; }
.day { align-self: center; margin: 4px 0 8px; padding: 4px 11px; border-radius: 11px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-ink3, var(--ink3)); box-shadow: 0 1px 2px rgba(var(--inkc), .1); }
.bol { margin-top: 9px; max-width: 80%; }
.bol.run { margin-bottom: -5px; }
.bubble { box-shadow: 0 1px 1px rgba(var(--inkc), .07), 0 6px 12px -8px rgba(var(--inkc), .35); transition: transform .12s var(--ease), box-shadow .2s; }
.bol.them .bubble { box-shadow: inset 0 0 0 1px rgba(var(--inkc), .04), 0 1px 1px rgba(var(--inkc), .07), 0 6px 12px -8px rgba(var(--inkc), .35); }
.bol.me .bubble { box-shadow: inset 0 0 0 1px rgba(var(--accc), .16), 0 1px 1px rgba(var(--inkc), .06), 0 6px 12px -8px rgba(var(--accc), .5); }
.bubble:active { transform: scale(.985); }
.bol.open .bubble { box-shadow: 0 0 0 1.5px rgba(var(--accc), .45), 0 10px 20px -10px rgba(var(--inkc), .45); }
.bubble .signs .stamp { font-size: 10px; letter-spacing: .01em; opacity: .85; }
.react { margin-top: -7px; margin-left: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--card); box-shadow: 0 0 0 2px var(--chat1), 0 2px 5px rgba(var(--inkc), .2); }
.bol.me .react { margin-left: 0; margin-right: 8px; align-self: flex-end; }
.touch-mark { font-size: 11.5px; padding: 4px 11px; border-radius: 11px; color: var(--cream-ink2, var(--ink2)); background: color-mix(in srgb, var(--card) 86%, transparent); box-shadow: 0 1px 2px rgba(var(--inkc), .08); }
.by { margin-left: 6px; }

.dock { box-shadow: 0 -1px 0 var(--line), 0 -10px 22px -18px rgba(var(--inkc), .5); }
.smart { padding-top: 9px; }
.compose { padding: 8px 10px 10px; gap: 8px; }
.traywrap .tray { height: 46px; border-radius: 23px; }
.tray-hint { font-size: 14px; color: var(--cream-ink3, var(--ink3)); }
.make { width: 42px; height: 42px; }
.send { width: 46px; height: 46px; }
.bol { margin-top: 9px; }
.bol.run { margin-bottom: 0; }
.bol.run + .bol { margin-top: 3px; }

/* a long toast wraps instead of running off the screen */
.toast { max-width: calc(100vw - 24px); white-space: normal; line-height: 1.35; text-align: left; }
.toast span { min-width: 0; }
.toast { color: var(--card); } .toast button { color: var(--a1); }


/* =====================================================================
   The group conversation, finished
   each speaker has a face and a colour; members sit in the header;
   the group Bol is a pinned ribbon; notes are whispers
   ===================================================================== */

/* header: a squared face for a group, and its members stacked on the right */
.sheet-top.is-group #faceBtn { border-radius: 14px; }
.who-stack { flex: none; display: flex; align-items: center; height: 36px; padding: 0 4px 0 10px; border-radius: 18px; background: rgba(var(--inkc), .045); transition: background .15s; }
.who-stack[hidden] { display: none; }
.who-stack:hover { background: rgba(var(--accc), .14); }
.who-stack .face { width: 24px; height: 24px; margin-left: -6px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--surface); }
.who-stack .face svg.g { width: 12px; height: 12px; }
.who-stack i { margin: 0 6px 0 5px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink2); }
.who-stack .face:last-child { margin-right: 6px; }

/* who is speaking */
.bol.g { position: relative; padding-left: 34px; max-width: calc(80% + 34px); }
.bol.g .gface { position: absolute; left: 0; bottom: 2px; width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 2px var(--chat1), 0 2px 5px rgba(var(--inkc), .2); }
.bol.g .gface svg.g { width: 13px; height: 13px; }
.bol.g .by { margin: 2px 0 3px 4px; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .01em; color: color-mix(in srgb, var(--by, var(--a4)) 72%, var(--ink)); }
.bol.g .bubble { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--by, transparent) 75%, transparent), inset 0 0 0 1px rgba(var(--inkc), .04), 0 1px 1px rgba(var(--inkc), .07), 0 6px 12px -8px rgba(var(--inkc), .35);
  background: linear-gradient(90deg, color-mix(in srgb, var(--by, transparent) 9%, var(--theirs)), var(--theirs) 60%); }
.bol.g .react { margin-left: 42px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .bol.g .by { color: color-mix(in srgb, var(--by, var(--a1)) 60%, #FFFFFF); }

/* the group's Bol, pinned as a ribbon */
.gbol { margin: 2px 0 8px; padding: 6px 14px 6px 10px; gap: 10px; border-radius: 18px; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--a2) 8%, var(--card)));
  box-shadow: inset 0 0 0 1px rgba(var(--accc), .38), 0 8px 16px -12px rgba(var(--inkc), .7); backdrop-filter: blur(6px); }
.gbol small { padding: 3px 8px 3px 6px; border-radius: 10px; color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); }
.gbol small svg.g { color: var(--on-gold); }
.gbol .mini .tile { font-size: 20px; }

/* notes: a quiet line, and a run of them reads as one stack */
.touch-mark.note { margin-top: 10px; padding: 3px 12px; font-size: 11px; font-weight: 550; letter-spacing: .005em; color: var(--ink3); background: none; box-shadow: none; }
.touch-mark.note::after, .touch-mark.note::before { content: ''; display: inline-block; width: 14px; height: 1px; margin: 0 8px; vertical-align: middle; background: rgba(var(--inkc), .16); border-radius: 0; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .touch-mark.note::after, :root:is([data-theme="navy"], [data-theme="emerald"]) .touch-mark.note::before { background: rgba(255, 255, 255, .18); }
.touch-mark.note.more { margin-top: 1px; }
.touch-mark.note.more::before, .touch-mark.note.more::after, .touch-mark.note.has-more::before, .touch-mark.note.has-more::after { visibility: hidden; }
.touch-mark.note { margin-bottom: 0; max-width: 88%; text-align: center; }
.touch-mark.note:not(.has-more) { margin-bottom: 8px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .gbol { --ink: var(--cream-ink); color: var(--cream-ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .gbol .mini, :root:is([data-theme="navy"], [data-theme="emerald"]) .gbol .mini .tile:not([class*="k-d"]):not([class*="k-p"]):not([class*="k-t"]):not([class*="k-f"]) { color: var(--cream-ink); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .gbol .mini .tile { filter: brightness(.62) saturate(1.3); }


/* =====================================================================
   Photos on faces
   ===================================================================== */

.face.pic { background-size: cover !important; background-position: center !important; color: transparent; }
.dp-btn { position: relative; display: grid; border-radius: 50%; transition: transform .14s var(--ease); }
.dp-btn:active { transform: scale(.96); }
.dp-btn > i { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-style: normal; color: var(--on-gold);
  background: linear-gradient(180deg, var(--a2), var(--a4)); box-shadow: 0 0 0 2.5px var(--card), 0 3px 6px rgba(var(--inkc), .25); }
.dp-btn > i svg.g { stroke-width: 2.1; }
.dp-remove { margin-top: 2px; padding: 4px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--cream-ink3, var(--ink3)); }
.dp-remove:hover { color: #C24A40; background: rgba(194, 74, 64, .08); }
.dp-remove[hidden] { display: none; }
.you-acts { gap: 6px; }
.you-acts .gi-act small { font-size: 10.5px; }

/* =====================================================================
   Group info, rebuilt
   photo and name, four round actions, the group's Bol and tags,
   members in a panel, admin settings, and leaving as its own quiet row
   ===================================================================== */

#groupInfo { display: flex; flex-direction: column; gap: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.gi-hero { padding: 28px 20px 12px; gap: 7px; }
.gi-photo { border-radius: 26px; }
.gi-photo > i { display: none; }
.gi-photo.can > i { display: grid; }
.gi-photo:not(.can) { cursor: default; }
.gi-hero .face { width: 76px; height: 76px; font-size: 30px; border-radius: 26px; }

.gi-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 2px 0 12px; flex: none; }
.gq { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0; color: var(--ink2); }
.gq span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--a4); background: rgba(var(--accc), .11); box-shadow: inset 0 0 0 1px rgba(var(--accc), .22); transition: transform .12s var(--ease), background .15s, color .15s; }
.gq span svg.g { stroke-width: 1.9; }
.gq small { font-size: 11.5px; font-weight: 600; }
.gq:hover span { background: rgba(var(--accc), .2); }
.gq:active span { transform: scale(.92); }
.gq.on span { color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); box-shadow: 0 6px 12px -6px rgba(var(--accc), .9); }
.gq[hidden] { visibility: hidden; display: flex; }

#groupInfo .gi-bol { align-self: center; margin: 0 0 4px; flex: none; }
#groupInfo .gi-tags { flex: none; }
#groupInfo .gi-tags .tagchips { margin: 6px 0 2px; }
#groupInfo .so-head { padding: 16px 4px 7px; flex: none; }
#groupInfo .so-head[hidden] { display: none; }
#groupInfo .gi-members { margin: 0; padding: 2px 6px; border-radius: 18px; background: rgba(var(--inkc), .03); box-shadow: inset 0 0 0 1px var(--line); }
#groupInfo .gi-members .so-head { padding: 10px 6px 4px; }
#groupInfo .gi-members .fwd-row.mem { padding: 8px 6px; }
#groupInfo .gi-members .fwd-row.mem:first-child { box-shadow: none; }
#groupInfo .gi-panel { margin-top: 0; flex: none; }
#groupInfo .gi-panel[hidden] { display: none; }
.gi-leave { flex: none; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; padding: 12px; border-radius: 16px; font-size: 14px; color: #C24A40; background: rgba(194, 74, 64, .07); box-shadow: inset 0 0 0 1px rgba(194, 74, 64, .2); transition: background .15s, transform .12s var(--ease); }
.gi-leave span { display: grid; font-size: 18px; }
.gi-leave b { font-weight: 650; }
.gi-leave:hover { background: rgba(194, 74, 64, .12); }
.gi-leave:active { transform: scale(.985); }
#groupInfo #giMute, #groupInfo #giShare { margin-top: 0; }


/* a group without a photo shows people */
.face.grp:not(.pic) svg.g { width: 52%; height: 52%; stroke-width: 2; }

/* the link card */
#linkCard .sub { margin: -8px 0 12px; }
.link-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line2); }
.link-box span { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); }
.link-box code { flex: 1; min-width: 0; padding-top: 2px; font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); word-break: break-all; max-height: 96px; overflow-y: auto; user-select: all; -webkit-user-select: all; }
.link-acts { display: flex; gap: 8px; margin-top: 14px; }
.link-btn2 { flex: 1 1 0; height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 15px; font-size: 14.5px; color: var(--ink); background: rgba(var(--inkc), .05); box-shadow: inset 0 0 0 1px var(--line2); transition: transform .12s var(--ease), background .15s; }
.link-btn2 span { display: grid; font-size: 18px; color: var(--a4); }
.link-btn2 b { font-weight: 650; }
.link-btn2:active { transform: scale(.975); }
.link-btn2.strong { color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); box-shadow: 0 1px 0 var(--a6), 0 8px 16px -8px rgba(var(--accc), .8); }
.link-btn2.strong span { color: var(--on-gold); }
.link-btn2.done { color: #1E7B4A; background: rgba(53, 194, 122, .14); box-shadow: inset 0 0 0 1px rgba(53, 194, 122, .5); }
.link-btn2.done span { color: #1E7B4A; }
.link-btn2[hidden] { display: none; }

/* usernames */
.uname-row { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--a4); background: rgba(var(--accc), .1); transition: background .15s; }
.uname-row i { display: grid; font-size: 13px; font-style: normal; opacity: .8; }
.uname-row.has { font-size: 14.5px; font-weight: 700; color: var(--cream-ink, var(--ink)); background: none; }
.uname-row:hover { background: rgba(var(--accc), .18); }
#unameCard .sub { margin: -8px 0 12px; }
.uname-box { display: flex; align-items: center; height: 50px; padding: 0 14px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line2); }
.uname-box em { font-style: normal; font-size: 18px; font-weight: 700; color: var(--a4); margin-right: 2px; }
.uname-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 17px var(--font); color: var(--ink); user-select: text; -webkit-user-select: text; }
.uname-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--a2); }
.uname-state { min-height: 20px; margin: 8px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.uname-state.ok { color: #1E7B4A; } .uname-state.bad { color: #C24A40; } .uname-state.wait { color: var(--ink3); }
.uname-state.ok::before { content: '✓ '; } .uname-state.bad::before { content: '✕ '; }
#unameDrop[hidden] { display: none; }
.gkind.uname { color: var(--ink2); background: rgba(var(--inkc), .06); padding: 2px 7px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .uname-box { background: #F1EADA; }


/* a group invite inside a chat: the preview picture, the name, and one action */
.joincard { display: block; width: 236px; max-width: 100%; margin: 0 0 5px; padding: 0; border-radius: 13px; overflow: hidden; text-align: left; color: var(--cream-ink, var(--ink)); background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(var(--inkc), .08), 0 6px 14px -10px rgba(var(--inkc), .6); transition: transform .12s var(--ease); }
.joincard:active { transform: scale(.985); }
.jc-art { display: block; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, color-mix(in srgb, var(--row, var(--a2)) 28%, #FBF8F6), #F1EAE7); }
.jc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jc-body { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 10px; }
.jc-body small { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a4); }
.jc-body small svg.g { width: 12px; height: 12px; stroke-width: 2.4; }
.jc-body b { font-size: 15px; font-weight: 680; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-go { align-self: stretch; margin-top: 6px; height: 30px; line-height: 30px; border-radius: 9px; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); }
.link-acts { flex-wrap: wrap; }
.link-btn2 { flex: 1 1 30%; min-width: 0; font-size: 13.5px; gap: 7px; }


/* members: even rows, the role under the name, one menu button on the right */
#groupInfo .gi-members { padding: 0; overflow: hidden; }
#groupInfo .gi-members .fwd-row.mem { display: grid; grid-template-columns: 38px minmax(0, 1fr) 34px; align-items: center; gap: 12px; min-height: 58px; padding: 9px 10px 9px 12px; border-radius: 0; box-shadow: none; }
#groupInfo .gi-members .fwd-row.mem + .fwd-row.mem, #groupInfo .gi-members .so-head + .fwd-row.mem { box-shadow: 0 -1px 0 var(--line); }
#groupInfo .gi-members .fwd-row.mem .face { width: 38px; height: 38px; font-size: 15px; }
.mem-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mem-main b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-main b svg.g { width: 17px; height: 17px; stroke-width: 2; flex: none; }
.mem-role { font-size: 11.5px; font-weight: 500; color: var(--ink3); }
.mem-role.adm { color: var(--a4); font-weight: 650; }
.mem-more { justify-self: end; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--ink3); transition: background .15s, color .15s; }
.mem-more svg.g { stroke-width: 2.6; }
.mem-more:hover { background: rgba(var(--accc), .14); color: var(--ink); }
.mi.danger, .mi.danger .mi-ic { color: #C24A40; }
.mi.danger:hover { background: rgba(194, 74, 64, .08); }
#groupInfo .gi-members .fwd-row.req { grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 8px; background: rgba(var(--accc), .07); margin: 0; }
#groupInfo .gi-members .so-head { padding: 12px 12px 6px; }


/* a drawn sign and its maker */
.drawn-by { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 6px; padding: 5px 7px 5px 5px; border-radius: 11px; text-align: left; color: var(--cream-ink, var(--ink)); background: rgba(var(--inkc), .05); transition: background .15s; }
.bol:not(.open) .drawn-by { display: none; }
.drawn-by:hover { background: rgba(var(--accc), .14); }
.db-art { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .1); }
.db-art .tile { width: auto; height: auto; min-width: 0; background: none !important; box-shadow: none !important; color: var(--cream-ink, var(--ink)) !important; font-size: 17px; }
.drawn-by .face { width: 20px; height: 20px; font-size: 9px; flex: none; }
.drawn-by .face svg.g { width: 10px; height: 10px; }
.drawn-by small { font-size: 11px; color: var(--cream-ink3, var(--ink3)); }
.drawn-by b { display: flex; gap: 4px; font-size: 12px; font-weight: 650; }
.drawn-by b svg.g { width: 13px; height: 13px; stroke-width: 2.1; }
.drawn-by > i { margin-left: auto; display: grid; font-size: 12px; font-style: normal; color: var(--cream-ink3, var(--ink3)); transform: rotate(180deg); }
.sign-art { display: grid; place-items: center; width: 132px; height: 132px; margin: 2px auto 10px; border-radius: 34px; font-size: 84px; color: var(--ink);
  background: linear-gradient(160deg, color-mix(in srgb, var(--a2) 14%, var(--card)), var(--card)); box-shadow: inset 0 0 0 1px rgba(var(--accc), .3), 0 14px 26px -18px rgba(var(--inkc), .7); }
.sign-art .tile { background: none; box-shadow: none; }
.sign-meaning { text-align: center; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
#signCard .so-head { padding: 14px 2px 6px; }
.fwd-row.mem.sign-by { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(var(--inkc), .035); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.sign-by .face { width: 40px; height: 40px; font-size: 16px; }
#signUse[hidden] { display: none; }

/* the invite card says what the group is before you join */
.joincard { width: 250px; }
.jc-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.jc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; font-size: 11.5px; color: var(--cream-ink2, var(--ink2)); }
.jc-n { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.jc-n svg.g { width: 13px; height: 13px; stroke-width: 2.1; color: var(--a4); }
.jc-tag { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px 0 5px; border-radius: 11px; font-size: 10.5px; font-weight: 650; background: rgba(var(--accc), .12); }
.jc-tag svg.g { width: 12px; height: 12px; stroke-width: 2.2; color: var(--a4); }
.jc-by { color: var(--cream-ink3, var(--ink3)); }
.jc-signs { display: inline-flex; gap: 5px; color: var(--cream-ink, var(--ink)); }
.jc-signs svg.g { width: 15px; height: 15px; stroke-width: 2; }
.jc-hint { font-size: 10.5px; line-height: 1.35; color: var(--cream-ink3, var(--ink3)); }


/* =====================================================================
   Sign-up gate
   one screen: ask for a code, watch it arrive, type it on bolo's own pad
   ===================================================================== */

.gate { position: fixed; inset: 0; z-index: 39; display: flex; justify-content: center; overflow-y: auto; color: var(--ink);
  background: radial-gradient(120% 44% at 50% 0%, rgba(var(--accc), .18), transparent 62%), linear-gradient(170deg, var(--bg1), var(--bg2) 50%, var(--bg3)); }
.gate[hidden] { display: none; }
.gate.out { animation: fadeout .4s both; }
.gate-in { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; padding: calc(30px + env(safe-area-inset-top)) 26px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.gate .brand svg { height: 26px; }
.gate h2 { margin: 14px 0 8px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); }
.gate p { margin: 0; max-width: 310px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.gate-start, .gate-code, .gate-stuck { display: none; flex-direction: column; align-items: center; width: 100%; margin-top: 8vh; }
.gate[data-stage="start"] .gate-start, .gate[data-stage="code"] .gate-code, .gate[data-stage="stuck"] .gate-stuck { display: flex; }
.gate[data-stage="code"] .gate-code { margin-top: 3vh; }
.gate-badge { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; font-size: 36px; color: var(--on-gold); background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 30px -14px rgba(var(--accc), .9); }
.gate .cta { width: 100%; margin-top: 28px; }

/* the code, arriving like a message */
.gate-note { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 11px 13px; border-radius: 18px; text-align: left; color: var(--cream-ink, var(--ink)); background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(var(--accc), .3), 0 14px 26px -16px rgba(var(--inkc), .7); }
.gate-note[hidden] { display: none; }
.gate-note.in { animation: noteIn .45s var(--ease) both; }
@keyframes noteIn { from { transform: translateY(-14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.gn-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--on-gold); background: linear-gradient(160deg, var(--a2), var(--a4)); }
.gn-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gn-main small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a4); }
.gn-main b { font-size: 15px; font-weight: 600; }
.gn-main em { font-style: normal; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.gn-main i { font-style: normal; font-size: 11px; color: var(--cream-ink3, var(--ink3)); }

.gate-boxes { display: flex; gap: 8px; margin-top: 18px; }
.gate-boxes i { width: 42px; height: 52px; border-radius: 13px; display: grid; place-items: center; font: 700 23px var(--font); font-style: normal; font-variant-numeric: tabular-nums; color: var(--cream-ink, var(--ink)); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .15s, transform .12s var(--ease); }
.gate-boxes i:nth-child(4) { margin-left: 8px; }
.gate-boxes i.at { box-shadow: inset 0 0 0 2px var(--a2), 0 6px 14px -8px rgba(var(--accc), .9); }
.gate-boxes i.full { transform: translateY(-1px); }
.gate-boxes.shake { animation: gshake .4s; }
@keyframes gshake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.gate-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px 18px; margin-top: 18px; }
.gk { height: 54px; border-radius: 18px; display: grid; place-items: center; font: 600 22px var(--font); color: var(--cream-ink, var(--ink)); background: linear-gradient(180deg, var(--key1c), var(--key2c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .5px rgba(var(--inkc), .1), 0 2px 0 rgba(var(--inkc), .2); transition: transform .07s var(--ease), background .1s; }
.gk:active { transform: translateY(2px); background: var(--keydown); }
.gk.del { font-size: 21px; background: none; box-shadow: none; color: var(--ink2); }
.gate-resend { margin-top: 14px; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--a4); }
.gate-resend:disabled { color: var(--ink3); cursor: default; }
.gate-msg { min-height: 20px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.gate-msg.ok { color: #1E9A5A; } .gate-msg.bad { color: #D0584E; }
.toast { z-index: 90; }

/* header: the search field fills the space between the mark and the menu */
.top-acts { margin-left: 12px; margin-right: -12px; gap: 2px; }
.search-pill { max-width: none; }
#menuBtn { width: 36px; }


/* =====================================================================
   Verification, finished
   three steps across the top, everything on one card, a clear ending
   ===================================================================== */

.gate-in { padding-top: calc(26px + env(safe-area-inset-top)); }
.gate-steps { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 11px; font-weight: 650; color: var(--ink3); }
.gate-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 14px; transition: background .2s, color .2s; }
.gate-steps span + span::before { content: ''; width: 14px; height: 1px; margin: 0 2px 0 -12px; background: rgba(var(--inkc), .2); transform: translateX(-8px); }
.gate-steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ink3); background: rgba(var(--inkc), .08); transition: background .2s, color .2s; }
.gate-steps span.on { color: var(--ink); background: rgba(var(--accc), .14); }
.gate-steps span.on i, .gate-steps span.past i { color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); }
.gate-steps span.past { color: var(--ink2); }
.gate-card { width: 100%; margin-top: 18px; padding: 26px 20px 22px; border-radius: 28px; color: var(--cream-ink, var(--ink)); background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(var(--accc), .2), inset 0 1px 0 rgba(255, 255, 255, .6), 0 30px 50px -34px rgba(var(--inkc), .8); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .gate-card { --ink: var(--cream-ink); --ink2: var(--cream-ink2); --ink3: var(--cream-ink3); --line2: rgba(var(--inkc), .18); }
.gate-card h2 { margin: 16px 0 8px; font-size: 24px; color: var(--ink); }
.gate-card p { color: var(--ink2); }
.gate-start, .gate-code, .gate-stuck, .gate-done { margin-top: 0 !important; }
.gate-done { display: none; flex-direction: column; align-items: center; width: 100%; padding: 26px 0 30px; }
.gate[data-stage="done"] .gate-done { display: flex; }
.gate-badge { position: relative; width: 78px; height: 78px; border-radius: 26px; font-size: 33px; }
.gate-badge::after { content: ''; position: absolute; inset: -9px; border-radius: 34px; border: 1.5px solid rgba(var(--accc), .35); animation: gring 2.4s ease-out infinite; }
@keyframes gring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.gate-badge.ok { border-radius: 50%; background: linear-gradient(160deg, #47CC8B, #1E9A5A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 30px -14px rgba(53, 194, 122, .9); animation: pop .4s var(--ease) both; }
.gate-badge.ok::after { border-radius: 50%; border-color: rgba(53, 194, 122, .45); }
.gate-key { margin-top: 12px; padding: 5px 12px; border-radius: 10px; font: 600 11.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--ink2); background: rgba(var(--inkc), .05); }
.gate-key:empty { display: none; }
.gate .cta { margin-top: 20px; height: 52px; border-radius: 17px; }
.gate-points { list-style: none; display: flex; flex-direction: column; gap: 9px; width: 100%; margin: 20px 0 0; padding: 14px 4px 0; box-shadow: 0 -1px 0 var(--line2); text-align: left; }
.gate-points li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink2); }
.gate-points span { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; color: var(--a4); background: rgba(var(--accc), .12); }
.gate-note { background: color-mix(in srgb, var(--a2) 8%, var(--card)); box-shadow: inset 0 0 0 1px rgba(var(--accc), .32), 0 10px 20px -16px rgba(var(--inkc), .7); }
.gate-boxes { gap: 7px; margin-top: 18px; }
.gate-boxes i { width: 40px; height: 52px; border-radius: 14px; font-size: 24px; background: rgba(var(--inkc), .035); }
.gate-boxes i.full { background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .55); }
.gate-boxes i:nth-child(4) { margin-left: 10px; position: relative; }
.gate-boxes i:nth-child(4)::before { content: ''; position: absolute; left: -13px; top: 50%; width: 8px; height: 2px; border-radius: 1px; background: rgba(var(--inkc), .22); }
.gate-msg { margin-top: 8px; min-height: 18px; font-size: 12.5px; }
.gate-pad { grid-template-columns: repeat(3, 68px); gap: 10px 20px; margin-top: 6px; }
.gk { height: 56px; border-radius: 50%; width: 56px; justify-self: center; font-size: 23px; }
.gk.del { width: 56px; }
.gate-resend { margin-top: 10px; }

/* =====================================================================
   The guide
   ===================================================================== */

.guide { position: fixed; inset: 0; z-index: 38; display: flex; flex-direction: column; color: var(--ink); background: radial-gradient(120% 40% at 50% 0%, rgba(var(--accc), .14), transparent 62%), linear-gradient(170deg, var(--bg1), var(--bg2) 50%, var(--bg3)); animation: rise .3s var(--ease) both; }
.guide[hidden] { display: none; }
.guide.out { animation: fadeout .3s both; }
.guide-top { flex: none; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 12px; }
.guide-top .icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--ink2); background: rgba(var(--inkc), .06); }
.guide-top b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.guide-top small { font-size: 11.5px; color: var(--ink3); }
.guide-bar { flex: none; height: 3px; margin: 0 16px; border-radius: 2px; background: rgba(var(--accc), .18); overflow: hidden; }
.guide-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--a2), var(--a4)); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .35s var(--ease); }
.guide-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 20px 12px; max-width: 520px; width: 100%; margin: 0 auto; scrollbar-width: none; }
.guide-body h2 { margin: 0 0 8px; font-size: 25px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.guide-p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.guide-ex { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.gx { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px -18px rgba(var(--inkc), .6); animation: tkIn .4s var(--ease) both; animation-delay: calc(var(--k) * 70ms); }
.gx .bol { margin: 0; max-width: 100%; align-self: flex-start; }
.gx .bubble { cursor: default; }
.gx .bubble .signs { flex-wrap: wrap; }
.gx-read { display: flex; align-items: center; gap: 7px; padding-left: 2px; font-size: 13.5px; font-weight: 600; color: var(--cream-ink, var(--ink)); }
.gx-read svg.g { flex: none; width: 15px; height: 15px; stroke-width: 2; color: var(--a4); }
.guide-tip { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45; color: var(--ink2); background: rgba(var(--accc), .1); box-shadow: inset 0 0 0 1px rgba(var(--accc), .22); }
.guide-tip span { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); }
.guide-foot { flex: none; padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.guide-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.guide-dots button { width: 7px; height: 7px; border-radius: 4px; background: rgba(var(--accc), .3); transition: width .25s var(--ease), background .2s; }
.guide-dots button.on { width: 22px; background: var(--a2); }
.guide-btns { display: flex; gap: 10px; align-items: center; }
.guide-btns .text-btn { flex: none; padding: 12px 16px; }
.guide-btns .text-btn:disabled { opacity: .35; }
.guide-btns .cta { flex: 1; height: 50px; border-radius: 16px; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .gx { --ink: var(--cream-ink); }

.gate-steps { gap: 2px; }
.gate-steps span + span::before { display: none; }
.gate-steps span:not(:last-child)::after { content: ''; width: 12px; height: 1px; margin-left: 6px; margin-right: -4px; background: rgba(var(--inkc), .22); }


/* =====================================================================
   The guide, finished
   lessons as segments across the top, a mark and number for each lesson,
   the order of parts as a line of pills, examples as "to say / tap" pairs
   ===================================================================== */

.guide-top { height: 56px; padding: 0 14px; }
.guide-top b { font-size: 15px; }
.guide-dots { flex: none; display: flex; justify-content: stretch; gap: 4px; margin: 0; padding: 0 16px; }
.guide-dots button { flex: 1 1 0; width: auto; height: 12px; border-radius: 0; background: none; position: relative; }
.guide-dots button::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 2px; background: rgba(var(--accc), .2); transition: background .25s, transform .2s var(--ease); }
.guide-dots button.past::after { background: rgba(var(--accc), .6); }
.guide-dots button.on { width: auto; background: none; }
.guide-dots button.on::after { background: linear-gradient(90deg, var(--a2), var(--a4)); transform: scaleY(1.4); }
.guide-bar[hidden] { display: none; }

.guide-body { padding: 18px 18px 10px; }
.guide-body.turn > * { animation: tkIn .38s var(--ease) both; }
.guide-body.turn > *:nth-child(2) { animation-delay: 40ms; } .guide-body.turn > *:nth-child(3) { animation-delay: 80ms; } .guide-body.turn > *:nth-child(4) { animation-delay: 120ms; } .guide-body.turn > *:nth-child(5) { animation-delay: 180ms; }
.guide-hero { display: flex; align-items: center; gap: 14px; }
.guide-ic { flex: none; width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; font-size: 26px; color: var(--on-gold); background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 22px -12px rgba(var(--accc), .9); }
.guide-ic svg.g { stroke-width: 1.9; }
.guide-hero small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a4); }
.guide-hero h2 { margin: 3px 0 0; font-size: 23px; line-height: 1.14; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .guide-hero small { color: var(--a1); }
.guide-p { margin-top: 14px; font-size: 14.5px; line-height: 1.55; }

/* the order of parts */
.guide-order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.guide-order span { padding: 5px 11px; border-radius: 12px; font-size: 12px; font-weight: 650; color: var(--cream-ink, var(--ink)); background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--accc), .32); }
.guide-order i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--a4); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .guide-order i { color: var(--a1); }

/* examples */
.guide-ex { gap: 9px; margin-top: 16px; }
.gx { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: 18px; overflow: hidden; color: var(--cream-ink, var(--ink)); }
.gx-say, .gx-tap { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 14px; }
.gx-say { background: color-mix(in srgb, var(--a2) 7%, var(--card)); }
.gx-tap { box-shadow: 0 -1px 0 var(--line); }
.gx small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-ink3, var(--ink3)); }
.gx-say b { font-size: 15.5px; font-weight: 680; letter-spacing: -.01em; line-height: 1.3; }
.gx .bol { margin: 0; max-width: 100%; }
.gx .bubble { padding: 0; background: none !important; box-shadow: none !important; border-radius: 0; }
.gx .bubble .signs { gap: 7px 6px; }
.gx .bubble .signs .tile { width: 32px; height: 32px; min-width: 32px; font-size: 18.5px; border-radius: 10px; }
.gx .bubble .signs .tile.ref { font-size: 24px; }

/* the tip */
.guide-tip { margin-top: 14px; padding: 12px 14px; align-items: flex-start; background: none; box-shadow: inset 0 0 0 1px rgba(var(--accc), .3); border-radius: 18px; border-left: 0; }
.guide-tip span { width: 30px; height: 30px; border-radius: 10px; }
.guide-tip small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a4); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .guide-tip small { color: var(--a1); }

/* footer */
.guide-foot { padding-top: 10px; }
.guide-btns { gap: 10px; }
.guide-back { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 19px; color: var(--ink2); background: rgba(var(--inkc), .06); box-shadow: inset 0 0 0 1px var(--line2); transition: transform .12s var(--ease), opacity .2s; }
.guide-back:disabled { opacity: .3; }
.guide-back:active { transform: scale(.95); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .guide-back { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.guide-btns .cta { display: flex; align-items: center; justify-content: center; gap: 9px; }
.guide-btns .cta b { font-weight: 650; }
.guide-btns .cta span { display: grid; font-size: 17px; transform: rotate(90deg); }

#nav [data-g="bol"] svg.g { stroke-width: 1.7; }
.gx .bol, .gx .bol.me { align-self: flex-start; align-items: flex-start; justify-self: start; }
.gx .bubble .signs { justify-content: flex-start; padding: 5px 0 5px 5px; }


/* =====================================================================
   Welcome, finished
   the mark and Skip on top, pages as segments, each picture on a stage
   made of the app's own pieces
   ===================================================================== */

.welcome { padding: calc(18px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom)); align-items: stretch; }
.wl-top { flex: none; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 440px; margin: 0 auto; }
.wl-top .brand svg { height: 24px; }
.wl-skip { padding: 7px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--ink2); background: rgba(var(--inkc), .06); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .wl-skip { background: rgba(255, 255, 255, .08); }
.wl-skip[hidden] { visibility: hidden; display: block; }
.wl-dots { flex: none; display: flex; gap: 5px; width: 100%; max-width: 440px; margin: 16px auto 0; }
.wl-dots button { flex: 1 1 0; height: 14px; position: relative; }
.wl-dots button::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 2px; background: rgba(var(--accc), .2); transition: background .3s; }
.wl-dots button.past::after { background: rgba(var(--accc), .6); }
.wl-dots button.on::after { background: linear-gradient(90deg, var(--a2), var(--a4)); }
.wl-dots i { display: none; }

.wl-slide { max-width: 440px; margin: 0 auto; justify-content: flex-start; padding-top: 18px; }
.wl-slide > * { animation: tkIn .5s var(--ease) both; }
.wl-slide > .wl-eye { animation-delay: .08s; } .wl-slide > h2 { animation-delay: .14s; } .wl-slide > p { animation-delay: .2s; }
.wl-stage { width: 100%; flex: 1 1 0; min-height: 210px; max-height: 320px; display: grid; place-items: center; padding: 18px; border-radius: 30px; position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--chat1), var(--chat2)); box-shadow: inset 0 0 0 1px rgba(var(--accc), .22), 0 26px 44px -30px rgba(var(--inkc), .8); }
.wl-stage::before { content: ''; position: absolute; inset: 0; background: var(--wallc); opacity: var(--wallo); -webkit-mask: var(--wall) 0 0 / 180px 180px; mask: var(--wall) 0 0 / 180px 180px; pointer-events: none; }
.wl-art { position: relative; width: 100%; height: auto; max-width: 300px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.wl-bol { display: flex; flex-direction: column; gap: 4px; animation: tkIn .5s var(--ease) both; }
.wl-bol.me { align-items: flex-end; } .wl-bol.them { align-items: flex-start; }
.wl-bol:nth-child(2) { animation-delay: .5s; }
.wl-bol .bol { margin: 0; max-width: 100%; }
.wl-bol .bubble { cursor: default; padding: 8px 10px; }
.wl-bol .bubble .signs .tile { width: 36px; height: 36px; min-width: 36px; font-size: 21px; border-radius: 11px; }
.wl-read { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--ink2); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .wl-read { color: rgba(255, 255, 255, .78); }
.wl-row { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
.wl-row .pk { animation: tkIn .45s var(--ease) both; animation-delay: calc(.45s + var(--k) * 70ms); }
.wl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wl-chips span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px; font-weight: 650; color: var(--cream-ink, var(--ink)); background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .1), 0 4px 8px -6px rgba(var(--inkc), .5); }
.wl-chips span.on { color: var(--on-gold); background: linear-gradient(180deg, var(--a2), var(--a4)); box-shadow: 0 6px 12px -6px rgba(var(--accc), .9); }
.wl-chips svg.g { width: 15px; height: 15px; stroke-width: 2; color: var(--a4); }
.wl-faces { display: flex; justify-content: center; padding-left: 14px; }
.wl-faces .face { width: 58px; height: 58px; margin-left: -14px; font-size: 22px; box-shadow: 0 0 0 3px var(--chat1), 0 10px 18px -10px rgba(var(--inkc), .7); animation: tkIn .45s var(--ease) both; animation-delay: calc(var(--k) * 80ms); }
.wl-faces .face:nth-child(3) { transform: translateY(-8px) scale(1.12); z-index: 2; }
.wl-seal { align-self: center; width: 104px; height: 104px; font-size: 42px; color: var(--on-gold); background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 20px 30px -14px rgba(var(--accc), .9); }
.wl-seal::before { background: none; border: 1.5px solid rgba(var(--accc), .4); -webkit-mask: none; mask: none; inset: -10px; animation: gring 2.4s ease-out infinite; }
.wl-eye { margin-top: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--a4); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .wl-eye { color: var(--a1); }
.wl-slide h2 { margin: 8px 0 10px; font-size: 31px; line-height: 1.08; }
.wl-slide p { max-width: 340px; font-size: 15px; line-height: 1.5; }
.wl-foot { flex: none; margin: 14px auto 0; gap: 0; }
.wl-foot .cta { width: 100%; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.wl-foot .cta b { font-weight: 650; }
.wl-foot .cta span { display: grid; font-size: 17px; transform: rotate(90deg); }

#nav [data-g="bol"] svg.g { stroke-width: 1.9; }
.guide { z-index: 55; }


/* a name in letters with its two signs beside it */
.mixed-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.nm-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-signs { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--a4); opacity: .95; }
.nm-signs svg.g { width: .92em; height: .92em; stroke-width: 2.1; }
.who-name.mixed-name { font-size: 16px; }
.p-name.mixed-name .nm-signs svg.g { width: 14px; height: 14px; }
.name-row { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 3px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--a4); background: rgba(var(--accc), .1); }
.name-row i { display: grid; font-size: 13px; font-style: normal; opacity: .75; }
.name-row.has { font-size: 22px; font-weight: 750; letter-spacing: -.02em; color: var(--cream-ink, var(--ink)); background: none; padding: 0 4px; }
.name-row.has i { font-size: 14px; opacity: .5; }
#pnCard .sub { margin: -8px 0 12px; }
.pn-box input { font-size: 18px; }
.pn-preview { justify-content: center; min-height: 44px; margin-top: 8px; padding: 9px 14px; border-radius: 14px; font-size: 18px; font-weight: 700; color: var(--ink); background: rgba(var(--inkc), .04); }
.nm-none { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .nm-signs { color: var(--a1); }
:root:is([data-theme="navy"], [data-theme="emerald"]) :is(.card, .menu, .gi-members, .you-panel, .tk, .gx) .nm-signs { color: var(--a5); }


/* the pearl theme's accent, deepened: rosewood on pearl, so labels and marks hold their contrast */
:root {
  --a1: #C2687A; --a2: #A23E55; --a3: #8E3248; --a4: #7C2A3E; --a5: #651F31; --a6: #4F1626;
  --t1: #FAEEF0; --t2: #F5DEE2; --t3: #EDCBD2;
  --accc: 162, 62, 85; --deepc: 79, 22, 38; --glowa: 162, 62, 85; --glowb: 205, 170, 130;
  --mine1: #F9E6E9; --mine2: #F2D3D9; --on-mine: #4F1626; --wallc: #A6606C; --wallo: .16;
  --ink: #2A1A24; --ink2: #5A4652; --ink3: #7A6772;
}


/* =====================================================================
   All signs, finished
   a count, a search field, families as chips, and every sign as a filled
   chip with its name; tap one for how it reads and what sits behind it
   ===================================================================== */

#viewSigns .you-top > div { min-width: 0; }
.book-count { display: block; margin-top: 1px; font-size: 11.5px; color: var(--ink3); }
.book-tools { flex: none; padding: 2px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.book-tools .search-box { height: 44px; }
.book-fams { padding: 0; margin: 0 -16px; padding: 0 16px; gap: 6px; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.book-fams::after { content: ''; flex: none; width: 20px; }
.book-scroll { padding: 2px 16px 28px; }
.book-head { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 10px; }
.book-head:first-child { margin-top: 8px; }
.book-head b { font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.book-head small { padding: 1px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: var(--a4); background: rgba(var(--accc), .13); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .book-head small { color: var(--a1); }
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.bk { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px 9px; border-radius: 16px; color: var(--cream-ink, var(--ink)); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 12px -10px rgba(var(--inkc), .5); transition: transform .12s var(--ease), box-shadow .15s; }
.bk:hover { box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .5), 0 8px 14px -10px rgba(var(--inkc), .6); }
.bk:active { transform: scale(.95); }
.bk small { max-width: 100%; padding: 0 2px; font-size: 10.5px; font-weight: 600; line-height: 1.15; text-align: center; color: var(--cream-ink2, var(--ink2)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-chip { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #FFFFFF; background: linear-gradient(145deg, var(--c1, var(--neutral1)), var(--c2, var(--neutral2))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 4px 8px -4px rgba(var(--inkc), .4); }
.bk-chip .tile { width: auto; height: auto; min-width: 0; padding: 0; color: #FFFFFF !important; background: none !important; box-shadow: none !important; font-size: inherit; }
.bk-chip .tile svg.g { stroke-width: 2.1; animation: none !important; }
.bk-chip:has(.k-do) { --c1: #F5AE45; --c2: #C87400; } .bk-chip:has(.k-place) { --c1: #2BB7C4; --c2: #0E7C8C; } .bk-chip:has(.k-time) { --c1: #8E7DF2; --c2: #5646C0; }
.bk-chip:has(.k-feel) { --c1: #F26D9E; --c2: #C2356B; } .bk-chip:has(.k-people) { --c1: #58C267; --c2: #2A8537; } .bk-chip:has(.k-adj) { --c1: #C583F2; --c2: #8E3FC4; }
.bk-chip:has(.k-obj) { --c1: #B8926C; --c2: #7A5230; } .bk-chip:has(.k-work) { --c1: #5AA2F5; --c2: #2F6FDB; } .bk-chip:has(.k-money) { --c1: #EDC04A; --c2: #B88A0B; } .bk-chip:has(.k-civic) { --c1: #EE7B6C; --c2: #BC4033; }
.book.fam-char { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.book.fam-char .bk { padding: 8px 2px 7px; border-radius: 13px; }
.book.fam-char .bk small { display: none; }
.book.fam-char .bk-chip { width: 34px; height: 34px; border-radius: 11px; font-size: 20px; }

/* one sign */
.si-top { display: flex; align-items: center; gap: 16px; }
.bk-chip.big { width: 84px; height: 84px; border-radius: 27px; font-size: 46px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 16px 24px -14px rgba(var(--inkc), .7); }
.si-name { font-size: 24px; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.si-fam { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a4); background: rgba(var(--accc), .13); }
.si-block { margin-top: 16px; }
.si-block:empty { display: none; }
.si-block > small { display: block; margin-bottom: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.si-forms, .si-more { display: flex; flex-wrap: wrap; gap: 6px; }
.si-forms span { padding: 6px 11px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(var(--inkc), .05); }
.si-item { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border-radius: 13px; font-size: 12.5px; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.si-signs { display: inline-flex; gap: 4px; font-size: 17px; }
.si-signs .tile { width: auto; height: auto; min-width: 0; padding: 0; background: none; box-shadow: none; }
#siUse[hidden] { display: none; }
body.pad-open .book-scroll { padding-bottom: calc(var(--padh, 0px) + 20px); }


/* tags you gave: one row per chat, each tag a button that takes it back */
.gv-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 10px 0; box-shadow: 0 -1px 0 var(--line); }
.gv-row .face { width: 36px; height: 36px; font-size: 14px; }
.gv-main { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.gv-top { display: flex; align-items: center; gap: 8px; }
.gv-top b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 620; color: var(--cream-ink, var(--ink)); }
.gv-all { flex: none; padding: 3px 9px; border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--cream-ink3, var(--ink3)); box-shadow: inset 0 0 0 1px var(--line2); }
.gv-all:hover { color: #C24A40; box-shadow: inset 0 0 0 1px rgba(194, 74, 64, .45); }
.tagchip.out { padding-right: 6px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.tagchip.out i { display: grid; width: 16px; height: 16px; border-radius: 50%; place-items: center; font-style: normal; font-size: 9px; color: var(--cream-ink3, var(--ink3)); background: rgba(var(--inkc), .08); }
.tagchip.out:hover { background: rgba(194, 74, 64, .09); box-shadow: inset 0 0 0 1px rgba(194, 74, 64, .4); }
.tagchip.out:hover i { color: #FFFFFF; background: #C24A40; }
#givenTags .tag-from { margin: -2px 0 4px; }
#givenTags .eyebrow { margin: 0 0 6px; padding: 0; }
#givenTags .gv-row:last-child { padding-bottom: 2px; }

/* the two tag panels share one left edge and one rhythm */
.you-panel.you-tags { padding: 14px; }
.you-tags .eyebrow { margin: 0 0 8px; padding: 0; }
.you-tags .sub, .you-tags .tag-from { margin: 8px 0 0; padding: 0; text-align: left; font-size: 11.5px; line-height: 1.4; }
#givenTags .tag-from { margin: 0 0 6px; }
.gv-row { box-shadow: none; border-top: 1px solid var(--line); padding: 11px 0 9px; }
.gv-row:last-child { padding-bottom: 0; }
#myTraits .sub, #profTraits .sub, #givenTags .sub { padding: 0 !important; text-align: left !important; max-width: none; }


/* tiles never run into each other: one short word each, clipped if it must be */
.gi-act { min-width: 0; overflow: hidden; }
.gi-act small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.you-acts .gi-act small { font-size: 11.5px; }

/* =====================================================================
   Search, finished
   a field with clear and close, scope chips, a useful empty state,
   and results as tidy rows under counted headings
   ===================================================================== */

#searchCard { padding-top: 14px; }
.search-top { flex: none; display: flex; align-items: center; gap: 8px; }
.search-top .search-box { flex: 1; min-width: 0; height: 46px; padding: 0 6px 0 14px; background: rgba(var(--inkc), .045); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .15s, background .15s; }
.search-top .search-box:focus-within { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--a2), 0 8px 16px -12px rgba(var(--accc), .9); }
.search-clear { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--ink2); background: rgba(var(--inkc), .09); }
.search-clear[hidden] { display: none; }
.search-close { flex: none; padding: 10px 8px 10px 6px; font-size: 14px; font-weight: 600; color: var(--a4); }
.search-scopes { flex: none; display: flex; gap: 6px; margin: 12px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.search-scopes .chip-f { height: 30px; padding: 0 13px; font-size: 12.5px; }
#searchCard .search-out { margin: 6px -10px 0; padding: 0 2px 10px; }
.so-head { display: flex; align-items: center; gap: 7px; padding: 16px 10px 7px; }
.so-head small { padding: 1px 7px; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0; color: var(--a4); background: rgba(var(--accc), .13); }
.so-row { padding: 9px 10px; border-radius: 14px; gap: 12px; }
.so-row + .so-row { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
.so-row:hover { background: rgba(var(--accc), .08); border-radius: 14px; box-shadow: none; }
.so-row .face { width: 40px; height: 40px; }
.so-row > b, .so-main > b { font-size: 14.5px; font-weight: 620; }
.so-signs { gap: 7px; padding: 2px 10px; }
.so-signs .key { border-radius: 14px; }

/* nothing typed yet */
.so-recent { display: flex; gap: 4px; padding: 2px 6px 4px; overflow-x: auto; scrollbar-width: none; }
.so-rc { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 14px; }
.so-rc:hover { background: rgba(var(--accc), .08); }
.so-rc .face { width: 46px; height: 46px; font-size: 17px; }
.so-rc small { max-width: 100%; font-size: 11px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-tips { display: flex; flex-direction: column; margin: 0 8px; border-radius: 16px; background: rgba(var(--inkc), .03); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.so-tip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.so-tip + .so-tip { box-shadow: 0 -1px 0 var(--line); }
.so-tip span { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: var(--a4); background: rgba(var(--accc), .12); }
.so-tip b { display: block; font-size: 13.5px; font-weight: 620; color: var(--ink); }
.so-tip small { font-size: 11.5px; color: var(--ink3); }
.so-empty b { font-size: 15px; color: var(--ink); }


/* =====================================================================
   A person's card, finished
   photo and name on their colour, four round actions, the bond as a bar,
   today's answer, tags, and the groups you share
   ===================================================================== */

#personCard { display: flex; flex-direction: column; padding-top: 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; scrollbar-width: none; top: auto; max-height: calc(100% - 56px); }
#personCard::-webkit-scrollbar { display: none; }
#personCard > * { flex: none; }
#personCard .gi-hero .face { width: 80px; height: 80px; font-size: 32px; border-radius: 50%; }
#personCard .gi-hero { padding-bottom: 12px; }
.pi-name { font-size: 22px; }
.pi-name.mixed-name { justify-content: center; }
.gq.danger span { color: #C24A40; background: rgba(194, 74, 64, .09); box-shadow: inset 0 0 0 1px rgba(194, 74, 64, .22); }
.gq.danger small { color: #C24A40; }
.gq.danger:hover span { background: rgba(194, 74, 64, .16); }
.gq small { white-space: nowrap; }

.pi-bond { padding: 12px 14px; border-radius: 16px; background: rgba(var(--inkc), .03); box-shadow: inset 0 0 0 1px var(--line); }
.pb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pb-top b { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.pb-top b svg.g { width: 15px; height: 15px; stroke-width: 2.2; color: var(--a2); }
.pb-top small { font-size: 11.5px; color: var(--ink3); }
.pb-bar { height: 6px; margin-top: 9px; border-radius: 3px; background: rgba(var(--accc), .16); overflow: hidden; }
.pb-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--a2), var(--a4)); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .6s var(--ease); }

.pi-block, .pi-sec { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.pi-block:empty { display: none; }
.pi-tags { margin: 0; gap: 0; }
.pi-block > small, .pi-sec > small { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.pi-none { margin: 0; font-size: 12.5px; color: var(--ink3); }
.pi-today { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; text-align: left; background: rgba(var(--accc), .08); box-shadow: inset 0 0 0 1px rgba(var(--accc), .24); }
.pi-today .mini { gap: 7px; flex: none; }
.pi-today .mini .tile { font-size: 19px; }
.pi-today > span:first-child:not(.mini) { display: grid; font-size: 17px; color: var(--a4); }
.pi-today b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-today i { display: grid; font-size: 13px; font-style: normal; color: var(--ink3); transform: rotate(180deg); }
.pi-groups { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.pi-grp { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 18px; background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line); }
.pi-grp .face { width: 28px; height: 28px; font-size: 12px; border-radius: 10px; }
.pi-grp b { font-size: 13px; font-weight: 620; white-space: nowrap; }

/* the toast reads the same in every theme: light text on a deep plate */
.toast { background: #241821; color: #FFFFFF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 30px -10px rgba(0, 0, 0, .6); }
.toast button { color: #F2C3CC; }
:root:is([data-theme="navy"], [data-theme="emerald"]) .toast { background: #F6F0E2; color: #1A2238; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .toast button { color: #8C6E2C; }
:root[data-theme="ivory"] .toast button { color: #9FE0C2; }


/* the app frame is clipped, not scrollable: a focus or a scroll-into-view can no longer push it sideways */
#app { overflow: hidden; overflow: clip; }
html, body { overflow: hidden; max-width: 100%; }


/* older Bols are a tap away */
.earlier { align-self: center; margin: 4px 0 6px; padding: 7px 14px; border-radius: 14px; font-size: 12px; font-weight: 650; color: var(--a4); background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--accc), .3), 0 4px 10px -8px rgba(var(--inkc), .5); }
.day { margin-top: 12px; }


/* files waiting to be fetched, and photos that are still loading */
.linkbox.filewait { width: 100%; text-align: left; }
.linkbox.filewait.busy i { animation: pzWait 1.2s ease-in-out infinite; }
.pic.wait { width: 200px; height: 150px; background: rgba(var(--inkc), .06); }

/* backup and restore */
#backupCard { z-index: 12; }
body.over-gate #backupCard { z-index: 62; } body.over-gate #scrim { z-index: 61; }
.bk-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px; }
.bk-save { display: flex; flex-direction: column; gap: 10px; }
#backupCard.only-restore .bk-save { display: none; }
#backupCard .sub { margin: 0; font-size: 12.5px; line-height: 1.5; }
.bk-eye { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a4); }
#bkKey { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
#backupCard .link-acts { margin-top: 0; }
.bk-last { color: var(--ink3) !important; }
.bk-file { flex: none; width: 100%; }
#bkRestoreBox { display: flex; flex-direction: column; gap: 9px; }
#bkRestoreBox[hidden] { display: none; }
.bk-name { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
#bkKeyIn { letter-spacing: .06em; text-transform: uppercase; }
.gate-restore { margin-top: 12px; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--a4); }
.gate-restore:hover { background: rgba(var(--accc), .1); }

/* numbers */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-fig { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(var(--inkc), .03); box-shadow: inset 0 0 0 1px var(--line); }
.st-fig span { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--a4); background: rgba(var(--accc), .13); }
.st-fig b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-fig small { font-size: 11.5px; color: var(--ink2); }
.st-fig i { grid-column: 2; font-style: normal; font-size: 10.5px; color: var(--ink3); }
.st-note { margin: 12px 2px 0 !important; font-size: 11.5px; line-height: 1.5; }

/* the update bar */
.update { position: fixed; z-index: 85; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 11px; padding: 11px 11px 11px 13px; border-radius: 20px;
  color: #FFFFFF; background: linear-gradient(160deg, #3A2632, #1F141B); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 22px 40px -14px rgba(0, 0, 0, .65); animation: kbUp .35s var(--ease) both; }
.update[hidden] { display: none; }
.up-ic { flex: none; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; color: var(--on-gold); background: linear-gradient(160deg, var(--a1), var(--a3)); }
.up-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.up-main b { font-size: 14px; font-weight: 680; }
.up-main small { font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.up-later { flex: none; padding: 8px 6px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.up-now { flex: none; height: 36px; padding: 0 15px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #1F141B; background: #FFFFFF; transition: transform .12s var(--ease); }
.up-now:active { transform: scale(.96); }
.up-now:disabled { opacity: .6; }


/* the update bar, slim: one line of title, one quiet line under it, a small pill and a close mark */
.update { left: 12px; right: 12px; max-width: 400px; gap: 9px; padding: 7px 7px 7px 9px; border-radius: 999px; background: linear-gradient(160deg, rgba(58, 38, 50, .96), rgba(31, 20, 27, .96)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 14px 28px -14px rgba(0, 0, 0, .6); }
.up-ic { width: 30px; height: 30px; border-radius: 50%; font-size: 15px; }
.up-main { gap: 0; }
.up-main b { font-size: 12.5px; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-main small { font-size: 10.5px; line-height: 1.25; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-now { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.up-later { width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: rgba(255, 255, 255, .55); }
.up-later:hover { color: #FFFFFF; background: rgba(255, 255, 255, .1); }

.update { padding-right: 8px; }


/* =====================================================================
   All of today's Bols
   a "View all" ticket at the end of the wall, and a list card: each Bol
   as filled signs with its reading, a reaction and a reply; your own with
   what it gathered today and till now
   ===================================================================== */
.tk.all { align-items: flex-start; justify-content: center; gap: 5px; min-width: 112px; background: linear-gradient(160deg, rgba(var(--accc), .14), rgba(var(--accc), .05)); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .34); position: relative; }
.tk.all b { font-size: 13.5px; font-weight: 700; color: var(--a4); }
.tk.all > i { position: absolute; right: 10px; top: 12px; display: grid; font-size: 13px; color: var(--a4); transform: rotate(180deg); font-style: normal; }
.tk-all-faces { display: flex; padding-left: 6px; }
.tk-all-faces .face { width: 26px; height: 26px; font-size: 11px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); }

.ba-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px; margin: 0 -6px; padding: 2px 6px calc(16px + env(safe-area-inset-bottom)); }
.ba-list::-webkit-scrollbar { display: none; }
.ba-q { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 18px; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 14px 24px -16px rgba(var(--accc), .9); }
.ba-q small { grid-column: 1 / 3; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .82; }
.ba-q p { margin: 0; font-size: 14px; font-weight: 620; }
.ba-signs { display: flex; gap: 5px; flex: none; }
.ba-signs .tile { width: 38px; height: 38px; padding: 0; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #FFFFFF; background: linear-gradient(145deg, var(--c1, #5F4A57), var(--c2, #2A1A24)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 8px -5px var(--c2, #2A1A24); }
.ba-signs .tile svg.g { stroke-width: 2.1; animation: none; }
.ba-signs.q .tile { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ba-signs .tile.k-do { --c1: #F5AE45; --c2: #C87400; } .ba-signs .tile.k-place { --c1: #2BB7C4; --c2: #0E7C8C; } .ba-signs .tile.k-time { --c1: #8E7DF2; --c2: #5646C0; } .ba-signs .tile.k-feel { --c1: #F26D9E; --c2: #C2356B; }
.ba-signs .tile.k-people { --c1: #58C267; --c2: #2A8537; } .ba-signs .tile.k-adj { --c1: #C583F2; --c2: #8E3FC4; } .ba-signs .tile.k-obj { --c1: #B8926C; --c2: #7A5230; } .ba-signs .tile.k-work { --c1: #5AA2F5; --c2: #2F6FDB; }
.ba-signs .tile.k-money { --c1: #EDC04A; --c2: #B88A0B; } .ba-signs .tile.k-civic { --c1: #EE7B6C; --c2: #BC4033; }
.ba-seal { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-style: normal; color: var(--ink3); background: color-mix(in srgb, var(--a, var(--a2)) 14%, rgba(var(--inkc), .05)); }
.ba-eye { margin: 8px 4px 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.ba-row { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--a, var(--a2)) 7%, var(--card)), var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a, var(--a2)) 22%, var(--line)); animation: kbUp .4s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
.ba-row.mine { --a: var(--a2); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .4); }
.ba-top { display: flex; align-items: center; gap: 9px; }
.ba-top .face { width: 32px; height: 32px; font-size: 13px; border-radius: 50%; flex: none; }
.ba-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 650; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ba-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--a4); background: rgba(var(--accc), .1); box-shadow: inset 0 0 0 1px rgba(var(--accc), .24); transition: transform .12s var(--ease), background-color .2s; }
.ba-btn:active { transform: scale(.9); } .ba-btn:hover { background: rgba(var(--accc), .18); }
.ba-btn .tile { width: 22px; height: 22px; padding: 0; font-size: 19px; background: none; box-shadow: none; color: var(--k-feel, var(--a2)); display: grid; place-items: center; }
.ba-btn.on { background: rgba(var(--accc), .2); box-shadow: inset 0 0 0 1.5px var(--a2); }
.ba-answer { height: 34px; padding: 0 16px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); }
.ba-body { display: flex; align-items: center; gap: 12px; }
.ba-mean { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; font-weight: 560; line-height: 1.35; color: var(--ink2); }
.ba-row.sealed .ba-mean { color: var(--ink3); font-weight: 500; }
.ba-rx { display: flex; justify-content: space-between; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line); animation: kbUp .25s var(--ease) both; }
.ba-rx[hidden] { display: none; }
.ba-rx button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; transition: transform .12s var(--ease), background-color .2s; }
.ba-rx button .tile { font-size: 22px; background: none; box-shadow: none; padding: 0; width: auto; height: auto; }
.ba-rx button.on { background: rgba(var(--accc), .18); box-shadow: inset 0 0 0 1.5px var(--a2); } .ba-rx button:active { transform: scale(.88); }
.ba-figs { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-figs span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 12px; font-size: 11.5px; color: var(--ink2); background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line); }
.ba-figs span svg.g { width: 14px; height: 14px; color: var(--a4); stroke-width: 2.1; }
.ba-figs b { font-size: 13.5px; font-weight: 720; color: var(--ink); font-variant-numeric: tabular-nums; }
.ba-figs .all { margin-left: auto; background: rgba(var(--accc), .1); box-shadow: inset 0 0 0 1px rgba(var(--accc), .26); }
.ba-figs .all b + svg.g { margin-left: 5px; }

.ba-rx button .tile { color: var(--a4); }


/* =====================================================================
   On a wide screen: a slimmer list on the left with room at its edge, no
   dividing line, and the conversation as a card raised a little above it
   ===================================================================== */
@media (min-width: 880px) {
  .app { grid-template-columns: 336px minmax(0, 1fr); }
  .side { border-right: 0; padding-right: 14px; }
  .sheet { margin: 12px 12px 12px 0; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px rgba(var(--inkc), .06), 0 18px 40px -22px rgba(var(--inkc), .5), 0 4px 12px -6px rgba(var(--inkc), .18); }
}

/* installing bolo as an app */
#installCard { z-index: 12; }
body.over-gate #installCard { z-index: 62; }
.ins-hero { display: flex; align-items: center; gap: 14px; }
.ins-hero img { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 20px -10px rgba(var(--accc), .8), 0 0 0 1px var(--line); }
.ins-hero b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.ins-hero small { font-size: 12.5px; color: var(--ink3); }
#installCard .sub { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; }
.ins-steps { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: st; }
.ins-steps li { counter-increment: st; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; color: var(--ink2); background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line); }
.ins-steps li::before { content: counter(st); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); }
.ins-steps b { color: var(--ink); }
.ins-go { margin-top: 16px; width: 100%; height: 50px; border-radius: 16px; font-size: 15.5px; font-weight: 700; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 12px 22px -12px rgba(var(--accc), .9); }
.ins-go:active { transform: scale(.98); }
.ins-skip { margin-top: 8px; width: 100%; height: 40px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink3); }


/* the six code boxes share whatever width the card has, so they never run past its edge */
.gate-boxes { width: 100%; max-width: 318px; justify-content: center; gap: 6px; }
.gate-boxes i { flex: 1 1 0; min-width: 0; width: auto; max-width: 44px; }
.gate-boxes i:nth-child(4) { margin-left: 12px; }
.gate-boxes i:nth-child(4)::before { left: -13px; }
.gate-pad { max-width: 100%; grid-template-columns: repeat(3, minmax(0, 68px)); justify-content: center; }
.gate-note { max-width: 100%; }

/* a key's name floats above everything (it used to sit inside the scrolling keyboard, which cut it off) */
.kk:hover::after, .kk:active::after { content: none !important; }
.keytip { position: fixed; left: 0; top: 0; z-index: 95; padding: 6px 10px; border-radius: 9px; white-space: nowrap; font: 600 12px/1 var(--font); color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 8px 16px -8px rgba(var(--inkc), .6); pointer-events: none; opacity: 0; transition: opacity .12s; }
.keytip.on { opacity: 1; }
.keytip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 2px; background: var(--a4); transform: rotate(45deg); }

/* who and when: each button is as wide as its sign and word need, with room on both sides */
.marks { overflow-x: auto; scrollbar-width: none; } .marks::-webkit-scrollbar { display: none; }
.mb { flex: 1 1 auto; min-width: max-content; padding: 0 10px; gap: 6px; }
.mb small { white-space: nowrap; }
.mb svg.g { margin: 0; }

.marks { gap: 4px; } .mb { padding: 0 6px; gap: 4px; } .mb small { font-size: 11.5px; } .mb-gap { width: 2px; }
@media (min-width: 420px) { .marks { gap: 6px; } .mb { padding: 0 10px; gap: 6px; } .mb small { font-size: 12px; } }


/* =====================================================================
   Two ways to compose
   a small switch at the left of the box: signs, or a typed sentence that
   turns into signs above the box as you write, ready to send with a tap
   ===================================================================== */
.mode { position: absolute; z-index: 2; left: 5px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; color: var(--a4); background: rgba(var(--accc), .1); box-shadow: inset 0 0 0 1px rgba(var(--accc), .26); transition: transform .12s var(--ease), background-color .2s; }
.mode:active { transform: scale(.9); }
.mode b { font-size: 14px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.mode span { display: none; font-size: 17px; }
.mode.on { color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 6px 12px -7px rgba(var(--accc), .9); }
.mode.on b { display: none; } .mode.on span { display: grid; }
.traywrap .tray { padding-left: 46px; }
.say-text { flex: 1; min-width: 0; height: 46px; padding: 0 46px 0 50px; border: 0; outline: 0; border-radius: 24px; font: 500 15.5px var(--font); color: var(--cream-ink, var(--ink)); background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .5), 0 1px 2px rgba(var(--inkc), .04); caret-color: var(--a2); }
:root:is([data-theme="navy"], [data-theme="emerald"]) .say-text { background: var(--card); }
.say-text::placeholder { color: var(--cream-ink3, var(--ink3)); font-weight: 450; }
.say-text[hidden], .tray[hidden] { display: none; }
.dock.text .keys { display: none; }

.say-prev { display: flex; align-items: stretch; gap: 8px; margin: 8px 10px 0; animation: kbUp .25s var(--ease) both; }
.say-prev[hidden] { display: none; }
.say-go { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 9px 12px 9px 10px; border-radius: 16px; text-align: left; background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(var(--accc), .4), 0 10px 20px -14px rgba(var(--accc), .8); transition: transform .12s var(--ease); }
.say-go:active { transform: scale(.985); }
.say-signs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 5px 2px 5px 5px; } .say-signs::-webkit-scrollbar { display: none; }
.say-signs .tile { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: #FFFFFF; background: linear-gradient(145deg, var(--c1, #5F4A57), var(--c2, #2A1A24)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 8px -5px var(--c2, #2A1A24); }
.say-signs .tile svg.g { stroke-width: 2.1; animation: none; }
.say-signs .tile.k-do { --c1: #F5AE45; --c2: #C87400; } .say-signs .tile.k-place { --c1: #2BB7C4; --c2: #0E7C8C; } .say-signs .tile.k-time { --c1: #8E7DF2; --c2: #5646C0; } .say-signs .tile.k-feel { --c1: #F26D9E; --c2: #C2356B; }
.say-signs .tile.k-people { --c1: #58C267; --c2: #2A8537; } .say-signs .tile.k-adj { --c1: #C583F2; --c2: #8E3FC4; } .say-signs .tile.k-obj { --c1: #B8926C; --c2: #7A5230; } .say-signs .tile.k-work { --c1: #5AA2F5; --c2: #2F6FDB; }
.say-signs .tile.k-money { --c1: #EDC04A; --c2: #B88A0B; } .say-signs .tile.k-civic { --c1: #EE7B6C; --c2: #BC4033; }
.say-signs .tile.k-char { width: 26px; margin-right: -3px; border-radius: 8px; font-size: 17px; }
.say-signs .mk { position: absolute; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: var(--c2, #2A1A24); background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.say-signs .mk svg.g { width: 9px; height: 9px; stroke-width: 3; } .say-signs .mk.who { left: -4px; top: -4px; } .say-signs .mk.when { right: -4px; bottom: -4px; }
.say-read { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 560; line-height: 1.35; color: var(--cream-ink2, var(--ink2)); }
.say-read::after { content: "Tap to send"; margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--a4); background: rgba(var(--accc), .12); }
.say-edit { flex: none; width: 44px; border-radius: 16px; display: grid; place-items: center; font-size: 19px; color: var(--a4); background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--accc), .3); }
.say-edit:active { transform: scale(.94); }
/* on a phone the conversation and the box stand above bolo's letter pad while it is open */
@media (max-width: 879px) { body.say-pad .dock { padding-bottom: var(--padh, 0px); } }


/* =====================================================================
   The composer, slimmed: one 42px box with small round controls inside
   it, and a smaller + and send beside it, all on one centre line
   ===================================================================== */
.compose { align-items: center; gap: 7px; padding: 7px 9px 9px; }
.make { width: 34px; height: 34px; font-size: 18px; box-shadow: inset 0 0 0 1.25px rgba(var(--accc), .45); background: var(--card); }
.make svg.g { stroke-width: 2.2; }
.send { width: 38px; height: 38px; font-size: 18px; box-shadow: 0 5px 12px -6px rgba(var(--accc), .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.send svg.g { stroke-width: 2.3; }
.send:disabled { box-shadow: none; }
.traywrap .tray, .say-text { height: 42px; border-radius: 21px; }
.traywrap .tray { padding-left: 40px; padding-right: 38px; box-shadow: inset 0 0 0 1px rgba(var(--inkc), .1); }
.traywrap .tray.has { padding-right: 70px; }
.say-text { padding: 0 40px 0 42px; font-size: 15px; box-shadow: inset 0 0 0 1.25px rgba(var(--accc), .42); }
.mode { left: 5px; width: 32px; height: 32px; margin-top: -16px; box-shadow: inset 0 0 0 1px rgba(var(--accc), .22); }
.mode b { font-size: 12.5px; } .mode span { font-size: 15px; }
.mode.on { box-shadow: 0 4px 9px -6px rgba(var(--accc), .9); }
.attach { right: 4px; width: 32px; height: 32px; margin-top: -16px; font-size: 18px; }
.attach.erase { right: 36px; }
.tray-hint { font-size: 14px; padding-left: 2px; }

/* the row of ready replies keeps clear of the line under it */
.smart { padding-top: 9px; padding-bottom: 9px; }
.compose { padding-top: 8px; }


/* =====================================================================
   The text-mode preview, finished: one quiet card. A small heading, the
   signs on a soft bed that fades at its edge, how they read, and a single
   rosewood Send. The change-signs control is a small round button in the
   corner instead of a block beside the card.
   ===================================================================== */
.say-prev { position: relative; display: block; margin: 8px 10px 0; border-radius: 20px; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 92%, var(--a2))); box-shadow: 0 0 0 1px rgba(var(--accc), .2), 0 14px 26px -18px rgba(var(--accc), .75), 0 2px 6px -3px rgba(var(--inkc), .12); overflow: hidden; }
.say-prev::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--a1), var(--a2) 40%, transparent); opacity: .7; }
.say-go { width: 100%; gap: 8px; padding: 11px 12px 11px; border-radius: 0; background: none; box-shadow: none; }
.say-go::before { content: "In signs"; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--a4); opacity: .85; }
.say-go:active { transform: none; background: rgba(var(--accc), .05); }
.say-signs { gap: 6px; margin: 0 -12px; padding: 5px 46px 6px 12px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent); }
.say-signs .tile { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.say-signs .tile.k-char { width: 26px; border-radius: 8px; }
.say-read { align-items: flex-end; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.4; color: var(--cream-ink, var(--ink)); }
.say-read::after { content: "Send"; align-self: flex-end; padding: 6px 13px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 6px 12px -7px rgba(var(--accc), .9); }
.say-edit { position: absolute; right: 9px; top: 9px; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; color: var(--a4); background: rgba(var(--accc), .1); box-shadow: inset 0 0 0 1px rgba(var(--accc), .24); }
.say-edit:hover { background: rgba(var(--accc), .18); }
.say-prev::before { display: none; }
.say-prev { margin-bottom: 3px; }


/* whether the receiver may read the meaning: an eye in the box, struck through when the meaning is kept back */
.attach.mean-btn { right: 36px; color: var(--a4); }
.attach.mean-btn.off { color: var(--cream-ink3, var(--ink3)); }
.attach.mean-btn.off::after, .stamp .hm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62%; height: 1.8px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(-42deg); box-shadow: 0 0 0 1.5px var(--card); }
.attach.erase { right: 68px; }
.traywrap .tray { padding-right: 70px; } .traywrap .tray.has { padding-right: 102px; }
.say-text { padding-right: 72px; }
.stamp .hm { position: relative; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-right: 3px; font-style: normal; vertical-align: -2px; opacity: .8; }
.stamp .hm svg.g { width: 12px; height: 12px; } .stamp .hm::after { box-shadow: none; height: 1.4px; width: 100%; }
.read.kept > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.read.kept span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; opacity: .85; }
.read.kept span svg.g { flex: none; width: 13px; height: 13px; }
.read.kept .text-btn { flex: none; height: 28px; min-height: 0; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.read.kept > div { flex-wrap: nowrap; }


/* =====================================================================
   Notices, finished: a plum glass pill that drops in from the top with a
   small round mark for its kind, a heading when there is one, one action
   as a light pill, and a hairline that runs out as it is about to leave
   ===================================================================== */
.toast { z-index: 90; top: calc(14px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 11px; width: max-content; max-width: min(400px, calc(100vw - 24px)); padding: 9px 14px 9px 9px; border-radius: 20px; overflow: hidden;
  font-size: 13.5px; font-weight: 520; line-height: 1.35; text-align: left; white-space: normal; color: #FFFFFF; background: linear-gradient(160deg, rgba(58, 38, 50, .96), rgba(31, 20, 27, .97)); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 18px 34px -14px rgba(0, 0, 0, .6), 0 4px 10px -4px rgba(0, 0, 0, .3); animation: toastIn .42s cubic-bezier(.2, 1.2, .3, 1) both; }
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
.t-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-style: normal; color: #FFFFFF; background: linear-gradient(160deg, var(--a1), var(--a3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.t-ic svg.g { stroke-width: 2.3; }
.t-ok .t-ic { background: linear-gradient(160deg, #4CC38A, #1F8F5F); } .t-bad .t-ic { background: linear-gradient(160deg, #EE7B6C, #BC4033); } .t-ask .t-ic { background: linear-gradient(160deg, #EDC04A, #B88A0B); }
.t-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t-tx b { font-size: 13.5px; font-weight: 680; letter-spacing: -.005em; }
.t-tx small { font-size: 12px; font-weight: 450; line-height: 1.35; color: rgba(255, 255, 255, .74); }
.toast button { flex: none; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #1F141B; background: #FFFFFF; transition: transform .12s var(--ease); }
.toast button:active { transform: scale(.95); }
.t-bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--a1), rgba(255, 255, 255, .5)); transform-origin: 0 50%; animation: toastBar var(--ms, 2600ms) linear both; opacity: .7; text-decoration: none; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }


/* =====================================================================
   Shared things as signs: one large sign for a photo, a document, a
   recording or a link, each in its own colour; a tap opens what it is
   ===================================================================== */
.att { --c1: #7B6A74; --c2: #4A3540; position: relative; flex: none; width: 66px; height: 66px; margin: 2px 0 6px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; color: #FFFFFF; background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .34), inset 0 -3px 6px rgba(0, 0, 0, .14), 0 12px 20px -12px var(--c2); transition: transform .14s var(--ease); }
.att:active { transform: scale(.94); }
.att svg.g { stroke-width: 1.9; }
.a-photo { --c1: #2FC2B5; --c2: #0E8478; } .a-pdf { --c1: #F0776A; --c2: #BE3F33; } .a-doc { --c1: #5AA2F5; --c2: #2F6FDB; } .a-sheet { --c1: #58C267; --c2: #2A8537; }
.a-video { --c1: #9B8AF5; --c2: #5646C0; } .a-audio { --c1: #F5AE45; --c2: #C87400; } .a-link { --c1: var(--a1); --c2: var(--a4); } .a-file { --c1: #8C7C86; --c2: #56434D; }
.att small { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; padding: 2px 7px; border-radius: 999px; font: 700 9.5px/1.2 var(--font); letter-spacing: .06em; color: var(--c2); background: #FFFFFF; box-shadow: 0 2px 5px -1px rgba(0, 0, 0, .3); }
.att.wait { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .34), 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--c2) 55%, transparent); }
.att-dl { position: absolute; right: -5px; top: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-style: normal; color: var(--c2); background: #FFFFFF; box-shadow: 0 2px 5px -1px rgba(0, 0, 0, .35); }
.att-dl svg.g { stroke-width: 2.6; transform: rotate(90deg); }
.att.busy svg.g { animation: pzWait 1.2s ease-in-out infinite; }
.bol.me .att { margin-left: auto; }
.att.sm { width: 46px; height: 46px; margin: 0; border-radius: 15px; font-size: 23px; }

#attCard { display: flex; flex-direction: column; gap: 12px; }
#attCard[hidden] { display: none; }
.att-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.att-head div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.att-head b { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-head small { font-size: 12.5px; color: var(--ink3); }
.att-pic { display: block; width: 100%; max-height: 46vh; object-fit: contain; border-radius: 16px; background: rgba(var(--inkc), .05); box-shadow: inset 0 0 0 1px var(--line); }
.att-audio { width: 100%; }
.att-url { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--inkc), .04); box-shadow: inset 0 0 0 1px var(--line); }
.att-url small { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.att-url code, .att-url span { font: 500 13px/1.45 var(--font); color: var(--ink); word-break: break-all; overflow-wrap: anywhere; }
.att-url code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.att-acts { display: flex; gap: 8px; margin-top: 2px; }
.att-act { flex: 1; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 14.5px; font-weight: 680; color: var(--a4); background: rgba(var(--accc), .09); box-shadow: inset 0 0 0 1px rgba(var(--accc), .26); text-decoration: none; }
.att-act.strong { color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 10px 18px -12px rgba(var(--accc), .9); }
.att-act:active { transform: scale(.98); } .att-act:disabled { opacity: .6; }


/* =====================================================================
   Where you are: two choices in the share card, a place sign in the
   conversation (it breathes while live), and a card that draws the place
   as a point on rings, with how far it is from you if you ask
   ===================================================================== */
.share-loc { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sl-btn, .sl-live { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 11px 12px; border-radius: 16px; text-align: left; background: rgba(var(--inkc), .035); box-shadow: inset 0 0 0 1px var(--line); }
.sl-btn > span, .sl-ic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; color: #FFFFFF; background: linear-gradient(150deg, #4FB9E8, #1F7FB8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.sl-btn b, .sl-tx b { font-size: 14.5px; font-weight: 680; color: var(--ink); } .sl-btn small, .sl-tx small { font-size: 12px; color: var(--ink3); }
.sl-btn:active { transform: scale(.985); }
.sl-live { grid-template-columns: auto 1fr; } .sl-ic { grid-row: 1; background: linear-gradient(150deg, #58C267, #2A8537); } .sl-tx { display: flex; flex-direction: column; }
.sl-dur { grid-column: 1 / 3; display: flex; gap: 6px; margin-top: 10px; }
.sl-dur button { flex: 1; height: 36px; border-radius: 12px; font-size: 13px; font-weight: 650; color: var(--a4); background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--accc), .3); }
.sl-dur button:active { transform: scale(.96); background: rgba(var(--accc), .12); }

.a-place { --c1: #4FB9E8; --c2: #1F7FB8; }
.att.live { --c1: #58C267; --c2: #2A8537; animation: liveBreath 2.2s ease-in-out infinite; }
@keyframes liveBreath { 50% { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .34), 0 0 0 7px rgba(42, 133, 55, .16), 0 12px 20px -12px var(--c2); } }

.loc-radar { position: relative; height: 190px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(79, 185, 232, .2), rgba(79, 185, 232, .05) 60%, rgba(var(--inkc), .03)); box-shadow: inset 0 0 0 1px var(--line); }
.loc-radar.live { background: radial-gradient(circle at 50% 50%, rgba(88, 194, 103, .24), rgba(88, 194, 103, .05) 60%, rgba(var(--inkc), .03)); }
.loc-radar > i { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(31, 127, 184, .28); }
.loc-radar > i:nth-child(2) { width: 130px; height: 130px; margin: -65px; opacity: .7; } .loc-radar > i:nth-child(3) { width: 200px; height: 200px; margin: -100px; opacity: .45; }
.loc-radar.live > i { box-shadow: inset 0 0 0 1.5px rgba(42, 133, 55, .32); animation: ringOut 2.6s ease-out infinite; } .loc-radar.live > i:nth-child(2) { animation-delay: .5s; } .loc-radar.live > i:nth-child(3) { animation-delay: 1s; }
@keyframes ringOut { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.loc-pin { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 27px; color: #FFFFFF; background: linear-gradient(150deg, #4FB9E8, #1F7FB8); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .34), 0 12px 20px -10px #1F7FB8; transition: transform .6s var(--ease); }
.loc-radar.live .loc-pin { background: linear-gradient(150deg, #58C267, #2A8537); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .34), 0 12px 20px -10px #2A8537; }
/* asked "how far from me": you sit at the centre and the place moves out along its direction */
.loc-radar.far .loc-pin { transform: rotate(var(--deg)) translateY(-62px) rotate(calc(-1 * var(--deg))); }
.loc-me { position: absolute; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 0 0 3px var(--card); }
.loc-me[hidden] { display: none; }
.loc-dist { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--ink2); }
.att-copy { align-self: center; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--a4); }
.loc-dist { bottom: auto; top: 10px; left: 50%; right: auto; translate: -50% 0; padding: 4px 11px; border-radius: 999px; white-space: nowrap; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(var(--inkc), .4); }
.loc-dist:empty { display: none; }
.loc-radar.far .loc-pin { transform: rotate(var(--deg)) translateY(-56px) rotate(calc(-1 * var(--deg))) scale(.85); }
.loc-radar { padding-top: 18px; }


/* a colour sign is a drop of that colour: on a key it shows on its own, in a Bol it sits on a pale chip */
svg.g .f.solid[d^="M12 3.500c4 5"] { fill: var(--ink-drop, currentColor); stroke: none; opacity: 1; }
svg.g:has(.f.solid[d^="M12 3.500c4 5"]) > path:first-child { stroke: rgba(var(--inkc), .35); stroke-width: 1.2; }
.bubble .signs .tile:has(.f.solid[d^="M12 3.500c4 5"]), .say-signs .tile:has(.f.solid[d^="M12 3.500c4 5"]), .ba-signs .tile:has(.f.solid[d^="M12 3.500c4 5"]), .tk-signs .tile:has(.f.solid[d^="M12 3.500c4 5"]) { background: linear-gradient(145deg, #FFFFFF, #EEE7E4); box-shadow: inset 0 0 0 1px rgba(var(--inkc), .12), 0 1px 2px rgba(var(--inkc), .15); }


/* =====================================================================
   The in-app notice, finished: a glass card that drops in with the
   sender's face, their name and "now", the signs as filled chips, what
   they say, and a small arrow to open the chat
   ===================================================================== */
.ping { z-index: 88; top: calc(10px + env(safe-area-inset-top)); width: min(calc(100vw - 20px), 420px); align-items: center; gap: 12px; padding: 11px 12px 11px 11px; border-radius: 22px; cursor: pointer; border: 0;
  color: var(--ink); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(var(--accc), .18), 0 22px 40px -18px rgba(var(--inkc), .55), 0 6px 14px -8px rgba(var(--inkc), .25); }
.ping[hidden] { display: none; }
.ping.in { animation: toastIn .46s cubic-bezier(.2, 1.2, .3, 1) both; }
.ping > .face { flex: none; width: 44px; height: 44px; font-size: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px rgba(var(--accc), .35); }
.ping-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ping-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ping-top b, .ping b { font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ping-top small { flex: none; font-size: 11px; font-weight: 600; color: var(--a4); }
.ping-signs { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 16px; overflow: hidden; }
.ping-signs .tile { position: relative; flex: none; width: 28px; height: 28px; padding: 0; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: #FFFFFF; background: linear-gradient(145deg, var(--c1, #5F4A57), var(--c2, #2A1A24)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.ping-signs .tile svg.g { stroke-width: 2.2; animation: none; }
.ping-signs .tile.k-do { --c1: #F5AE45; --c2: #C87400; } .ping-signs .tile.k-place { --c1: #2BB7C4; --c2: #0E7C8C; } .ping-signs .tile.k-time { --c1: #8E7DF2; --c2: #5646C0; } .ping-signs .tile.k-feel { --c1: #F26D9E; --c2: #C2356B; }
.ping-signs .tile.k-people { --c1: #58C267; --c2: #2A8537; } .ping-signs .tile.k-adj { --c1: #C583F2; --c2: #8E3FC4; } .ping-signs .tile.k-obj { --c1: #B8926C; --c2: #7A5230; } .ping-signs .tile.k-work { --c1: #5AA2F5; --c2: #2F6FDB; }
.ping-signs .tile.k-money { --c1: #EDC04A; --c2: #B88A0B; } .ping-signs .tile.k-civic { --c1: #EE7B6C; --c2: #BC4033; }
.ping-signs .mk { display: none; }
.ping-signs > i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.ping-say { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ping-go { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--a4); background: rgba(var(--accc), .1); transform: rotate(180deg); }
.ping .sub { display: none; }


/* the box you write in, and the tabs at the foot, stand clear of the phone's own buttons and gesture bar */
.compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.dock.kb .compose { padding-bottom: 8px; }
.dock.kb .keys { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
@media (max-width: 879px) {
  .compose, .dock:not(.kb) .compose { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .dock.kb .compose, body.say-pad .dock .compose { padding-bottom: 8px; }
  .dock.kb .keys { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .textpad { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}


/* the one-time note on a first chat: short, warm, and out of the way after one tap */
.card.early { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 28px 24px calc(22px + env(safe-area-inset-bottom)); overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 86%, var(--a2)), var(--card) 46%); }
.card.early[hidden] { display: none; }
.early-art { position: relative; width: 132px; height: 96px; display: grid; place-items: center; }
.early-art > span { width: 68px; height: 68px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; color: #FFFFFF; background: linear-gradient(155deg, var(--a1), var(--a4)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 18px 28px -14px rgba(var(--accc), .95); animation: earlyPop .6s cubic-bezier(.2, 1.3, .3, 1) both; }
.early-art > i { position: absolute; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; font-style: normal; color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 14px -8px rgba(var(--inkc), .5); animation: earlyPop .6s cubic-bezier(.2, 1.3, .3, 1) both, earlyBob 4s ease-in-out infinite; }
.early-art > i:nth-of-type(1) { left: 0; top: 8px; background: linear-gradient(150deg, #F26D9E, #C2356B); animation-delay: .12s, 0s; }
.early-art > i:nth-of-type(2) { right: 0; top: 2px; background: linear-gradient(150deg, #5AA2F5, #2F6FDB); animation-delay: .2s, -1.3s; }
.early-art > i:nth-of-type(3) { right: 10px; bottom: 0; background: linear-gradient(150deg, #58C267, #2A8537); animation-delay: .28s, -2.6s; }
@keyframes earlyPop { from { opacity: 0; transform: scale(.5); } } @keyframes earlyBob { 50% { translate: 0 -5px; } }
.card.early h2 { margin: 16px 0 8px; font-size: 21px; font-weight: 720; letter-spacing: -.02em; color: var(--ink); }
.card.early p { margin: 0; max-width: 30ch; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.card.early .early-soft { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--a4); }
.early-ok { margin-top: 20px; width: 100%; max-width: 260px; height: 48px; border-radius: 16px; font-size: 15px; font-weight: 700; color: #FFFFFF; background: linear-gradient(160deg, var(--a2), var(--a4)); box-shadow: 0 12px 22px -12px rgba(var(--accc), .9); }
.early-ok:active { transform: scale(.98); }
