/* Tadda V2: the owner chats with a team of named AI workers. Tokens and components come from the approved mockup
   docs/mockups/tadda-v4.html; the mockup's sample thumbnails, compare view and onboarding are not used. */
:root{
  --bg:#0E0B16; --s1:#17121F; --s2:#201A2D; --s3:#2A2240; --border:#3A3156;
  --text:#F4F1FA; --text2:#B3AACB; --text3:#958BAF;
  --brand:#6E4CF5; --brand-h:#5F3DE6; --brand-text:#B9A6FF; --brand-tint:#7C5CFF1F; --brand-dim:#7C5CFF8C; --on-brand:#FFFFFF;
  --brand-line:#7C5CFF66; --ok-line:#3CC98566; --warn-line:#F2B54555; --av-bg:#1F3B66; --av-ink:#DCE8FF;
  --ok:#3CC985; --ok-t:#3CC9851F; --warn:#F2B544; --warn-t:#F2B5441F; --bad:#F2647A; --bad-t:#F2647A1F;
  --scrim:rgb(8 6 14 / .62);
  --magic:linear-gradient(135deg,#6A47E8,#A88CFF);
  --f-ui:"Heebo",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --f-disp:"Rubik","Heebo",system-ui,"Segoe UI",Arial,sans-serif;
  --r-s:8px; --r-m:12px; --r-l:16px; --r-p:999px;
  --sh:0 8px 24px -8px rgb(0 0 0 / .5);
  --ring:0 0 0 2px #0E0B16,0 0 0 4px #7C5CFF;
  --ease:cubic-bezier(.2,.8,.2,1);
  --chatw:400px;
  color-scheme:dark;
}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){
  --bg:#F6F4FA; --s1:#FFFFFF; --s2:#F1EEF7; --s3:#E6E0F2; --border:#DAD3E8;
  --text:#1A1526; --text2:#4C4462; --text3:#655D7E;
  --brand:#6E4CF5; --brand-h:#5F3DE6; --brand-text:#5634D6; --brand-tint:#6E4CF51A; --brand-dim:#6E4CF566; --on-brand:#FFFFFF;
  --brand-line:#6E4CF55C; --ok-line:#1B7F4E59; --warn-line:#A8660059; --av-bg:#DCE6FA; --av-ink:#1F3B66;
  --ok:#136B40; --ok-t:#136B401A; --warn:#8F5A00; --warn-t:#F2B5442E; --bad:#A82039; --bad-t:#A8203914;
  --scrim:rgb(26 18 48 / .36);
  --sh:0 10px 28px -12px rgb(40 24 90 / .22);
  --ring:0 0 0 2px #FFFFFF,0 0 0 4px #6E4CF5;
  color-scheme:light;
}}
:root[data-theme="light"]{
  --bg:#F6F4FA; --s1:#FFFFFF; --s2:#F1EEF7; --s3:#E6E0F2; --border:#DAD3E8;
  --text:#1A1526; --text2:#4C4462; --text3:#655D7E;
  --brand:#6E4CF5; --brand-h:#5F3DE6; --brand-text:#5634D6; --brand-tint:#6E4CF51A; --brand-dim:#6E4CF566; --on-brand:#FFFFFF;
  --brand-line:#6E4CF55C; --ok-line:#1B7F4E59; --warn-line:#A8660059; --av-bg:#DCE6FA; --av-ink:#1F3B66;
  --ok:#136B40; --ok-t:#136B401A; --warn:#8F5A00; --warn-t:#F2B5442E; --bad:#A82039; --bad-t:#A8203914;
  --scrim:rgb(26 18 48 / .36);
  --sh:0 10px 28px -12px rgb(40 24 90 / .22);
  --ring:0 0 0 2px #FFFFFF,0 0 0 4px #6E4CF5;
  color-scheme:light;
}
/* V3 additions: one ink colour per worker (text-safe on its tint in both themes), chat wallpaper and bubbles */
:root{
  --c-maya:#B9A6FF; --c-david:#8DB6FF; --c-roni:#FF9CC8; --c-yoav:#5FD69B; --c-shira:#4FD1C5; --c-lior:#FF9F66;
  --wall:#110D19; --bub:#201A2D; --me-bub:#2B2150;
}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){
  --c-maya:#5634D6; --c-david:#1D4FBF; --c-roni:#B0246A; --c-yoav:#136B40; --c-shira:#0E6E68; --c-lior:#A84A0A;
  --wall:#EFECF5; --bub:#FFFFFF; --me-bub:#DDD3FF;
}}
:root[data-theme="light"]{
  --c-maya:#5634D6; --c-david:#1D4FBF; --c-roni:#B0246A; --c-yoav:#136B40; --c-shira:#0E6E68; --c-lior:#A84A0A;
  --wall:#EFECF5; --bub:#FFFFFF; --me-bub:#DDD3FF;
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 16px/24px var(--f-ui);-webkit-font-smoothing:antialiased;overflow:hidden;text-rendering:optimizeLegibility}
button,input,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
a{color:var(--brand-text);text-decoration:none}
h1,h2,h3,p,ul,ol,figure{margin:0;padding:0}
ul,ol{list-style:none}
:focus-visible{outline:none;box-shadow:var(--ring)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* type scale: 12 (bubble meta) · 13 · 15 · 16 · 18 · 22 · 28 · numbers 32 */
.cap{font-size:13px;line-height:18px;color:var(--text3)}
.t-sm{font-size:15px;line-height:22px}
.t-title{font-size:18px;line-height:26px;font-weight:600;text-wrap:balance}
.h2{font:600 22px/30px var(--f-disp);text-wrap:balance}
.h1{font:600 28px/36px var(--f-disp);text-wrap:balance;letter-spacing:-.005em}
.num{font:700 32px/40px var(--f-ui);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.muted{color:var(--text2)}
.strong{font-weight:600}
.lead{font-size:16px;line-height:24px;color:var(--text2)}

.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i.sm{width:16px;height:16px}
.flip{transform:scaleX(-1)}
.mark{width:28px;height:28px;border-radius:8px;background:var(--magic);display:grid;place-items:center;color:var(--on-brand);flex:none}
.mark .i{width:16px;height:16px;fill:currentColor;stroke:none}
.icon-btn{width:44px;height:44px;border-radius:var(--r-m);display:grid;place-items:center;color:var(--text2);flex:none;transition:background .15s var(--ease),color .15s var(--ease),transform .15s var(--ease)}
.icon-btn:hover{background:var(--s3);color:var(--text)}
.icon-btn:active{transform:scale(.97)}
.icon-btn[aria-pressed=true]{background:var(--brand-tint);color:var(--brand-text)}
.av{width:36px;height:36px;border-radius:var(--r-p);display:grid;place-items:center;background:var(--av-bg);color:var(--av-ink);font:600 13px/1 var(--f-ui);border:1px solid var(--border);flex:none}
.avatar-btn{width:44px;height:44px;border-radius:var(--r-p);display:grid;place-items:center;flex:none}

/* buttons, pills, chips (V2) */
.btn{min-height:44px;padding:0 16px;border-radius:var(--r-m);display:inline-flex;align-items:center;justify-content:center;gap:8px;font:500 15px/22px var(--f-ui);border:1px solid transparent;white-space:nowrap;transition:background .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease),transform .15s var(--ease)}
.btn:active{transform:scale(.97)}
.btn-p{background:var(--brand);color:var(--on-brand)}
.btn-p:hover{background:var(--brand-h)}
.btn-s{background:var(--s3);color:var(--text);border-color:var(--border)}
.btn-s:hover{border-color:var(--brand-dim)}
.btn-g{color:var(--brand-text)}
.btn-g:hover{background:var(--brand-tint)}
.btn-lg{min-height:52px;font-size:16px;font-weight:600;padding:0 24px}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:var(--r-p);font:500 13px/18px var(--f-ui);white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}
.pill .i{width:14px;height:14px}
.pill-brand{background:var(--brand-tint);color:var(--brand-text)}
.pill-ok{background:var(--ok-t);color:var(--ok)}
.pill-warn{background:var(--warn-t);color:var(--warn)}
.pill-n{background:var(--s3);color:var(--text2)}
.chip{min-height:44px;padding:0 12px;border-radius:var(--r-s);border:1px solid var(--border);background:var(--s2);color:var(--text);font:500 15px/22px var(--f-ui);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:background .15s var(--ease),border-color .15s var(--ease),transform .15s var(--ease)}
.chip:hover{border-color:var(--brand-dim);background:var(--s3)}
.chip:active{transform:scale(.97)}
.chip[aria-pressed=true],.chip[aria-current=true]{background:var(--brand-tint);border-color:var(--brand);color:var(--text)}
.card{background:var(--s2);border:1px solid var(--border);border-radius:var(--r-l)}
.demo-tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:var(--r-p);border:1px dashed var(--border);color:var(--text3);font-size:13px;white-space:nowrap;flex:none}

.bar{height:6px;border-radius:var(--r-p);background:var(--s3);overflow:hidden}
.bar i{display:block;height:100%;background:var(--brand);border-radius:inherit;transition:width .6s var(--ease)}
/* ---------- worker avatars: illustrated initials + role glyph ---------- */
.wav{--wc:var(--brand-text);position:relative;width:48px;height:48px;border-radius:50%;flex:none;display:grid;place-items:center;color:var(--wc);font:600 21px/1 var(--f-disp);
  background:radial-gradient(110% 110% at 30% 18%,color-mix(in srgb,var(--wc) 15%,var(--s1)) 0%,color-mix(in srgb,var(--wc) 6%,var(--s1)) 70%);border:1.5px solid color-mix(in srgb,var(--wc) 45%,transparent)}
.wav .gl{position:absolute;bottom:-3px;left:-3px;width:20px;height:20px;border-radius:50%;background:var(--wc);color:var(--bg);display:grid;place-items:center;border:2px solid var(--s1)}
.wav .gl .i{width:11px;height:11px;stroke-width:2.4}
.wav.sm{width:32px;height:32px;font-size:15px}
.wav.sm .gl{width:15px;height:15px;bottom:-3px;left:-4px;border-width:1.5px}
.wav.sm .gl .i{width:8px;height:8px}
.wav.md{width:40px;height:40px;font-size:18px}
.wav.xl{width:72px;height:72px;font-size:32px}
.wav.xl .gl{width:28px;height:28px}
.wav.xl .gl .i{width:15px;height:15px}
.wav.grp{--wc:var(--brand-text)}
.wav.grp>.i{width:22px;height:22px}
.wav.sm.grp>.i{width:16px;height:16px}

/* ---------- app grid ---------- */
.app{display:grid;height:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.pane{min-width:0;min-height:0;display:flex;flex-direction:column}
.p-list{background:var(--s1);border-inline-end:1px solid var(--border)}
.p-main{background:var(--bg)}
.p-prof{display:none;background:var(--s1);border-inline-start:1px solid var(--border)}
.app[data-view=list] .p-main{display:none}
.app:not([data-view=list]) .p-list{display:none}
@media (min-width:768px){
  .app{grid-template-columns:320px minmax(0,1fr)}
  .app:not([data-view=list]) .p-list{display:flex}
  .app[data-view=list] .p-main{display:flex}
  .back{display:none!important}
}
/* V4: from 1024px the left column holds either the worker's profile ("התיק") or the board */
@media (min-width:1024px){
  .app{grid-template-columns:300px minmax(0,1fr)}
  .app[data-side=prof],.app[data-side=board]{grid-template-columns:300px minmax(0,1fr) 340px}
  .app[data-side=prof] .p-prof,.app[data-side=board] .p-prof{display:flex}
}
@media (min-width:1280px){
  .app{grid-template-columns:340px minmax(0,1fr)}
  .app[data-side=prof],.app[data-side=board]{grid-template-columns:340px minmax(0,1fr) 380px}
}
@media (min-width:1440px){
  .app{grid-template-columns:360px minmax(0,1fr)}
  .app[data-side=prof],.app[data-side=board]{grid-template-columns:360px minmax(0,1fr) 420px}
}
.app[data-view=start]{grid-template-columns:minmax(0,1fr)}
.app[data-view=start] .p-list,.app[data-view=start] .p-prof{display:none}
.app[data-view=start] .p-main{display:flex}
.ph{display:flex;align-items:center;gap:8px;min-height:64px;padding:8px 12px;background:var(--s1);border-bottom:1px solid var(--border);flex:none}
html:not(.embed) .ph{padding-left:max(64px,env(safe-area-inset-left,0px))}
@media (min-width:768px){html:not(.embed) .lh{padding-left:12px}}

/* ---------- team list ---------- */
.lh .brand{flex:1;min-width:0;display:flex;align-items:center;gap:10px}
.lh .brand>div{display:flex;flex-direction:column;min-width:0}
.lh .bn{font:600 20px/24px var(--f-disp)}
.lh .bs{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.biz-btn .av{width:40px;height:40px;font-size:14px}
.ls{padding:8px 12px 4px;flex:none}
.q-field{display:flex;align-items:center;gap:8px;background:var(--s2);border:1px solid var(--border);border-radius:var(--r-p);padding-inline:14px 6px;color:var(--text3)}
.q-field input{flex:1;min-width:0;height:44px;background:transparent;border:0;outline:0;font-size:16px;color:var(--text)}
.q-field input::placeholder,textarea::placeholder{color:var(--text2)}
.q-field:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}
.q-field input:focus-visible{box-shadow:none}
.q-field input::-webkit-search-cancel-button{display:none}
.filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:8px 12px;flex:none}
.filters::-webkit-scrollbar{display:none}
.filters .chip{flex:none;border-radius:var(--r-p)}
.filters .n{font-variant-numeric:tabular-nums;color:var(--text3);font-size:13px}
.filters .chip[aria-pressed=true] .n{color:var(--brand-text)}
.trows{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--s3) transparent;padding-bottom:16px}
.trow{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;padding:10px 16px;min-height:76px;color:var(--text);position:relative;transition:background .15s var(--ease)}
.trow+.trow::before{content:"";position:absolute;top:0;right:76px;left:16px;border-top:1px solid var(--border)}
.trow:hover{background:var(--s2)}
.trow[aria-current=page]{background:var(--brand-tint)}
.tr-b{display:flex;flex-direction:column;gap:2px;min-width:0}
.tr-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.tr-n{font:600 16px/22px var(--f-ui);white-space:nowrap}
.tr-role{font-size:13px;line-height:18px;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tr-pin{color:var(--text3);display:inline-flex}
.ai-tag{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:var(--r-s);background:var(--s3);color:var(--text2);font:600 11px/18px var(--f-ui);letter-spacing:.04em;flex:none;margin-inline-start:6px;vertical-align:2px}
.tr-top .ai-tag{margin-inline-start:0}
.tr-pin .i{width:13px;height:13px}
.tr-time{margin-inline-start:auto;font-size:13px;line-height:18px;color:var(--text3);font-variant-numeric:tabular-nums;white-space:nowrap}
.tr-time.un{color:var(--brand-text);font-weight:600}
.tr-bot{display:flex;align-items:center;gap:6px;min-width:0;min-height:24px}
.tr-line{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;line-height:22px;color:var(--text2)}
.tr-line.live{color:var(--brand-text);font-weight:500}
.tr-tick{color:var(--text3);display:inline-flex}
.tr-tick .i{width:16px;height:16px}
.tr-tick.read{color:var(--brand-text)}
.ubadge{min-width:22px;height:22px;padding:0 6px;border-radius:var(--r-p);background:var(--brand);color:var(--on-brand);font:600 13px/22px var(--f-ui);text-align:center;font-variant-numeric:tabular-nums;flex:none}
.intro{margin:0 12px 8px;padding:12px;padding-inline-end:4px;border-radius:var(--r-l);background:var(--brand-tint);border:1px solid var(--brand-line);display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start;flex:none}
.intro p{font-size:15px;line-height:22px;color:var(--text)}
.intro .row{grid-column:1/-1}
@media (min-width:768px){.intro{display:none}}
.l-empty{padding:32px 16px;text-align:center;color:var(--text2);font-size:15px}

/* ---------- conversation ---------- */
.conv{flex:1;min-height:0;display:flex;flex-direction:column}
.ch-who{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:start;border-radius:var(--r-m);padding:2px 4px;min-height:48px}
.ch-who:hover{background:var(--s2)}
.ch-who .ttl{display:flex;flex-direction:column;min-width:0}
.ch-nm{font:600 17px/22px var(--f-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-nm small{font:400 13px/18px var(--f-ui);color:var(--text3);margin-inline-start:6px}
.ch-st{font-size:13px;line-height:18px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-st.live{color:var(--brand-text);font-weight:500}
@media (min-width:1024px) and (max-width:1279px){
  .ch-st{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .app[data-side=prof],.app[data-side=board]{grid-template-columns:280px minmax(0,1fr) 320px}
  .app[data-side=prof] .side-seg button,.app[data-side=board] .side-seg button{min-width:44px;justify-content:center;padding:0 10px}
  .app[data-side=prof] .side-seg .ss-l,.app[data-side=board] .side-seg .ss-l{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.tbar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:8px 12px;background:var(--s1);border-bottom:1px solid var(--border);flex:none}
.tbar::-webkit-scrollbar{display:none}
.tchip{flex:none;min-height:44px;padding:0 12px;border-radius:var(--r-p);border:1px solid var(--border);background:var(--s2);color:var(--text);font:500 14px/20px var(--f-ui);display:inline-flex;align-items:center;gap:8px;white-space:nowrap;transition:background .15s var(--ease),border-color .15s var(--ease)}
.tchip:hover{border-color:var(--brand-dim)}
.tchip[aria-current=true]{background:var(--brand-tint);border-color:var(--brand)}
.tchip .wd{width:8px;height:8px;border-radius:50%;background:var(--warn)}
.tchip .tn{min-width:20px;height:20px;padding:0 5px;border-radius:var(--r-p);background:var(--brand);color:var(--on-brand);font:600 12px/20px var(--f-ui);text-align:center}
.tchip.new{color:var(--brand-text);border-style:dashed;background:transparent}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--s3);border-top-color:var(--brand-text);animation:spin .8s linear infinite;flex:none}
.spin.sm{width:12px;height:12px}
@keyframes spin{to{transform:rotate(360deg)}}
.msgs{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:12px 12px 8px;background:var(--wall);scrollbar-width:thin;scrollbar-color:var(--s3) transparent}
.msgs-in{margin-top:auto;width:100%;max-width:760px;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.log{display:flex;flex-direction:column;gap:6px}
.mw{display:contents}
.llist{display:flex;flex-direction:column;gap:8px}
.day{align-self:center;margin:8px 0;padding:2px 12px;border-radius:var(--r-p);background:var(--s2);border:1px solid var(--border);color:var(--text2);font-size:13px;line-height:20px}
.b{position:relative;max-width:min(calc(100% - 40px),560px);padding:6px 10px 4px;border-radius:14px;font-size:16px;line-height:24px;overflow-wrap:anywhere}
.b-w{align-self:flex-end;background:var(--bub);border-start-end-radius:4px;box-shadow:0 1px 1.5px rgba(20,12,48,.10)}
.b-me{align-self:flex-start;background:var(--me-bub);border-start-start-radius:4px;box-shadow:0 1px 1.5px rgba(20,12,48,.10)}
/* who is talking, beside every bubble: Tadda's wand by the team's answers (on the left), the business's own logo by the
   owner's messages (on the right; its first letter until a logo is uploaded) */
.b-w,.typing{margin-inline-end:36px}
.b-me{margin-inline-start:36px}
.b-w::after,.b-me::after,.typing::after{position:absolute;bottom:0;width:28px;height:28px;border-radius:50%;box-sizing:border-box}
.b-w::after,.typing::after{content:attr(data-ini);inset-inline-end:-37px;display:grid;place-items:center;font:600 13px/1 var(--f-disp);color:var(--sc,var(--brand-text));background:color-mix(in srgb,var(--sc,var(--brand)) 14%,var(--bub));border:1.5px solid color-mix(in srgb,var(--sc,var(--brand)) 45%,transparent)}
.b-w::before,.typing::before{content:"";position:absolute;bottom:-3px;inset-inline-end:-41px;width:14px;height:14px;border-radius:50%;background:url(favicon.svg) center/cover no-repeat;box-shadow:0 0 0 2px var(--wall);z-index:1}
.b-w:has(+ .b-w)::after,.b-w:has(+ .b-w)::before,.b-me:has(+ .b-me)::after{display:none}
.b-w:has(+ .b-w){border-end-end-radius:14px}
.b-me:has(+ .b-me){border-end-start-radius:14px}
.b-me::after{content:var(--biz-ini,"");inset-inline-start:-37px;display:grid;place-items:center;font:600 13px/1 var(--f-ui);color:var(--av-ink);background:var(--av-bg) var(--biz-logo,none) center/76% no-repeat;border:1px solid var(--border)}
.app.has-logo .b-me::after{content:"";background-color:#fff}
.b-wide{width:min(calc(100% - 40px),460px);max-width:min(calc(100% - 40px),460px);padding:8px}
.b-xl{width:min(calc(100% - 40px),560px);max-width:min(calc(100% - 40px),560px);padding:8px}
.b-who{font:600 13px/18px var(--f-ui);margin-bottom:2px}
.b-meta{display:flex;justify-content:flex-end;align-items:center;gap:4px;font-size:12px;line-height:16px;color:var(--text2);font-variant-numeric:tabular-nums;margin-top:2px}
.b-meta .i{width:16px;height:16px}
.b-meta .read{color:var(--brand-text)}
.b.anim{animation:rise .22s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.flash{animation:flash 1.8s var(--ease)}
@keyframes flash{0%,40%{box-shadow:0 0 0 3px var(--brand)}100%{box-shadow:0 0 0 0 transparent}}
.typing{position:relative;align-self:flex-end;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;border-start-end-radius:4px;background:var(--bub);border:1px solid var(--border);color:var(--text2);font-size:13px}
.dots{display:inline-flex;gap:4px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--text3);animation:blink 1.2s infinite}
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.3}30%{opacity:1}}
.work{align-self:flex-start;width:min(85%,400px);border:1px solid transparent;background:linear-gradient(var(--bub),var(--bub)) padding-box,var(--magic) border-box;border-radius:14px;border-start-start-radius:4px;padding:10px 14px;display:flex;flex-direction:column;gap:8px}
.work .wt{display:flex;align-items:center;gap:8px;font:600 15px/22px var(--f-ui)}
.steps{display:flex;flex-direction:column;gap:6px}
.steps li{display:flex;align-items:center;gap:8px;font-size:15px;line-height:22px;color:var(--text3)}
.steps li.done{color:var(--text2)}
.steps li.done .i{color:var(--ok)}
.steps li.now{color:var(--text)}
.dot{width:16px;height:16px;display:grid;place-items:center;flex:none}
.dot::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--text3)}

/* rich cards inside bubbles */
.kcard{display:flex;flex-direction:column;gap:10px}
.k-type{display:flex;align-items:center;gap:6px;font:500 13px/18px var(--f-ui);color:var(--text3)}
.k-type .i{width:16px;height:16px;color:var(--brand-text)}
.dcard{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px 12px;align-items:start}
.dcard .th-btn{display:block;border-radius:var(--r-m)}
.dcard .d-b{display:flex;flex-direction:column;gap:4px;min-width:0}
.dcard .acts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dcard .acts .btn-p{flex:1 1 auto}
.ok-line{display:flex;align-items:center;gap:8px;color:var(--ok);font:500 15px/22px var(--f-ui);flex:1;min-width:0}
.ok-line .i{color:var(--ok)}
.pop{animation:pop .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes pop{0%{transform:scale(.96)}60%{transform:scale(1.015)}100%{transform:scale(1)}}
.pcard{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.pcard .p-b{display:flex;flex-direction:column;gap:6px;min-width:0}
.opt-card{display:flex;flex-direction:column;gap:4px}
.opt-card .q{padding:4px 6px;font:600 15px/22px var(--f-ui)}
.opt{width:100%;text-align:right;display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:var(--r-m);border:1px solid var(--border);transition:background .15s var(--ease)}
.opt:hover{background:var(--s3)}
.opt .t{font:600 15px/22px var(--f-ui)}
.opt .d{font-size:13px;line-height:18px;color:var(--text2)}
.opt.rec2{background:var(--brand-tint);border-color:var(--brand-line);cursor:default}
.opt.rec2 .top2{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}
.opt.rec2 .btn{align-self:flex-start;margin-top:8px}
.lcard{display:flex;flex-direction:column;gap:8px}
.lead-top{display:flex;align-items:center;gap:10px}
.lead-av{width:40px;height:40px;border-radius:var(--r-p);background:var(--s3);display:grid;place-items:center;font:600 15px/1 var(--f-ui);color:var(--text2);flex:none}
.lead-n{font:600 16px/22px var(--f-ui)}
.lead-a{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.lead-a .btn{padding:0 12px}
.fit{display:inline-flex;border:1px solid var(--border);border-radius:var(--r-m)}
.fit button:first-child{border-radius:0 11px 11px 0}.fit button:last-child{border-radius:11px 0 0 11px}
.fit button{min-height:44px;padding:0 12px;font:500 13px/18px var(--f-ui);color:var(--text2)}
.fit button+button{border-inline-start:1px solid var(--border)}
.fit button[aria-pressed=true].y{background:var(--ok-t);color:var(--ok)}
.fit button[aria-pressed=true].n{background:var(--bad-t);color:var(--bad)}
.src-out{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 10px;border-radius:var(--r-m);border:1px solid var(--border);background:var(--s2);color:var(--text);text-align:start;cursor:pointer;transition:border-color .15s var(--ease),background .15s var(--ease)}
.src-out:hover{border-color:var(--brand-dim);background:var(--s3)}
.src-out .so-ic{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:var(--r-s);background:var(--brand-tint);color:var(--brand-text)}
.src-out .so-t{flex:1;min-width:0;display:flex;flex-direction:column}
.src-out .so-k{font:500 12px/16px var(--f-ui);color:var(--text2)}
.src-out .so-n{font:600 14px/20px var(--f-ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.src-out>svg{flex:none;color:var(--text3)}
.src-none{display:inline-flex;align-items:center;gap:6px;color:var(--text2);font:500 13px/18px var(--f-ui);min-height:32px}
.rcard{display:flex;flex-direction:column;gap:8px}
.r-top{display:flex;align-items:center;gap:12px}
.r-top .num{color:var(--ok)}
.hcard{display:flex;flex-direction:column;gap:10px;padding:10px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border)}
.h-who{display:flex;align-items:center;gap:10px}
.h-who>div{display:flex;flex-direction:column;min-width:0}
.from{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;padding:0;border:0;background:none;color:var(--brand-text);font:500 13px/18px var(--f-ui);cursor:pointer;text-align:start}
.from:hover{text-decoration:underline}
.from .from-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media (pointer:coarse){.from{min-height:44px}}

/* weekly summary */
.sum{display:flex;flex-direction:column;gap:14px}
.sum-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:space-between}
.eyebrow{display:flex;align-items:center;gap:6px;font:600 13px/18px var(--f-ui);color:var(--brand-text);letter-spacing:.02em}
.eyebrow .i{width:16px;height:16px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat{padding:10px;display:flex;flex-direction:column;gap:2px;min-width:0;background:var(--s2);border:1px solid var(--border);border-radius:var(--r-m)}
.stat .num{font-size:24px;line-height:32px}
.delta{font:500 13px/18px var(--f-ui);color:var(--ok);font-variant-numeric:tabular-nums}
.chart svg{width:100%;height:auto;display:block;overflow:visible}
.ch-l{font:500 15px var(--f-ui);fill:var(--text)}
.ch-v{font:600 15px var(--f-ui);fill:var(--text);font-variant-numeric:tabular-nums}
.ch-s{font:400 13px var(--f-ui);fill:var(--text3)}
.ch-track{fill:var(--s3)}
.ch-bar{fill:var(--brand-dim)}
.ch-bar.is-top{fill:var(--brand)}
.who-list{display:flex;flex-direction:column}
.who-list a{display:grid;grid-template-columns:32px minmax(0,1fr) 16px;gap:10px;align-items:center;min-height:52px;padding:6px 4px;color:var(--text);border-top:1px solid var(--border);font-size:15px;line-height:22px}
.who-list a:hover{background:var(--s2)}
.who-list b{font-weight:600}
.who-list svg.i{color:var(--text3)}

/* composer */
.cf{flex:none;padding:8px 12px 12px;background:var(--wall)}
.cf-in{width:100%;max-width:760px;margin-inline:auto;display:flex;flex-direction:column;gap:8px}
.qchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.qchips::-webkit-scrollbar{display:none}
.qchips .chip{flex:none;border-radius:var(--r-p);background:transparent;border:1px dashed var(--brand-line);color:var(--brand-text);min-height:36px;padding:0 12px;font-size:14px;gap:6px}
.qchips .chip::before{content:"✦";font-size:11px;opacity:.8}
@media (pointer:coarse){.qchips .chip{min-height:44px}}
.composer{background:var(--s1);border:1px solid var(--border);border-radius:24px;box-shadow:var(--sh);padding:2px;display:flex;flex-direction:column;transition:border-color .15s var(--ease)}
.composer:focus-within{border-color:var(--brand);box-shadow:var(--sh),0 0 0 3px var(--brand-tint)}
.composer textarea:focus-visible{box-shadow:none}        /* the box around it shows the focus: one border, not two */
.comp-row{display:flex;align-items:flex-end;gap:2px}
.composer textarea{flex:1;min-width:0;resize:none;background:transparent;border:0;outline:0;font-size:16px;line-height:24px;padding:10px 4px;max-height:144px;min-height:44px}
.composer .icon-btn{border-radius:50%}
.send{width:44px;height:44px;border-radius:50%;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;flex:none;transition:background .15s var(--ease),transform .15s var(--ease)}
.send:hover{background:var(--brand-h)}
.send:active{transform:scale(.97)}
.icon-btn.rec{color:var(--bad);background:var(--bad-t)}
.ctx{display:flex;align-items:center;gap:6px;margin:4px 4px 0;padding:2px;padding-inline-start:12px;border-radius:var(--r-p);background:var(--brand-tint);color:var(--text2);font-size:13px;line-height:18px;align-self:flex-start;max-width:calc(100% - 8px)}
.ctx b{color:var(--text);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctx button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:var(--text2);flex:none}
.ro-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;padding:8px 8px 8px 8px;padding-inline-start:16px;border-radius:var(--r-l);background:var(--s1);border:1px solid var(--border);font-size:15px;line-height:22px;color:var(--text2)}

/* desktop empty state */
.em{flex:1;overflow-y:auto;display:grid;place-items:center;padding-block:48px;padding-right:max(24px,env(safe-area-inset-right,0px));padding-left:max(24px,env(safe-area-inset-left,0px));background:radial-gradient(60% 40% at 50% 0%,#7C5CFF1A,transparent 70%),var(--wall)}
.em-in{width:100%;max-width:480px;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.em-in .mark{width:44px;height:44px;border-radius:var(--r-m)}
.em-in .mark .i{width:24px;height:24px}
.em-list{width:100%;display:flex;flex-direction:column;background:var(--s1);border:1px solid var(--border);border-radius:var(--r-l);overflow:hidden}
.em-list a{display:grid;grid-template-columns:40px minmax(0,1fr) 16px;gap:12px;align-items:center;min-height:60px;padding:8px 14px;color:var(--text)}
.em-list a+a{border-top:1px solid var(--border)}
.em-list a:hover{background:var(--s2)}
.em-list .x{display:flex;flex-direction:column;min-width:0}
.em-list .x span{font-size:13px;line-height:18px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.em-hd{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}
.em-all{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:14px;font-weight:600;color:var(--brand-text)}
.em-list .x .em-top{display:flex;align-items:center;gap:8px;color:var(--text);font-size:15px;line-height:22px;overflow:visible}
.em-list .x .em-n{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--brand);color:var(--on-brand);font-size:12px;font-weight:700;line-height:22px;text-align:center}
.em-list .x .em-what{color:var(--text);font-weight:500}
.em-list .x .em-need{color:var(--warn);font-weight:600}

/* ---------- profile ("התיק") ---------- */
.prof{flex:1;min-height:0;display:flex;flex-direction:column}
.prof-h .ttl{flex:1;min-width:0}
.prof-b{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:20px;scrollbar-width:thin;scrollbar-color:var(--s3) transparent}
.prof-id{display:flex;align-items:center;gap:16px}
.prof-id>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ai-note{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:18px;color:var(--text3)}
.ai-note .i{width:14px;height:14px}
.psec{display:flex;flex-direction:column;gap:8px}
.psec-h{display:flex;align-items:center;gap:8px;font:600 15px/22px var(--f-ui)}
.psec-h .n{font:500 13px/18px var(--f-ui);color:var(--text3);font-variant-numeric:tabular-nums}
.none{font-size:15px;line-height:22px;color:var(--text3)}
.pitem{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start;padding:10px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border)}
.pitem .th-btn{display:block;border-radius:var(--r-m)}
.pi-b{display:flex;flex-direction:column;gap:4px;min-width:0}
.pi-t{font:600 15px/22px var(--f-ui);text-align:right;min-height:44px;display:flex;align-items:center}
.pi-t:hover{color:var(--brand-text)}
.pi-st{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;line-height:18px;color:var(--text2);font-variant-numeric:tabular-nums}
.pask{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--warn-line)}
.lmini{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;padding:10px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border)}
.lmini .x{display:flex;flex-direction:column;gap:2px;min-width:0}
.tlist{display:flex;flex-direction:column}
.tlist a{display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 8px;border-radius:var(--r-s);color:var(--text);font-size:15px}
.tlist a:hover{background:var(--s2)}
.tlist a .grow{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlist a .i{color:var(--text3)}

/* ---------- V4: the "היום" strip above the team list ---------- */
.today{padding:4px 12px;flex:none;display:flex;flex-direction:column;gap:6px}
.today-h{display:flex;align-items:center;gap:8px;font:600 13px/18px var(--f-ui);color:var(--text2)}
.today-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tstat{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:72px;padding:8px 10px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border);text-align:start;transition:border-color .15s var(--ease),background .15s var(--ease),transform .15s var(--ease)}
.tstat:hover{border-color:var(--brand-dim);background:var(--s3)}
.tstat:active{transform:scale(.97)}
.tstat[aria-current=true]{border-color:var(--brand);background:var(--brand-tint)}
.tstat .tn{font:700 22px/28px var(--f-ui);font-variant-numeric:tabular-nums}
.tstat.hot .tn{color:var(--brand-text)}
.tstat .tl{font:500 13px/18px var(--f-ui);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tstat .ts{font-size:12px;line-height:16px;color:var(--text2);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%;font-variant-numeric:tabular-nums}

/* ---------- V4: bottom tab bar (phone only, hidden inside a conversation) ---------- */
.tabbar{display:none;position:fixed;right:0;left:0;bottom:0;z-index:20;grid-template-columns:1fr 1fr;padding-bottom:env(safe-area-inset-bottom,0px);background:var(--s1);border-top:1px solid var(--border)}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;color:var(--text2);font:500 13px/18px var(--f-ui)}
.tab .ti{position:relative;display:grid;place-items:center;width:56px;height:30px;border-radius:var(--r-p);transition:background .15s var(--ease)}
.tab[aria-current=page]{color:var(--brand-text);font-weight:600}
.tab[aria-current=page] .ti{background:var(--brand-tint)}
.tab .ubadge{position:absolute;top:-6px;left:2px;min-width:20px;height:20px;font-size:12px;line-height:20px;padding:0 5px;box-shadow:0 0 0 2px var(--s1)}
@media (max-width:767px){
  .app[data-view=list],.app[data-view=board]{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  .app[data-view=list]~.tabbar,.app[data-view=board]~.tabbar{display:grid}
}

/* ---------- V4: header toggle "התיק של X" / "לוח" (desktop) ---------- */
.side-seg{display:none;flex:none}
.side-seg button{display:inline-flex;align-items:center;gap:6px;font-size:14px;padding:0 10px;white-space:nowrap}
@media (min-width:1024px){.side-seg{display:inline-flex}.fold-btn{display:none!important}}
.to-b{margin-inline-start:auto}

/* ---------- V4: the board ("לוח"), one state shared with the chat ---------- */
.bd{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--bg)}
.p-prof .bd{background:var(--s1)}
.bd-h .ttl{flex:1;min-width:0;display:flex;flex-direction:column}
.bd-s{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--s3) transparent}
.bd-in{container-type:inline-size;width:100%;max-width:1040px;margin-inline:auto;padding-block:20px 48px;padding-right:max(16px,env(safe-area-inset-right,0px));padding-left:max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:24px;min-width:0}
.bd[data-mode=side] .bd-in{padding:12px 12px 32px;gap:20px}
.bd[data-mode=side] .h2{font-size:18px;line-height:26px}
.bd-hello{display:flex;flex-direction:column;gap:4px}
.bd-nav{display:flex;flex-direction:column;gap:4px;min-width:0}
.bsecs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-inline:-4px;padding:4px}
.bsecs::-webkit-scrollbar{display:none}
.bsecs .chip{flex:none;border-radius:var(--r-p)}
.bsecs .n{font-variant-numeric:tabular-nums;color:var(--text3);font-size:13px}
.bsecs .chip[aria-pressed=true] .n{color:var(--brand-text)}
.topics{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border);margin:0 -4px;padding:0 4px}
.topics::-webkit-scrollbar{display:none}
.topics button{flex:none;position:relative;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;color:var(--text2);font:500 15px/22px var(--f-ui);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s var(--ease),border-color .15s var(--ease)}
.topics button:hover{color:var(--text)}
.topics button[aria-pressed=true]{color:var(--text);border-bottom-color:var(--brand);font-weight:600}
.topics button .ico svg{width:18px;height:18px}
.topics .n{font-variant-numeric:tabular-nums;color:var(--text3);font-size:13px}
.topics .wdot{width:7px;height:7px;border-radius:50%;background:var(--brand-text)}
.bsec{display:flex;flex-direction:column;gap:12px;min-width:0}
.bsec-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:32px}
.bsec-h .n{font:500 15px/22px var(--f-ui);color:var(--text3);font-variant-numeric:tabular-nums}
.bsec-h .link{margin-inline-start:auto}
.b-empty{padding:20px 16px;text-align:center;color:var(--text2);font-size:15px;line-height:22px}
.bw-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
@container (min-width:720px){.bw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bw{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 12px;padding:12px;align-items:start;min-width:0;transition:border-color .22s var(--ease),background .22s var(--ease)}
.bw.is-ok{border-color:var(--ok-line);background:linear-gradient(var(--ok-t),var(--ok-t)),var(--s2)}
.bw-who{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--text2);min-width:0}
.bw-who b{color:var(--text);font-weight:600}
.bw-who .pill{margin-inline-start:auto}
.bw .th-btn{display:block;border-radius:var(--r-m)}
.bw-b{display:flex;flex-direction:column;gap:2px;min-width:0}
.bw-a{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bw-a .btn-p{flex:1 1 auto}
.bw-a .ok-line{flex:1;min-width:0}
.bq{grid-template-columns:minmax(0,1fr);border-color:var(--warn-line)}
.blist{display:flex;flex-direction:column}
.blist>*+*{border-top:1px solid var(--border)}
.bwk{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px 12px;padding:12px 14px;align-items:start;border-radius:var(--r-l)}
.bwk-b{display:flex;flex-direction:column;gap:6px;min-width:0}
.out-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@container (min-width:600px){.out-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}
.out{display:flex;flex-direction:column;min-width:0}
.out.is-ok{border-color:var(--ok-line)}
.out-thumb{position:relative;display:block;border-bottom:1px solid var(--border);border-radius:var(--r-l) var(--r-l) 0 0}
.out .th{border-radius:var(--r-l) var(--r-l) 0 0;aspect-ratio:1/1}
.out-av{position:absolute;top:8px;right:8px;display:block;border-radius:50%;background:var(--s1);box-shadow:0 0 0 2px var(--s1)}
.out-b{padding:8px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.out-t{font:600 15px/22px var(--f-ui);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px;text-align:right}
.out-t:hover{color:var(--brand-text)}
.out-st{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.stat-line{font-size:13px;line-height:18px;color:var(--text2);font-variant-numeric:tabular-nums}
.out-a{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.out-a .btn{width:100%;padding:0 8px}
.res-cols{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
@container (min-width:800px){.res-cols{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:start}}
.panel{padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.panel-h{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bd .stats .num{font-size:24px;line-height:32px}
.blead{display:flex;flex-direction:column;gap:6px;padding-block:10px;border-radius:var(--r-m)}
.blead+.blead{border-top:1px solid var(--border)}
.blead-go{display:grid;grid-template-columns:40px minmax(0,1fr) 16px;gap:10px;align-items:center;min-height:52px;width:100%;padding:2px 4px;border-radius:var(--r-m);text-align:start;transition:background .15s var(--ease)}
.blead-go:hover{background:var(--s3)}
.blead-go .x{display:flex;flex-direction:column;min-width:0}
.blead-go .x .cap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blead-go>svg{color:var(--text3)}
.blead-2{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-inline-start:54px}
.blead-2 .src-out{flex:1 1 200px;width:auto;min-width:0}
.blead-2 .fit{margin-inline-start:auto}
@container (max-width:420px){.blead-2{padding-inline-start:0}}

/* ---------- sheet (V2) ---------- */
.scrim{position:fixed;inset:0;background:var(--scrim);opacity:0;transition:opacity .22s var(--ease);z-index:40}
.scrim.open{opacity:1}
.sheet{position:fixed;z-index:41;background:var(--s1);border:1px solid var(--border);box-shadow:var(--sh);display:flex;flex-direction:column;transition:transform .22s var(--ease);min-height:0}
.sheet-h{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border)}
.sheet-h .ttl{flex:1;min-width:0}
.sheet-b{overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:20px;flex:1;min-height:0;scrollbar-width:thin}
.sheet-f{padding:12px 16px;border-top:1px solid var(--border);display:flex;gap:8px;background:var(--s1);flex-wrap:wrap}
.sheet-f .btn{flex:1}
.sheet .prof{min-height:0}
.grab{display:block;width:40px;height:4px;border-radius:var(--r-p);background:var(--border);margin:8px auto 0;flex:none}
@media (max-width:1023px){
  .sheet{right:0;left:0;bottom:0;max-height:92%;border-radius:var(--r-l) var(--r-l) 0 0;border-bottom:0;transform:translateY(102%);padding-bottom:env(safe-area-inset-bottom,0px)}
  .sheet.open{transform:none}
  .sheet.tall{height:92%}
}
@media (min-width:1024px){
  .sheet{top:0;bottom:0;left:0;width:min(480px,100%);border-width:0;border-inline-start:1px solid var(--border);transform:translateX(-102%)}
  .sheet.open{transform:none}
  .grab{display:none}
}
.preview{display:flex;justify-content:center;padding:16px;border-radius:var(--r-l);background:var(--bg);border:1px solid var(--border)}
.preview .th{width:min(240px,70%);aspect-ratio:9/16}
.preview .th.wide{width:min(320px,100%);aspect-ratio:3/4}
.kv{display:flex;flex-direction:column;gap:12px;margin:0}
.kv>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:start;font-size:15px;line-height:22px}
.kv dt{color:var(--text3);font-size:13px;line-height:22px}
.kv dd{margin:0;min-width:0}
.copy{padding:12px 16px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border);font-size:15px;line-height:24px;color:var(--text)}
.seg{display:inline-flex;padding:4px;gap:4px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border)}
.seg button{min-height:44px;padding:0 12px;border-radius:var(--r-s);font:500 15px/22px var(--f-ui);color:var(--text2);transition:background .15s var(--ease),color .15s var(--ease)}
.seg button[aria-pressed=true]{background:var(--s3);color:var(--text)}
.theme-seg{display:flex;width:100%}
.theme-seg button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 6px;font-size:14px}

/* ---------- toast, menu ---------- */
.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translate(-50%,8px);opacity:0;z-index:50;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 32px);background:var(--s3);color:var(--text);border:1px solid var(--border);box-shadow:var(--sh);padding:8px 12px;padding-inline-start:16px;border-radius:var(--r-m);font-size:15px;line-height:22px;transition:opacity .22s var(--ease),transform .22s var(--ease)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast .i{color:var(--ok)}
.toast button{color:var(--brand-text);font-weight:600;min-height:44px;padding:0 8px;border-radius:var(--r-s);flex:none}
.menu{position:fixed;z-index:45;width:280px;max-width:calc(100% - 16px);background:var(--s1);border:1px solid var(--border);border-radius:var(--r-l);box-shadow:var(--sh);padding:8px;display:flex;flex-direction:column;gap:2px}
.menu-h{display:flex;align-items:center;gap:12px;padding:8px 8px 12px;border-bottom:1px solid var(--border);margin-bottom:4px}
.menu-h div{display:flex;flex-direction:column}
.menu a,.menu button.mi{min-height:44px;display:flex;align-items:center;gap:12px;padding:0 8px;border-radius:var(--r-s);color:var(--text);font-size:15px;text-align:right;width:100%}
.menu a:hover,.menu button.mi:hover{background:var(--s3)}
.menu .i{color:var(--text2)}
.menu-theme,.menu-use{padding:8px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--border);margin-top:4px}

@media (max-width:767px){
  .msgs,.trows{scrollbar-width:none}
  .msgs::-webkit-scrollbar,.trows::-webkit-scrollbar{display:none}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .spin{border-top-color:var(--brand-text);animation:none!important}
  .dots i{animation:none!important;opacity:.8}
}

/* ---------- V2 additions (real data, no sample art) ---------- */
html,body{overflow-x:hidden}
.app[hidden]{display:none!important}
/* the switch back to V1, fixed in the top-left corner (the mockup's view-mode button spot; headers keep 64px free) */
.ui-switch{position:fixed;z-index:30;top:calc(10px + env(safe-area-inset-top,0px));left:calc(8px + env(safe-area-inset-left,0px));height:44px;min-width:44px;padding:0 12px;border-radius:var(--r-p);display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--s1) 88%,transparent);border:1px solid var(--border);color:var(--text2);font:600 13px/18px var(--f-ui);backdrop-filter:blur(6px);transition:color .15s var(--ease),border-color .15s var(--ease)}
.ui-switch:hover{color:var(--text);border-color:var(--brand-dim)}
/* the three versions in the switch's place, the one on screen marked (Ruby, 2026-11-24) */
.ui-switch.vers2{padding:3px;gap:2px}
.vers2 a{height:36px;min-width:38px;padding:0 9px;border-radius:var(--r-p);display:inline-flex;align-items:center;justify-content:center;color:var(--text2)}
.vers2 a:hover{color:var(--text)}
.vers2 a[aria-current="page"]{background:var(--brand);color:var(--on-brand)}
.beta-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--r-p);background:var(--brand-tint);color:var(--brand-text);font:600 12px/18px var(--f-ui)}
/* loading, sign-in and "no business yet" */
.gate{position:fixed;inset:0;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(60% 40% at 50% 0%,#7C5CFF1A,transparent 70%),var(--bg)}
.gate-in{width:100%;max-width:420px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.gate-in .mark{width:44px;height:44px;border-radius:var(--r-m)}
/* an item's thumbnail: the kind's glyph in the worker's colour, or the film's own poster */
/* every thumbnail holds its own picture: without this a film poster (position:absolute) covered the whole chat */
.th{position:relative;display:block;overflow:hidden;border-radius:var(--r-m);isolation:isolate}
.th-k{display:grid;place-items:center;aspect-ratio:1/1;color:var(--wc);background:radial-gradient(110% 110% at 30% 18%,color-mix(in srgb,var(--wc) 18%,var(--s1)) 0%,color-mix(in srgb,var(--wc) 6%,var(--s1)) 75%);border:1px solid color-mix(in srgb,var(--wc) 30%,transparent)}
.th-k>.i{width:40%;height:40%;max-width:44px;max-height:44px;stroke-width:1.5}
.th-k img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.th-prog{position:absolute;right:0;left:0;bottom:0;height:5px;background:rgb(0 0 0/.3)}
.th-prog i{display:block;height:100%;background:var(--magic)}
.out .th-k>.i{width:30%;height:30%}
.dcard .pi-st{margin-top:2px}
/* a worker who is not available yet */
.trow.soon .wav{filter:grayscale(1);opacity:.7}
.trow.soon .tr-n{color:var(--text2)}
/* V1's chat cards, in the mockup's look */
.plan2{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.plan2 ol{display:flex;flex-direction:column;gap:8px;counter-reset:s}
.plan2 li{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:8px 10px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border)}
.plan2 li>span{display:flex;flex-direction:column;min-width:0}
.plan2 li small{font-size:13px;line-height:18px;color:var(--text2)}
.plan2 li .btn{flex:none}
.plan2 .kv>div{grid-template-columns:90px minmax(0,1fr)}
.piq{display:flex;flex-direction:column;gap:6px}
.chips .chip{white-space:normal;text-align:start}
.chip:disabled,.btn:disabled{opacity:.55;cursor:default}
/* seeing an item before approving it */
.pvv{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.pvv:empty{display:none}
.pvv .icon-btn:disabled{opacity:.3}
.pv{display:flex;flex-direction:column;gap:8px;min-height:60vh}
.pv iframe{width:100%;flex:1;min-height:60vh;border:1px solid var(--border);border-radius:var(--r-m);background:#fff}
.pv .cap{display:flex;align-items:center;gap:8px}
.preview video{width:min(320px,100%);max-height:60vh;border-radius:var(--r-m);background:#000}
.todo{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--warn-line)}
.todo ul{display:flex;flex-direction:column;gap:4px;list-style:disc;padding-inline-start:20px;font-size:15px;line-height:22px;color:var(--text2)}
.sheet-h .ttl{display:flex;flex-direction:column}
.sheet-f .btn-p{flex:2 1 auto}
.menu-h .cap{font-size:13px}
.menu-use{max-height:40vh;overflow-y:auto}
.lmini .fit{align-self:flex-start;margin-top:4px}
.b-me .b-who{color:var(--brand-text)}
.lcard .to-b,.dcard .to-b{margin-inline-start:auto}
/* the header's "התיק / לוח" switch is for three columns only (.seg comes later in the sheet styles) */
.seg.side-seg{display:none}
@media (min-width:1024px){.seg.side-seg{display:inline-flex}}
/* a worker's tasks: each its own conversation, as chips under the header (docs/mockups/tadda-v4.html) */
.tbar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:8px 12px;background:var(--s1);border-bottom:1px solid var(--border);flex:none}
.tbar::-webkit-scrollbar{display:none}
.tchip{flex:none;min-height:44px;padding:0 12px;border-radius:var(--r-p);border:1px solid var(--border);background:var(--s2);color:var(--text);font:500 14px/20px var(--f-ui);display:inline-flex;align-items:center;gap:8px;white-space:nowrap;max-width:240px;transition:background .15s var(--ease),border-color .15s var(--ease)}
a.tchip{overflow:hidden;text-overflow:ellipsis}
.tchip:hover{border-color:var(--brand-dim)}
.tchip[aria-current=true]{background:var(--brand-tint);border-color:var(--brand)}
.tchip .wd{width:8px;height:8px;border-radius:50%;background:var(--warn);flex:none}
.tchip .tn{min-width:20px;height:20px;padding:0 5px;border-radius:var(--r-p);background:var(--brand);color:var(--on-brand);font:600 12px/20px var(--f-ui);text-align:center;flex:none}
.tchip.new{color:var(--brand-text);border-style:dashed;background:transparent}
.tchip:disabled{opacity:.55;cursor:default}
/* מאיה passed the work on: the card opens the worker's new task */
.hcard{display:flex;flex-direction:column;gap:10px;padding:10px;margin-top:8px;border-radius:var(--r-m);background:var(--s2);border:1px solid var(--border)}
.h-who{display:flex;align-items:center;gap:10px}
.h-who>div{display:flex;flex-direction:column;min-width:0}
.hcard .btn{align-self:flex-start}
/* a newer task: what the worker made before tasks, as one quiet line to their profile */
.loose-row{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:4px 0 8px;padding:0 14px;border-radius:var(--r-m);border:1px dashed var(--border);color:var(--text2);font-size:14px;line-height:20px;text-align:start;transition:border-color .15s var(--ease),color .15s var(--ease)}
.loose-row:hover{border-color:var(--brand-dim);color:var(--text)}
.loose-row>span:first-of-type{flex:1;min-width:0}
.loose-row .lr-go{display:inline-flex;align-items:center;gap:2px;color:var(--brand-text);font-weight:600}

/* the worker's intro: a quiet note at the top of the conversation, not a dated message */
.inote{align-self:center;max-width:min(100%,520px);margin:4px auto 10px;padding:10px 14px;border-radius:var(--r-l);background:color-mix(in srgb,var(--s1) 70%,transparent);border:1px solid var(--border);text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.inote p{font-size:14px;line-height:21px;color:var(--text2)}

/* the header's actions: plain icon buttons; the open side panel's button stays lit */
.ch .hb[aria-pressed=true]{background:var(--brand-tint);color:var(--brand-text)}
.ch .hb:hover{background:var(--s2);color:var(--text)}
.side-seg{gap:2px}
.ch .ch-who{margin-inline-end:auto}

/* "היום": one quiet line of three counts in place of three tiles */
.today{padding:6px 12px 2px}
.today-row{display:flex;gap:6px;flex-wrap:wrap}
.tstat{flex-direction:row;align-items:baseline;gap:6px;min-height:36px;padding:6px 12px;border-radius:var(--r-p);flex:1 1 auto;justify-content:center}
.tstat .tn{font:700 15px/20px var(--f-ui)}
.tstat .tl{font:500 13px/20px var(--f-ui);color:var(--text2)}
.tstat.hot{background:var(--brand-tint);border-color:var(--brand-line)}
.tstat.hot .tl{color:var(--brand-text)}
@media (pointer:coarse){.tstat{min-height:44px}}

/* round 2 of the design review (2026-11-23) */
.conv,.p-main>*{min-width:0}                         /* the task chips scroll in their own row; the page never widens */
.tbar{max-width:100%;position:relative}             /* hidden labels inside the chips stay inside the row */
.tchip{position:relative}
.tchip .wd{background:var(--brand)}
.ls,#tfilters{display:none}                           /* six workers need no search; the counts above are the filters */
.tstat[aria-pressed=true]{background:var(--brand);border-color:var(--brand)}
.tstat[aria-pressed=true] .tn,.tstat[aria-pressed=true] .tl{color:var(--on-brand)}
.udot{width:10px;height:10px;border-radius:50%;background:var(--brand);flex:none;margin-inline-start:4px}
.tab .udot{position:absolute;top:-2px;left:4px;box-shadow:0 0 0 2px var(--s1)}
.soon-grp{width:100%;display:flex;align-items:center;gap:12px;text-align:start;opacity:.8}
.soon-grp .sg-av{display:flex;flex:none}
.soon-grp .sg-av .wav{filter:grayscale(1);box-shadow:0 0 0 2px var(--s1)}
.soon-grp .sg-av .wav+.wav{margin-inline-start:-10px}
.soon-grp .sg-av .wav .gl{display:none}
.soon-grp .tr-b{flex:1;min-width:0}
/* header actions: icons, with words beside them on wide screens */
.ch .hb{width:auto;min-width:44px;padding:0 10px;gap:6px;display:inline-flex;align-items:center;justify-content:center}
.ch .hb .hl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (min-width:1280px){.ch .hb .hl{position:static;width:auto;height:auto;clip-path:none;font:500 14px/20px var(--f-ui)}}
.ch .hb[hidden]{display:none}
/* phone: the chat header keeps the name and the status line only; V1 lives in the menu */
@media (max-width:767px){
  .ch-nm small,.ch-nm .ai-tag{display:none}
  .ui-switch{display:none}
  html:not(.embed) .ph{padding-left:12px}
}
/* the desktop home: a wider column, nearer the top */
.em{place-items:start center;padding-top:max(48px,10vh)}
.em-in{max-width:640px}
/* several films waiting in a row: one message with their posters */
.fgrp{display:flex;flex-direction:column;gap:10px}
.fg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
.fg-it{display:flex;flex-direction:column;gap:4px;text-align:start;border-radius:var(--r-m);padding:2px}
.fg-it .th{width:100%;height:auto;aspect-ratio:3/4}
.fg-it span{font-size:12px;line-height:16px;color:var(--text2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fg-it:hover span{color:var(--text)}

/* round 3 of the design review */
.ch .hb{position:relative}
.hn{position:absolute;top:4px;inset-inline-start:4px;min-width:16px;height:16px;padding:0 4px;border-radius:var(--r-p);background:var(--s3);color:var(--text);font:600 11px/16px var(--f-ui);text-align:center}
@media (min-width:1280px){.hn{position:static;margin-inline-start:2px}}
.fg-it span{-webkit-line-clamp:1}

/* round 4: the "waiting" count is a count, not a pressed button; no stray border on the phone list */
.tstat.hot:not([aria-pressed=true]){background:var(--s2);border-color:var(--border)}
.tstat.hot:not([aria-pressed=true]) .tn{color:var(--brand-text)}
.tr-bot .pill+.pill{margin-inline-start:4px}
@media (max-width:767px){.p-list{border-inline-end:0}}
/* a page's sheet on the whole screen (the owner, 2026-11-23), and change mode under the page */
.sheet.full{inset:0!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;border-radius:0!important;transform:none!important}
.sheet.full .pv,.sheet.full .pv iframe{min-height:0;flex:1}
.sheet.full .sheet-b{gap:12px}
.pv.pc-on{min-height:48vh}
.pv.pc-on iframe{min-height:48vh}
.pc{display:flex;flex-direction:column;gap:10px;border:1px solid var(--border);border-radius:var(--r-m);padding:12px}
.pc:empty{display:none}
.pc .row{display:flex;gap:8px;flex-wrap:wrap}
.pc-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pc-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pc-chips .chip{min-height:44px;justify-content:center}
.pc-chips .pc-say{grid-column:1/-1}
.pc-in{font:inherit;font-size:16px;padding:10px 12px;border-radius:var(--r-m);border:1px solid var(--border);background:var(--s2,transparent);color:inherit;width:100%;box-sizing:border-box}
.pc-sayrow{display:flex;gap:8px;align-items:flex-start}
.pc-sayrow .pc-in{flex:1;min-width:0}
.pc-mic.on{color:#d12c2c}
.pc-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px}
.pc-img{padding:0;border:0;border-radius:10px;overflow:hidden;aspect-ratio:1;cursor:pointer}
.pc-img img{width:100%;height:100%;object-fit:cover;display:block}
.pc-sw{display:flex;gap:10px;flex-wrap:wrap}
.pc-swc{width:44px;height:44px;border-radius:50%;border:2px solid var(--border);cursor:pointer}
.pc-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pc-list li{display:flex;align-items:center;gap:8px;min-width:0}
.pc-n{flex:none;width:24px;height:24px;border-radius:50%;background:#6b4fd8;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.pc-l{flex:1;min-width:0;overflow-wrap:anywhere}
.pc-shotl{display:flex;gap:8px;align-items:flex-start;cursor:pointer}
.pc-err{margin:0;color:#9a5b00;background:#fbefd9;border-radius:10px;padding:8px 12px}
.pc-fail{background:#fbefd9;color:#9a5b00;border-radius:10px;padding:10px 12px;display:grid;gap:4px}
.pc-bld{border-radius:10px;padding:10px 12px;display:grid;gap:6px;border:1px dashed var(--border)}
.pc-bld ul{margin:0;padding-inline-start:18px}
.pc-up{cursor:pointer}
.pc-wait{display:flex;gap:8px;align-items:center}
.sheet-h .sheet-full{flex:none;white-space:nowrap}
.pc-leave{background:var(--warn-soft, #fff4e5);border-radius:12px;padding:12px;display:grid;gap:8px}
.leave-dlg{border:0;border-radius:20px;padding:24px;max-width:min(440px,calc(100vw - 32px));width:100%;box-shadow:0 24px 60px rgba(0,0,0,.35);background:var(--surface, var(--bg, #fff));color:var(--ink, var(--text, #1b1530));font-family:inherit}
.leave-dlg::backdrop{background:rgba(12,8,24,.55)}
.leave-dlg h2{margin:0 0 10px;font-size:20px}
.leave-dlg p{margin:0 0 8px;line-height:1.5}
.leave-dlg .leave-sub{opacity:.75;font-size:14px}
.leave-acts{display:grid;gap:8px;margin-top:16px}
.leave-acts .btn{width:100%;justify-content:center;min-height:46px}
/* the page interview's fields: a link, a WhatsApp number or files, asked inside the card (2026-11-26) */
.plan2 .pifield{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.plan2 .pifield .inp{flex:1 1 180px;min-width:0;height:40px;border:1px solid var(--border);border-radius:12px;padding:0 12px;font:inherit;font-size:15px;background:var(--s1);color:var(--text)}
.plan2 .pifield label{cursor:pointer}
.plan2 .err{color:var(--bad-t)}
.plan2 .pimiss{display:grid;gap:10px;margin-top:10px;padding:10px 12px;border:1px dashed var(--border);border-radius:14px}

/* a cinematic direction's preview and the contract's scene list (2026-11-26) */
.pici{display:block;margin-top:6px}.pici img{display:block;width:100%;max-width:240px;border-radius:8px;margin-bottom:4px}
.pisc{margin:6px 0 0;padding-inline-start:18px}ol.pisc li{display:block;margin:4px 0}ol.pisc li small{display:block;opacity:.8;margin-top:2px}
