/* Verse prototype. Sizes are in the phone's own points (the screen is 414 × 888, the phone 452 × 922);
   the whole phone is scaled to fit its column by verse.js. Colours and type come from the Figma file. */

.vp-fit { position: relative; width: min(100%, 392px); margin: 0 auto; height: 800px; }
.vp-phone {
  position: absolute; left: 0; top: 0; width: 452px; height: 922px; transform-origin: 0 0;
  padding: 17px 19px; border-radius: 75px;
  background: linear-gradient(145deg, #8a8f90, #4e5354 40%, #6f7475 70%, #3d4142);
  box-shadow: 0 50px 80px -40px rgba(10, 25, 25, 0.55), 0 18px 30px -18px rgba(10, 25, 25, 0.4);
}
.vp-phone::before { /* black glass edge */
  content: ""; position: absolute; inset: 5px; border-radius: 70px; background: #050606;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.vp-phone::after { /* a soft highlight along the titanium edge */
  content: ""; position: absolute; inset: 0; border-radius: 75px; pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}
.vp-key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #5d6263, #8b9091); }
.vp-key.k1 { left: -3px; top: 150px; height: 30px; }
.vp-key.k2 { left: -3px; top: 210px; height: 58px; }
.vp-key.k3 { left: -3px; top: 280px; height: 58px; }
.vp-key.k4 { right: -3px; top: 230px; height: 92px; background: linear-gradient(270deg, #5d6263, #8b9091); }
.vp-screen {
  --vp-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --teal: #3d8078; --mint: #dcfffa; --blue: #007aff; --label2: rgba(60, 60, 67, 0.6); --fill: rgba(120, 120, 128, 0.12);
  --ease-ios: cubic-bezier(0.2, 0.9, 0.25, 1);
  position: relative; width: 414px; height: 888px; border-radius: 59px; overflow: hidden; isolation: isolate;
  background: #fff; color: #000; font-family: var(--vp-font); font-size: 17px; line-height: 1.29;
  -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: -0.2px;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.vp-screen button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
.vp-screen svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vp-screen svg .fill { fill: currentColor; stroke: none; }
.vp-screen :focus-visible { outline: 3px solid rgba(0, 122, 255, 0.55); outline-offset: 2px; }
.vp-screen h3, .vp-screen h4, .vp-screen p { margin: 0; }

.vp-app { position: absolute; inset: 0; transform-origin: 50% 0; transition: transform 0.5s var(--ease-ios), border-radius 0.5s, filter 0.5s; border-radius: 59px; overflow: hidden; }
.vp-bg { position: absolute; inset: 0; transition: opacity 0.7s ease; }
.vp-bg-teal { background: linear-gradient(180deg, #fff 18%, rgba(56, 150, 131, 0.56) 100%); }
.vp-bg-amber { background: linear-gradient(180deg, #fff 18%, rgba(255, 184, 0, 0.56) 100%); opacity: 0; }
.vp-screen[data-tab="summary"] .vp-bg-amber { opacity: 1; }

/* status bar, island, home indicator */
.vp-status { position: absolute; z-index: 60; top: 0; left: 0; right: 0; height: 54px; pointer-events: none; }
.vp-time { position: absolute; left: 50px; top: 17px; font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.vp-island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
.vp-icons { position: absolute; right: 34px; top: 21px; display: flex; gap: 6px; align-items: center; color: #000; }
.vp-icons svg { height: 12px; width: auto; fill: currentColor; stroke: none; }
.vp-icons svg:last-child { height: 13px; }
.vp-icons svg.wifi { height: 12.5px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.vp-icons svg.wifi .pie { fill: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.vp-home { position: absolute; z-index: 60; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #000; pointer-events: none; }

/* header */
.vp-head { position: absolute; top: 92px; left: 25px; right: 25px; height: 46px; display: flex; align-items: center; justify-content: space-between; transition: opacity 0.3s; z-index: 3; }
.vp-title { font-size: 32px; font-weight: 900; letter-spacing: -0.4px; }
.vp-avatar {
  width: 41px; height: 41px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #6fb3a8, var(--teal) 70%) !important; color: var(--mint) !important;
  font-weight: 700 !important; font-size: 19px !important; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* search */
.vp-search {
  position: absolute; z-index: 4; top: 150px; left: 25px; width: 364px; height: 36px; border-radius: 10px; background: var(--fill);
  display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--label2); cursor: text;
  transition: transform 0.45s var(--ease-ios), width 0.45s var(--ease-ios);
}
.vp-search svg { width: 19px; height: 19px; stroke-width: 2.2; }
.vp-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding: 0;
  font: inherit; font-size: 17px; color: #000; letter-spacing: -0.2px; -webkit-appearance: none; appearance: none; caret-color: var(--blue);
}
.vp-search input:focus-visible { outline: none; }
.vp-search input::placeholder { color: var(--label2); }
.vp-search input::-webkit-search-cancel-button { display: none; }
.vp-search-mic svg { width: 18px; height: 18px; }
.vp-cancel { position: absolute; z-index: 4; top: 57px; right: 22px; color: var(--blue) !important; font-size: 17px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }

/* segmented control */
.vp-seg { position: absolute; z-index: 3; top: 198px; left: 25px; width: 364px; height: 32px; border-radius: 9px; background: var(--fill); display: grid; grid-template-columns: 1fr 1fr; padding: 2px; transition: opacity 0.3s; }
.vp-seg-pill { position: absolute; top: 2px; left: 2px; width: calc(50% - 2px); height: 28px; border-radius: 7px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); transition: transform 0.4s var(--ease-ios); }
.vp-screen[data-tab="summary"] .vp-seg-pill { transform: translateX(100%); }
.vp-seg button { position: relative; font-size: 13px !important; text-align: center !important; letter-spacing: -0.08px !important; }
.vp-seg button[aria-selected="true"] { font-weight: 600 !important; }

/* lists */
.vp-lists { position: absolute; top: 236px; left: 0; right: 0; bottom: 0; transition: opacity 0.3s; }
.vp-list { position: absolute; inset: 0; overflow-y: auto; padding: 12px 25px 170px; scrollbar-width: none; transition: opacity 0.45s, transform 0.55s var(--ease-ios), visibility 0s 0s; }
.vp-list::-webkit-scrollbar { display: none; }
.vp-list-summary { opacity: 0; transform: translateX(40px); visibility: hidden; }
.vp-screen[data-tab="summary"] .vp-list-captured { opacity: 0; transform: translateX(-40px); visibility: hidden; transition: opacity 0.45s, transform 0.55s var(--ease-ios), visibility 0s 0.55s; }
.vp-screen[data-tab="summary"] .vp-list-summary { opacity: 1; transform: none; visibility: visible; }
.vp-label { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; margin: 4px 2px 10px; }
.vp-row + .vp-label { margin-top: 26px; }
.vp-empty { color: var(--label2); padding: 20px 4px; }

.vp-row { position: relative; margin-bottom: 18px; }
.vp-card {
  position: relative; z-index: 1; display: block; width: 364px; background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.06); touch-action: pan-y;
  transition: transform 0.45s var(--ease-ios), box-shadow 0.3s;
}
.vp-card:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.13), 0 1px 3px rgba(0, 0, 0, 0.06); }
.vp-row.is-open .vp-card { transform: translateX(-178px); }
.vp-row.is-dragging .vp-card { transition: none; }
.vp-card-img { position: relative; height: 246px; background: #eceeed; overflow: hidden; }
.vp-card-img.short { height: 132px; }
.vp-card-img img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.vp-card-body { padding: 17px 17px 20px; }
.vp-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vp-tag { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--teal); letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-when { flex: none; font-size: 13px; color: rgba(60, 60, 67, 0.55); font-variant-numeric: tabular-nums; }
.vp-card h4 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.6px; margin: 6px 0 8px; }
.vp-prev { font-size: 16px; line-height: 1.35; color: rgba(60, 60, 67, 0.65); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-pages-badge, .vp-busy {
  position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vp-busy { background: rgba(61, 128, 120, 0.9); }
.vp-busy::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 7px; animation: vp-pulse 0.9s ease-in-out infinite; }
.vp-playbadge { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.vp-playbadge svg { width: 58px; height: 58px; padding: 14px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vp-playbadge b { position: absolute; right: 12px; bottom: 12px; font-size: 13px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); }
.is-loading .vp-card-body > * { color: transparent !important; border-radius: 6px; background: linear-gradient(90deg, #eceeed 25%, #f7f8f8 50%, #eceeed 75%); background-size: 300% 100%; animation: vp-shimmer 1.1s linear infinite; }
.is-loading .vp-card-body > * > * { visibility: hidden; }
.is-loading .vp-card-body h4 { width: 85%; }
.is-loading .vp-card-body .vp-meta { width: 55%; }

/* the waveform used for voice notes */
.vp-wave { height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: linear-gradient(135deg, #e4f2ee, #f5faf8 70%); color: var(--teal); }
.vp-wave .bars { flex: 1; justify-content: space-between; height: 60px; gap: 0; }
.vp-wave .bars i { width: 3.5px; background: #9cc8bf; }
.vp-wave-play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--mint); box-shadow: 0 6px 14px rgba(61, 128, 120, 0.3); }
.vp-wave-play svg { width: 20px; height: 20px; margin-left: 2px; }
.vp-wave-t { flex: none; font-size: 15px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: center; gap: 4px; height: 64px; }
.bars i { display: block; width: 4px; height: var(--h); border-radius: 2px; background: #c7c9ca; }

/* swipe actions */
.vp-actions { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: flex; gap: 16px; opacity: var(--reveal, 0); transition: opacity 0.3s; }
.vp-row.is-dragging .vp-actions { transition: none; }
.vp-actions button { width: 71px; height: 71px; border-radius: 50%; display: grid; place-items: center; transform: scale(calc(0.6 + var(--reveal, 0) * 0.4)); transition: transform 0.35s var(--ease-ios); }
.vp-actions svg { width: 32px; height: 32px; stroke-width: 2.2; }
.vp-edit { background: var(--teal) !important; color: var(--mint) !important; }
.vp-del { background: #803d3d !important; color: #ffdcdc !important; }

/* AI summary cards */
.vp-sum { position: relative; display: block; width: 366px; height: 420px; border-radius: 12px; overflow: hidden; color: #fff !important; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12); }
.vp-screen .vp-sum { margin-bottom: 18px; }
.vp-sum img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-ios); }
.vp-sum:hover img { transform: scale(1.03); }
.vp-sum-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.78) 100%); }
.vp-sum-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35); }
.vp-sum-badge svg { width: 15px; height: 15px; color: #ffe08a; }
.vp-sum-bottom { position: absolute; left: 18px; right: 18px; bottom: 20px; display: grid; gap: 8px; }
.vp-sum-title { font-size: 34px; font-weight: 700; line-height: 1.08; letter-spacing: -0.8px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3); }
.vp-sum-foot { font-size: 15px; color: rgba(255, 255, 255, 0.78); }

/* the + button and its three actions */
.vp-fabbar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 170px; pointer-events: none; transition: opacity 0.3s; }
.vp-fabbar::before, .vp-fabbar::after { content: ""; position: absolute; inset: 0; transition: opacity 0.7s ease; }
.vp-fabbar::before { background: linear-gradient(180deg, rgba(150, 199, 189, 0) 0%, rgba(150, 199, 189, 0.88) 55%, #92c5bb 100%); }
.vp-fabbar::after { background: linear-gradient(180deg, rgba(255, 216, 116, 0) 0%, rgba(255, 216, 116, 0.88) 55%, #ffd874 100%); opacity: 0; }
.vp-screen[data-tab="summary"] .vp-fabbar::before { opacity: 0; }
.vp-screen[data-tab="summary"] .vp-fabbar::after { opacity: 1; }
.vp-fab {
  position: absolute; z-index: 8; left: calc(50% - 35px); bottom: 28px; width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal) !important; color: var(--mint) !important;
  box-shadow: 0 8px 20px rgba(61, 128, 120, 0.4); transition: transform 0.5s var(--ease-ios), background 0.3s, color 0.3s, opacity 0.3s;
}
.vp-fab svg { width: 34px; height: 34px; stroke-width: 2.4; }
.vp-fab:hover { transform: scale(1.05); }
.vp-addlayer { position: absolute; z-index: 6; left: 0; right: 0; top: 236px; bottom: 0; opacity: 0; pointer-events: none; transition: opacity 0.35s;
  background: rgba(244, 250, 248, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.vp-act {
  position: absolute; z-index: 7; left: calc(50% - 35.5px); bottom: 28px; width: 71px; height: 71px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal) !important; color: var(--mint) !important; opacity: 0; pointer-events: none;
  transform: translate(0, 0) scale(0.4); transition: transform 0.5s var(--ease-ios), opacity 0.25s; box-shadow: 0 8px 18px rgba(61, 128, 120, 0.35);
}
.vp-act svg { width: 34px; height: 34px; stroke-width: 2; }
.vp-act span { position: absolute; top: 79px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #0f3d38; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.is-adding .vp-addlayer { opacity: 1; pointer-events: auto; }
.is-adding .vp-act { opacity: 1; pointer-events: auto; transform: translate(var(--x), var(--y)) scale(1); transition-delay: var(--d); }
.is-adding .vp-fab { transform: rotate(135deg); background: var(--mint) !important; color: var(--teal) !important; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }

/* detail */
.vp-detail { position: absolute; z-index: 20; left: 25px; top: 150px; width: 364px; height: 712px; display: none; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); }
.is-detail .vp-detail { display: flex; }
.is-detail .vp-search, .is-detail .vp-seg, .is-detail .vp-lists, .is-detail .vp-fab, .is-detail .vp-fabbar { opacity: 0; pointer-events: none; }
.vp-d-media { position: relative; height: 330px; flex: none; overflow: hidden; background: #eceeed; }
.vp-d-imgs { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vp-d-imgs::-webkit-scrollbar { display: none; }
.vp-d-imgs img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.vp-d-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; background: rgba(0, 0, 0, 0.38) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vp-d-close svg { width: 18px; height: 18px; stroke-width: 2.6; }
.vp-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; height: 24px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.vp-dots button { width: 8px; height: 8px; border-radius: 50%; background: #000 !important; opacity: 0.3; transition: opacity 0.3s; }
.vp-dots button.on { opacity: 1; }
.vp-d-pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vp-d-pages::-webkit-scrollbar { display: none; }
.vp-d-page { flex: 0 0 100%; scroll-snap-align: start; overflow-y: auto; padding: 18px 18px 28px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent); }
.vp-d-page::-webkit-scrollbar { display: none; }
.vp-d-title { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.6px; margin: 6px 0 10px !important; outline: none; }
.vp-detail .vp-tag { display: block; }
.vp-d-title[contenteditable] { -webkit-user-select: text; user-select: text; border-radius: 6px; box-shadow: 0 0 0 2px rgba(61, 128, 120, 0.5); padding: 0 4px; margin-left: -4px !important; }
.vp-d-text { font-size: 16.5px; line-height: 1.4; color: rgba(30, 30, 35, 0.72); }
.vp-d-text + .vp-d-text { margin-top: 8px !important; }
.vp-d-meta { margin-top: 12px !important; font-size: 13px; color: rgba(0, 0, 0, 0.38); }
.vp-d-trans { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #f5f6f6; font-size: 16px; line-height: 1.45; color: rgba(30, 30, 35, 0.8); font-variant-numeric: tabular-nums; }
.vp-d-trans .gap { height: 14px; }
.vp-d-list { margin: 12px 0 0; padding: 0; list-style: none; }
.vp-d-list li { padding: 11px 0; border-bottom: 0.5px solid rgba(60, 60, 67, 0.25); font-size: 17px; }
.vp-d-foot { position: relative; height: 44px; flex: none; }
.vp-d-foot .vp-dots { bottom: 12px; background: rgba(118, 118, 128, 0.12); }
.vp-d-voice { height: 100%; display: grid; place-items: center; align-content: center; gap: 20px; background: #f6f7f7; }
.vp-d-voice .bars i { background: #c7c9ca; transition: background 0.2s; }
.vp-d-voice.playing .bars i { animation: vp-bounce 0.7s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -11ms); background: var(--teal); }
.vp-d-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal) !important; color: var(--mint) !important; }
.vp-d-play[disabled] { opacity: 0.45; }
.vp-d-play.big { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(0, 0, 0, 0.42) !important; color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vp-d-play svg { width: 26px; height: 26px; margin-left: 3px; }
.vp-d-progress { width: 260px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.vp-d-progress i { display: block; height: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(0); }
.vp-d-progress.over { position: absolute; left: 17px; right: 17px; bottom: 50px; width: auto; background: rgba(255, 255, 255, 0.35); }
.vp-d-progress.over i { background: #fff; }
.vp-d-clock { font-size: 15px; color: #8e8e93; font-variant-numeric: tabular-nums; }

/* search mode */
.is-search .vp-head, .is-search .vp-seg, .is-search .vp-lists, .is-search .vp-fab, .is-search .vp-fabbar { opacity: 0; pointer-events: none; }
.is-search .vp-search { transform: translateY(-94px); width: 290px; }
.is-search .vp-cancel { opacity: 1; pointer-events: auto; }
.vp-sv { position: absolute; z-index: 4; top: 104px; left: 25px; right: 25px; bottom: 350px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.3s, bottom 0.45s var(--ease-ios); scrollbar-width: none; }
.is-search .vp-sv { opacity: 1; pointer-events: auto; transition-delay: 0.12s; }
.is-search.kb-down .vp-sv { bottom: 40px; }
.vp-sv-head { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--label2); margin: 6px 2px 10px !important; }
.vp-chips { display: grid; justify-items: start; gap: 14px; }
.vp-chip { background: #f2f2f7 !important; border-radius: 14px; padding: 14px 16px !important; font-weight: 600 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: transform 0.2s; }
.vp-chip:active { transform: scale(0.97); }
.vp-sv-empty { color: var(--label2); padding: 14px 2px; }
.vp-result { display: grid !important; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; width: 100%; padding: 9px 10px !important; margin-bottom: 8px !important; border-radius: 14px; background: rgba(255, 255, 255, 0.82) !important; }
.vp-r-thumb { grid-row: span 2; width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.vp-r-thumb.wave { display: grid; place-items: center; background: #f2f2f7; color: var(--teal); }
.vp-result .t { font-size: 16px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-result .s { font-size: 14px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-screen mark { background: rgba(61, 128, 120, 0.22); color: inherit; border-radius: 3px; padding: 0 1px; }

/* the tappable keyboard */
.vp-kb { position: absolute; z-index: 9; left: 0; right: 0; bottom: 0; height: 340px; padding: 0 3px; background: #d2d5db; transform: translateY(102%); transition: transform 0.45s var(--ease-ios); }
.is-search .vp-kb { transform: none; }
.is-search.kb-down .vp-kb { transform: translateY(102%); }
.vp-kb-pred { display: grid; grid-template-columns: repeat(3, 1fr); height: 44px; align-items: center; }
.vp-kb-pred button { text-align: center !important; font-size: 17px !important; height: 30px; border-left: 1px solid rgba(60, 60, 67, 0.18) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px !important; }
.vp-kb-pred button:first-child { border-left: 0 !important; }
.vp-kb-row { display: flex; justify-content: center; gap: 6px; margin-top: 11px; padding: 0 3px; }
.vp-kb-row button {
  flex: 0 0 34.6px; height: 43px; border-radius: 5px; background: #fff !important; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
  font-size: 23px !important; text-align: center !important; display: grid; place-items: center; transition: background 0.08s;
}
.vp-kb.shift [data-k]:not(.sp) { text-transform: uppercase; }
.vp-kb-row button:active, .vp-kb-row button.pressed { background: #b8bcc4 !important; }
.vp-kb-row .sp { background: #abb0ba !important; }
.vp-kb-row .sp svg { width: 22px; height: 22px; stroke-width: 1.8; }
.vp-kb.shift [data-k="shift"] { background: #fff !important; }
.vp-kb-row .wide { flex-basis: 44px; margin: 0 6px; }
.vp-kb-row .wide:first-child { margin-left: 0; }
.vp-kb-row .wide:last-child { margin-right: 0; }
.vp-kb-row .mid { flex-basis: 92px; font-size: 16px !important; }
.vp-kb-row .space { flex: 1; font-size: 16px !important; }
.vp-kb-row .blue { background: var(--blue) !important; color: #fff !important; }
.vp-kb-bottom { display: flex; justify-content: space-between; padding: 14px 26px 0; color: #50555c; }
.vp-kb-bottom svg { width: 26px; height: 26px; stroke-width: 1.6; }

/* settings sheet */
.vp-sheet { position: absolute; z-index: 40; left: 0; right: 0; top: 60px; bottom: 0; background: #f2f2f7; border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform 0.5s var(--ease-ios); display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15); }
.is-sheet .vp-sheet { transform: none; }
.is-sheet .vp-app { transform: scale(0.92) translateY(14px); border-radius: 40px; filter: brightness(0.82); }
.vp-s-top { flex: none; position: relative; height: 56px; display: grid; place-items: center; font-weight: 600; }
.vp-s-done { position: absolute; right: 20px; top: 17px; color: var(--blue) !important; font-weight: 600 !important; }
.vp-s-scroll { flex: 1; overflow-y: auto; padding: 0 0 40px; scrollbar-width: none; }
.vp-s-scroll::-webkit-scrollbar { display: none; }
.vp-s-h { font-size: 13px; color: var(--label2); text-transform: uppercase; padding: 18px 32px 7px; }
.vp-s-group { margin: 0 16px; border-radius: 10px; background: #fff; overflow: hidden; }
.vp-s-row { position: relative; width: 100%; min-height: 44px; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px !important; }
.vp-s-row + .vp-s-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid rgba(60, 60, 67, 0.29); }
.vp-s-row .v { display: flex; align-items: center; gap: 4px; color: var(--label2); white-space: nowrap; }
.vp-s-row .v svg { width: 16px; height: 16px; stroke-width: 2.4; color: rgba(60, 60, 67, 0.3); }
.vp-s-row .blue { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); }
.vp-s-row .blue svg { color: var(--blue); width: 15px; height: 15px; }
.vp-s-row .pill { padding: 6px 11px; border-radius: 6px; background: var(--fill); color: var(--blue); }
.vp-s-row.off { opacity: 0.4; cursor: default !important; }
.vp-s-row.acct { justify-content: flex-start; padding: 10px 16px !important; gap: 12px; }
.vp-s-row.acct span:last-child { display: grid; }
.vp-s-row.acct b { font-weight: 400; }
.vp-s-row.acct small { font-size: 14px; color: var(--label2); }
.vp-s-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #6fb3a8, var(--teal) 70%); color: var(--mint); font-weight: 700; font-size: 20px; }
.vp-s-row.use { flex-wrap: wrap; padding: 11px 16px 13px !important; row-gap: 8px; }
.vp-s-bar { flex: 0 0 100%; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.vp-s-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #34c759, var(--teal)); transition: width 0.6s var(--ease-ios); }
.vp-switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: rgba(120, 120, 128, 0.16); transition: background 0.25s; flex: none; }
.vp-switch i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06); transition: transform 0.3s var(--ease-ios); }
[aria-checked="true"] .vp-switch { background: #34c759; }
[aria-checked="true"] .vp-switch i { transform: translateX(20px); }
.vp-s-foot { font-size: 13px; color: var(--label2); padding: 8px 32px 0; }

/* toast, flash, recorder */
.vp-toast {
  position: absolute; z-index: 55; left: 50%; bottom: 118px; display: flex; align-items: center; gap: 16px; white-space: nowrap;
  padding: 12px 18px; border-radius: 22px; background: rgba(28, 28, 30, 0.9); color: #fff; font-size: 15px; font-weight: 500;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform 0.4s var(--ease-ios), opacity 0.3s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vp-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.vp-toast button { color: #8de3d6 !important; font-weight: 600 !important; }
.vp-flash { position: absolute; z-index: 58; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vp-rec {
  position: absolute; z-index: 12; left: 50%; bottom: 120px; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  border-radius: 30px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease-ios), opacity 0.3s;
}
.vp-rec.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.vp-rec .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; animation: vp-pulse 0.9s ease-in-out infinite; }
.vp-rec .live { display: flex; gap: 3px; align-items: center; height: 40px; }
.vp-rec .live i { width: 3px; height: calc(var(--h) * 0.6); border-radius: 2px; background: var(--teal); animation: vp-bounce 0.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -70ms); }
.vp-rec .t { font-size: 17px; font-variant-numeric: tabular-nums; width: 38px; }
.vp-rec button { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; background: #ff3b30 !important; border-radius: 999px; padding: 7px 14px !important; }

@keyframes vp-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes vp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes vp-bounce { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .vp-screen *, .vp-app { transition-duration: 0.01ms !important; animation: none !important; }
}
