/* ============================================================================================
   PHONE ONLY. This file loads only on narrow screens (see the <link media="(max-width: 900px)"> in
   index.html), so nothing here can change the desktop app. Phone fixes go here, never in the base styles.
   ============================================================================================ */

/* Modules hub: one column; the tool list opens as a drawer from the "all tools" button */
.hub{grid-template-columns:1fr;gap:12px}
/* (23.10.2026) the tool list is a drawer opened by the "all tools" button; see app.js tmDraw */
.hubnav{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(330px,88vw);z-index:60;border-radius:0;overflow-y:auto;padding:12px;transform:translateX(105%);transition:transform .22s ease;box-shadow:0 0 40px rgba(20,22,61,.3)}
[dir=ltr] .hubnav{transform:translateX(-105%)}
.hub.peek .hubnav{transform:none}
.hubshade{position:fixed;inset:0;background:rgba(20,22,61,.4);z-index:59}.hub.peek .hubshade{display:block}
.hubbtn{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 12px;padding:10px 12px;border:2px solid #c7d2fe;border-radius:14px;background:#fff;font:inherit;color:var(--ink);cursor:pointer;text-align:start}
.hubbtn .hubic{flex:none}.hubbtn b{flex:1;font-size:16px}.hubbtn-all{display:flex;align-items:center;gap:6px;color:#4f46e5;font-weight:700;font-size:14px;white-space:nowrap}
.tmpin,.tmtoggle{display:none!important}.hubitem b{font-size:15px}
body.menu-open aside.hubnav{z-index:auto} /* the module list is an <aside> too: it must not rise above the open side menu */

.hubic{width:24px;height:24px;border-radius:7px}.hubic svg{width:15px;height:15px}
.hubintro{padding:14px;gap:10px}
.hubintro b{font-size:16px}
.hubic.big{width:36px;height:36px}.hubic.big svg{width:20px;height:20px}
.hubintro ul{grid-template-columns:1fr;font-size:14px}

/* Dashboard "שלבים" card: each button on its own line, aligned to the right */
.row.steps{flex-direction:column;align-items:flex-start;gap:8px}.row.steps .btn{text-align:right}

/* English (LTR): the side drawer and its "Menu" tab live on the left */
[dir=ltr] .row.steps .btn{text-align:left}
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){
  [dir=ltr] nav#tabs{right:auto;left:0;transform:translateX(-105%);box-shadow:8px 0 30px rgba(0,0,0,.35)}
  [dir=ltr] body.menu-open nav#tabs{transform:none}
  [dir=ltr] #menuTab{right:auto;left:0;border-radius:0 10px 10px 0}
  [dir=ltr] main{padding-right:16px;padding-left:30px}
}

/* Publishing calendar on phones: a list of the days that have items (a 7-column grid is too tight) */
@media (max-width:700px){#pubcal .pcgrid{grid-template-columns:1fr;gap:6px}#pubcal .pcwd,#pubcal .pcday.empty{display:none}#pubcal .pcday{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;padding:8px}#pubcal .pcday:not(:has(.pcchip)):not(.today){display:none}#pubcal .pcd{min-width:28px;font-size:14px;color:var(--ink,#111)}#pubcal .pcchip{width:auto;height:auto;display:inline-flex;align-items:center;gap:5px;font-size:13px;padding:5px 9px}#pubcal .pcchip span{display:inline}}

/* AI content checker (narrow screens) */
@media (max-width:700px){#contentcheck .ccscore{flex-direction:column;align-items:stretch}#contentcheck .ccarrow{transform:rotate(-90deg);text-align:center}#contentcheck .ccgroups{min-width:0}#contentcheck .ccgroups div{grid-template-columns:1fr 64px}#contentcheck .ccgroups i{grid-column:1/-1;order:3}#contentcheck .ccimproved{max-height:340px}}

/* Content kit: industry sample + approval bar on phones */
@media (max-width:700px){.kitsamp{grid-template-columns:1fr}.kitsamp video{max-width:260px;margin:0 auto;display:block}.kitib{flex-direction:column;align-items:stretch;gap:6px;padding:8px}.kitib .row{gap:4px!important}.kitib .btn.sm,.kitib .ghost{padding:5px 9px;font-size:13px}.kitind button{padding:5px 11px;font-size:14px}}

/* Content kit staged flow on phones: one column, sample right under the field, create button stays reachable */
@media (max-width:700px){.kitflow{grid-template-columns:1fr;gap:12px}.kitcol{padding:12px;display:flex;flex-direction:column}
.kitdemo{padding:10px;margin-inline-start:0}.kitvid1 video{width:110px}
.kitgo-wrap{position:sticky;bottom:0;background:var(--card);padding:10px 0 4px;z-index:5;margin:0}.kitgo-wrap .mute{white-space:normal;font-size:12px}
.kitideas .kitchip small{display:none}.kitfold>summary{padding:13px 14px}}

/* Pro tools on phones: a single "tool" dropdown instead of the long list; the tool's intro is shortened */
@media (max-width:700px){

#modules .page-head p{display:none}.hubintro ul{display:none}.hubintro p{margin:2px 0 0;font-size:14px}}
/* Pro tools on phones, round 2: no site row (read-only), no intro card (the dropdown already names the tool), no repeated page title */
@media (max-width:700px){.hubsite:has(input[disabled]){display:none}#hubIntro .hubintro{display:none}
.hubbody section>.page-head{display:none}.kitlead{margin:0 0 10px;font-size:14px}}
@media (max-width:700px){#kitStep2:not(.on){display:none}}

@media (max-width:700px){.kitvid1.big video{max-width:none}.kitpick{text-align:right}}
@media (max-width:700px){.kitstep .kitpick{margin-inline-start:-40px;width:calc(100% + 40px)}}

@media (max-width:700px){#kitStep3:not(.on) .kn,#kitStep3:not(.on)>div>:not(.kitshow){display:none}}

/* Dashboard on phones: summary as a 2x2 grid; folded rows tight; no page subtitle */
@media (max-width:700px){.dashsum{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;padding:10px 12px;font-size:13px}.dashsum b{font-size:16px}.dfold>summary{padding:13px 14px;font-size:15px}.dfold>summary small{display:block;margin:2px 0 0}.dfoldin{padding:0 10px 12px}#dash .page-head p{display:none}}

@media (max-width:700px){#tasks .page-head p{display:none}}

@media (max-width:700px){#calendar .page-head p{display:none}}

/* Pro tools on phones: no purple intro paragraph on top of each tool (status notes stay) */
@media (max-width:700px){.hubbody section>.tone.purple{display:none}}

@media (max-width:700px){.lptg{grid-template-columns:1fr 1fr;gap:8px}.lpt span{display:none}.lpt b{font-size:13px}.lpt .row{flex-wrap:wrap}}
@media (max-width:700px){.lpaddons{grid-template-columns:1fr}.lpad{padding:8px}.lpsteps span{min-width:0;font-size:12px;padding:6px 4px}.lpai{flex-direction:column;align-items:stretch}}
@media (max-width:700px){.lpvbar{padding:8px 10px;gap:8px}.lpvbar .lpvname{flex-basis:100%;order:-1;font-size:14px}.lpvbar.top .lpvpal{flex-basis:100%;order:0}.lpvok,.lpvback{flex:1;padding:12px 10px;font-size:15px}.lpchosen{flex-wrap:wrap}.lpchosen .lpswapbtn{width:100%}}
@media (max-width:700px){.lpvbar .lpvback,.lpvbar .lpvok{order:1}.lpvbar.top .lpvpal .lpsw{width:26px;height:26px}}
@media (max-width:700px){.lpready a.btn{display:flex!important;align-items:center;justify-content:center;width:100%;padding:12px 14px!important;color:#fff!important;text-decoration:none!important;border-radius:12px;font-weight:700}.lpready a.btn:not([style]){background:#202259}.lpready .ghost{flex:1}}
@media (max-width:700px){.lpbig img{aspect-ratio:4/3}.lpbigt b{font-size:20px}}
/* accessibility: touch targets of 40-44px on phones (language, site switch, pin, calendar add, inline links) */
@media (max-width:760px){
  .langsw a{display:inline-block;min-width:40px;min-height:40px;line-height:40px;text-align:center}
  #siteSwitch{min-width:44px;min-height:44px}
  .dpin{min-width:44px;min-height:44px}
  .num button{min-width:40px;min-height:40px}
  .sub a,.mute a{display:inline-block;padding:10px 2px}
}
@media (max-width:760px){#menuTab{min-width:40px}.row>a{min-height:40px;display:inline-flex;align-items:center}}
@media (max-width:760px){.motg,.motready{grid-template-columns:1fr}.motstats .row{flex-wrap:wrap!important}.motstats .motl{flex-basis:100%!important}}
/* first-run welcome screens on phones: full screen, picture a little smaller */
@media (max-width:600px){.ob{padding:0;place-items:stretch}.ob-card{border-radius:0;min-height:100%;display:flex;flex-direction:column;padding:14px 18px calc(18px + env(safe-area-inset-bottom))}.ob-stage{flex:1;min-height:0}.ob-art{height:200px}.ob-slide h2{font-size:22px}.ob-slide p{font-size:15px}.ob-foot{flex-direction:column-reverse;gap:14px}.ob-btns{width:100%}.ob-next{flex:1}.ob-grid{grid-template-columns:repeat(7,26px)}}
@media (max-width:600px){.ob-stage{align-items:center}.ob-slide{margin:auto 0}.ob-art{height:auto;min-height:220px;padding:14px 0}.ob-tools{padding:12px;gap:8px}.ob-tools span{padding:9px 6px;font-size:12px}.ob-tools i{font-size:19px}}

/* Avivi's panel is open: the side menu tab steps aside so it doesn't cover the panel */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){body.avopen #menuTab{display:none}}

/* an open window (profile, editor…) hides the side menu tab so it doesn't sit on the window */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){body:has(dialog[open]) #menuTab{display:none}}

/* my profile on a phone: the whole screen, like a phone app's settings page */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){#profileDlg{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:max(14px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));box-sizing:border-box;overflow:auto}#profileDlg .pfg{margin:0 -18px;padding-inline:18px}}

@media (max-width:700px){.bktrow{grid-template-columns:1fr auto;}.bktrow select,.bktrow input[placeholder]{grid-column:span 1}}

/* live magazine style picker: one card per row on phones */
@media (max-width:600px){.lmstyles{grid-template-columns:1fr}}

/* magazine upgrade card: price under the benefits on phones */
@media (max-width:600px){.lmup-cta{width:100%;min-width:0}.lmup-cta .btn{width:100%}}

/* designed posts: formats stay in one row but smaller on phones */
@media (max-width:600px){.dpfmts{gap:6px}.dpfmt{padding:10px 6px}.dpfmt small{font-size:11px;text-align:center}}

/* designed posts examples: smaller cards on phones, swipe sideways */
@media (max-width:600px){.dpdemoimgs{justify-content:flex-start}.dpdemoimgs img.carousel{flex:none!important;width:70vw!important;max-width:none!important}.dpdemoimgs img{width:70vw}.dpdemoimgs img.story{width:56vw}.dpdemoimgs img.post{width:78vw}}

/* digital card editor: preview under the form on phones */
@media (max-width:900px), (orientation: landscape) and (max-height: 500px){.cdgrid{grid-template-columns:1fr}.cdprev{position:static}.cdphone{height:600px;width:auto;max-width:360px;margin:0 auto}.cdphone iframe{width:100%;height:100%;transform:none}.cdlays{gap:6px}.cdpv{grid-template-columns:1fr;max-width:320px}}
/* AI team: assistants stack, stats 2×2, the board scrolls sideways one column at a time */
@media (max-width:760px){.atteam{grid-template-columns:1fr;gap:8px}.atm{padding:10px 12px}.atmd{display:none}.atstats{grid-template-columns:1fr 1fr}.atstats b{font-size:20px}
.attools,.attools>.row{flex-direction:column;align-items:stretch}.attools input[type=search]{min-width:0;width:100%}.atseg{display:flex}.atseg button{flex:1}
.atboard{grid-template-columns:repeat(6,82vw);scroll-snap-type:x mandatory}.atcol{scroll-snap-align:start}.atgrid{grid-template-columns:1fr}
.mkgrid,.mkplan,.mkform,.mkads{grid-template-columns:1fr}.mkquick{grid-template-columns:1fr 1fr}.mkempty{flex-direction:column}
.cbcreate{grid-template-columns:1fr 1fr}.cbnums{width:100%;justify-content:space-between}.cbtitle{width:100%;justify-content:space-between}.cbtitle h3{min-width:0;font-size:16px}
.cbwd{display:none}.cbgrid,.cbweek{grid-template-columns:1fr}.cbd{min-height:0}.cbd.out{display:none}.cbweek .cbd{min-height:0}.cbd:not(:has(.cbi)):not(.today){display:none}.cbmonth .cbdh small{display:inline}.cbadd{opacity:1}
.cbside{width:100vw;border:0}.cbfil .atseg{flex-wrap:wrap;border:0;gap:6px}.cbfil .atseg button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px}.cbfil select{width:100%}
.ofask{flex-direction:column}.ofadd input:first-child{flex-basis:100%}.ofchart{height:140px}}

/* צוות האלופות onboarding chat: the floating Avivi button would cover the chat's answer field */
@media (max-width:700px){body:has(#atOnb) .avbtn{display:none}}
/* Avivi's hello bubble on a phone: a bit tighter, and out of the way while the side menu is open */
@media (max-width:820px){body .avhello{inset-inline-end:12px;width:min(290px,calc(100vw - 24px));padding:14px 16px}.avht{font-size:17px}.avhp{font-size:14px}body.menu-open .avhello,body:has(#atOnb) .avhello{display:none}}
/* אביבי ממליצה: the button goes under the text on a phone */
@media (max-width:700px){.mkrec{flex-wrap:wrap}.mkrec>div{flex-basis:calc(100% - 40px)}.mkrec>button{margin-inline-start:34px}}
/* צוות האלופות site (/team/app) on a phone: the top bar wraps, the department menu becomes a sideways strip under it */
@media (max-width:900px), (orientation: landscape) and (max-height: 500px){
.tsh-top{padding:8px 12px;gap:8px}.tsh-logo b{font-size:15px}.tsh-site{max-width:130px}.tsh-depts{order:5;width:100%;margin:0;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:2px}.tsh-dept{flex:none}.tsh-tools{margin-inline-start:auto}.tsh-guide span,.tsh-lang{display:none}
.tsh-wrap{grid-template-columns:1fr}.tsh-side{position:static;height:auto;flex-direction:row;overflow-x:auto;padding:8px 10px;border-inline-end:0;border-bottom:1px solid var(--line);gap:4px}
.tsh-who{display:none!important}.tsh-bottom{margin:0!important;padding:0!important;border:0!important;border-inline-start:1px solid var(--line)!important;padding-inline-start:6px!important}.tsh-side ul{flex-direction:row!important;flex-wrap:nowrap}.tsh-side li{flex:none}.tsh-side button{white-space:nowrap;padding:7px 10px}.tsh-main{padding:14px 12px 90px}}
/* צוות האלופות on a phone (own layout, 24.10.2026): one short top row (logo, business, bell, ☰, profile) and nothing that scrolls
   sideways; "☰" opens a side menu with the departments, the department's pages, and connections/settings/help/guide/display/language */
@media (max-width:700px){
html.teamshell .tsh-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:6px;padding:8px 12px;position:sticky;top:0;z-index:50}html.teamshell .tsh-tools{display:contents}html.teamshell .tsh-more{order:1}html.teamshell .tsh-site{order:2}html.teamshell .tsh-tools>.atbellw:not(#atCheck){order:3}html.teamshell .tsh-me{order:4}html.teamshell .tsh-logo{order:5}html.teamshell .atbellp{position:fixed;top:62px;inset-inline:12px;width:auto;max-width:none;max-height:70vh;overflow-y:auto;z-index:70}
html.teamshell .tsh-logo b,html.teamshell .tsh-depts{display:none!important}
html.teamshell .tsh-site{max-width:none;width:100%;min-width:0;font-size:14px;padding:6px 8px}
html.teamshell .tsh-tools{gap:4px}
html.teamshell .tsh-tools>#atCheck,html.teamshell .tsh-guide,html.teamshell #tshTheme,html.teamshell .tsh-tools>.tsh-lang{display:none!important}
html.teamshell .tsh-tools>button,html.teamshell .tsh-tools .atbell,html.teamshell .tsh-me{width:40px;height:40px}
html.teamshell .tsh-more{display:inline-grid!important;place-items:center;font-size:20px}html.teamshell .tsh-more,html.teamshell .tsh-tools .atbell{background:var(--card);border:1px solid var(--line);border-radius:12px;color:var(--ink)}html.teamshell .tsh-more[aria-expanded="true"],html.teamshell .tsh-tools .atbell[aria-expanded="true"]{background:var(--soft);border-color:var(--acc)}
html.teamshell .tsh-side{display:none!important}
html.teamshell.tsh-menu .tsh-side{display:flex!important;flex-direction:column!important;position:fixed;top:57px;bottom:0;inset-inline-start:0;width:min(300px,84vw);z-index:60;background:var(--card);border-inline-end:1px solid var(--line);border-bottom:0;padding:10px;gap:2px;overflow-y:auto;box-shadow:0 0 0 100vmax rgba(15,17,21,.35)}
html.teamshell.tsh-menu .tsh-side ul{flex-direction:column!important;flex-wrap:nowrap;gap:0;margin:0;padding:0}
html.teamshell.tsh-menu .tsh-side li{width:100%}
html.teamshell.tsh-menu .tsh-side button,html.teamshell.tsh-menu .tsh-side a{width:100%;justify-content:flex-start;padding:9px 10px;font-size:15px;white-space:normal;border-radius:10px}
html.teamshell.tsh-menu .tsh-phdepts{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line)}
html.teamshell.tsh-menu .tsh-phdepts .tsh-dept{width:100%;padding:7px 10px;font-size:14px;justify-content:flex-start;text-align:start}
html.teamshell.tsh-menu .tsh-who{display:none!important}
html.teamshell.tsh-menu .tsh-bottom{display:flex!important;margin-top:6px!important;padding-top:6px!important;border:0!important;border-top:1px solid var(--line)!important}
html.teamshell.tsh-menu .tsh-ph{display:block!important}
html.teamshell .tsh-phlang{padding:8px 10px}html.teamshell.tsh-menu .tsh-phlang a{width:auto;display:inline-block;padding:0 10px}
html.teamshell .tsh-wrap{display:block}
html.teamshell .tsh-main{padding:12px 12px 96px}
html.teamshell .tsh-top{grid-template-columns:auto minmax(0,1fr) auto auto auto;column-gap:8px}html.teamshell .tsh-site{max-width:210px;justify-self:center}html.teamshell .tsh-logo img{width:40px;height:40px}html.teamshell .tsh-tools .atbell{display:grid!important;place-items:center;padding:0;position:relative}html.teamshell .tsh-tools .atbell .tsh-i{width:auto;margin:0;display:grid;place-items:center;line-height:1}html.teamshell .tsh-tools .atbell .atbadge{position:absolute;top:-4px;inset-inline-end:-4px}html.teamshell .atcol:has(.atempty){padding:2px 8px}html.teamshell .atcol:has(.atempty)>:not(header){display:none}html.teamshell .atcol:has(.atempty)>header{padding:8px 4px}
html.teamshell .tsh-tools .ei,html.teamshell .tsh-more .ei{margin:0;vertical-align:0}
html.teamshell #atBody .tbl{overflow:visible;border:0;background:none}
html.teamshell #atBody table,html.teamshell #atBody tbody{display:block;width:100%}
html.teamshell #atBody thead,html.teamshell #atBody tr:not(:has(>td)){display:none}html.teamshell #atBody th[scope=row]{display:block;text-align:start;font-size:15px;padding:0 0 6px;border:0;border-bottom:1px solid var(--line);margin-bottom:2px}
html.teamshell #atBody tr{display:block;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin-bottom:8px}
html.teamshell #atBody td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 0;border:0;text-align:start}
html.teamshell #atBody td[data-l]::before{content:attr(data-l);color:var(--mute);font-size:13px;flex:none}
html.teamshell #atBody tr>td:first-child:not(:only-child){display:block;font-size:15px;padding-bottom:6px;border-bottom:1px solid var(--line);margin-bottom:2px}
html.teamshell #atBody tr>td:first-child:not(:only-child)::before{display:none}
html.teamshell #atBody td:empty{display:none}html.teamshell .atouts .atface{width:46px!important;height:46px!important;flex:none}html.teamshell .adf-grid{grid-template-columns:1fr}html.teamshell .adf-chips .sm{min-height:40px;padding:6px 14px}html.teamshell .atboard{grid-template-columns:1fr;overflow:visible;scroll-snap-type:none;gap:8px}html.teamshell .atcol{min-height:0;padding:6px 8px}html.teamshell .atcol:has(.atempty) .mute:not(header .mute){padding:2px 4px 6px;margin:0}
}
/* kit step 3 preview on a phone: no sideways scroll, the three videos share one row, cards two per row */
@media (max-width:700px){.ks-vids{display:grid;grid-template-columns:.62fr .78fr 1.6fr;align-items:end}.ks-v.t,.ks-v.m,.ks-v.w{width:100%}.ks-cards{grid-template-columns:1fr 1fr}.ks-v small{font-size:10px}.ks-play{width:32px;height:32px;font-size:13px}}

/* publishing calendar: the item panel on a phone (media on top, then the text, actions in a tidy wrap) */
@media (max-width:700px){.pcp-h{flex-wrap:wrap}.pcp-x{margin-inline-start:auto}.pcp-ttl{order:3;flex-basis:100%}.pcp-b{grid-template-columns:1fr}.pcp-m{order:-1}.pcp-a .pcp-sp{display:none}.pcp-date{width:100%}.pcp-date input{flex:1}}

/* Meta connect bar on a phone: the button goes under the text */
@media (max-width:700px){.metabar{flex-wrap:wrap}.metabar>.sm{width:100%;min-height:44px}}

/* WhatsApp for customers on a phone: the list above the thread */
@media (max-width:700px){.wb-wrap{grid-template-columns:1fr}.wb-list{max-height:220px}.wb-m{max-width:92%}}

/* (25.10.2026) the menu opens two ways on phones: a ☰ button at the start of the top bar (#menuTop) AND the original "תפריט" tab on the screen edge (#menuTab, user: keep both),
   and the bar stays on top while scrolling so the menu is always one tap away */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){
  aside{position:sticky;top:0;z-index:50;padding-inline-start:64px!important}
  #menuTop{display:flex;cursor:pointer;font:inherit;position:fixed;top:12px;right:10px;transform:none;width:46px;height:46px;padding:0;border-radius:14px;align-items:center;justify-content:center;
    background:var(--card)!important;color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 8px rgba(17,24,39,.08)!important;opacity:1;z-index:55}
  #menuTop span{writing-mode:horizontal-tb;letter-spacing:0;font-size:0;line-height:0}
  #menuTop span::before{content:"";display:block;width:22px;height:22px;background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/contain no-repeat;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/contain no-repeat}
  [dir=ltr] #menuTop{right:auto;left:10px;border-radius:14px}
}
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){body.menu-open #menuTop,body.avopen #menuTop,body:has(dialog[open]) #menuTop{display:none}}
/* one site only: no "switch site" list (it showed "האתר הראשון"); it appears once there are two sites. The "+" stays. */
.sitebox.one select{display:none}

/* (25.10.2026) top bar on phones: only the logo icon (linking to the site), no "AutoWriter" word; the site list takes the room */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){
  aside h1{display:none!important}
  #phLogo{display:block;flex:none;line-height:0;border-radius:12px}
  #phLogo img{width:40px;height:40px;display:block}
  aside .sitebox{flex:1;min-width:0;display:flex;gap:8px}
  aside .sitebox select{flex:1;min-width:0;max-width:none}
}
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){aside .sitebox select{width:100%!important;min-width:0!important;max-width:none!important;text-overflow:ellipsis}aside .sitebox{flex:1 1 auto!important;width:auto!important;max-width:none!important}}
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){aside{flex-wrap:nowrap!important;align-items:center}aside .sitebox{flex:1 1 0!important}aside>*:not(.sitebox):not(nav){flex:none}}
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){aside .sitebox:not(.one) > button{display:none}}

/* (25.10.2026) phones: no 'לוח הבקרה' button at the top of each screen (the menu ☰ / side tab already has it) */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){.backhome{display:none!important}}

/* (25.10.2026) phones: "☰ כל הכלים" at the start (right) of the tools bar, like the menu button */
.hubbtn{direction:rtl}.hubbtn .hubbtn-all{order:-1;padding-inline-end:10px;border-inline-end:1px solid var(--line)}[dir=ltr] .hubbtn{direction:ltr}
/* (25.10.2026) the side menu opens BELOW the top bar (like צוות האלופות), narrower, and the ☰ stays visible to close it */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){
  nav#tabs{top:71px!important;width:min(260px,74vw)!important;padding:12px 10px!important;box-shadow:-8px 8px 24px rgba(15,17,21,.18)!important}
  body.menu-open #menuShade{top:71px}
  body.menu-open #menuTop{display:flex!important;z-index:95}
  body.menu-open aside{z-index:80}
}

/* (25.10.2026) publishing calendar on phones, tidy: the summary is a 4-column grid of equal tiles (icon, name, count; a tap
   filters to that network), and each day is a row: the date, then equal 40px icon tiles (no long coloured labels) */
@media (max-width:700px){
  #pubcal .pcsum{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  #pubcal .pcleg{position:relative;flex-direction:column;justify-content:center;height:auto;min-height:72px;padding:10px 4px 8px;gap:5px;font-size:11.5px;font-weight:600;text-align:center;cursor:pointer;border-radius:12px}
  #pubcal .pcleg i{width:30px;height:30px;border-radius:9px}#pubcal .pcleg i svg{width:18px;height:18px}
  #pubcal .pcleg .pcln{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #pubcal .pcleg b{position:absolute;top:5px;inset-inline-end:6px;min-width:18px;height:18px;border-radius:9px;background:var(--soft,#f1f5f9);font-size:11px;line-height:18px}
  #pubcal .pcleg.on{border-color:var(--c);box-shadow:inset 0 0 0 1px var(--c)}#pubcal .pcleg.off{opacity:.45}
  #pubcal .pcday{flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:10px 12px!important}
  #pubcal .pcday .pcd{width:auto!important;min-width:30px!important;font-size:16px!important;margin-inline-end:6px}
  #pubcal .pcchip{width:40px!important;height:40px!important;padding:0!important;border-radius:11px!important;display:inline-grid!important;place-items:center}
  #pubcal .pcchip span{display:none!important}
  #pubcal .pcchip i svg{width:20px;height:20px}
  #pubcal .pcchip.done{opacity:.55}
}

/* (25.10.2026) each day on phones = a little calendar tile (month strip, big day, weekday) + "N פרסומים", under a heading */
@media (max-width:700px){
  #pubcal .pclisth{display:block;margin:14px 0 8px;font-weight:700;font-size:15px;color:var(--ink)}
  #pubcal .pcday .pcd{display:flex!important;flex-direction:column;align-items:center;width:56px!important;min-width:56px!important;flex:none;margin-inline-end:6px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card);line-height:1.1;padding-bottom:4px}
  #pubcal .pcday .pcd .pcdm{display:block;width:100%;background:var(--acc,#4f46e5);color:#fff;font-size:11px;font-weight:700;text-align:center;padding:2px 0}
  #pubcal .pcday .pcd bdi{font-size:20px;font-weight:800;margin-top:3px}
  #pubcal .pcday .pcd .pcdw{display:block;font-size:11px;font-weight:600;color:var(--mute)}
  #pubcal .pcday.today .pcd{border-color:var(--acc)}
  #pubcal .pcday{display:grid!important;grid-template-columns:56px 1fr;column-gap:12px!important;row-gap:8px!important;align-items:start!important}
  #pubcal .pcday .pcd{grid-row:1 / span 2}
  #pubcal .pcday .pcdn{display:block;grid-column:2;font-size:13px;color:var(--mute);font-weight:600;align-self:center}
  #pubcal .pcday .pcics{display:flex!important;flex-wrap:wrap;gap:8px;grid-column:2}
  #pubcal .pcday{grid-auto-flow:row}
}
@media (max-width:700px){#pubcal .pcday:not(:has(.pcchip)):not(.today),#pubcal .pcday.empty{display:none!important}}

/* (26.10.2026) newsletter / magazine on phones: the language chip on top, the two buttons side by side under it */
#magazine .magmake{padding-top:58px}#magazine .magbtns{margin-inline-end:0;gap:8px}#magazine .magbtns .btn{padding-inline:8px;font-size:15px}#magazine .magframe{height:65vh;min-height:360px}

/* calendar on a phone: past days with no articles and other-month empty days take no rows */
@media (max-width:760px){#calendar .cal .day.empty.past,#calendar .cal .day.empty.other{display:none}}
/* the design pass, stage 1 (public/designpass.js, admin switch designPass1; off = no html.dp1, nothing here applies).
   The calendar on a phone: an empty day is one short row (the day and its "＋"), the drag hint goes (no dragging on touch) */
@media (max-width:760px){
  html.dp1 #calendar .cal .day.empty{min-height:0;padding-top:6px;padding-bottom:6px}
  html.dp1 #calendar .cal .day.empty .ev-empty{display:none}
  html.dp1 #calendar .dp1main>.dfoldin{padding-inline:8px}
  html.dp1 .dp1f>summary{padding-inline-end:56px}
  html.dp1 .dp1tg{font-size:12px}
  html.dp1 .dp1row .dp1act{margin-inline-start:0;width:100%}
}

/* links on a phone: the four numbers in a 2x2 grid instead of a full screen of cards */
@media (max-width:760px){#links .grid:has(> .tone){grid-template-columns:1fr 1fr;gap:8px}#links .grid > .tone{padding:10px}#links .grid > .tone b{font-size:22px}#links .grid > .tone small{font-size:11px}}


/* the team shell has its own ☰ and logo: the main app's phone menu button, side tab and logo stay out of it */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){body:has(#tshMain) #menuTop,body:has(#tshMain) #menuTab,body:has(#tshMain) #phLogo,body:has(#tshMain) #menuShade{display:none!important}}

/* phone: wide tables scroll inside their box instead of running off the screen (QA 26.10) */
@media (max-width:760px){.tbl-wrap{overflow-x:auto;max-width:100%}#rank .dfoldin table{display:block;overflow-x:auto;max-width:100%}}

/* סרטוני פוסט on a phone: the preview first (not sticky), one column, two-column type cards stay */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){#postvideo .pvwrap{grid-template-columns:minmax(0,1fr)}#postvideo .pvprev{position:static;order:-1;max-width:300px;margin:0 auto}#postvideo .pvchips{grid-template-columns:1fr}#postvideo .pvgrid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));max-height:260px}}

@media (max-width:820px), (orientation: landscape) and (max-height: 500px){#postvideo .pvmsgs li{grid-template-columns:86px 1fr 60px auto}}

/* Tap targets on phones (2026-10-28 mobile audit): at least 44×44 px to touch. Visual size stays where a bigger look would
   crowd the screen (the "?" markers get an invisible larger touch area); buttons and links that look like buttons grow. */
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){
  .hq::after{content:"";position:absolute;inset:-14px}
  #phLogo,#menuTab,.awh-btn{min-width:44px;min-height:44px}
  #main .btn,#main button.ghost,#main a.ghost,#main a.btn,#main .eye,.subtabs button,.subtabs a{min-height:44px}
  #main [data-onclick^="calAdd"]{min-width:44px;min-height:44px}
  #main summary{padding-block:12px}
}

/* Abby's 'start here' card: the close X stays beside the title even when a longer language wraps it (29.10.2026) */
@media (max-width:700px){.avrec>.row:first-child{flex-wrap:nowrap;align-items:flex-start}.avrec>.row:first-child h3{flex:1;min-width:0}.avrec>.row:first-child>button{flex:none}}

/* dashboard (design C): two tiles per row on a phone */
.bdtiles{grid-template-columns:1fr 1fr}.bdpanel{padding:14px}
@media (max-width:700px){.sprow{flex-wrap:wrap}.sprow .pill{order:3}.spact{width:100%;order:4}.spact .sm{flex:1;min-height:44px}}
@media (max-width:700px){.hubintro>ul{padding-inline-start:18px}}

/* הקריאייטיב, מסך משלו (31.10.2026): בטלפון החלק העליון בעמודה אחת והמניפה קטנה, השדות זה מתחת לזה, ופס הסיכום ברוחב מלא */
@media (max-width:760px){.crx-hero{grid-template-columns:1fr;padding:20px 18px;gap:8px;border-radius:20px}.crx-hero h2{font-size:28px}.crx-fan{height:150px;order:-1}.crx-fan img{width:100px;border-width:3px}.crx-fan img:nth-child(1),.crx-hero:hover .crx-fan img:nth-child(1){transform:translate(-50%,-50%) translateX(-80px) rotate(-14deg) scale(.86)}.crx-fan img:nth-child(2){transform:translate(-50%,-50%) translateX(-42px) rotate(-7deg) scale(.93)}.crx-fan img:nth-child(4){transform:translate(-50%,-50%) translateX(42px) rotate(7deg) scale(.93)}.crx-fan img:nth-child(5),.crx-hero:hover .crx-fan img:nth-child(5){transform:translate(-50%,-50%) translateX(80px) rotate(14deg) scale(.86)}.crx-step{padding:16px 14px;border-radius:16px}.crx-packs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crx-packs:not([style*="--cols:1"])>.crx-pack:last-child:nth-child(odd){grid-column:1/-1}.crx-ideas{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.crx-det{grid-template-columns:1fr}.crx-size i{max-width:100%}.crx-sizes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.crx-size{min-width:0;padding:10px 4px}.crx-bar{position:static;padding:12px}.crx-bar .btn{width:100%}.crx-promo-go{width:100%}}

/* the one brand kit card (העסק שלי, wave 1 brand): labels above values on a phone */
.atkit-dl{grid-template-columns:1fr}.atkit-dl dd{margin-bottom:6px}

/* the component kit (admin switch uiKit2, public/dash/ui-kit-app.js, 14.11.2026): a bottom bar on phones (home · tasks · tools ·
   search · menu) for whoever doesn't have the customer's bar (#custBar, public/cust.js). Off = #awuiBar is never created. */
html.awui-on body.awuibar:not(.custbar) #awuiBar{display:grid;position:fixed;inset-inline:0;bottom:0;z-index:70;background:var(--card,#fff);box-shadow:0 -6px 18px rgba(17,24,39,.08)}
html.awui-on body.awuibar:not(.custbar) main{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
html.awui-on body.awuibar:not(.custbar) .avbtn{bottom:calc(76px + env(safe-area-inset-bottom))}
html.awui-on body.awuibar:not(.custbar) .avpanel{bottom:calc(134px + env(safe-area-inset-bottom))}
html.awui-on body.awuibar:not(.custbar) .awui-undo{inset-block-end:calc(84px + env(safe-area-inset-bottom))}
html.awui-on body.awuibar:not(.custbar) .avhello{bottom:calc(138px + env(safe-area-inset-bottom))}
html.awui-on body.awuibar:not(.custbar) :is(#toast,#toasts,#writingBar){bottom:calc(80px + env(safe-area-inset-bottom))}
html.awui-on body.awuibar:not(.custbar) #aw-admin-task{--aw-fab-b:84px}
html.awui-on body.awuibar,html.awui-on body.custbar{--awui-stack-b:66px}

/* 15.11.2026: on a phone a toast sat over the buttons at the bottom of the screen for a few seconds and swallowed the taps
   (found by scripts/qa/designpass-1-test.mjs). The message lets taps through to what is under it; its own buttons (✕, the action) still work. */
@media (max-width: 760px) {
  #toasts, #toasts .toast { pointer-events: none; }
  #toasts .toast button, #toasts .toast a { pointer-events: auto; }
}
