/* Saywork Chat: the glue between the design prototype's stylesheets (/design/*.css,
   copied unchanged from docs/design) and a real browser window. The prototype draws
   the app inside a fake browser frame (.w-browser > .w-view) and the phone inside a
   device frame (.p-device); here #app is the view and fills the real viewport. */

html, body { height: 100%; }
body { overflow: hidden; background: var(--paper); }
#design { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the view: what .w-view is inside the prototype's browser frame */
#app.w-view { position: fixed; inset: 0; background: var(--paper); overflow: hidden; }
#app [hidden] { display: none !important; }
/* :where() keeps this at zero specificity: a link styled as .btn.primary keeps its own colours
   (at #app strength it painted graphite text on the graphite button: the black empty pills). */
:where(#app) a { color: inherit; text-decoration: none; }
#app .bubble a, #app .md a, #app .hint2 a, #app label a { text-decoration: underline; }
#app, #app * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
#app *:hover { scrollbar-color: color-mix(in srgb, var(--graphite) 20%, transparent) transparent; }
#notice.w-toast { position: fixed; }
html[data-device="phone"] #notice.w-toast { bottom: 104px; }

/* links that stand in for the prototype's menu buttons */
#app .pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; text-align: start; }
#app .pop a:hover { background: var(--chalk); }
#app .pop a small { display: block; font-size: 12px; color: var(--stone); }
#app .w-allp a { display: flex; }
#app .pop button:disabled { cursor: default; opacity: .6; }
#app button:disabled { cursor: default; }

/* the phone: the real screen, without the prototype's status bar and home bar */
#app .p-device { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border-radius: 0; box-shadow: none; }
#app .ps-scroll { padding-top: calc(60px + env(safe-area-inset-top, 0px)); padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
#app .ps-head { top: calc(8px + env(safe-area-inset-top, 0px)); }
#app .ps-chat { padding-top: calc(118px + env(safe-area-inset-top, 0px)); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
#app .ps-chead { top: calc(6px + env(safe-area-inset-top, 0px)); }
#app .ps-dock { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
#app .ps-tabs { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
#app .ps-splash .splash-b { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
#app .ps-row, #app .ps-li { color: inherit; }

/* Modals open the way the prototype's do (modalin), a touch more visibly: scale and fade. */
@keyframes sw-modal-in { from { opacity: 0; transform: translateY(10px) scale(.94); } }
#app .w-scrim > .w-modal, #app .w-scrim > .w-palette { animation: sw-modal-in .32s cubic-bezier(.2, .8, .2, 1); }
#app .w-gifthero .mascot { animation: sw-bob 3s ease-in-out infinite; }
@keyframes sw-bob { 50% { transform: translateY(-4px); } }
/* "Get a free month" catches the eye: a light sweeps across it and the gift gives a little shake,
   then it sits still as if nothing happened, then it shines again. One cycle is 4.5s. */
#app .sw-shine { position: relative; overflow: hidden; isolation: isolate; }
#app .sw-shine::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; width: 70%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 0%, rgba(69, 215, 162, .38) 32%, rgba(255, 255, 255, .95) 50%, rgba(69, 215, 162, .38) 68%, transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  animation: sw-shine-sweep 4.5s ease-in-out 1s infinite;
}
#app .sw-shine svg.i { animation: sw-shine-shake 4.5s ease-in-out 1s infinite; transform-origin: 50% 70%; }
@keyframes sw-shine-sweep { 0% { transform: translateX(-130%) skewX(-18deg); } 24%, 100% { transform: translateX(230%) skewX(-18deg); } }
@keyframes sw-shine-shake { 0%, 26%, 100% { transform: none; } 6% { transform: rotate(-14deg) scale(1.12); } 12% { transform: rotate(12deg) scale(1.12); } 18% { transform: rotate(-6deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  #app .w-scrim > .w-modal, #app .w-scrim > .w-palette, #app .w-gifthero .mascot { animation: none; }
  #app .sw-shine::after, #app .sw-shine svg.i { animation: none; }
  #app .sw-shine::after { display: none; }
}
/* Ask opens on Sayo's hero, centred in the conversation column. */
#app #run-col:has(> .w-hero:only-child) { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
/* Links that stand in for the prototype's block elements. */
#app a.shot, #app a.w-srow, #app a.ps-row, #app a.ps-file, #app a.ps-opt { display: block; }
#app a.w-srow, #app a.ps-row, #app a.ps-opt { display: flex; }
#app a.ps-file { display: flex; }

/* The mic: a dark glass bar laid over the composer (Folk's), outside #app so a re-render never drops it. */
#rec { position: fixed; z-index: 140; left: 50%; bottom: 28px; transform: translateX(-50%); }
#rec.over { transform: none; bottom: auto; }
html[data-device="phone"] #rec:not(.over) { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.sw-rec { display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 44px; padding: 0 6px; border-radius: 26px; white-space: nowrap;
  background: rgba(29, 32, 35, .9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: #EEF0EA;
  box-shadow: 0 12px 32px -10px rgba(29, 32, 35, .55), inset 0 0 0 1px rgba(238, 240, 234, .1); animation: sw-rec-in .22s cubic-bezier(.2, .8, .2, 1); font: 500 14px var(--ui); }
#rec:not(.over) .sw-rec { width: min(420px, calc(100vw - 32px)); height: 48px; }
@keyframes sw-rec-in { from { opacity: 0; transform: scale(.97); } }
.sw-rec-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sw-rec-wave { flex: 1; min-width: 0; height: 26px; overflow: visible; }
.sw-rec-wave circle { fill: rgba(238, 240, 234, .38); }
.sw-rec-wave rect { fill: #EEF0EA; }
.sw-rec-status { flex: none; color: rgba(238, 240, 234, .85); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.sw-rec[data-state="writing"] .sw-rec-status, .sw-rec[data-state="failed"] .sw-rec-status { flex: 1; min-width: 0; }
.sw-rec-spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2.4px solid rgba(238, 240, 234, .25); border-top-color: #45D7A2; animation: sw-spin .8s linear infinite; }
@keyframes sw-spin { to { transform: rotate(360deg); } }
.sw-rec-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(238, 240, 234, .12); color: #EEF0EA; cursor: pointer; }
html[data-device="laptop"] .sw-rec-btn { width: 32px; height: 32px; }
.sw-rec-btn:hover { background: rgba(238, 240, 234, .22); }
.sw-rec-btn svg { width: 16px; height: 16px; fill: none; stroke: #EEF0EA; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sw-rec-btn.is-x { background: transparent; }
.sw-rec-btn.is-stop svg { fill: #EEF0EA; stroke: none; }
.sw-rec-btn.is-send { background: #FFFFFF; }
.sw-rec-btn.is-send:hover { background: #EEF0EA; }
.sw-rec-btn.is-send svg { stroke: #1D2023; }
#app .cbtn.mic.on { color: var(--pink); }
@media (prefers-reduced-motion: reduce) { .sw-rec, .sw-rec-spin { animation: none; } }
/* Answers: tables and code scroll inside the bubble on a narrow screen. */
#app .md { overflow-wrap: anywhere; }
#app .md pre { overflow-x: auto; background: var(--chalk); border-radius: var(--r-sm); padding: 10px 12px; margin: 0 0 10px; }
#app .md pre code { background: none; padding: 0; }
#app .ps-chat .md table, #app .w-run .md table { display: block; overflow-x: auto; }
#app .bubble.md > :last-child, #app .md > :last-child { margin-bottom: 0; }

/* Usage & plan: cards laid out top to bottom with the button at the foot, so equal heights never open a gap. */
#app .sw-planshead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
#app .sw-planshead h2 { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
#app .sw-plans { align-items: stretch; }
#app .sw-plan { gap: 0; padding: 18px; }
#app .sw-plan .sw-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
#app .sw-plan .pr { margin-top: 6px; }
#app .sw-plan .sw-permonth { font-size: 13px; color: var(--stone); margin-top: 2px; }
#app .sw-plan p { flex: none; margin-top: 6px; }
#app .sw-feats { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
#app .sw-feats li { display: flex; gap: 7px; align-items: flex-start; }
#app .sw-feats li svg.i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green); }
#app .sw-feats li.inc { color: var(--stone); font-size: 13px; }
#app .sw-plan .sw-choose { margin-top: auto; align-self: stretch; justify-content: center; }
#app .sw-plan .sw-feats + .sw-choose { margin-top: 16px; }
#app .sw-plan:has(.sw-choose) .sw-feats { margin-bottom: auto; }
#app .sw-badge { align-self: flex-start; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--graphite); white-space: nowrap; }
#app .sw-badge.hot { background: var(--graphite); color: var(--paper); box-shadow: none; }
#app .sw-ent { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 12px; }
#app .sw-ent > b { font: 600 16px var(--display); }
#app .sw-ent-feats { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--stone); }
#app .sw-ent-feats span { display: inline-flex; align-items: center; gap: 6px; }
#app .sw-ent-feats svg.i { width: 15px; height: 15px; color: var(--green); }
#app .sw-plans.sw-phonelist { display: flex; flex-direction: column; gap: 10px; }
#app .sw-plans.sw-phonelist .sw-plan { background: var(--chalk); box-shadow: none; }
#app .sw-plans.sw-phonelist .sw-plan.cur { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
html[data-device="phone"] #app .sw-ent { flex-direction: column; align-items: stretch; gap: 10px; background: var(--chalk); box-shadow: none; }
@media (max-width: 900px) { #app .sw-plans:not(.sw-phonelist) { grid-template-columns: repeat(2, 1fr); } }
/* Paying: InstaPay or card, and the InstaPay transfer. */
#app .sw-ipstatus { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 12px 0 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
#app .sw-ipstatus img { width: 108px; height: 20px; object-fit: contain; flex: none; }
#app .sw-paychoice { display: grid; gap: 10px; }
#app .sw-payopt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: var(--r-md); background: var(--chalk); text-align: start; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow var(--t-quick); }
#app .sw-payopt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--graphite); }
#app .sw-payopt:disabled { opacity: .6; cursor: not-allowed; }
#app .sw-payopt > img { width: 124px; height: 23px; object-fit: contain; flex: none; }
#app .sw-payopt b { display: block; font-weight: 600; }
#app .sw-payopt b em { font-style: normal; font-weight: 400; color: var(--stone); font-size: 13px; margin-inline-start: 6px; }
#app .sw-payopt small { display: block; font-size: 13px; color: var(--stone); }
#app .sw-paycard { display: inline-flex; align-items: center; gap: 8px; width: 124px; flex: none; font-weight: 600; }
#app .sw-ipgrid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
#app .sw-ipqr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--stone); }
#app .sw-ipqr img { width: 200px; height: auto; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
#app .sw-ipqr a { font-size: 14px; font-weight: 600; color: var(--graphite); text-decoration: underline; }
#app .sw-ipform { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#app .sw-ipamount { padding: 12px 14px; border-radius: var(--r-md); background: var(--chalk); display: flex; flex-direction: column; gap: 2px; }
#app .sw-ipamount small { font-size: 13px; color: var(--stone); }
#app .sw-ipamount span { display: flex; align-items: center; gap: 10px; }
#app .sw-ipamount b { font: 800 26px var(--display); }
#app .sw-iprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
#app .sw-iprow > span { min-width: 0; display: flex; flex-direction: column; }
#app .sw-iprow small { color: var(--stone); font-size: 12px; }
#app .sw-iprow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app .sw-ipfoot { display: flex; align-items: center; gap: 6px; }
#app .sw-ipfoot svg.i { width: 15px; height: 15px; }
#app .sw-iphead { display: flex; align-items: center; gap: 12px; }
#app .sw-iphead img { width: 124px; height: 23px; object-fit: contain; }
#app .sw-ipnote { font-size: 15px; color: var(--graphite); }
html[data-device="phone"] #app .sw-ipgrid { grid-template-columns: 1fr; }
html[data-device="phone"] #app .sw-ipqr img { width: 180px; }
/* The phone's sticker wall: every mascot moves on its own beat. */
#app .stk .mascot svg, #app .stk .mascot .m-eyes { animation-delay: var(--md, 0s); }
/* A tall sheet scrolls; its parts never squeeze. */
#app .ps-sheet > * { flex-shrink: 0; }
/* The most popular plan: a pink ring, a soft lift, its pill on the ring. The current plan keeps its quiet chalk. */
#app .sw-plan.hot { position: relative; overflow: visible; box-shadow: 0 0 0 2px #FF4F8B, 0 14px 32px -14px rgba(255, 79, 139, .45), var(--s1); }
#app .sw-ringtag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); height: 22px; padding: 0 11px; border-radius: var(--r-pill); background: #FF4F8B; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
#app .sw-plans { padding-top: 12px; }
/* Phone: usage, a sticky Monthly/Yearly, one compact Enterprise row, the plans as a swipe carousel. */
#app .sw-pplans { padding-bottom: 40px; }
#app .sw-psticky { position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px 10px 18px; margin: 0 -16px 4px; background: var(--paper); }
#app .sw-psticky .ps-seg { width: 200px; align-self: auto; }
html[data-device="phone"] #app .sw-ent { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; background: var(--chalk); box-shadow: none; margin: 4px 0 10px; }
html[data-device="phone"] #app .sw-ent-feats { order: 3; flex-basis: 100%; font-size: 12px; gap: 2px 10px; }
html[data-device="phone"] #app .sw-ent > b { flex: 1; }
html[data-device="phone"] #app .sw-ent .pbtn { height: 32px; padding: 0 13px; font-size: 13px; }
#app .sw-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 16px 26px 6px; scrollbar-width: none; }
#app .sw-carousel::-webkit-scrollbar { display: none; }
#app .sw-carousel .sw-plan { flex: none; width: 300px; scroll-snap-align: center; background: var(--chalk); box-shadow: none; border-radius: 26px; padding: 20px; }
#app .sw-carousel .sw-plan.hot { background: var(--paper); box-shadow: 0 0 0 2px #FF4F8B, 0 14px 32px -14px rgba(255, 79, 139, .45); }
#app .sw-carousel .sw-plan.cur { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
#app .sw-carousel .sw-plan .pr { font-size: 38px; margin-top: 10px; }
#app .sw-carousel .sw-feats li.more { display: none; }
#app .sw-carousel .sw-plan.all .sw-feats li.more { display: flex; }
#app .sw-more { align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
#app .sw-carousel .sw-choose { margin-top: auto; }
#app .sw-carousel .sw-feats + .sw-choose, #app .sw-carousel .sw-more + .sw-choose { margin-top: 16px; }
#app .sw-carousel .sw-plan:has(.sw-choose) { min-height: 420px; }
#app .sw-plandots { margin: 6px 0 4px; }
#app .sw-pnote { font-size: 12px; color: var(--stone); text-align: center; margin: 8px 4px; }

/* ------------------------------------------------------------ round 6 */
/* The chat header: back and gift on the face's centre line; the name pill never runs under them. */
#app .ps-chead > .gbtn, #app .ps-chead .r2 { top: 10px; }
#app .ps-chead .who { max-width: calc(100% - 132px); }
#app .ps-chead .nm { max-width: 100%; }
#app .ps-chead .nm b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#app .ps-chead .nm small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* The sign-in wall: three benefits take turns under the wordmark. */
#app .sw-benefits { display: grid; margin-top: 6px; min-height: 22px; text-align: center; font-size: 15px; font-weight: 500; color: rgba(238, 240, 234, .78); }
#app .sw-benefits > span { grid-area: 1 / 1; opacity: 0; animation: sw-benefit 9s ease-in-out infinite; }
#app .sw-benefits > span:nth-child(2) { animation-delay: 3s; }
#app .sw-benefits > span:nth-child(3) { animation-delay: 6s; }
@keyframes sw-benefit { 0%, 2% { opacity: 0; transform: translateY(6px); } 6%, 30% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  #app .sw-benefits > span { animation: none; }
  #app .sw-benefits > span:first-child { opacity: 1; }
}

/* Chat rows: a status label, a short title, unread and pinned marks; swipe left for Pin and Delete. */
#app .sw-status { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
#app .sw-status.live { color: var(--graphite); background: color-mix(in srgb, var(--mint) 24%, transparent); }
#app .sw-status.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green, #1E9E6A); animation: sw-live 1.6s ease-in-out infinite; }
#app .sw-status.wait { color: #8A5300; background: color-mix(in srgb, var(--warning, #F2A33A) 22%, transparent); }
html[data-theme="dark"] #app .sw-status.wait { color: #F7C46C; }
#app .sw-status.done { color: var(--stone); background: transparent; padding: 0 2px; font-weight: 600; }
#app .sw-status.stop { color: var(--stone); background: var(--chalk); }
@keyframes sw-live { 50% { opacity: .35; transform: scale(.8); } }
#app .sw-unread { flex: none; display: inline-block; width: 9px; height: 9px; margin-inline-start: 6px; border-radius: 50%; background: var(--pink); vertical-align: middle; }
#app .sw-pin { display: inline-flex; vertical-align: -2px; margin-inline-end: 4px; color: var(--stone); }
#app .sw-pin svg.i { width: 14px; height: 14px; }
#app .ps-row .l2 > span:first-child { -webkit-line-clamp: 1; white-space: nowrap; display: block; text-overflow: ellipsis; }
#app .sw-row { position: relative; overflow: hidden; border-radius: 18px; touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#app .sw-row a, #app .sw-row img { -webkit-user-drag: none; }
#app .sw-row > .ps-row { position: relative; z-index: 1; background: var(--paper); transition: transform .26s cubic-bezier(.2, .8, .2, 1), scale .2s; }
#app .sw-row.swiping > .ps-row { transition: none; }
#app .sw-row.peeked > .ps-row { scale: .97; }
#app .sw-row-acts { position: absolute; inset-block: 0; inset-inline-end: 0; width: 144px; display: flex; }
#app .sw-row:not(.open):not(.swiping) > .sw-row-acts { visibility: hidden; }
#app .sw-row-acts button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: #FFFFFF; background: #6E747A; }
#app .sw-row-acts button svg.i { width: 20px; height: 20px; }
#app .sw-row-acts .del { background: #E5484D; }
#app .sw-srow { position: relative; }
#app .sw-srow:has(> .w-srow[hidden]) { display: none; }
#app .sw-srow > .sw-more { position: absolute; top: 50%; inset-inline-end: 62px; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--stone); background: var(--paper); box-shadow: var(--s1); opacity: 0; transition: opacity var(--t-quick); }
#app .sw-srow:hover > .sw-more, #app .sw-srow > .sw-more:focus-visible { opacity: 1; }
#app .sw-srow > .sw-more svg.i { width: 16px; height: 16px; }
#app .w-srow .tx b { display: flex; align-items: center; gap: 2px; }
@media (prefers-reduced-motion: reduce) { #app .sw-status.live i { animation: none; } #app .sw-row > .ps-row { transition: none; } }

/* A chat's menu: the page dims and blurs behind a read-only card and the menu. */
#peek { position: fixed; inset: 0; z-index: 130; font: 500 15px var(--ui); color: var(--graphite); }
#peek[hidden] { display: none; }
#peek button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
#peek svg.i { width: 18px; height: 18px; flex: none; }
#peek .sw-peek-scrim { position: absolute; inset: 0; background: rgba(20, 22, 24, .3); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); opacity: 0; transition: opacity .2s; }
#peek.on .sw-peek-scrim { opacity: 1; }
#peek .sw-peek { position: absolute; left: 50%; top: 50%; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: transform .28s cubic-bezier(.2, .9, .3, 1.15), opacity .18s; }
#peek.on .sw-peek { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#peek.at .sw-peek { width: 320px; transform: scale(.9); transform-origin: top left; }
#peek.on.at .sw-peek { transform: scale(1); }
#peek .sw-peek-card { display: flex; flex-direction: column; gap: 10px; width: 100%; max-height: 44vh; overflow: hidden; padding: 14px; border-radius: 22px; background: var(--paper); text-align: start; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .35); }
#peek .sw-peek-card .hd { display: flex; align-items: center; gap: 10px; min-width: 0; }
#peek .sw-peek-card .hd > span { min-width: 0; display: flex; flex-direction: column; }
#peek .sw-peek-card .hd b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#peek .sw-peek-card .hd small { font-size: 12px; color: var(--stone); }
#peek .msgs { display: flex; flex-direction: column; gap: 6px; }
#peek .msgs > span { max-width: 88%; padding: 8px 12px; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; white-space: pre-line; }
#peek .msgs .me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--graphite); color: var(--paper); -webkit-line-clamp: 4; }
#peek .msgs .them { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: var(--chalk); -webkit-line-clamp: 7; }
#peek .sw-peek-menu, #peek .sw-peek-confirm { border-radius: 18px; background: var(--paper); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .35); overflow: hidden; }
#peek .sw-peek-menu { display: flex; flex-direction: column; }
#peek .sw-peek-menu button { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 16px; text-align: start; }
#peek .sw-peek-menu button + button { box-shadow: inset 0 1px 0 var(--chalk); }
#peek .sw-peek-menu button:hover, #peek .sw-peek-menu button:focus-visible { background: var(--chalk); outline: 0; }
#peek .del { color: #E5484D; }
#peek .sw-peek-confirm { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
#peek .sw-peek-confirm small { color: var(--stone); font-size: 13px; }
#peek .sw-peek-confirm .row { display: flex; gap: 8px; margin-top: 10px; }
#peek .sw-peek-confirm .row button { flex: 1; height: 42px; border-radius: 21px; background: var(--chalk); font-weight: 600; }
#peek .sw-peek-confirm .row .del { background: #E5484D; color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { #peek .sw-peek, #peek .sw-peek-scrim { transition: none; } }

/* The + tray: newest files in a strip with Choose…, then big round actions that scroll sideways. */
#app .ps-tray .sw-recent { padding-top: 2px; scrollbar-width: none; }
#app .ps-tray .sw-recent .shot { align-items: flex-start; justify-content: flex-end; gap: 4px; text-align: start; color: var(--graphite); }
#app .ps-tray .sw-recent .shot b { margin-bottom: auto; display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--chalk); font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--stone); }
#app .ps-tray .sw-recent .shot small { width: 100%; font-size: 11px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
#app .ps-tray .sw-recent .shot.on { box-shadow: 0 0 0 2.5px var(--pink); }
#app .ps-tray .sw-choose-file { align-items: center !important; justify-content: center !important; background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--line) !important; color: var(--stone) !important; }
#app .ps-tray .sw-choose-file svg.i { width: 24px; height: 24px; }
#app .ps-tray .acts3.sw-acts { display: flex; gap: 14px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
#app .ps-tray .acts3.sw-acts::-webkit-scrollbar, #app .ps-tray .sw-recent::-webkit-scrollbar { display: none; }
#app .ps-tray .acts3.sw-acts button { flex: none; width: 66px; scroll-snap-align: start; }
#app .ps-tray .acts3.sw-acts button span { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: color-mix(in srgb, var(--paper) 82%, transparent); box-shadow: var(--s1), inset 0 0 0 1px rgba(255, 255, 255, .5); }

/* The invite art: a whole, happy Kit, with confetti around it and never on it. */
#app .sw-gift { position: relative; overflow: visible; }
#app .w-gifthero.sw-gift { overflow: hidden; }
#app .sw-confetti { position: absolute; inset: 0; pointer-events: none; }
#app .sl-art.sw-gift .sw-confetti { inset: -26px; }
#app .sw-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; transform: rotate(var(--t)); animation: sw-confetti 3.2s ease-in-out var(--d) infinite; }
@keyframes sw-confetti { 50% { transform: rotate(calc(var(--t) + 25deg)) translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { #app .sw-confetti i { animation: none; } }

/* Edit look: the face beside the words, chips under them. */
#app .sw-look { display: flex; gap: 18px; align-items: flex-start; margin-top: 8px; }
#app .sw-look-face { flex: none; width: 132px; height: 132px; border-radius: 50%; background: var(--chalk); display: grid; place-items: center; }
#app .sw-look-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
#app .sw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#app .sw-chips small { width: 100%; font-size: 12px; font-weight: 700; color: var(--stone); text-transform: uppercase; letter-spacing: .04em; }
#app .sw-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--chalk); font-size: 13px; font-weight: 600; text-transform: capitalize; }
#app .sw-chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
#app .sw-chip.on { background: var(--graphite); color: var(--paper); }
html[data-device="phone"] #app .sw-look { flex-direction: column; align-items: stretch; }
html[data-device="phone"] #app .sw-look-face { align-self: center; width: 118px; height: 118px; }

/* ------------------------------------------------------------ round 7 */
/* Open Saywork on your PC: the whole row is the button. */
#app button.ps-slot.sw-sendpc, #app button.ps-opt.sw-sendpc { width: 100%; text-align: start; color: inherit; }
#app .ps-slot.sw-sendpc { display: flex; }
#app .sw-sendpc .chev { margin-inline-start: auto; color: var(--stone); flex: none; }
#app .ps-sheet[data-sheet-id="send-pc"] .sl-art svg.i { width: 44px; height: 44px; }
/* Your account: the card opens the account sheet; Sign out is its own red row at the foot. */
#app button.ps-me { width: 100%; text-align: start; color: inherit; }
#app button.ps-me .chev { margin-inline-start: auto; color: var(--stone); }
#app .sw-signout .ps-li, #app .sw-signout .ps-li svg.i { color: #E5484D; }
#app .sw-signout .ps-li small { margin-inline-start: auto; color: var(--stone); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
/* Feedback (feedback.js): the app card's parts, in the web's look. */
.sw-fb .sw-fb-lead{margin:0;color:var(--stone)}
.sw-fb .sw-fb-mic{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;border:0;border-radius:var(--r-pill,999px);background:var(--pink,#ff4f8b);color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.sw-fb .sw-fb-mic svg{width:20px;height:20px}
.sw-fb .sw-fb-mic.on{background:var(--graphite);color:var(--paper)}
.sw-fb .sw-fb-mic:disabled{opacity:.7}
.sw-fb textarea{min-height:96px}
.sw-fb .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sw-fb .sw-fb-tags{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.sw-fb .sw-fb-tags label{cursor:pointer}
.sw-fb .sw-fb-tags input{position:absolute;opacity:0;pointer-events:none}
.sw-fb .sw-fb-tags span{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line);font-weight:600;font-size:14px}
.sw-fb .sw-fb-tags input:checked+span{background:var(--graphite);color:var(--paper);box-shadow:none}
.sw-fb .sw-fb-tags input:focus-visible+span{outline:2px solid var(--pink,#ff4f8b);outline-offset:2px}
.sw-fb .sw-fb-tags small,.sw-fb .sw-fb-pic small{color:var(--stone)}
.sw-fb .sw-fb-pic{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;font-size:14px}
.sw-fb .sw-fb-pic svg{width:18px;height:18px}
.sw-fb .sw-fb-what{font-size:13px;color:var(--stone)}
.sw-fb .sw-fb-what summary{cursor:pointer;font-weight:600}
.sw-fb .sw-fb-what p{margin:6px 0 0}
.w-modal.sw-fb{display:flex;flex-direction:column;gap:12px}
/* "Save this login?" (views.js taskCards): Yes is the one button; "Don't save" is quiet text. Phone and laptop. */
.login-offer .acts,.w-hand .acts:has(.lo-yes){display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.lo-yes{appearance:none;border:0;border-radius:999px;background:#12865C;color:#fff;font:inherit;font-weight:650;font-size:14px;padding:10px 20px;min-height:42px;cursor:pointer;box-shadow:0 2px 10px rgba(18,134,92,.25)}
.lo-yes:hover{background:#0F7A55}
.lo-yes:focus-visible{outline:2px solid #12865C;outline-offset:3px}
.lo-count{font-weight:500;opacity:.85}
.lo-no{appearance:none;border:0;background:none;color:#A3A8A4;font:inherit;font-size:12.5px;padding:6px 4px;cursor:pointer}
.lo-no:hover{color:#6B716C;text-decoration:underline}
/* The viewer (viewer.js): what Kit made, beside the conversation; full screen on a phone. */
body.sw-viewer-open #app.w-view { right: min(720px, 52vw); }
.sw-viewer { display: none; position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(720px, 52vw); flex-direction: column; background: var(--paper); border-left: 1px solid color-mix(in srgb, var(--graphite) 14%, transparent); font: 400 14px/1.5 var(--ui); color: var(--graphite); box-shadow: -12px 0 32px -18px rgba(29, 32, 35, .35); }
.sw-viewer.on { display: flex; }
.sw-viewer svg.i { width: 16px; height: 16px; flex: none; }
.sw-viewer .v-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--graphite) 10%, transparent); }
.sw-viewer .v-head b { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-viewer .ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.sw-viewer .ibtn:hover { background: color-mix(in srgb, var(--graphite) 8%, transparent); }
.sw-viewer .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--graphite) 22%, transparent); background: #fff; color: var(--graphite); font: 500 13px var(--ui); cursor: pointer; }
.sw-viewer .btn.primary { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.sw-viewer .btn.ghost { background: transparent; }
.sw-viewer .btn:disabled { opacity: .55; cursor: default; }
.sw-viewer .v-controls { padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--graphite) 10%, transparent); max-height: 45%; overflow: auto; }
.sw-viewer .v-status { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 500; }
.sw-viewer .v-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sw-viewer .v-share { display: flex; align-items: flex-end; gap: 6px; }
.sw-viewer .v-share label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--stone); }
.sw-viewer .v-share input { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--graphite) 22%, transparent); background: #fff; color: var(--graphite); }
.sw-viewer .v-note { margin: 6px 0 0; font-size: 12px; color: var(--stone); }
.sw-viewer .v-error { margin: 8px 0 0; font-size: 13px; color: #b42318; }
.sw-viewer .v-people { list-style: none; margin: 10px 0 0; padding: 0; }
.sw-viewer .v-people li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.sw-viewer .v-people li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sw-viewer .v-people small { color: var(--stone); }
/* Sharing a chat (chatshare.js): what each person can do, the public copy switch, who pays. */
.sw-viewer select { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--graphite) 22%, transparent); background: #fff; color: var(--graphite); max-width: 46%; }
.sw-viewer .v-check { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; }
.sw-viewer .v-pay { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; font-size: 13px; }
.sw-viewer .v-pay label { display: flex; align-items: center; gap: 6px; }
.sw-viewer .v-pay input[type=number] { width: 64px; font: inherit; padding: 4px 6px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--graphite) 22%, transparent); }
.sw-viewer .v-pay .btn { align-self: flex-start; }
.msg.them small.who { display: block; font-size: 12px; color: var(--stone); margin: 0 0 2px; }
.sw-viewer .v-body { flex: 1; min-height: 0; display: flex; overflow: auto; background: #fff; }
.sw-viewer .v-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.sw-viewer .v-empty { margin: auto; padding: 24px; color: var(--stone); text-align: center; }
.sw-viewer .v-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 14px; width: 100%; align-content: start; }
.sw-viewer .v-images figure { margin: 0; }
.sw-viewer .v-images img { display: block; width: 100%; height: auto; border-radius: 10px; background: #F4F5F7; }
.sw-viewer .v-images figcaption { font-size: 12px; color: var(--stone); margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  body.sw-viewer-open #app.w-view { right: 0; }
  .sw-viewer { width: 100%; border-left: 0; }
}

/* ── Attachments: cards in the composer, the Library picker, the picture viewer and marker ── */
.sw-tray{display:flex;flex-wrap:wrap;gap:10px;padding:4px 4px 10px}
.sw-card{position:relative;width:76px;display:flex;flex-direction:column;align-items:center;gap:4px}
.sw-card .sw-thumb{position:relative;width:76px;height:76px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--chalk);padding:0;cursor:pointer;display:grid;place-items:center}
.sw-card.up .sw-thumb,.sw-card.bad .sw-thumb{cursor:default}
.sw-card.bad .sw-thumb{border-color:#e5484d}
.sw-thumb img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s}
.sw-thumb img.on{opacity:1}
.sw-card.up .sw-thumb img{filter:saturate(.6) brightness(.85)}
.sw-tile{font:700 13px var(--ui);letter-spacing:.04em;color:var(--graphite)}
.sw-cname{max-width:76px;font-size:11.5px;line-height:1.2;color:var(--stone);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw-x{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:var(--paper);display:grid;place-items:center;padding:0;cursor:pointer;opacity:0;transition:opacity .15s;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.sw-x svg{width:12px;height:12px}
.sw-card:hover .sw-x,.sw-card:focus-within .sw-x,.sw-card.up .sw-x{opacity:1}
@media (hover:none){.sw-x{opacity:1}}
.sw-cardstate{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.18)}
.sw-cardstate small{position:absolute;font:700 11px var(--ui);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.sw-cardstate.err{background:rgba(229,72,77,.18);color:#e5484d}
.sw-ring{width:44px;height:44px;transform:rotate(-90deg)}
.sw-ring circle{fill:none;stroke:rgba(255,255,255,.45);stroke-width:3.2}
.sw-ring circle.v{stroke:#fff;stroke-linecap:round;transition:stroke-dasharray .2s}
.sw-mark{position:absolute;right:4px;bottom:4px;width:20px;height:20px;border-radius:6px;background:var(--pink);color:#fff;display:grid;place-items:center}
.sw-mark svg{width:12px;height:12px}
#composer.sw-drop{outline:2px dashed var(--pink);outline-offset:3px}
.pop.up button span small{display:block;font-size:11.5px;color:var(--stone);font-weight:400}
.sw-offer{display:flex;align-items:center;gap:10px;margin:2px 4px 10px;padding:10px 12px;border-radius:14px;background:var(--chalk);border:1px solid var(--line)}
.sw-offer>svg{width:20px;height:20px;flex:none}
.sw-offer b{display:block;font-size:13.5px}
.sw-offer small{display:block;font-size:12px;color:var(--stone)}
.sw-offer .grow{flex:1}
@media (max-width:640px){.sw-offer{flex-wrap:wrap}.sw-offer .grow{display:none}}
/* Library cards show the picture itself. */
.fthumb.sw-libthumb{position:relative;padding:0;display:grid;place-items:center;overflow:hidden}
.fthumb.sw-libthumb img{position:absolute;inset:0}
.fthumb.sw-libthumb.none img{display:none}
/* The picker. */
.sw-libpick{max-width:760px}
.sw-libgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px;max-height:56vh;overflow:auto;padding:2px}
.sw-libitem{position:relative;display:flex;flex-direction:column;gap:6px;align-items:stretch;padding:0;border:0;background:none;cursor:pointer;text-align:left}
.sw-libitem .sw-thumb{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;border:2px solid transparent;background:var(--chalk);display:grid;place-items:center}
.sw-libitem .sw-thumb img{position:absolute;inset:0}
.sw-libitem.on .sw-thumb{border-color:var(--pink)}
.sw-libitem .sw-cname{max-width:none}
.sw-tick{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;background:var(--pink);color:#fff;display:none;place-items:center}
.sw-tick svg{width:13px;height:13px}
.sw-libitem.on .sw-tick{display:grid}
.sw-libempty{padding:40px 10px;text-align:center;color:var(--stone)}
/* The viewer and marker. */
.sw-mkview{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:1000;background:rgba(14,14,16,.88);display:flex;flex-direction:column}
.sw-vbar{display:flex;align-items:center;gap:8px;padding:10px 14px;color:#fff;flex-wrap:wrap}
.sw-vbar b{font-weight:600;max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sw-vbar .grow{flex:1}
.sw-vbar .ibtn{color:#fff}
.sw-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sw-tools button{height:32px;min-width:32px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;padding:0 8px;cursor:pointer;font:500 12.5px var(--ui)}
.sw-tools button.on{background:#fff;color:#111}
.sw-tools svg{width:16px;height:16px}
.sw-tools .sw-sw{width:24px;min-width:24px;height:24px;border-radius:50%;padding:0;background:var(--c);border:2px solid rgba(255,255,255,.4)}
.sw-tools .sw-sw.on{border-color:#fff;box-shadow:0 0 0 2px var(--c)}
.sw-hlico{width:14px;height:8px;border-radius:3px;background:#ffd60a;opacity:.8}
.sw-boxico{width:14px;height:11px;border:2px solid currentColor;border-radius:2px}
.sw-vstage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 16px 18px}
.sw-vwrap{position:relative;max-width:100%;max-height:calc(100% - 30px);display:inline-block}
.sw-vwrap img{display:block;max-width:min(92vw,1400px);max-height:calc(100vh - 130px);object-fit:contain;border-radius:8px;user-select:none;-webkit-user-drag:none}
.sw-vwrap canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.sw-mkview.marking .sw-vwrap canvas{cursor:crosshair}
.sw-vhint{color:rgba(255,255,255,.75);font-size:13px;margin:10px 0 0}
.sw-mkview [hidden]{display:none!important}

/* Phone + tray: pictures in the recent strip, a corner mark to open one full size. */
#app .ps-tray .sw-recent .sw-tilewrap{position:relative;flex:none}
#app .ps-tray .sw-recent .shot.pic{padding:0;overflow:hidden;justify-content:flex-end}
#app .ps-tray .sw-recent .shot.pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s}
#app .ps-tray .sw-recent .shot.pic img.on{opacity:1}
#app .ps-tray .sw-recent .shot.pic small{position:relative;margin:0;padding:14px 6px 5px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.55));-webkit-line-clamp:1}
#app .ps-tray .sw-tileopen{position:absolute;top:5px;right:5px;width:24px;height:24px;border-radius:8px;border:0;background:rgba(0,0,0,.45);color:#fff;display:grid;place-items:center;padding:0}
#app .ps-tray .sw-tileopen svg{width:13px;height:13px}

/* A task's finished pictures: large, tap to open; earlier drafts folded away. */
.sw-results{display:flex;flex-direction:column;gap:10px;margin:6px 0 4px}
.sw-result{margin:0;width:min(320px,80%)}
.sw-result .sw-thumb{display:block;position:relative;width:100%;aspect-ratio:3/4;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--chalk);padding:0;cursor:zoom-in}
.sw-result .sw-thumb img{width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .2s}
.sw-result .sw-thumb img.on{opacity:1}
.sw-result figcaption{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--stone)}
.sw-result figcaption span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sw-result figcaption .ibtn{width:28px;height:28px}
.sw-vresult{width:min(560px,100%)}
.sw-vbox{position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#111;display:grid;place-items:center;min-height:120px}
.sw-vbox video{display:block;width:100%;max-height:70vh;background:#111}
.sw-vbox.loading::after{content:"";position:absolute;width:28px;height:28px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:sw-vspin .8s linear infinite;pointer-events:none}
.sw-vbox.none::after{content:"Could not load the video. Use the download button.";position:absolute;color:#ddd;font-size:12px}
@keyframes sw-vspin{to{transform:rotate(360deg)}}
.sw-drafts summary{cursor:pointer;font-size:12.5px;color:var(--stone);list-style:none}
.sw-drafts summary::-webkit-details-marker{display:none}
.sw-drafts summary::before{content:"▸ "}
.sw-drafts[open] summary::before{content:"▾ "}
.sw-drafts .srcs2{margin-top:6px;opacity:.75}
/* What was sent with a message: kept by Saywork, shown on every device, opens full size. */
.sw-sent{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:100%}
.sw-sent-pic{padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--chalk);cursor:zoom-in;display:block;min-width:72px;min-height:72px}
.sw-sent-pic img,.sw-sent-local{display:block;max-width:220px;max-height:220px;object-fit:cover;border-radius:14px;opacity:1}
.sw-sent-pic img:not([src]){width:120px;height:120px}
.sw-sent-file{cursor:pointer}
/* "Did this work?" under a finished cloud answer (views.js taskCards, 2026-11-22). */
.rate{display:flex;align-items:center;gap:6px;margin:2px 0 4px}
.rate .btn{min-width:36px;padding:4px 8px;font-size:16px;line-height:1}
.rate-done{margin:2px 0 4px;font-size:13px}

/* A video's Review button and a brand film's publish kit (views.js resultFiles, 2026-11-22). */
.sw-result figcaption .sw-review{flex:none;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;font-size:12px}
.sw-result figcaption .sw-review svg{width:14px;height:14px}
.sw-pub{width:min(560px,100%);border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.sw-pubtop{display:flex;flex-direction:column;gap:2px}
.sw-pubtop small{color:var(--stone);font-size:12px}
.sw-pubcovers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sw-pubcovers figure{margin:0;min-width:0}
.sw-pubcovers .sw-thumb{display:block;width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--chalk);padding:0;cursor:zoom-in}
.sw-pubcovers .sw-thumb img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s}
.sw-pubcovers .sw-thumb img.on{opacity:1}
.sw-pubcovers figcaption{display:flex;align-items:center;gap:4px;margin-top:3px;font-size:12px;color:var(--stone)}
.sw-pubcovers figcaption span{flex:1}
.sw-pubcovers figcaption .ibtn{width:26px;height:26px}
.sw-pubf[hidden]{display:none}
.sw-pubh{display:flex;align-items:center;gap:8px}
.sw-pubh b{flex:1;font-size:13px}
.sw-pubh .btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;font-size:12px}
.sw-pubh .btn svg{width:14px;height:14px}
.sw-pubt{margin:4px 0 0;white-space:pre-wrap;font-size:13px;line-height:1.45;max-height:180px;overflow:auto;padding:8px 10px;border-radius:10px;background:var(--chalk)}
.sw-pub .srcs2{margin:0}

/* The player and review room (review.js): a dark room, the film large, notes beside it. */
.sw-rv{position:fixed;inset:0;z-index:1001;background:#0d0e10;color:#f2f3f1;display:flex;flex-direction:column;font:14px/1.4 var(--ui,system-ui)}
.sw-rv [hidden]{display:none!important}
.sw-rv svg{width:20px;height:20px;display:block}
.rv-top{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid #22252a}
.rv-top b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60vw}
.rv-grow{flex:1}
.rv-ib{width:36px;height:36px;border-radius:10px;border:0;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0}
.rv-ib:hover{background:rgba(255,255,255,.09)}
.rv-ib.on{background:rgba(255,255,255,.16);color:#7ee0b8}
.rv-ib.sm{width:28px;height:28px}
.rv-ib.sm svg{width:15px;height:15px}
.rv-main{flex:1;min-height:0;display:flex}
.rv-player{flex:1;min-width:0;display:flex;flex-direction:column;background:#0d0e10}
.rv-stage{flex:1;min-height:0;display:grid;place-items:center;padding:10px;overflow:hidden}
.rv-frame{position:relative;background:#000;border-radius:6px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.rv-frame video{position:absolute;inset:0;width:100%;height:100%;display:block;background:#000;cursor:pointer}
.rv-ink{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;touch-action:none}
.sw-rv.composing .rv-ink{pointer-events:auto;cursor:crosshair}
.sw-rv.composing .rv-frame{outline:2px solid #ffd60a;outline-offset:2px}
.rv-tag{position:absolute;left:10px;top:10px;max-width:70%;padding:5px 10px;border-radius:8px;background:rgba(0,0,0,.66);font-size:12.5px;pointer-events:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-wait{position:absolute;inset:0;display:grid;place-items:center;color:#bbb;font-size:13px}
.rv-wait:empty::after{content:"";width:30px;height:30px;border-radius:50%;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;animation:sw-vspin .8s linear infinite}
.rv-bar{padding:4px 12px 8px}
.rv-line{position:relative;height:26px;display:flex;align-items:center;cursor:pointer;touch-action:none}
.rv-track{position:relative;width:100%;height:5px;border-radius:3px;background:rgba(255,255,255,.16)}
.rv-line:hover .rv-track{height:7px}
.rv-buf,.rv-played{position:absolute;left:0;top:0;bottom:0;border-radius:3px}
.rv-buf{background:rgba(255,255,255,.18)}
.rv-played{background:#45d7a2}
.rv-span{position:absolute;top:-3px;bottom:-3px;background:rgba(255,214,10,.45);border-radius:3px;pointer-events:none}
.rv-head{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(69,215,162,.35);pointer-events:none}
.rv-dots{position:absolute;inset:0}
.rv-dot{position:absolute;bottom:9px;min-width:18px;height:18px;margin-left:-9px;padding:0 4px;border-radius:9px;border:0;background:#ffd60a;color:#111;font:700 10.5px/18px system-ui;cursor:pointer;text-align:center}
.rv-dot.range{margin-left:0;border-radius:4px;text-align:left}
.rv-dot.on{background:#fff;box-shadow:0 0 0 2px #ffd60a}
.rv-tip{position:absolute;bottom:24px;transform:translateX(-50%);padding:2px 6px;border-radius:5px;background:#000;font:12px/1.4 ui-monospace,monospace;pointer-events:none}
.rv-ctl{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.rv-time{margin-left:8px;font:13px ui-monospace,SFMono-Regular,Consolas,monospace;color:#aab0ab;white-space:nowrap}
.rv-time b{color:#fff;font-weight:600}
.rv-speed select{height:30px;border-radius:8px;border:1px solid #2c3036;background:#16181b;color:#fff;padding:0 6px;font:13px var(--ui,system-ui);cursor:pointer}
.rv-vol{display:inline-flex;align-items:center}
.rv-vol input{width:80px;accent-color:#45d7a2}
.rv-add{display:inline-flex;align-items:center;gap:6px;height:36px;margin-left:8px;padding:0 14px;border-radius:10px;border:0;background:#ffd60a;color:#111;font:600 13.5px var(--ui,system-ui);cursor:pointer}
.rv-add svg{width:18px;height:18px}
.sw-rv.composing .rv-add{opacity:.4;pointer-events:none}
.rv-compose{border-top:1px solid #22252a;padding:8px 12px 12px;display:flex;flex-direction:column;gap:8px;background:#121417}
.rv-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.rv-tools button{height:32px;min-width:32px;border-radius:9px;border:1px solid #2c3036;background:#1a1d21;color:#fff;display:grid;place-items:center;padding:0 9px;cursor:pointer;font:500 12.5px var(--ui,system-ui)}
.rv-tools button svg{width:17px;height:17px}
.rv-tools button.on{background:#fff;color:#111}
.rv-tools .rv-sw{width:24px;min-width:24px;height:24px;border-radius:50%;padding:0;background:var(--c);border:2px solid rgba(255,255,255,.35)}
.rv-tools .rv-sw.on{background:var(--c);border-color:#fff;box-shadow:0 0 0 2px var(--c)}
.rv-sep{width:1px;height:22px;background:#2c3036;margin:0 3px}
.rv-when{font:12.5px ui-monospace,monospace;color:#ffd60a;margin-right:4px}
.rv-write{display:flex;gap:8px;align-items:flex-end}
.rv-write textarea,.rv-general textarea{flex:1;resize:vertical;min-height:44px;border-radius:10px;border:1px solid #2c3036;background:#0d0e10;color:#fff;padding:8px 10px;font:14px/1.4 var(--ui,system-ui)}
.rv-write textarea:focus,.rv-general textarea:focus{outline:2px solid #45d7a2;outline-offset:0;border-color:transparent}
.rv-wacts{display:flex;gap:6px}
.rv-btn{height:36px;padding:0 14px;border-radius:10px;border:1px solid #2c3036;background:#1a1d21;color:#fff;font:600 13px var(--ui,system-ui);cursor:pointer}
.rv-btn.primary{background:#45d7a2;border-color:#45d7a2;color:#0d0e10}
.rv-side{width:320px;flex:none;border-left:1px solid #22252a;display:flex;flex-direction:column;gap:10px;padding:12px;background:#121417;min-height:0}
.rv-shead{display:flex;align-items:center;gap:8px}
.rv-shead small{min-width:20px;height:20px;border-radius:10px;background:#ffd60a;color:#111;font:700 11px/20px system-ui;text-align:center;padding:0 6px}
.rv-shead small:empty{display:none}
.rv-notes{list-style:none;margin:0;padding:0;flex:1;min-height:80px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.rv-notes li{border:1px solid #2c3036;border-radius:12px;padding:8px 8px 6px 10px;background:#16181b}
.rv-notes li.on{border-color:#ffd60a}
.rv-notes li.rv-empty{border-style:dashed;color:#9aa19c;font-size:13px;background:transparent}
.rv-notes p{margin:4px 0;font-size:13.5px;white-space:pre-wrap;word-break:break-word}
.rv-at{border:0;background:rgba(255,214,10,.14);color:#ffd60a;font:600 12px ui-monospace,monospace;border-radius:6px;padding:2px 7px;cursor:pointer}
.rv-nacts{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.rv-nacts em{font-style:normal;font-size:11px;color:#9aa19c;margin-right:auto}
.rv-general{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:#aab0ab}
.rv-send{height:42px;border-radius:12px;border:0;background:#45d7a2;color:#0d0e10;font:700 14px var(--ui,system-ui);cursor:pointer}
.rv-send:disabled{background:#2a2e33;color:#7c837e;cursor:default}
.rv-hint{margin:0;font-size:12px;color:#8e958f}
.rv-hint.bad{color:#ff8a80}
.rv-player:fullscreen{background:#000}
.rv-player:fullscreen .rv-stage{padding:0}
@media (max-width:860px){
  .rv-main{flex-direction:column;overflow:auto}
  .rv-player{flex:none;min-height:62vh}
  .rv-side{width:auto;border-left:0;border-top:1px solid #22252a}
  .rv-vol input,.rv-speed{display:none}
  .rv-add span{display:none}
  .rv-write{flex-direction:column;align-items:stretch}
}
.sw-langs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:14px}
.sw-langs .btn{justify-content:flex-start}

/* Your businesses (business.js, 2026-11-27) */
.bz-modal{max-width:760px;width:min(760px,94vw);max-height:90vh;overflow:auto}
.bz-modal .muted{margin:4px 0 14px}
.bz-h{font-size:15px;font-weight:600;margin:18px 0 8px}
.bz-h small{display:block;font-weight:400;font-size:12.5px;color:var(--stone);margin-top:2px}
.bz-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.bz-link{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:6px 10px;background:var(--paper,#fff)}
.bz-link img,.bz-link svg.i{width:20px;height:20px;flex:none}
.bz-link input{border:0;outline:0;background:transparent;flex:1;min-width:0;font:inherit;font-size:14px}
.bz-letter{width:20px;height:20px;flex:none;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--chalk,#eef0ea);color:var(--graphite)}
.bz-accts{display:flex;flex-wrap:wrap;gap:8px}
.bz-acct{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:6px 12px 6px 8px;cursor:pointer;font-size:14px}
.bz-acct input{margin:0}
.bz-acct img{width:18px;height:18px}
.bz-acct:has(input:checked){border-color:var(--ink,#1d2023);background:var(--chalk,#eef0ea)}
.bz-main{display:flex;gap:8px;align-items:flex-start;margin-top:12px;font-size:14px}
.bz-main small{display:block;color:var(--stone)}
.bz-page{display:flex;flex-direction:column;gap:16px}
.bz-card{border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--paper,#fff)}
.bz-card header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}
.bz-card h2{font-size:20px;margin:0 0 2px}
.bz-acts{display:flex;gap:6px;flex-wrap:wrap}
.bz-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.bz-chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;border:1px solid var(--line);border-radius:999px;padding:3px 10px 3px 6px}
.bz-chip img,.bz-chip svg.i{width:16px;height:16px}
.bz-profile textarea{width:100%;font:inherit;font-size:14px;line-height:1.5}
.bz-ask{display:flex;gap:8px;margin-top:8px}
.bz-ask input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:8px 12px;font:inherit}
.bz-empty{text-align:center;padding:40px 20px;border:1px dashed var(--line);border-radius:18px}
.bz-empty svg.i{width:34px;height:34px}
.bz-empty h2{margin:10px 0 6px}
.bz-mention{position:absolute;inset-inline-start:12px;bottom:calc(100% + 6px);z-index:30;min-width:240px;background:var(--paper,#fff);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:6px;display:flex;flex-direction:column}
.bz-mention button{display:flex;gap:8px;align-items:center;padding:8px 10px;border-radius:10px;text-align:start;font:inherit;font-size:14px;background:none;border:0;cursor:pointer}
.bz-mention button:hover,.bz-mention button[aria-selected=true]{background:var(--chalk,#eef0ea)}
.bz-mention span{color:var(--stone)}

/* Workspace (workspace.js, 2026-11-27) */
.wsp{display:flex;flex-direction:column;gap:16px}
.wsp-card{border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--paper,#fff)}
.wsp-card h2{font-size:18px;margin:0 0 8px}
.wsp-card h3{font-size:15px;margin:16px 0 6px}
.wsp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.wsp-stats>div{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--paper,#fff)}
.wsp-stats b{display:block;font-size:22px}
.wsp-stats span{font-size:13px;color:var(--stone)}
.wsp-tabs{display:flex;gap:6px;flex-wrap:wrap}
.wsp-tabs button{border:1px solid var(--line);background:none;border-radius:999px;padding:7px 14px;font:inherit;font-size:14px;cursor:pointer}
.wsp-tabs button[aria-selected=true]{background:var(--ink,#1d2023);color:var(--paper,#fff);border-color:transparent}
.wsp-table{overflow:auto}
.wsp-table table{width:100%;border-collapse:collapse;font-size:14px}
.wsp-table th{text-align:start;font-weight:600;color:var(--stone);padding:8px;border-bottom:1px solid var(--line)}
.wsp-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:top}
.wsp-table td small{display:block;color:var(--stone)}
.wsp-table select,.wsp-table input{font:inherit;font-size:13px;border:1px solid var(--line);border-radius:10px;padding:5px 8px;max-width:150px}
.wsp-invite,.wsp-ask{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;align-items:flex-end}
.wsp-invite input,.wsp-invite select,.wsp-ask input{font:inherit;border:1px solid var(--line);border-radius:12px;padding:8px 12px}
.wsp-invite input[type=email],.wsp-invite input[name=name]{flex:1;min-width:200px}
.wsp-ask label{display:flex;flex-direction:column;font-size:13px;gap:4px}
.wsp-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.wsp-row:last-child{border-bottom:0}
.wsp-row span{display:inline-flex;gap:6px;align-items:center}
.wsp-budget{font-size:13px;display:inline-flex;gap:6px;align-items:center}
.wsp-budget input{width:110px;font:inherit;border:1px solid var(--line);border-radius:10px;padding:5px 8px}
.wsp-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:6px}
.wsp-list li{display:flex;gap:8px;align-items:center}
.wsp-memform{display:flex;flex-direction:column;gap:8px;margin:10px 0 16px}
.wsp-memform input,.wsp-memform textarea,.wsp-memform select{font:inherit;border:1px solid var(--line);border-radius:12px;padding:8px 12px}
.wsp-memform .acts{display:flex;gap:8px;justify-content:flex-end}
.wsp-mem{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.wsp-mem span{display:block;font-size:12px}
.wsp-mem p{margin:4px 0 0;font-size:14px;white-space:pre-wrap}
.small{font-size:12.5px}
.wsp-ask .wsp-msg{flex-basis:100%}
.wsp-ask textarea{font:inherit;border:1px solid var(--line);border-radius:12px;padding:8px 12px;width:100%}

/* 2026-11-27 owner fixes */
/* Search: a real search box, not a small list. */
.w-palette{width:min(900px,calc(100% - 48px))}
.w-palette .in{height:74px;padding:0 22px}
.w-palette .in input{font-size:20px}
.w-palette .res{max-height:min(68vh,720px)}
/* A modal's buttons stay in view however long it is (the agent picker, Import your business). */
.w-modal>.acts,.w-modal form>.acts{position:sticky;bottom:-28px;z-index:3;background:var(--paper);margin:0 -28px -28px;padding:14px 28px;box-shadow:0 -1px 0 var(--chalk)}
.w-modal.mid{width:min(760px,calc(100% - 48px))}
.w-modal.mid .w-pick{max-height:min(52vh,460px);overflow-y:auto}
/* The usage ring's card opens beside a folded sidebar, not off the screen. */
[data-sidebar="mini"] .w-ringtip{inset-inline-start:calc(100% + 12px);bottom:0}
/* Import your business: a calmer form */
.bz-more{margin-top:10px}
.bz-more summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--graphite);padding:6px 0}
.bz-more .bz-links,.bz-more .bz-accts{margin-top:8px}
.bz-link svg.i{color:var(--stone)}
.bz-mic{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:8px 16px;background:var(--paper);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.bz-mic svg.i{width:18px;height:18px;color:#FF4F8B}
.bz-mic.on{background:#FF4F8B;color:#fff;border-color:transparent}
.bz-mic.on svg.i{color:#fff}
/* 2026-11-28: the message box grows with the message (app.js growDraft), then scrolls inside. */
.w-comp textarea#draft{min-height:56px;max-height:240px;overflow-y:hidden}
.w-comp.short textarea#draft{min-height:32px}
.w-comp.ask textarea#draft{min-height:40px}
.ps-comp .field{height:auto;min-height:48px;align-items:flex-end;padding-block:5px}
.ps-comp .field textarea{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;line-height:22px;color:var(--graphite);resize:none;padding:8px 0;height:38px;max-height:160px;overflow-y:hidden}
.ps-comp .field textarea::placeholder{color:var(--stone)}
.sw-aistat{display:flex;gap:6px;align-items:baseline;font-size:12px;color:var(--stone);padding:2px 4px 0}
.sw-aistat time,.tl li.now time{font-variant-numeric:tabular-nums}
.sw-dots::after{content:"…"}
.sw-drafting .md > :last-child::after{content:"";display:inline-block;width:.5em;height:1em;margin-inline-start:2px;vertical-align:-.12em;background:currentColor;opacity:.55;animation:swcaret 1s steps(2) infinite}
@keyframes swcaret{50%{opacity:0}}
.wsp-rules{display:grid;gap:14px;max-width:560px}
.wsp-money{display:flex;gap:8px}.wsp-money input:first-child{flex:1}.wsp-money input:last-child{width:84px;text-transform:uppercase}
.wsp-connectors{border:1px solid var(--line);border-radius:14px;padding:10px 14px}
.sw-asks{display:grid;gap:12px;margin:12px 0}
