/* Friday for a computer: the iPhone app's look (FridayiOS/Design/Theme.swift): pure black, white type, the classic palette. */
:root {
  --bg: #000;
  --drawer: #0e0e0e;
  --surface: #161616;
  --raised: #212121;
  --well: #1d1d1d;
  --high: #2b2b2b;
  --stroke: rgba(255, 255, 255, .08);
  --stroke-strong: rgba(255, 255, 255, .16);
  --text: rgba(255, 255, 255, .96);
  --text-2: rgba(255, 255, 255, .58);
  --text-3: rgba(255, 255, 255, .36);
  --blue: #0a84ff; --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --green: #30d158;
  --cyan: #64d2ff; --purple: #bf5af2; --pink: #ff375f; --mint: #66d4cf;
  --reminders: var(--blue); --dots: var(--purple); --link: var(--cyan); --danger: var(--red); --success: var(--green);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar: 288px;
  --col: 760px;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --settle: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { overflow: hidden; position: fixed; inset: 0; width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
::selection { background: rgba(10, 132, 255, .45); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill svg { fill: currentColor; stroke: none; }
.iconbtn { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s, transform .2s var(--spring); }
.iconbtn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.iconbtn:active { transform: scale(.92); }

/* ── sign-in ── */
.login { height: var(--app-h, 100dvh); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: arrive .6s var(--spring) both; }
.login-card h1 { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.login-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.login form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
input.field { width: 100%; height: 48px; padding: 0 16px; border-radius: 16px; background: var(--raised); border: 1px solid transparent; outline: none; font-size: 16px; transition: border-color .15s, background .15s; }
input.field:focus { border-color: var(--stroke-strong); background: var(--high); }
.btn { height: 48px; border-radius: 16px; background: #fff; color: #000; font-weight: 600; transition: transform .2s var(--spring), opacity .15s; }
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.quiet { background: var(--raised); color: var(--text); }
.btn.small { height: 36px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.danger { background: rgba(255, 69, 58, .16); color: var(--red); }
.notice { min-height: 20px; font-size: 14px; color: var(--text-2); }
.notice.bad { color: var(--red); }
.notice.good { color: var(--green); }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.waiting .big { font-size: 17px; font-weight: 600; }
.countdown { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 13px; }

/* ── shell ──
   The shell is exactly the visible area: --app-h / --app-top follow the visual viewport (JS), 100dvh until then. So the composer sits on
   the bottom edge on a phone with the browser bar or the keyboard up, and on a computer. */
.shell { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh); display: flex; overflow: hidden; }
.sidebar { width: var(--sidebar); flex: none; background: var(--drawer); border-right: 1px solid var(--stroke); display: flex; flex-direction: column; min-height: 0; transition: margin-left .35s var(--settle), transform .35s var(--settle); }
.shell.collapsed .sidebar { margin-left: calc(var(--sidebar) * -1); }
.sb-top { display: flex; align-items: center; gap: 8px; padding: calc(14px + env(safe-area-inset-top)) 12px 8px 16px; }
.sb-top .brand { font-size: 17px; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 8px; }
.sb-nav { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.navitem { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text); text-align: left; width: 100%; transition: background .15s; }
.navitem:hover { background: rgba(255, 255, 255, .06); }
.navitem.active { background: rgba(255, 255, 255, .1); }
.navitem .icon { color: var(--text-2); }
.navitem.dots .icon { color: var(--dots); } .navitem.rem .icon { color: var(--reminders); }
.navitem .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 1px 8px; }
/* the sidebar's lists: Friday and the pages on top, then Upcoming and Dots (no chat list) */
.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 8px 14px; }
.navitem.friday canvas { flex: none; margin: 0 -2px; }
.navitem .grow { flex: 1; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 0; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 12px; border-radius: 16px; border: 1px solid rgba(var(--hue-rgb), .35); background: rgba(var(--hue-rgb), .07); font-size: 14px; font-weight: 600; text-align: left; transition: background .15s, transform .2s var(--spring); }
.tile.rem { --hue: var(--reminders); --hue-rgb: 10, 132, 255; } .tile.dots { --hue: var(--dots); --hue-rgb: 191, 90, 242; }
.tile .icon { width: 20px; height: 20px; color: var(--hue); }
.tile:hover { background: rgba(var(--hue-rgb), .13); }
.tile:active { transform: scale(.97); }
.tile.active { background: rgba(var(--hue-rgb), .2); }
.tile .count { position: absolute; top: 9px; right: 10px; font-size: 12px; font-weight: 700; color: var(--hue); }
.sb-sec { margin-top: 20px; }
.sb-sec .sechead { margin: 0 6px 6px; }
.sb-list { display: flex; flex-direction: column; gap: 1px; }
.sb-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background .15s; }
.sb-row:hover { background: rgba(255, 255, 255, .06); }
.sb-row.active { background: rgba(255, 255, 255, .1); }
.sb-row canvas.orb { flex: none; }
.sb-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-row b { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row small { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row small.late { color: var(--orange); }
.glyph { width: 26px; height: 26px; flex: none; display: grid; place-items: center; color: var(--reminders); }
.glyph.job { color: var(--orange); } .glyph.late { color: var(--orange); }
.glyph .icon { width: 17px; height: 17px; }
.livewave { color: var(--text-2); display: grid; }
.livewave .icon { width: 15px; height: 15px; animation: breathe 1.2s ease-in-out infinite; }
.sb-empty { margin: 0; padding: 4px 8px; font-size: 13px; color: var(--text-3); text-align: left; line-height: 1.4; }
.sb-empty.link b { color: var(--dots); }
.sb-empty.link:hover { color: var(--text-2); }
.sb-foot { padding: 6px 8px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--stroke); }
.sb-user { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 10px; border-radius: 14px; text-align: left; color: var(--text); transition: background .15s; }
.sb-user:hover { background: rgba(255, 255, 255, .06); }
.sb-user.active { background: rgba(255, 255, 255, .1); }
.sb-user .who { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .icon { color: var(--text-3); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--high); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.pill { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.pill.on { background: var(--green); }
.pill.warn { background: var(--orange); }
.menu { position: fixed; z-index: 90; min-width: 210px; padding: 6px; border-radius: 16px; background: rgba(34, 34, 34, .94); border: 1px solid var(--stroke-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); animation: pop .22s var(--spring) both; transform-origin: top left; }
.menu.from-right { transform-origin: top right; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; text-align: left; white-space: nowrap; }
.menu button .icon { width: 17px; height: 17px; color: var(--text-2); }
.menu button:hover { background: rgba(255, 255, 255, .08); }
.menu button.danger, .menu button.danger .icon { color: var(--red); }
.scrim { display: none; }

.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.topbar { flex: none; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; display: flex; align-items: center; gap: 6px; }
.topbar .title { flex: 1; text-align: center; font-weight: 600; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px; }
.topbar .iconbtn.ghost { visibility: hidden; }
.content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pages { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.page { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pagecol { width: min(var(--col), 100%); margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left)) calc(40px + env(safe-area-inset-bottom)); }
.empty { padding: 56px 12px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .t { font-size: 17px; font-weight: 600; color: var(--text); }
.empty p { margin: 0; max-width: 340px; font-size: 14px; }
.allclear { color: var(--text-3); font-size: 14px; padding: 4px 2px 0; }
.pill-btn { margin-top: 14px; height: 44px; padding: 0 22px; border-radius: 22px; background: var(--hue); color: #000; font-weight: 700; font-size: 15px; transition: transform .2s var(--spring); }
.pill-btn:active { transform: scale(.95); }

/* a page's head: its glyph in its hue (no box), the big title, the round + (the same control on Dots and Reminders) */
.pagehead { display: flex; align-items: center; gap: 12px; margin: 6px 0 20px; min-height: 48px; }
.pagehead > .icon { width: 30px; height: 30px; color: var(--hue); }
.pagehead h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.pagehead .grow { flex: 1; }
.addbtn { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--hue); color: #000; display: grid; place-items: center; transition: transform .2s var(--spring), opacity .15s; }
.addbtn .icon { width: 22px; height: 22px; }
.addbtn .icon svg { stroke-width: 2.6; }
.addbtn:hover { opacity: .92; }
.addbtn:active { transform: scale(.88); }

/* sections: UPPERCASE label in its hue, a count, a hairline fading out (FridaySectionHeader) */
.section { margin-top: 26px; }
.sechead { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; }
.sechead .nm { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hue, var(--text-2)); }
.sechead .ct { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sechead .rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--hue, var(--stroke-strong)), transparent); opacity: .5; }
.section.plain .sechead .rule { background: var(--stroke); opacity: 1; }
.sechead .act { font-size: 13px; font-weight: 500; color: var(--hue); padding: 4px 8px; margin: -4px -8px -4px 0; border-radius: 8px; }
.sechead .act:hover { background: rgba(255, 255, 255, .06); }
.showmore { display: flex; align-items: center; gap: 4px; margin: 2px auto 0; padding: 8px 12px; font-size: 13px; color: var(--text-2); border-radius: 10px; }
.showmore:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.showmore .icon { width: 14px; height: 14px; } .showmore .flip { transform: rotate(180deg); }

/* Dots: a Messages-style inbox (an orb, a name, its last line, the time), no cards */
.dotrow { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 -8px; padding: 10px 8px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.dotrow:hover { background: rgba(255, 255, 255, .04); }
.dotrow:active { background: rgba(255, 255, 255, .07); }
.dotrow::after { content: ""; position: absolute; left: 74px; right: 8px; bottom: 0; height: 1px; background: var(--stroke); }
.dotrow:last-child::after { display: none; }
.dotrow .dorb { flex: none; }
.dotrow .ib { flex: 1; min-width: 0; }
.dotrow .top { display: flex; align-items: center; gap: 6px; }
.dotrow .nm { flex: 0 1 auto; min-width: 0; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotrow .top .grow { flex: 1; }
.dotrow .tm { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.dotrow .sl { display: flex; align-items: center; gap: 5px; margin-top: 1px; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.dotrow .sl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotrow .sl .icon { width: 13px; height: 13px; }
.dotrow.fin { opacity: .7; } .dotrow.fin .nm { color: var(--text-2); }
.mutedmark { display: inline-flex; color: var(--text-3); } .mutedmark .icon { width: 13px; height: 13px; }
.icon.wv { animation: breathe 1.2s ease-in-out infinite; }
.dotrow .ln { font-size: 14px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.iconbtn.more { width: 30px; height: 30px; margin-right: -6px; flex: none; }
.iconbtn.more .icon { width: 20px; height: 20px; }
.dotmark { width: 12px; height: 12px; border-radius: 50%; flex: none; }


/* a dot's orb in its state (dotOrb, pages.js; the six looks of the iPhone's DotOrb): working is the Rubik's cube (orb.js, lit), waiting breathes
   slowly, paused is frozen and dim, needs-you pulses two rings in its color, failed is slumped on its floor with a few dots fallen off, done is
   nearly faded away; a badge on the corner for the last four */
.dorb { position: relative; display: inline-block; flex: none; vertical-align: middle; }
.dorb::before { content: ""; position: absolute; left: -12.5%; top: -12.5%; width: 125%; height: 125%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--c-rgb), var(--halo, 0)), transparent); pointer-events: none; }
.dorb.s-working { --halo: .26; } .dorb.s-waiting { --halo: .14; } .dorb.s-needsYou { --halo: .3; } .dorb.live { --halo: .2; }
.dorb .core { position: absolute; inset: 0; display: block; }
.dorb canvas.orb { display: block; }
.dorb.s-working .core, .dorb.live .core { filter: drop-shadow(0 0 calc(var(--s) * .13) rgba(var(--c-rgb), .75)); }
.dorb.s-waiting .core { animation: dbreath 6s ease-in-out infinite; }
.dorb.s-paused .core { filter: none; opacity: 1; }                 /* solid and still (10/8): the orb draws one frame, the badge says paused */
.dorb.s-needsYou .core { animation: dbeat 1.6s ease-in-out infinite; filter: drop-shadow(0 0 calc(var(--s) * .16) rgba(var(--c-rgb), .9)); }
.dorb.s-failed .core { transform-origin: 50% 100%; transform: translateY(-4%) rotate(-5deg) scale(1.18, .66); filter: saturate(.35); opacity: .72; }
.dorb.s-done .core { transform: scale(.915); filter: saturate(.15); opacity: .3; }
.dorb .pulse { position: absolute; inset: 0; border-radius: 50%; border: max(1.2px, calc(var(--s) * .03)) solid rgba(var(--c-rgb), .75); opacity: 0; pointer-events: none; animation: dring 1.6s linear infinite; }
.dorb .pulse.b { animation-delay: -.8s; }
.dorb .fall { position: absolute; bottom: 1%; aspect-ratio: 1; border-radius: 50%; background: var(--l); transform: translateX(-50%); filter: saturate(.35); }
.dbadge { position: absolute; right: -3%; bottom: -3%; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 var(--ring) var(--badge-ring, var(--bg)); }
.dbadge .icon { width: 58%; height: 58%; } .dbadge .icon svg { stroke-width: 3.2; }
.dbadge.b-needsYou .icon { width: 66%; height: 66%; } .dbadge.b-needsYou .icon svg { stroke-width: 2.2; }
.dbadge.b-paused, .dbadge.b-done { background: var(--high); color: var(--text-2); }
.dbadge.b-needsYou { background: var(--c); color: var(--ink); }
.dbadge.b-failed { background: var(--red); color: #fff; }
.sb-row { --badge-ring: var(--drawer); }
@keyframes dbreath { 0%, 100% { transform: scale(.958); opacity: .68; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes dbeat { 0%, 100% { transform: scale(.97); } 22% { transform: scale(1.05); } }
@keyframes dring { from { transform: scale(.62); opacity: .75; } to { transform: scale(1.24); opacity: 0; } }

/* a dot's own page: its orb, state and controls above its chat */
.dotbar-host { flex: none; padding: 0 16px 6px; }
.dotbar { width: min(var(--col), 100%); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 2px 0 10px; border-bottom: 1px solid var(--stroke); }
.dotbar .who { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.dotbar .txt { min-width: 0; }
.dotbar .nm { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotbar .st { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotbar .ctl { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; }
.runbtn { flex: 1; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--hue); color: #000; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s var(--spring), opacity .15s; }
.runbtn:active { transform: scale(.95); }
.runbtn:disabled { opacity: .6; cursor: default; }
.runbtn .icon { width: 16px; height: 16px; }
.ring { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(var(--hue-rgb), .5); color: var(--hue); display: grid; place-items: center; transition: transform .2s var(--spring), background .15s; }
.ring:hover { background: rgba(var(--hue-rgb), .12); }
.ring:active { transform: scale(.9); }
.ring .icon { width: 19px; height: 19px; }
.ring.danger { border-color: rgba(255, 69, 58, .5); color: var(--red); }
.ring.danger:hover { background: rgba(255, 69, 58, .12); }

/* Reminders: a check, a title, a time chip, the "…" */
.remrow { display: flex; align-items: flex-start; gap: 4px; padding: 8px 6px 10px 4px; border-radius: 18px; background: var(--surface); margin-bottom: 8px; cursor: pointer; transition: background .15s, opacity .3s, transform .3s var(--settle); }
.remrow:hover { background: var(--raised); }
.remrow.leaving { opacity: 0; transform: translateX(16px); }
.checkbtn { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.checkbtn::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hue); transition: background .2s, transform .25s var(--spring); }
.checkbtn:hover::before { background: rgba(var(--hue-rgb), .2); }
.checkbtn:active::before { transform: scale(.8); }
.checkbtn.on::before { background: var(--hue); }
.checkbtn .icon { position: absolute; width: 14px; height: 14px; color: #000; opacity: 0; transition: opacity .15s; }
.checkbtn.on .icon { opacity: 1; }
.remrow .rb { flex: 1; min-width: 0; padding-top: 8px; }
.remrow .ttl { font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.remrow.done .ttl { color: var(--text-3); text-decoration: line-through; }
.remrow .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.timechip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 99px; background: rgba(var(--hue-rgb), .16); color: var(--hue); font-size: 12px; font-weight: 600; }
.timechip .icon { width: 11px; height: 11px; }
.remrow .sub { margin-top: 3px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.remrow .iconbtn.more { margin-top: 5px; }
/* Scheduled (jobs.js): a Job's row is a reminder row with its kind's icon where the checkbox goes. */
.jobrow .jobicon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--hue); }
.jobrow .jobicon .icon { width: 18px; height: 18px; }
.jobrow:not([role]) { cursor: default; }
.jobs-empty { margin: 0 4px; font-size: 14px; color: var(--text-3); }

/* the edit sheet (a bottom sheet on a phone, a card on a computer) */
.sheet-scrim { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh); z-index: 80; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
.sheet-scrim.leaving { opacity: 0; transition: opacity .16s; }
.sheet { position: relative; width: min(520px, 100%); max-height: calc(var(--app-h, 100dvh) - 12px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--drawer) radial-gradient(120% 55% at 50% 0%, rgba(var(--hue-rgb), .22), transparent 70%) no-repeat; border: 1px solid var(--stroke); border-bottom: 0; animation: sheetup .38s var(--settle) both; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 2px auto 8px; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 16px; }
.sheet-head > .icon { width: 24px; height: 24px; color: var(--hue); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld .cap { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
.fld .hint { font-size: 12.5px; color: var(--text-3); }
.inp { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 16px; background: var(--raised); border: 1px solid transparent; outline: none; font-size: 16px; line-height: 1.35; color: var(--text); -webkit-appearance: none; appearance: none; color-scheme: dark; transition: border-color .15s, background .15s; }
.inp:focus { border-color: var(--stroke-strong); background: var(--high); }
.inp::placeholder { color: var(--text-3); }
textarea.inp { resize: none; display: block; }
input[type="datetime-local"].inp { min-width: 0; text-align: left; }
.swatches { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 6px; padding: 4px 4px 2px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); transition: transform .2s var(--spring), box-shadow .15s; }
.swatch:active { transform: scale(.88); }
.swatch.on { box-shadow: 0 0 0 3px var(--drawer), 0 0 0 5px var(--c); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.qchip { padding: 8px 12px; border-radius: 14px; background: var(--raised); font-size: 13px; font-weight: 500; transition: background .15s, transform .2s var(--spring); }
.qchip:hover { background: var(--high); } .qchip:active { transform: scale(.95); }
.segmented { display: flex; padding: 3px; border-radius: 16px; background: var(--raised); }
.segmented button { flex: 1; height: 40px; border-radius: 13px; font-size: 14px; color: var(--text-2); transition: background .15s, color .15s; }
.segmented button.on { background: var(--hue); color: #000; font-weight: 600; }
.origin { font-size: 13px; color: var(--text-2); margin: -4px 0 12px; }
.sheet-err { color: var(--red); font-size: 14px; margin: -2px 0 10px; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sheet-actions .primary { height: 50px; border-radius: 25px; background: var(--hue); color: #000; font-weight: 700; font-size: 16px; transition: transform .2s var(--spring), opacity .15s; }
.sheet-actions .primary:active { transform: scale(.97); }
.sheet-actions .primary:disabled { opacity: .5; cursor: default; }
.sheet-actions .destructive { height: 46px; border-radius: 23px; background: rgba(255, 69, 58, .14); color: var(--red); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sheet-actions .destructive .icon { width: 17px; height: 17px; }

/* Settings: his connections, then the account */
.conns, .acct { background: var(--surface); border-radius: 18px; overflow: hidden; }
.conn { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 56px; }
.conn + .conn::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--stroke); }
.conn > .icon { width: 22px; height: 22px; color: var(--text-2); }
.conn .cn { flex: 1; min-width: 0; }
.conn .nm { font-size: 15px; font-weight: 500; }
.conn .dt { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.conn .state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); text-align: right; max-width: 46%; }
.conn .state.on { color: var(--text); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.state.on .led { background: var(--green); }
.state.warn .led { background: var(--orange); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 14px 14px; }
.quietbtn { flex: 1 1 170px; white-space: nowrap; height: 46px; border-radius: 23px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; transition: transform .2s var(--spring), background .15s; }
.quietbtn:hover { background: var(--high); } .quietbtn:active { transform: scale(.97); }
.quietbtn .icon { width: 17px; height: 17px; }
.quietbtn.danger { background: rgba(255, 69, 58, .14); color: var(--red); }
.fine { margin: 12px 4px 0; color: var(--text-3); font-size: 12.5px; }
.acct .fine { padding: 0 14px 14px; margin: 0; }

/* Connections (connections.js): Settings' services, and a dot's Connections on its Info tab */
.svs { margin-bottom: 4px; }
.svlist { background: var(--surface); border-radius: 18px; overflow: hidden; }
.sv { position: relative; }
.sv + .sv::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--stroke); }
.svrow { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; text-align: left; }
.svrow.tap { cursor: pointer; transition: background .15s; }
.svrow.tap:hover { background: rgba(255, 255, 255, .03); }
.svhit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 12px; }
.svmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.svname { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.svline { display: block; font-size: 13px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.sverr { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--red); overflow-wrap: anywhere; }
.svlogo { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(var(--c-rgb), .2); color: var(--c); font-size: 16px; font-weight: 700; }
.svlogo.pic { background: #fff; }
.svlogo img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 5px; }
.svlogo.sm { width: 24px; height: 24px; font-size: 12px; }
.svlogo.sm img { padding: 3px; }
.svlogo.add { background: transparent; border: 1.5px dashed var(--stroke-strong); color: var(--text-2); }
.svlogo.add .icon { width: 18px; height: 18px; }
.svside { flex: none; max-width: 46%; display: flex; align-items: center; gap: 8px; }
.svstate { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.3; color: var(--text-2); text-align: right; }
.svstate .led.on { background: var(--green); }
.svstate .led.warn { background: var(--orange); }
.svstate .led.bad { background: var(--red); }
.svchev .icon { width: 15px; height: 15px; color: var(--text-3); transition: transform .25s var(--settle); }
.sv.open .svchev .icon { transform: rotate(90deg); }
.svbtn { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--spring), background .15s, opacity .15s; }
.svbtn:hover { background: var(--high); }
.svbtn:active { transform: scale(.96); }
.svbtn:disabled { opacity: .55; cursor: default; transform: none; }
.svbtn .icon { width: 15px; height: 15px; }
.svbtn.primary { background: #fff; color: #000; }
.svbtn.primary:hover { background: rgba(255, 255, 255, .88); }
.svbtn.primary .spin { border-color: rgba(0, 0, 0, .25); border-top-color: #000; }
.svbtn.danger { background: rgba(255, 69, 58, .14); color: var(--red); }
.svbtn.danger:hover { background: rgba(255, 69, 58, .22); }
.svbtn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.svbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.svbody, .svform { padding: 2px 14px 16px 62px; }
.svbody { display: flex; flex-direction: column; gap: 14px; animation: rise .25s var(--settle) both; }
.svform .fld { margin-bottom: 12px; }
.svform .sverr { margin: -4px 0 10px; }
.svsub { margin: 0 4px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.svabs { display: flex; flex-direction: column; border-radius: 14px; background: var(--well); overflow: hidden; }
.svab { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 12px; }
.svab + .svab::before { content: ""; position: absolute; top: 0; left: 12px; right: 0; height: 1px; background: var(--stroke); }
.svabt { flex: 1; min-width: 0; }
.svabt b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.svabt small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.svabt small.svlock { margin-top: 2px; color: var(--text-3); }
.svtag { flex: none; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.svtag.read { background: rgba(255, 255, 255, .08); color: var(--text-2); }
.svtag.write { background: rgba(255, 159, 10, .16); color: var(--orange); }
.svhook { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.svhook code { flex: 1; min-width: 0; padding: 6px 9px; border-radius: 9px; background: var(--bg); font: 12px/1.4 var(--mono); color: var(--text-2); overflow-wrap: anywhere; user-select: all; }
.svwide { flex-basis: 100%; margin: 0; }
.svfine { margin: 0 4px; font-size: 12.5px; line-height: 1.4; color: var(--text-3); overflow-wrap: anywhere; }
.svaddr { font-family: var(--mono); font-size: 12px; }
.svlinkrow { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 12px; font-size: 13.5px; }
.svmain .svlinkrow { margin: 4px 0 0; align-self: flex-start; }
.svlinkrow .icon { width: 14px; height: 14px; }
.svlink { color: var(--link); font-size: inherit; }
.svlink:hover { text-decoration: underline; }
.svaddhead:hover .svlogo.add { color: var(--text); }
.sw { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--high); transition: background .2s; }
.sw .knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); transition: transform .25s var(--spring); }
.sw.on { background: var(--green); }
.sw.on .knob { transform: translateX(20px); }
.sw:disabled { opacity: .4; cursor: default; }
.sw[aria-busy="true"] { opacity: .7; cursor: progress; }
.sw:focus-visible { outline-offset: 3px; }
/* a dot's Connections: its switched-on abilities, a + that opens every service's abilities with switches */
.cghead { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 0 6px 6px; }
.cghead .gl { margin: 0; }
.cgplus { width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--text); transition: background .15s, transform .2s var(--spring); }
.cgplus:hover { background: rgba(255, 255, 255, .14); }
.cgplus:active { transform: scale(.9); }
.cgplus.on { background: var(--tint, #fff); color: #000; }
.cgplus .icon { width: 16px; height: 16px; }
.dotconns .gb .svab { padding: 11px 14px; }
.dotconns .gb .svab + .svab::before { left: 50px; }
.dotconns .gb .svab > .svlogo { align-self: flex-start; margin-top: 1px; }
.cgnone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 14px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.cgpanel { margin-top: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; animation: rise .25s var(--settle) both; }
.cgsrv + .cgsrv { border-top: 1px solid var(--stroke); }
.cgsrvhead { display: flex; align-items: center; gap: 8px; padding: 12px 14px 2px; font-size: 13px; color: var(--text-2); }
.cgsrvhead b { font-weight: 600; }
.cgpanel .svab { padding: 10px 14px; }
.cgpanel .svab + .svab::before { left: 14px; }
.cgerr { margin: 0; padding: 0 14px 12px; }
@media (max-width: 600px) {
  .svbody, .svform { padding-left: 14px; padding-right: 14px; }
  .svside { max-width: 44%; }
  .svstate { max-width: 130px; }
}

/* the "Worked for …" line, its steps, pictures and files (shared by the thread and the dot chats) */
.worked { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); padding: 3px 8px; margin-left: -8px; border-radius: 10px; }
.worked:hover { background: rgba(255, 255, 255, .06); color: var(--text-2); }
.worked .icon { width: 13px; height: 13px; transition: transform .25s var(--settle); }
.worked.open .icon { transform: rotate(90deg); }
.steps { margin-top: 6px; width: min(560px, 100%); background: var(--surface); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-2); }
.steps .s b { color: var(--text); font-weight: 500; }
.steps .s .x { display: block; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.shimmer { background: linear-gradient(90deg, var(--text-3) 0%, #fff 45%, var(--text-3) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shimmer 2s linear infinite; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.brow.her .attachments { justify-content: flex-start; }
.att-img { max-width: min(260px, 100%); max-height: 300px; border-radius: 18px; display: block; background: var(--well); cursor: zoom-in; }
.att-file { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); font-size: 14px; max-width: 280px; color: var(--text); }
.att-file:hover { background: var(--raised); text-decoration: none; }
.att-file small { color: var(--text-2); display: block; }
.att-file .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; height: 34px; padding: 0 6px; border-radius: 12px; background: var(--raised); font-size: 13px; }
.chip img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.chip .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.chip.err { outline: 1px solid var(--red); }
.chip .x, .replying .x { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.chip .x:hover, .replying .x:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.chip .x .icon, .replying .x .icon { width: 14px; height: 14px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--text-3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }

/* ── the thread (Friday's one conversation; a dot's chat is the same view in its color) ──
   iMessage's look: his bubbles on the right in her color (white for Friday), hers dark on the left, a small tail on the last of a
   group, the time over a group, receipts under his newest. */
.threadview { --tint: #3b82f6; --tint-rgb: 59, 130, 246; --ink: #fff; flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.convhead { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: start; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 14px 22px; background: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0, 0, 0, .7) 82%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.convhead > * { pointer-events: auto; }
.roundbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); margin-top: 10px; transition: transform .2s var(--spring), background .15s; }
.roundbtn:hover { background: rgba(255, 255, 255, .12); }
.roundbtn:active { transform: scale(.9); }
.roundbtn .icon { width: 19px; height: 19px; }
.convmid { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.convwho { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 100%; transition: transform .2s var(--spring); }
.convwho:active { transform: scale(.96); }
.avatar-disc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(var(--tint-rgb), .16), transparent 70%), #121212; border: 1px solid rgba(var(--tint-rgb), .3); }
.namepill { margin-top: -6px; display: inline-flex; align-items: center; gap: 3px; max-width: 220px; padding: 3px 9px 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.namepill .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.namepill .icon { width: 11px; height: 11px; color: var(--text-2); }
.namepill .icon svg { stroke-width: 2.6; }
.convsub { margin-top: 4px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tcol { width: min(var(--col), 100%); margin: 0 auto; padding: calc(106px + env(safe-area-inset-top)) 18px 28px; display: flex; flex-direction: column; min-height: 100%; justify-content: flex-end; }
.rows { display: flex; flex-direction: column; }
.intro { text-align: center; color: var(--text-3); font-size: 13px; padding: 28px 24px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.intro b { font-weight: 500; }
.intro p { margin: 0; font-size: 12.5px; max-width: 340px; opacity: .85; }
.loading-more { display: flex; justify-content: center; padding: 10px 0; }
.stamp { text-align: center; font-size: 11.5px; font-weight: 500; color: var(--text-3); padding: 16px 0 6px; }
.note { text-align: center; color: var(--text-2); font-size: 13px; padding: 8px 12px; }
.note.err { color: var(--red); }
.brow { display: flex; align-items: center; gap: 4px; margin-top: 2px; border-radius: 16px; }
.brow.enter { animation: bubblein .34s var(--spring) both; }
.brow.me.enter { transform-origin: bottom right; }
.brow.her.enter { transform-origin: bottom left; }
.rows > :not(.enter) .card { animation: none; }
.brow.first { margin-top: 8px; }
.brow.me { justify-content: flex-end; }
.brow.flash .bub, .brow.flash .att-file, .brow.flash .att-img { animation: flash 1.8s var(--settle); }
.bcol { display: flex; flex-direction: column; gap: 4px; max-width: min(75%, 560px); min-width: 0; }
.brow.me .bcol { align-items: flex-end; }
.brow.her .bcol { align-items: flex-start; }
.bub { position: relative; padding: 8px 13px; border-radius: 19px; font-size: 16px; line-height: 1.38; overflow-wrap: anywhere; max-width: 100%; transition: transform .25s var(--settle); -webkit-touch-callout: none; }
.bub.me { background: var(--tint); color: var(--ink, #000); }
.bub.her { background: var(--raised); color: var(--text); }
.bub.me.tail { border-bottom-right-radius: 5px; }
.bub.her.tail { border-bottom-left-radius: 5px; }
.bub.pending { opacity: .62; }
.bub.failed { outline: 1.5px solid var(--red); }
.bub .plain { white-space: pre-wrap; }
.bub.me a { color: var(--ink, #000); text-decoration: underline; }
.bub .md { font-size: inherit; line-height: 1.45; }
.bub .md pre { margin: .4em 0; }
.bub.armed { box-shadow: -3px 0 0 rgba(var(--tint-rgb), .6); }
.bub:has(.tb-badge) { margin-top: 12px; }
.tb-badge { position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: #202020; border: 1px solid var(--stroke-strong); display: grid; place-items: center; font-size: 14px; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); animation: pop .3s var(--spring) both; }
.tb-badge.left { left: -12px; }
.tb-badge.right { right: -12px; }
.foot { display: flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.foot .icon { width: 12px; height: 12px; }
.foot.err { color: var(--red); }
.replybtn { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); opacity: 0; transition: opacity .15s, background .15s; }
.replybtn .icon { width: 15px; height: 15px; }
.brow:hover .replybtn { opacity: 1; }
.replybtn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.quote { display: flex; gap: 8px; max-width: 100%; text-align: left; padding: 6px 10px; border-radius: 12px; background: rgba(33, 33, 33, .75); color: var(--text-2); font-size: 13px; line-height: 1.3; }
.quote .qbar, .replying .qbar { width: 3px; flex: none; border-radius: 2px; background: var(--text-3); align-self: stretch; }
.quote .qbar.his, .replying .qbar.his { background: var(--tint); }
.quote .qt b, .replying .qt b { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); }
.quote .qt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.extras { width: 100%; padding-right: 8%; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.workedrow { margin: 4px 0 0 6px; }
.working { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 36px; animation: bubblein .35s var(--spring) both; }
.typing { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 18px 18px 18px 5px; background: var(--raised); flex: none; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: blink 1.4s infinite both; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
.workorb { width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.wlabels { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.wlabels div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stopbtn { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--raised); color: var(--text-2); display: grid; place-items: center; transition: transform .2s var(--spring); }
.stopbtn:hover { color: var(--text); }
.stopbtn:active { transform: scale(.88); }
.stopbtn .icon { width: 11px; height: 11px; }
.askrow { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.askchips { display: flex; flex-wrap: wrap; gap: 8px; }
.askchip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; transition: transform .2s var(--spring), background .15s; }
.askchip:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.askchip:active:not(:disabled) { transform: scale(.95); }
.askchip:disabled { cursor: default; }
.askchip.picked { background: #fff; color: #000; border-color: transparent; }
.askchip .icon { width: 13px; height: 13px; }
.askrow.done .askchip:not(.picked) { opacity: .35; }
.askaway { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--orange); }
.askaway .icon { width: 14px; height: 14px; }
.jumpchip { position: absolute; z-index: 4; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; animation: pop .25s var(--spring) both; }

/* the text bar: a round +, the field with the send arrow inside it (it comes in once there's something to send) */
.composer-wrap { flex: none; padding: 6px 16px max(12px, env(safe-area-inset-bottom)); position: relative; }
.composer-wrap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; background: linear-gradient(to top, #000, transparent); pointer-events: none; }
.bar { width: min(var(--col), 100%); margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; }
.plus { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: transform .25s var(--spring), background .15s; }
.plus:hover { background: rgba(255, 255, 255, .12); }
.plus:active { transform: scale(.9); }
.plus .icon { width: 21px; height: 21px; }
.field { flex: 1; min-width: 0; display: flex; align-items: flex-end; min-height: 42px; border-radius: 21px; padding: 3px 4px 3px 16px; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: rgba(255, 255, 255, .24); }
.field.drag { border-color: var(--tint); box-shadow: 0 0 0 3px rgba(var(--tint-rgb), .25); }
.field textarea { flex: 1; min-width: 0; resize: none; background: transparent; border: 0; outline: none; font-size: 16px; line-height: 1.35; padding: 6px 0; max-height: 160px; overflow-y: auto; }
.field textarea::placeholder { color: var(--text-3); }
.sendbtn { width: 0; height: 34px; margin: 0 0 0 0; flex: none; border-radius: 50%; background: var(--tint); color: var(--ink, #000); display: grid; place-items: center; overflow: hidden; opacity: 0; transform: scale(.4); transition: width .22s var(--settle), margin .22s var(--settle), opacity .18s, transform .3s var(--spring); }
.sendbtn .icon svg { stroke-width: 2.6; }
.field.has-text .sendbtn { width: 34px; margin-left: 6px; opacity: 1; transform: none; }
.sendbtn:active { transform: scale(.88); }
.above { width: min(var(--col), 100%); margin: 0 auto; padding-left: 50px; }
.replying { margin-bottom: 8px; padding: 6px 8px 6px 10px; display: flex; align-items: center; gap: 8px; border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--text-3); animation: rise .25s var(--settle) both; }
.replying .qt { flex: 1; min-width: 0; }
.replying .qt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .menuhead { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--stroke); }
.menu .menuhead .icon { width: 17px; height: 17px; color: var(--purple); margin-top: 2px; }
.menu .menuhead b { display: block; font-size: 14px; font-weight: 600; }
.menu .menuhead small { display: block; font-size: 12px; color: var(--text-3); }
.plusmenu { transform-origin: bottom left; min-width: 240px; }
.tapbacks { display: flex; gap: 2px; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--stroke); }
.menu .tapbacks .tb { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; font-size: 19px; }
.menu .tapbacks .tb.on { background: rgba(255, 255, 255, .18); }

/* her info page: a big orb, the name, round buttons, tabs (a card on a computer, full screen on a phone) */
.info-scrim { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh); z-index: 85; background: rgba(0, 0, 0, .62); display: flex; align-items: center; justify-content: center; animation: fade .2s both; }
.info-scrim.leaving { opacity: 0; transition: opacity .16s; }
.info { position: relative; width: min(560px, calc(100% - 32px)); height: min(780px, calc(var(--app-h, 100dvh) - 48px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 28px; background: #000 radial-gradient(100% 38% at 50% 0%, rgba(var(--tint-rgb), .14), transparent 72%) no-repeat; border: 1px solid var(--stroke-strong); padding: 26px 22px 34px; animation: sheetup .38s var(--settle) both; }
.iclose { position: absolute; top: 12px; right: 14px; margin: 0; }
.ihero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; text-align: center; }
.ihero h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.isub { color: var(--text-2); font-size: 14px; max-width: 420px; }
.irow { display: flex; gap: 10px; margin: 20px 0; }
.iround { flex: 1; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text); transition: transform .2s var(--spring), background .15s; }
.iround:hover { background: rgba(255, 255, 255, .1); }
.iround:active { transform: scale(.96); }
.iround:disabled { opacity: .45; cursor: default; }
.iround .icon { width: 21px; height: 21px; color: var(--tint); }
.iround .l { display: flex; flex-direction: column; align-items: center; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.iround small { font-size: 11px; font-weight: 400; opacity: .75; }
.iround.lit { background: var(--tint); color: var(--ink, #000); }
.iround.lit .icon { color: #000; }
.itabs { display: flex; padding: 4px; margin-bottom: 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--stroke); }
.itabs button { flex: 1; height: 34px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.itabs button.on { background: var(--tint); color: var(--ink, #000); font-weight: 600; }
.igroup { margin-bottom: 18px; }
.gl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 0 6px 6px; }
.igroup .gb { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; overflow: hidden; }
.igroup .gf { margin: 6px 6px 0; font-size: 12.5px; color: var(--text-3); }
.irowline { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px; }
.irowline + .irowline::before, .iitem + .iitem::before, .ihit + .ihit::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: 1px; background: var(--stroke); }
.irowline.wrap { align-items: flex-start; }
button.irowline { width: 100%; text-align: left; color: inherit; transition: background .15s; }
button.irowline:hover { background: rgba(255, 255, 255, .05); }
.irowline .t.dim { color: var(--text-3); }
.ilink .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.vt-back { color: var(--blue); font-size: 14px; font-weight: 600; padding: 4px 2px 12px; }
.vt-list { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.vt-list .brow { margin-top: 2px; }
.irowline .ic { display: grid; place-items: center; width: 22px; }
.irowline .ic .icon { width: 19px; height: 19px; }
.irowline .t { flex: 1; font-size: 15px; font-weight: 500; }
.irowline .v { max-width: 62%; text-align: right; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.iactions { display: flex; flex-wrap: wrap; gap: 10px; }
.igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 16px; overflow: hidden; }
.icell { aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.icell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--settle); }
.icell:hover img { transform: scale(1.04); }
.ilist { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; overflow: hidden; }
.iitem { position: relative; display: flex; align-items: center; }
.iitem + .iitem::before { left: 66px; }
.imain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; color: var(--text); }
.imain:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
.imain .ic { width: 40px; height: 40px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: var(--text); }
.imain .ic.tint { color: var(--tint); }
.imain .tx { flex: 1; min-width: 0; }
.imain b { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imain small { font-size: 12.5px; color: var(--text-3); }
.imain > .icon { width: 14px; height: 14px; color: var(--text-3); }
.ishow { width: 40px; height: 40px; margin-right: 6px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.ishow:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.ishow .icon { width: 17px; height: 17px; }
.iempty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 20px; text-align: center; color: var(--text-2); }
.iempty > .icon { width: 28px; height: 28px; margin-bottom: 4px; color: var(--tint); opacity: .8; }
.iempty b { font-size: 16px; color: var(--text); }
.iempty p { margin: 0; max-width: 320px; font-size: 14px; }
.isbar { position: relative; display: flex; align-items: center; gap: 12px; }
.isbar > .icon { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.isearch-in { flex: 1; min-width: 0; height: 44px; padding: 0 16px 0 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); outline: none; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; }
.isearch-in:focus { border-color: var(--stroke-strong); }
.isbar .cancel { font-size: 15px; color: var(--text); }
.ihits { margin-top: 16px; }
.ihint { margin: 24px 12px 0; text-align: center; font-size: 14px; color: var(--text-3); }
.ihit { position: relative; display: block; width: 100%; padding: 11px 14px; text-align: left; }
.ihit + .ihit::before { left: 14px; }
.ihit:hover { background: rgba(255, 255, 255, .03); }
.ihit .top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ihit .top b { font-size: 13px; font-weight: 600; color: var(--text-2); }
.ihit .top b.tint { color: var(--tint); }
.ihit .top small { font-size: 12px; color: var(--text-3); }
.ihit .snip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; color: var(--text-2); }
.ihit mark { background: rgba(var(--tint-rgb), .22); color: var(--text); font-weight: 600; border-radius: 3px; }


/* a dot's page, the Info tab of its info page (dotpage.js) */
.inamehost { margin: 8px 0 0; }
.iname { font: inherit; letter-spacing: inherit; color: inherit; max-width: 100%; padding: 0 8px; border-radius: 12px; overflow-wrap: anywhere; cursor: text; transition: background .15s; }
.iname:hover { background: rgba(255, 255, 255, .07); }
.iname-in { font: inherit; letter-spacing: inherit; color: inherit; text-align: center; width: min(420px, 100%); padding: 0 8px; background: transparent; border: 0; border-bottom: 2px solid rgba(var(--tint-rgb), .6); outline: none; }
.dpage { --dc: var(--purple); --dc-rgb: 191, 90, 242; --dl: var(--purple); --ink: #000; }
.dstate { margin-bottom: 20px; padding: 16px; border: 1px solid var(--tone, var(--stroke)); border-radius: 22px; background: radial-gradient(120% 90% at 0% 0%, rgba(var(--dc-rgb), .1), transparent 60%), var(--surface); }
.dstate.s-working, .dstate.s-needsYou { box-shadow: 0 0 28px rgba(var(--dc-rgb), .16); }
.dsh { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dsh .icon { width: 14px; height: 14px; } .dstate.s-waiting .dsh .icon { color: var(--dc); }
.dsh .dst { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dsh .grow { flex: 1; }
.dbig { font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; } .dbig.quiet { color: var(--text-2); }
.dhint { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.dtry { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-top: 12px; padding: 0 16px; border-radius: 17px; background: var(--dc); color: var(--ink); font-size: 13px; font-weight: 700; transition: transform .2s var(--spring); }
.dtry:active { transform: scale(.94); } .dtry .icon { width: 15px; height: 15px; }
.dlast { margin-top: 12px; } .dlast p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; }
.dlast small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.dhead { font-size: 22px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.shimmer-dot { background: linear-gradient(90deg, var(--dl) 0%, #fff 50%, var(--dl) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.4s linear infinite; }
.ddetail { margin-top: 6px; font-size: 14px; color: var(--dl); }
.dprev { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.dprev i { width: 8px; height: 2px; flex: none; border-radius: 1px; background: var(--dc); opacity: .7; }
.dprev .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dprev .t { font-size: 11px; color: var(--text-3); }
.dsec { margin-bottom: 20px; }
.dsec .sechead { margin: 0 6px 8px; }
.dpage .irowline > .ic { color: var(--text-2); }
.dpage .irowline .t.wrap { font-weight: 400; line-height: 1.35; } .dpage .irowline .t.none { color: var(--text-3); }
.irowline.click { width: 100%; text-align: left; transition: background .15s; } .irowline.click:hover { background: rgba(255, 255, 255, .03); }
.irowline.top { align-items: flex-start; }
.irowline .tx { flex: 1; min-width: 0; }
.irowline .tx b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.irowline .tx small { display: block; font-size: 12.5px; color: var(--text-3); }
.cdot { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: 0 0 10px rgba(var(--dc-rgb), .55); }
.chev { width: 16px; height: 16px; color: var(--text-3); transition: transform .25s var(--settle); } .chev.up, .dmore .icon.up { transform: rotate(180deg); }
.cchoices { padding: 4px 14px 16px; }
.cchoices .swatches { justify-content: flex-start; gap: 12px 12px; padding: 4px 4px 2px; }
.cchoices .swatch.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.swatch.more { position: relative; display: block; cursor: pointer; background: conic-gradient(#ff453a, #ff9f0a, #ffd60a, #30d158, #64d2ff, #0a84ff, #bf5af2, #ff375f, #ff453a); }
.swatch.more.on { background: var(--c); }
.swatch.more .cin { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.cnote { display: flex; align-items: center; gap: 6px; margin: 12px 4px 0; font-size: 12.5px; color: var(--text-2); } .cnote .icon { width: 14px; height: 14px; }
.tog { position: relative; width: 46px; height: 28px; flex: none; border-radius: 14px; background: var(--high); transition: background .2s; }
.tog i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.tog.on { background: var(--dc); } .tog.on i { transform: translateX(18px); }
.dfor { padding: 14px; }
.dline { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; } .dline.none { font-size: 15px; color: var(--text-3); }
.dmore { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.dmore .icon { width: 12px; height: 12px; transition: transform .25s var(--settle); }
.dbrief { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.dquiet { margin: 0 6px; font-size: 14px; color: var(--text-3); }
.dquiet.card { margin: 0; padding: 14px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--surface); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip2 { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 99px; background: rgba(var(--hue-rgb), .16); color: var(--hue); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip2 .icon { width: 13px; height: 13px; }
.mem { display: flex; flex-direction: column; gap: 14px; }
.mh { margin: 0 6px 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.mcard { overflow: hidden; border: 1px solid var(--stroke); border-radius: 20px; background: var(--surface); }
.mrow { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; }
.mrow + .mrow::before { content: ""; position: absolute; top: 0; left: 30px; right: 0; height: 1px; background: var(--stroke); }
.mrow > i { width: 6px; height: 6px; flex: none; margin: 0 2px; border-radius: 50%; opacity: .8; transform: translateY(-2px); }
.mrow .mt { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.mtime { flex: none; font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dload { display: flex; justify-content: center; padding: 18px; }
.dlog { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.lrow { display: flex; align-items: flex-start; gap: 10px; }
.lic { display: grid; place-items: center; width: 18px; flex: none; padding-top: 3px; } .lic .icon { width: 14px; height: 14px; }
.lic i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lx { flex: 1; min-width: 0; } .ll { font-size: 13px; overflow-wrap: anywhere; } .ll.strong { font-weight: 600; }
.ld { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--text-3); }
.dgone { margin-top: 6px; }
.dextend { height: 28px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 14px; background: var(--dc); color: var(--ink); font-size: 13px; font-weight: 700; }
.uned { padding: 4px 14px 14px; }
.uact { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; } .uact .dtry { margin-top: 0; } .uact .dmore { margin-top: 0; }
.pausedhint { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; color: var(--text-3); } .pausedhint .icon { width: 12px; height: 12px; }

/* cards waiting on him */
.cardbar { width: min(var(--col), 100%); margin: 0 auto 10px; display: flex; flex-direction: column; gap: 8px; max-height: 38vh; overflow-y: auto; }
.cardbar:empty { display: none; }
.card { background: var(--surface); border: 1px solid var(--stroke-strong); border-radius: 22px; padding: 14px 16px; animation: arrive .4s var(--spring) both; }
.card .ctitle { font-weight: 600; font-size: 15.5px; }
.card .csub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.card .cdetail { margin-top: 8px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; max-height: 120px; overflow: auto; background: var(--well); border-radius: 12px; padding: 8px 10px; }
.card .cdetail.code { font-family: var(--mono); font-size: 12px; }
.card .creason { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.card .cq { margin-top: 10px; }
.card .cq .q { font-size: 14.5px; margin-bottom: 8px; }
.card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card .opt { padding: 8px 14px; border-radius: 14px; background: var(--raised); font-size: 14px; text-align: left; transition: background .15s, transform .2s var(--spring); }
.card .opt:hover { background: var(--high); }
.card .opt:active { transform: scale(.97); }
.card .opt.sel { background: var(--blue); color: #fff; }
.card .opt small { display: block; color: var(--text-2); font-size: 12px; }
.card .opt.sel small { color: rgba(255, 255, 255, .8); }
.card .other { margin-top: 8px; height: 40px; font-size: 14px; border-radius: 12px; }
.card .away { margin-top: 10px; font-size: 13px; color: var(--orange); display: flex; align-items: center; gap: 8px; }

/* embeds under her words */
.embeds { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.embed { width: 100%; background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.embed h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.embed .erow { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--stroke); font-size: 14px; align-items: baseline; }
.embed .erow:first-of-type { border-top: 0; }
.embed .erow .a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.embed .erow .b { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.embed .erow small { display: block; color: var(--text-2); font-size: 12.5px; }
.embed .plain { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.embed .kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
/* live cards (live-cards.js); Friday's own color is blue (#3B82F6), a dot's card takes the dot's */
.embed.live { --friday-blue: #3b82f6; }
.embed.live.work, .embed.live.ask { box-shadow: inset 3px 0 0 var(--friday-blue); }
.embed.live.gone { opacity: .55; }
.embed.live p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.embed.live small { display: block; color: var(--text-2); font-size: 12.5px; }
.lc-head { display: flex; gap: 12px; align-items: flex-start; }
.lc-head .a { flex: 1; min-width: 0; }
.lc-head h4 { margin: 0; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lc-pick { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.lc-pick[hidden] { display: none; }
.lc-when { background: var(--raised); border: 1px solid var(--stroke-strong); border-radius: 10px; padding: 6px 10px; color-scheme: dark; }
.lc-steps { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.lc-step { font-size: 13.5px; color: var(--text-3); padding-left: 16px; position: relative; }
.lc-step::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.lc-step.now { color: var(--text); }
.lc-step.now::before { background: var(--friday-blue); animation: lcpulse 1.2s ease-in-out infinite; }
@keyframes lcpulse { 50% { opacity: .3; } }
.lc-err { color: var(--red) !important; }
.lc-detail { margin: 8px 0 0; font-size: 14px; color: var(--text) !important; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.lc-detail { font: 12.5px/1.5 var(--mono); background: var(--well); border-radius: 10px; padding: 8px 10px; }
.lc-why { font-size: 12.5px !important; color: var(--text-3) !important; }
.lc-state { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.lc-state.approved { color: var(--success); }
.lc-table { overflow-x: auto; margin: 0 -4px; }
.lc-table table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.lc-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 4px; }
.lc-table td { padding: 6px 4px; border-top: 1px solid var(--stroke); color: var(--text-2); vertical-align: top; max-width: 240px; overflow-wrap: anywhere; }
.lc-table td.first { color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .lc-step.now::before { animation: none; } }

/* markdown */
.md { overflow-wrap: anywhere; font-size: 16.5px; line-height: 1.6; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .8em; }
.md h1, .md h2, .md h3, .md h4 { margin: 1.1em 0 .4em; line-height: 1.25; font-weight: 700; }
.md h1 { font-size: 1.45em; } .md h2 { font-size: 1.25em; } .md h3 { font-size: 1.1em; } .md h4 { font-size: 1em; }
.md ul, .md ol { margin: 0 0 .8em; padding-left: 1.5em; }
.md li { margin: .2em 0; } .md li > p { margin: 0; }
.md blockquote { margin: 0 0 .8em; padding: .1em 0 .1em 14px; border-left: 3px solid var(--stroke-strong); color: var(--text-2); }
.md code { font-family: var(--mono); font-size: .88em; background: var(--well); padding: .12em .4em; border-radius: 6px; }
.md pre { background: var(--well); border-radius: 14px; padding: 12px 14px; overflow-x: auto; margin: 0 0 .9em; position: relative; }
.md pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.5; }
.md pre .copy { position: absolute; top: 6px; right: 6px; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--high); color: var(--text-2); opacity: 0; transition: opacity .15s; }
.md pre:hover .copy { opacity: 1; }
.md hr { border: 0; border-top: 1px solid var(--stroke-strong); margin: 1.2em 0; }
.md table { border-collapse: collapse; margin: 0 0 .9em; display: block; overflow-x: auto; max-width: 100%; font-size: .94em; }
.md th, .md td { border: 1px solid var(--stroke-strong); padding: 6px 12px; text-align: left; }
.md th { background: var(--well); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .86); display: grid; place-items: center; cursor: zoom-out; animation: fade .2s both; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; padding: 10px 16px; border-radius: 14px; background: rgba(40, 40, 40, .95); border: 1px solid var(--stroke-strong); font-size: 14px; animation: rise .3s var(--settle) both; }
.toast.bad { color: #ffb4ae; }

/* the live view of her computer use (live.js): his whole screen, video or JPEG, pinch / ⌘-scroll to zoom */
.watchbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; flex: none; background: var(--raised); color: var(--blue); border: 1px solid rgba(10, 132, 255, .4); font-size: 13px; font-weight: 600; transition: transform .2s var(--spring), background .15s; }
.watchbtn:hover { background: var(--high); }
.watchbtn:active { transform: scale(.94); }
.watchbtn .icon { width: 15px; height: 15px; }
.live .watchbtn { margin-left: auto; }
.card .cwatch { margin-top: 10px; }
.liveview { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); background: var(--bg) radial-gradient(90% 60% at 0% 0%, rgba(10, 132, 255, .16), transparent 70%) no-repeat; animation: fade .2s both; }
.liveview[hidden] { display: none; }
.lv-head { display: flex; align-items: center; gap: 10px; }
.lv-titles { flex: 1; min-width: 0; }
.lv-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lv-sub { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-frame { position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid rgba(10, 132, 255, .38); }
.lv-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
.lv-stage.zoomed { overflow: auto; display: block; overscroll-behavior: contain; }
.lv-box { position: relative; margin: auto; }
.lv-media { display: block; width: 100%; height: 100%; object-fit: contain; }
.lv-media[hidden] { display: none; }
.lv-badge { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0, 0, 0, .58); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px; pointer-events: none; max-width: calc(100% - 24px); }
.lv-badge[hidden] { display: none; }
.lv-badge b { font-weight: 600; }
.lv-app { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; animation: lvpulse 1.6s ease-in-out infinite; }
.lv-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.lv-state[hidden] { display: none; }
.lv-state .spin { width: 22px; height: 22px; border: 2px solid var(--text-3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.lv-state .spin[hidden], .lv-state .icon[hidden], .lv-state .btn[hidden], .lv-st-detail[hidden] { display: none; }
.lv-state .icon { width: 26px; height: 26px; color: var(--blue); }
.lv-st-title { font-size: 16px; color: var(--text); }
.lv-st-detail { font-size: 14px; color: var(--text-2); max-width: 420px; }
.lv-foot { color: var(--text-3); font-size: 12px; text-align: center; }
@keyframes lvpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

canvas.orb { display: block; }

@keyframes sheetup { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes caret { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: .85; transform: scale(1); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bubblein { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flash { 0%, 50% { box-shadow: 0 0 0 4px rgba(var(--tint-rgb), .45), 0 0 24px rgba(var(--tint-rgb), .35); } 100% { box-shadow: 0 0 0 0 rgba(var(--tint-rgb), 0); } }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 860px) {
  .sidebar { position: absolute; z-index: 40; top: 0; bottom: 0; left: 0; width: min(var(--sidebar), 86vw); margin-left: 0; transform: translateX(0); box-shadow: 12px 0 40px rgba(0, 0, 0, .6); }
  .shell.collapsed .sidebar { margin-left: 0; transform: translateX(-105%); box-shadow: none; }
  .shell:not(.collapsed) .scrim { display: block; position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); }
  .tcol { padding-left: 12px; padding-right: 12px; }
  .bcol { max-width: 80%; }
  .composer-wrap { padding: 4px 10px max(8px, env(safe-area-inset-bottom)); }
  .convhead { padding-left: 10px; padding-right: 10px; }
  .replybtn { display: none; }
  .extras { padding-right: 0; }
}
@media (min-width: 600px) {
  .sheet-scrim { align-items: center; }
  .sheet { border-radius: 28px; border-bottom: 1px solid var(--stroke); padding-bottom: 24px; max-height: calc(var(--app-h, 100dvh) - 48px); }
  .grab { display: none; }
  .sheet-head { padding-top: 14px; }
}
@media (min-width: 861px) {
  .pagecol { padding-left: 24px; padding-right: 24px; }
  .dotbar-host { padding: 0 24px 6px; }
  .shell:not(.collapsed) .menubtn { visibility: hidden; }
  .bub { font-size: 15px; }
}
@media (max-width: 600px) {
  .info-scrim { align-items: stretch; background: #000; }
  .info { width: 100%; height: 100%; border-radius: 0; border: 0; padding: calc(18px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom)); }
  .iclose { top: calc(10px + env(safe-area-inset-top)); right: 12px; }
}
@media (min-width: 600px) { .igrid { grid-template-columns: repeat(4, 1fr); } }
@media (pointer: coarse) {
  .iconbtn { width: 40px; height: 40px; }
  .menu button { height: 44px; }
  .iconbtn.more { width: 40px; height: 40px; }
  .replybtn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .shimmer { animation: none; color: var(--text) !important; background: none; }
  .shimmer-dot { animation: none; color: var(--dl) !important; background: none; }
  .dorb .core, .dorb .pulse, .icon.wv { animation: none !important; }
  .dorb .pulse { display: none; }
  .brow, .working { animation: none; }
}

/* reply threads (iMessage): a message and its replies over a blur, above the text bar */
.replythread { position: absolute; top: 0; left: 0; right: 0; z-index: 6; overflow-y: auto; overscroll-behavior: contain; background: rgba(0, 0, 0, .55); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); animation: fadein .2s ease both; }
.replythread .rt-col { width: min(var(--col), 100%); margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; animation: rise .28s var(--settle) both; }
.rt-count { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 8px 0; }
.rt-link { align-self: flex-start; background: none; border: 0; color: var(--tint); font-size: 12.5px; font-weight: 600; padding: 2px 6px; cursor: pointer; }
.brow.me .rt-link { align-self: flex-end; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
/* WhatsApp's reaction bar (a double click on hers) */
.menu.reactbar { display: flex; align-items: center; gap: 2px; padding: 5px 8px; border-radius: 999px; }
.menu.reactbar .tb { font-size: 24px; width: 38px; height: 38px; border-radius: 50%; background: none; border: 0; cursor: pointer; }
.menu.reactbar .tb.on { background: rgba(255, 255, 255, .16); }
.menu.reactbar .anyemoji { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--text); text-align: center; font-size: 18px; }

/* her info page's live controls (10/8) */
.igroup .segmented { flex: none; min-width: 210px; margin-left: auto; }
.igroup .segmented.wide { flex: 1; margin-left: 0; }
.igroup .segmented button { height: 32px; font-size: 13px; }
.igroup .segmented button.on { color: #fff; }
.iselect { max-width: 220px; background: var(--raised); color: var(--text); border: 1px solid var(--stroke); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.iswitch { margin-left: auto; width: 46px; height: 28px; border-radius: 14px; background: var(--raised); border: 1px solid var(--stroke-strong); position: relative; transition: background .2s; flex: none; }
.iswitch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--spring); }
.iswitch.on { background: #22c55e; border-color: #22c55e; }
.iswitch.on::after { transform: translateX(18px); }

