/* David, by Western Web Pro. Voice first: one glowing orb that shows whether he is idle, listening, thinking or speaking,
   with the call desk one tap away on the floating tab bar. Dark by default (the Western Web Pro look), light when the phone asks for it. */
:root {
  color-scheme: dark light;
  --bg: #08080a; --bg2: #0d0d11; --surface: #121217; --surface2: #191920; --line: #25252e; --line2: #32323d;
  --ink: #f5f5f0; --ink2: #b6b6bf; --ink3: #84848f;
  --teal: #10e5a8; --teal2: #5cf2c3; --on-teal: #03150f; --gold: #e8b84b; --tide: #7c5cff;
  --good: #4fe0a0; --warn: #f2bb5c; --bad: #ff8f86;
  --glow: 16, 229, 168; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --btn: linear-gradient(135deg, #5cf2c3 0%, #10e5a8 100%);
  --serif: ui-serif, 'New York', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --tabh: 78px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f5ef; --bg2: #f1ede4; --surface: #ffffff; --surface2: #f3efe6; --line: #e3ddd0; --line2: #d3ccbb;
    --ink: #0e1b1a; --ink2: #44524f; --ink3: #6b7875; --teal: #0b7a6f; --teal2: #0b8577; --on-teal: #ffffff; --gold: #9a6a12; --tide: #5b3fe0;
    --good: #1e7a44; --warn: #9a5b00; --bad: #a4372e; --glow: 11, 122, 111; --shadow: 0 8px 24px rgba(40, 30, 10, .09);
    --btn: linear-gradient(135deg, #0e9484 0%, #0b7a6f 100%);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; overscroll-behavior: none;
  background: radial-gradient(90% 46% at 50% -10%, rgba(var(--glow), .17), transparent 72%), radial-gradient(70% 40% at 100% 100%, rgba(124, 92, 255, .08), transparent 70%), var(--bg);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal2); outline-offset: 2px; }
.sel { user-select: text; -webkit-user-select: text; }
.hint { color: var(--ink3); font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- buttons and fields ---------- */
.btn { background: var(--btn); color: var(--on-teal); border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 650; letter-spacing: .01em;
  box-shadow: 0 6px 18px rgba(var(--glow), .25); transition: transform .12s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(var(--glow), .2); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); font-weight: 500; box-shadow: none; }
.btn.ghost:active { background: var(--surface2); }
.btn.small { padding: 8px 14px; border-radius: 11px; font-size: 14px; }
a.btn { text-decoration: none; display: inline-block; }
.field { width: 100%; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; }
.field:focus, .in:focus, .typebox textarea:focus { outline: none; border-color: rgba(var(--glow), .7); box-shadow: 0 0 0 3px rgba(var(--glow), .15); }
.err { color: var(--bad); font-size: 14px; min-height: 1.2em; }

/* ---------- sign in ---------- */
#login { min-height: 100%; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; animation: rise .5s ease both; }
.login-card .mark { width: 104px; height: 104px; margin: 0 auto 4px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(var(--glow), .45)) drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.login-card h1 { font-family: var(--serif); font-size: 46px; font-weight: 400; letter-spacing: .01em; line-height: 1.05; }
.login-card .sub { color: var(--ink2); font-size: 15px; margin-bottom: 6px; }
.login-card .foot { margin-top: 10px; color: var(--ink3); font-size: 12px; letter-spacing: .04em; }

/* ---------- shell ---------- */
#shell { height: 100%; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
.bar .mark { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(var(--glow), .35)); }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.brand span { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 2px; }
.bar .grow { flex: 1; }
.pill { font-size: 12px; padding: 4px 11px 4px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); }
.pill.on { color: var(--teal2); border-color: rgba(var(--glow), .4); }
.pill.on::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.pill.off { color: var(--warn); }
.pill.off::before { background: var(--warn); }
.iconbtn { background: var(--surface); border: 1px solid var(--line); padding: 8px; border-radius: 12px; color: var(--ink2); display: grid; place-items: center; }
.iconbtn svg { width: 20px; height: 20px; }
#banner { margin: 0 16px 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--warn); color: var(--warn); font-size: 14px; }
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow-y: auto; padding: 8px 16px calc(var(--tabh) + env(safe-area-inset-bottom) + 18px); -webkit-overflow-scrolling: touch; animation: fade .25s ease both; }
.tabbar { position: fixed; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 10px); height: 62px; padding: 6px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: 24px; z-index: 20;
  background: color-mix(in srgb, var(--bg2) 82%, transparent); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }
.tab { position: relative; background: none; border: 0; border-radius: 18px; color: var(--ink3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; letter-spacing: .03em; transition: color .2s, background .2s; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--teal2); background: rgba(var(--glow), .14); }
.tab .n { position: absolute; top: 4px; left: calc(50% + 8px); font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #1a1204; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px var(--bg2); }

/* ---------- talk ---------- */
#v-talk { overflow: hidden; padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 10px); }
.talk { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.greet { flex: none; text-align: center; display: flex; flex-direction: column; gap: 3px; margin-top: 2px; transition: opacity .3s; }
.greet h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; }
.greet p { font-size: 13px; color: var(--ink2); }
.greet p b { color: var(--ink); font-weight: 600; }
.talk.active .greet { display: none; }
.orbwrap { position: relative; flex: none; width: min(50vw, 214px); aspect-ratio: 1; margin-top: 2px; transition: width .35s ease; }
.talk.active .orbwrap { width: min(28vw, 108px); }
.talk.active #status { min-height: 1.4em; }
.orb { position: absolute; inset: 0; border: 0; padding: 0; border-radius: 50%; background: transparent; }
.core { position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 32%), radial-gradient(circle at 50% 58%, #0e3d33 0%, #0a211c 52%, #050a09 100%);
  border: 1.5px solid rgba(var(--glow), .6);
  box-shadow: 0 0 56px rgba(var(--glow), .38), inset 0 0 34px rgba(var(--glow), .3), inset 0 -16px 36px rgba(0, 0, 0, .55);
  transition: box-shadow .4s, transform .4s, filter .4s; }
.core::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(255, 255, 255, .1) 25%, transparent 30% 70%, rgba(255, 255, 255, .07) 75%, transparent 80%); }
.compass { position: absolute; left: 27%; top: 27%; width: 46%; height: 46%; object-fit: contain; opacity: .96; pointer-events: none; transition: opacity .3s, transform .6s;
  filter: drop-shadow(0 0 12px rgba(232, 184, 75, .35)); }
.ring { position: absolute; inset: 8%; border-radius: 50%; border: 2px solid rgba(var(--glow), .6); opacity: 0; }
.arc { position: absolute; inset: 1%; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(var(--glow), .95) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.bars { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px; align-items: center; height: 70px; opacity: 0; transition: opacity .3s; }
.bars i { width: 6px; height: 14px; border-radius: 3px; background: var(--teal2); box-shadow: 0 0 10px rgba(var(--glow), .7); }
.orb[data-state="idle"] .core { animation: breathe 5s ease-in-out infinite; }
.orb[data-state="idle"] .compass { animation: drift 9s ease-in-out infinite; }
.orb[data-state="listening"] .core { transform: scale(1.04); box-shadow: 0 0 90px rgba(var(--glow), .75), inset 0 0 40px rgba(var(--glow), .45), inset 0 -16px 36px rgba(0, 0, 0, .5); }
.orb[data-state="listening"] .ring { animation: ripple 2.1s ease-out infinite; }
.orb[data-state="listening"] .ring:nth-of-type(2) { animation-delay: .7s; }
.orb[data-state="listening"] .ring:nth-of-type(3) { animation-delay: 1.4s; }
.orb[data-state="thinking"] .arc { opacity: 1; animation: spin 1.1s linear infinite; }
.orb[data-state="thinking"] .core { filter: saturate(.8) brightness(.9); }
.orb[data-state="thinking"] .compass { animation: spin 3.2s linear infinite; }
.orb[data-state="speaking"] .core { animation: speak .7s ease-in-out infinite; }
.orb[data-state="speaking"] .compass { opacity: .14; }
.orb[data-state="speaking"] .bars { opacity: .95; }
.orb[data-state="speaking"] .bars i { animation: bar .8s ease-in-out infinite; }
.orb[data-state="speaking"] .bars i:nth-child(2) { animation-delay: .1s; } .orb[data-state="speaking"] .bars i:nth-child(3) { animation-delay: .2s; }
.orb[data-state="speaking"] .bars i:nth-child(4) { animation-delay: .3s; } .orb[data-state="speaking"] .bars i:nth-child(5) { animation-delay: .4s; }
.orb[data-state="error"] .core { filter: hue-rotate(150deg) saturate(1.2); }
@keyframes breathe { 50% { transform: scale(1.03); box-shadow: 0 0 78px rgba(var(--glow), .55), inset 0 0 34px rgba(var(--glow), .3), inset 0 -16px 36px rgba(0, 0, 0, .55); } }
@keyframes drift { 50% { transform: rotate(6deg) scale(1.03); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes speak { 50% { transform: scale(1.045); } }
@keyframes bar { 0%, 100% { height: 12px; } 50% { height: 56px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .orb *, .orb, .view, .login-card, .card { animation: none !important; } }
#status { flex: none; font-size: 15px; color: var(--ink2); text-align: center; min-height: 2.6em; max-width: 34ch; }
#status b { color: var(--ink); font-weight: 600; }
.chips { flex: none; display: flex; flex-wrap: nowrap; gap: 8px; max-width: 100%; overflow-x: auto; justify-content: safe center; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; white-space: nowrap; background: var(--surface); border: 1px solid var(--line2); border-radius: 99px; padding: 8px 15px; font-size: 14px; color: var(--ink2); transition: background .15s, border-color .15s, color .15s; }
.chip:active { background: rgba(var(--glow), .14); border-color: rgba(var(--glow), .5); color: var(--ink); }
.feed { flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 20px; overflow-wrap: anywhere; animation: rise .25s ease both; }
.msg.david { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.you { align-self: flex-end; background: linear-gradient(135deg, rgba(var(--glow), .3), rgba(var(--glow), .16)); border: 1px solid rgba(var(--glow), .35); border-bottom-right-radius: 6px; }
.cardmsg { background: var(--surface2); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: rise .25s ease both; }
.cardmsg h4 { margin: 0; font-size: 15px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.typebox { flex: none; width: 100%; max-width: 640px; display: flex; gap: 8px; align-items: flex-end; }
.typebox textarea { flex: 1; background: var(--surface); border: 1px solid var(--line2); border-radius: 22px; padding: 12px 16px; resize: none; max-height: 120px; }
.typebox .btn { width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; }

/* ---------- desk, leads, log ---------- */
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.h2 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-top: 8px; display: flex; align-items: baseline; gap: 10px; }
.h2 .hint { font-family: var(--font); font-size: 12px; letter-spacing: .04em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px 10px; text-align: center; box-shadow: var(--shadow); }
.tile b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile b small { font-size: 14px; color: var(--ink3); font-weight: 400; }
.tile span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-top: 5px; font-weight: 600; }
.tile.hot b { color: var(--warn); }
.tile.won b { color: var(--good); }
.pipe { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.bar2 { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface2); gap: 2px; }
.bar2 span { min-width: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.legend b { color: var(--ink); }
.goal { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.goal .track { flex: 1; height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.goal .track i { display: block; height: 100%; border-radius: 3px; background: var(--btn); box-shadow: 0 0 10px rgba(var(--glow), .6); transition: width .5s ease; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); animation: rise .3s ease both; }
.card.due { border-color: rgba(242, 187, 92, .6); background: linear-gradient(180deg, rgba(242, 187, 92, .07), transparent 60%), var(--surface); }
.chead { display: flex; gap: 12px; align-items: center; }
.chead > div { min-width: 0; }
.av { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600; color: #0b0f0e; }
.av0 { background: linear-gradient(135deg, #5cf2c3, #10b98a); }
.av1 { background: linear-gradient(135deg, #b3a1ff, #7c5cff); color: #fff; }
.av2 { background: linear-gradient(135deg, #f3d27a, #d9a22f); }
.card h3 { font-size: 17px; line-height: 1.25; }
.meta { color: var(--ink3); font-size: 13px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--surface2); color: var(--ink2); border: 1px solid var(--line); }
.tag.hi { color: var(--teal2); border-color: rgba(var(--glow), .35); } .tag.warn { color: var(--warn); } .tag.good { color: var(--good); } .tag.gold { color: var(--gold); } .tag.bad { color: var(--bad); }
.phone { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .01em; margin-right: auto; }
.note { color: var(--ink2); font-size: 14px; }
.brief { border-top: 1px dashed var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.line .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; padding-top: 3px; }
.line .n { color: var(--ink3); font-size: 13px; }
.logform { background: var(--surface2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.oc { background: var(--surface); border: 1px solid var(--line2); border-radius: 99px; padding: 8px 13px; font-size: 14px; transition: background .15s; }
.oc[aria-pressed="true"] { background: var(--btn); border-color: transparent; color: var(--on-teal); font-weight: 650; }
.in { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
textarea.in { min-height: 76px; resize: vertical; }
.lbl { font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--surface); }
summary { cursor: pointer; font-weight: 550; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; flex: none; }
details[open] > summary::after { transform: rotate(-135deg); }
.empty { text-align: center; color: var(--ink2); padding: 30px 16px; border: 1px dashed var(--line2); border-radius: 18px; }
.empty::before { content: ''; display: block; width: 52px; height: 52px; margin: 0 auto 10px; background: url(/logo.png) center / contain no-repeat; opacity: .55; }
.skel { height: 120px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(100deg, var(--surface) 30%, var(--surface2) 50%, var(--surface) 70%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel.s { height: 72px; }
.lead-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); align-items: center; }
.lead-row select { background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 8px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .in:first-child { grid-column: 1 / -1; }
.filters .in { background: var(--surface); }
.day { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 12px; }
.logrow { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }

/* ---------- settings ---------- */
dialog { background: var(--bg2); color: var(--ink); border: 1px solid var(--line2); border-radius: 26px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); }
.sheet { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 60px); overflow-y: auto; }
.sheet h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.setrow input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--surface2); border: 1px solid var(--line2); position: relative; flex: none; transition: background .2s; }
.setrow input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.setrow input[type="checkbox"]:checked { background: var(--teal); border-color: transparent; }
.setrow input[type="checkbox"]:checked::after { transform: translateX(20px); background: #fff; }
.about { display: flex; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.about img { width: 40px; height: 40px; object-fit: contain; }
.about b { font-family: var(--serif); font-weight: 500; font-size: 16px; }
code, .code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: block; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink2); }
#toast { position: fixed; left: 50%; transform: translateX(-50%) translateY(8px); bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 14px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 550; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
#toast.on { opacity: 1; transform: translateX(-50%); }
@media (min-width: 900px) {
  .view { padding-left: 24px; padding-right: 24px; }
  .orbwrap { width: 250px; }
  .tabbar { left: 50%; right: auto; width: 460px; transform: translateX(-50%); }
}

/* ---------- studio voice: the orb follows the real sound ---------- */
/* Only transform changes per frame: redrawing a big blurred shadow 60 times a second is what makes a phone stutter. */
.orb[data-live="1"] .core { animation: none; transform: scale(calc(1 + var(--lvl, 0) * .1)); box-shadow: 0 0 84px rgba(var(--glow), .6), inset 0 0 40px rgba(var(--glow), .4), inset 0 -16px 36px rgba(0, 0, 0, .5);
  transition: transform .06s linear; will-change: transform; }
.orb[data-live="1"] .bars i { animation: none; transition: height .07s linear; }
.orb[data-live="1"] .ring { animation: ripple 1.6s ease-out infinite; }
.orb[data-live="1"] .ring:nth-of-type(2) { animation-delay: .55s; }
.orb[data-live="1"] .ring:nth-of-type(3) { animation-delay: 1.1s; }

/* ---------- web sources and found leads ---------- */
.srcrow { align-self: flex-start; max-width: 94%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; animation: rise .25s ease both; }
.srclbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); font-weight: 600; margin-right: 2px; }
a.src { font-size: 12.5px; color: var(--teal2); text-decoration: none; background: var(--surface); border: 1px solid var(--line2); border-radius: 99px; padding: 4px 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.src:active { background: rgba(var(--glow), .14); }
.cardmsg.lead { border-left-color: var(--teal); }
.phone.sm { font-size: 18px; margin-right: 0; }
pre.check { white-space: pre-wrap; margin: 0; line-height: 1.5; user-select: text; -webkit-user-select: text; }
