/* RetroDesk web edition: hide Mac-only things */
html.web #folders, html.web [data-tab="desk"], html.web #hint { display:none !important; }
html.web .shelfrow select option[value="folder"], html.web .shelfrow select option[value="app"] { display:none; }
html.web #gaSecret, html.web #gaSecret + *, html.web .row:has(#gaSecret) { display:none !important; }
html.web .mac-only { display:none !important; }
html:not(.web) .web-only { display:none !important; }

/* ---------- phone & portrait tablet ---------- */
html.mobile, html.mobile body { height:auto; overflow-x:clip; overflow-y:auto; }
html.mobile #stage { overflow-x:clip; }
html.mobile body { min-height:100vh; -webkit-user-select:none; padding-bottom:90px; }
html.mobile body::after { position:fixed; }
html.mobile #stage { position:relative !important; transform:none !important; left:0 !important; top:0 !important;
  width:auto !important; height:auto !important; display:flex; flex-direction:column; align-items:center; gap:26px; padding:56px 16px 24px; }
html.mobile #stage > .w { position:relative; transform:none !important; width:100%; max-width:440px; display:flex; flex-direction:column; align-items:center; }
html.mobile #stage > .w:not(#w-shelf):not(#w-photos) > .card, html.mobile #stage > .w > .pills, html.mobile #stage > .w:not(#w-shelf):not(#w-photos) > .abs:not(svg):not(.polaroid) {
  position:relative !important; left:auto !important; top:auto !important; }

/* order of widgets on a phone */
html.mobile #w-clock{order:1} html.mobile #w-cal{order:2} html.mobile #w-radio{order:3} html.mobile #w-todo{order:4}
html.mobile #w-shelf{order:5} html.mobile #w-sticky{order:6} html.mobile #w-photos{order:7} html.mobile #w-journal{order:8}
html.mobile #w-prog{order:9} html.mobile #w-cat{order:10}
html.mobile #w-vine, html.mobile #w-mirror { display:none !important; }

html.mobile .pills { flex-wrap:wrap; justify-content:center; }
html.mobile #dateP { font-size:16px; }
html.mobile #cal { width:100%; height:auto; padding-bottom:12px; }
html.mobile #agList { max-height:none; }
html.mobile #radio { width:100%; max-width:300px; height:auto; margin-top:34px; }
html.mobile #todo { width:100%; height:auto; }
html.mobile #todo .sheet { min-height:320px; }
html.mobile #todoList { max-height:none; }
html.mobile #journal { width:200px; }
html.mobile #prog { width:220px; transform:rotate(1deg); }

/* decorative scenes keep their drawing, scaled to the screen */
html.mobile #w-shelf { width:600px; height:170px; zoom:var(--k); align-items:stretch; }
html.mobile #w-shelf > * { margin-left:-190px; margin-top:-140px; }
html.mobile #w-photos { width:290px; height:140px; zoom:var(--kp); align-items:stretch; }
html.mobile #w-photos > * { margin-left:-505px; margin-top:-330px; }

/* sticky notes flow in a row */
html.mobile #w-sticky { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:20px; }
html.mobile .sticky { position:relative !important; left:auto !important; top:auto !important; cursor:default; }
html.mobile #addSticky { position:relative !important; left:auto !important; top:auto !important; flex-basis:100%; max-width:140px; }

/* cat naps on the floor of the page */
html.mobile #w-cat { height:60px; }
html.mobile #zzz { left:calc(50% + 6px) !important; top:0 !important; position:absolute !important; }
html.mobile #catWrap { left:calc(50% - 42px) !important; top:24px !important; position:absolute !important; }
html.mobile #catSay { left:calc(50% + 40px) !important; top:-6px !important; position:absolute !important; }

/* panels */
html.mobile #settings { top:0; width:100%; border-left:none; }
html.mobile #jpanel { position:fixed; left:10px; right:10px; top:40px; bottom:20px; width:auto; height:auto; }
html.mobile #layoutStart, html.mobile #layoutReset { display:none; }
html.mobile #gear { opacity:1; }
