/* Comic Neue Bold, bundled with the app (SIL Open Font License, see ComicNeue-OFL.txt) */
@font-face{font-family:"Comic Neue";src:url(ComicNeue-Bold.woff) format("woff");font-weight:400 900;font-style:normal;font-display:swap}
#installHelp{position:absolute;left:4%;right:4%;top:90.5%;margin:0;background:transparent;text-align:center;font:700 clamp(9px,2.7vw,16px)/1.4 var(--ss-hand,"Comic Neue"),"Chalkboard SE","Comic Sans MS",ui-rounded,system-ui;color:#333}
#installHelp span{display:block}
#installHelp u{text-underline-offset:2px}
#installHelp.installed .ih2{display:none}
#installHelp.installed .ih-check{color:#7cc25f;font-weight:900;margin-left:.15em}
.home-artwork{width:min(100%,calc((100dvh - 64px)*644/982));transform:translate(-50%,-50%)}
#homeScreen .camera-hit{left:24%;width:51%;top:18.6%;height:20.3%}
#homeScreen .gallery-hit{left:26%;width:46%;top:58%;height:20.8%}
#homeScreen .contact-email{left:32%;width:38%;top:92%;height:5%}
#favoritesRow{position:absolute;left:21%;top:40%;width:59%;height:7%;background:white;display:flex;align-items:center;justify-content:center;gap:1%}
#favorites{width:80%;display:flex;gap:2%;overflow-x:auto;scrollbar-width:none}
#favoritesRow button,#tagSheet header button,#scrollDown{border:0;background-color:transparent;padding:0;margin:0;cursor:pointer}
#tagBanner{position:absolute;left:24%;top:7.4%;width:49%;aspect-ratio:263/80;z-index:2;border:0;padding:0 2.5% 0 11%;margin:0;background:url(tag-banner.svg) center/100% 100% no-repeat;display:flex;align-items:center;cursor:pointer;color:#2f5a1f;font:700 16px system-ui;text-align:left}
#tagBanner span{display:block;width:100%;overflow:hidden;line-height:1.15;overflow-wrap:anywhere;word-break:keep-all}
#tagBanner b{font-weight:800}
#tagBanner span.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#tagBanner:active{transform:scale(.97)}
#openTags{width:17%}#openTags img,#tagSheet header img{width:100%;display:block}
#cameraStatus{position:absolute;top:47%;width:90%;left:5%;font:12px/1.3 system-ui;overflow-wrap:anywhere;text-align:center}
#tagSheet{box-sizing:border-box;position:fixed;inset:var(--sheet-top) 0 0;margin:0 auto;width:min(100%,calc((100dvh - 64px)*644/982),600px);max-width:100%;height:calc(100dvh - var(--sheet-top));max-height:none;border:2px solid #afcb97;border-radius:24px 24px 0 0;background:white;color:#303030;padding:3px 12px max(9px,env(safe-area-inset-bottom));overflow:hidden}
#tagSheet[open]{display:flex;flex-direction:column;gap:6px}
#tagSheet [hidden]{display:none!important}
#tagSheet::backdrop{background:#35353559}
#tagSheet header{display:flex;align-items:center;justify-content:space-between;flex:none}
#tagSheet header button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:40px;color:#373737;font:650 20px system-ui}
#tagSheet header img{width:30px;height:30px;object-fit:contain}
#tagSheet #closeSheet{width:44px;height:44px;min-width:44px;font:400 30px/1 system-ui;color:#555}
#tagScroll,#tagSettings{overflow:auto;min-height:0}
#tagSettings{flex:0 1 auto}
#tagSettings:not([hidden])~#tagScroll{display:none}
#longTags{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#editTag{display:grid;gap:6px;font:14px system-ui}
.editRow{display:flex;gap:6px;align-items:center}
#scrollDown{color:#666;min-height:28px}
.sheetEmail{align-self:center;flex:none;margin:auto 0 0;width:min(40%,260px);min-height:44px;border:0;background:transparent;padding:0;cursor:pointer}
.sheetEmail img{display:block;width:100%;height:auto;margin:0;border-radius:0}
#favoritesRow img,#tagSheet header img{margin:0;border-radius:0}
#cameraStatus:empty{display:none}

#cameraStatus{top:50%}



/* --- header polish v3: icons are the star --- */
#tagSheet header{padding:0 2px 6px}
#tagSheet #gear{width:52px;height:52px;min-width:52px;padding:0}
#tagSheet #gear img{width:46px;height:46px}
#tagSheet #closeSheet{width:44px;height:44px;min-width:44px;font:400 30px/1 system-ui;color:#555}
#tagSheet #add{gap:4px;padding:2px 20px 2px 8px;min-height:48px;font-size:22px;margin-bottom:5px}
#tagSheet #add img{width:42px;height:42px;margin:0;position:relative;top:3px}
#tagSheet #gear:active,#tagSheet #closeSheet:active{transform:scale(.94)}
#tagSheet #gear:active img{transform:rotate(30deg)}
#tagSheet #add:active img{transform:rotate(-15deg)}
#tagSheet #gear img,#tagSheet #add img{transition:transform .2s}


/* ===== Star Studio controls: hand-drawn, following the owner's own buttons =====
   strong = ZIP / +add · main = Compress All · second = Try One · field = white box, Try One edge
   The outline+fill is drawn on ::before and wobbled by #ss-rough so text stays sharp. */
:root{--ss-rr:16px;--ss-save:#d3e4c7;--ss-save-line:#7d9567;--ss-strong:#8dcd77;--ss-olive:#5b7a35;--ss-main:#cfe5bb;--ss-main-line:#3d4a33;--ss-gray-fill:#f2f2f2;--ss-gray-line:#8a8a8a;--ss-h:48px;
  --ss-hand:"Comic Neue","Chalkboard SE","Comic Sans MS",ui-rounded,system-ui;
  --ss-r:30px 24px 28px 22px / 24px 30px 22px 28px}
.ss-strong,.ss-primary,.ss-secondary{position:relative;isolation:isolate;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--ss-h);padding:8px 24px;margin:0;border:0;background:transparent;border-radius:var(--ss-r);font:700 18px/1.15 var(--ss-hand);color:#111;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ss-strong::before,.ss-primary::before,.ss-secondary::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ss-r);pointer-events:none}
.ss-strong{color:#fff;text-shadow:0 1.5px 0 #3f5a22,0 0 1px #3f5a22;margin-bottom:5px}
.ss-strong::before{background:var(--ss-strong);border:3.5px solid var(--ss-olive);box-shadow:1px 5px 0 #46602a}
.ss-primary::before{background:var(--ss-main);border:3px solid var(--ss-main-line)}
.ss-secondary::before{background:var(--ss-gray-fill);border:3px solid var(--ss-gray-line);box-shadow:inset 0 0 0 2px #fff}
.ss-strong:active{transform:translateY(4px)}
.ss-strong:active::before{box-shadow:0 1px 0 #46602a}
.ss-primary:active,.ss-secondary:active{transform:scale(.97) rotate(-.4deg)}
.ss-block{display:flex;width:100%}
.ss-field{box-sizing:border-box;width:100%;min-height:var(--ss-h);margin:0;padding:8px 14px;border:3px solid var(--ss-gray-line);border-radius:18px 14px 17px 13px / 14px 18px 13px 17px;background:#fff;color:#111;font:700 18px var(--ss-hand);appearance:none;-webkit-appearance:none}
.ss-field::placeholder{color:#8a8a8a}
select.ss-field{padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6.2 5.6 5.6-6.1' fill='none' stroke='%23111' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat}
.ss-field:focus,.ss-field:focus-visible{outline:none;border-color:var(--ss-olive);box-shadow:0 0 0 3px var(--ss-main)}
.ss-strong:focus-visible,.ss-primary:focus-visible,.ss-secondary:focus-visible{outline:none}
.ss-strong:focus-visible::after,.ss-primary:focus-visible::after,.ss-secondary:focus-visible::after{content:"";position:absolute;inset:-5px;border-radius:var(--ss-r);border:3px solid var(--ss-main);pointer-events:none}
.ss-check{display:flex;align-items:center;gap:8px;font:700 18px var(--ss-hand);color:#111}
.ss-check input{width:22px;height:22px;margin:0;accent-color:var(--ss-olive)}
input[type=range]{accent-color:var(--ss-olive)}

/* Keep Detail / Smaller on the Compress page: same hand-drawn look */
#presets button{position:relative;isolation:isolate;border:0!important;background:transparent!important;border-radius:var(--ss-r);font-family:var(--ss-hand);color:#111}
#presets button::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ss-r);background:#fff;border:3px solid var(--ss-gray-line)}
#presets button[aria-pressed=true]::before{background:var(--ss-main);border-color:var(--ss-main-line)}

/* tag sheet: edit form + settings */
#editTag{gap:10px}
#editTag .editRow{gap:8px}
#editTag #editCode{width:5em;flex:none;text-align:center;font-weight:700;padding:8px 6px}
#editTag #name{flex:1;max-width:none}
#editTag .ss-primary{width:100%}
#tagSettings{display:flex;flex-direction:column;gap:14px;padding:4px 2px;font:15px/1.4 system-ui}
#tagSettings .setGroup{display:flex;flex-direction:column;gap:8px}
#tagSettings .setTitle{margin:0;font:700 18px var(--ss-hand);color:#111}
#tagSettings #location{margin:0;color:#444;font:700 15px var(--ss-hand)}
#tagSettings .setRow{display:flex;flex-wrap:wrap;gap:8px}
#tagSettings .setRow button[hidden]{display:none}
#tagSettings #gallery,#tagSettings #more{align-self:flex-start}

/* dialogs */
#contactOptions{display:none;flex-direction:column;gap:12px;padding:24px 20px 20px}
#contactOptions[open]{display:flex}
#contactOptions h2{margin:0 0 4px;font:700 24px var(--ss-hand);color:#111}
#contactOptions form{margin:4px 0 0}
#contactOptions .ss-secondary{width:100%}
#zipDialog,#previewDialog{padding:16px 18px 20px}
#zipDialog h2,#previewDialog h2{margin:4px 0 10px;font:700 24px var(--ss-hand);color:#111}
.ss-close{float:right;min-height:38px;padding:4px 16px;font-size:15px}
#archives{display:flex;flex-direction:column;gap:8px}
#cancelBtn{margin:8px 0}
#contactOptions a.ss-primary{display:flex;padding:8px 20px;color:#111;text-decoration:none}
#editTag #name{min-width:0}

#tagSheet #add.ss-strong{color:#fff;font-weight:700;font-family:var(--ss-hand)}

/* rounded-rectangle buttons like the drawn Try One (gray) and Save (light green) */
.ss-primary,.ss-secondary,.ss-primary::before,.ss-secondary::before{border-radius:var(--ss-rr)}
.ss-primary::before{background:var(--ss-save);border:3px solid var(--ss-save-line)}
.ss-secondary::before{background:#f2f2f2;border:3px solid #8a8a8b;box-shadow:inset 0 0 0 2px #fff}
.ss-primary:focus-visible::after,.ss-secondary:focus-visible::after{border-radius:calc(var(--ss-rr) + 4px)}
#presets button,#presets button::before{border-radius:var(--ss-rr)}
#presets button[aria-pressed=true]::before{background:var(--ss-save);border-color:var(--ss-save-line)}
#presets button[aria-pressed=false]::before{background:#fff;border-color:#8a8a8b}
.ss-x{float:right;width:44px;height:44px;margin:-6px -8px 0 0;padding:0;border:0;background:transparent;color:#555;font:400 32px/1 system-ui;cursor:pointer}
.ss-x:active{transform:scale(.94)}
.ss-x:focus{outline:none}

/* v23: light-green and white buttons copy the drawn Save button exactly, with smooth lines
   (measured from the owner's Save: corner ≈37% of height, edge ≈5% of height) */
:root{--ss-rr:18px;--ss-save:#d5e3ca;--ss-save-line:#84966d}
.ss-primary,.ss-secondary,.ss-primary::before,.ss-secondary::before,#presets button,#presets button::before{border-radius:var(--ss-rr)}
.ss-primary::before{background:var(--ss-save);border:3px solid var(--ss-save-line);box-shadow:0 0 0 1px rgba(132,152,109,.22)}
.ss-secondary::before{background:#fff;border:3px solid #8a8a8b;box-shadow:0 0 0 1px rgba(138,138,139,.2)}
#presets button[aria-pressed=true]::before{background:var(--ss-save);border:3px solid var(--ss-save-line);box-shadow:0 0 0 1px rgba(132,152,109,.22)}
#presets button[aria-pressed=false]::before{background:#fff;border:3px solid #8a8a8b;box-shadow:0 0 0 1px rgba(138,138,139,.2)}
.ss-field{border-radius:16px}

/* help line under the screens: same hand font, readable size */
.support-note,#homeScreen > .support-note{font:700 clamp(9px,2.6vw,13px)/1.4 var(--ss-hand)!important;color:#333!important;white-space:nowrap}

/* Comic Neue Bold is lighter than the owner's drawn lettering (Try One, Save):
   thicken it a little so typed text matches the drawn text */
.ss-strong,.ss-primary,.ss-secondary,#presets button,.ss-field,.ss-check,#tagSettings .setTitle,#tagSettings #location,
#contactOptions h2,#zipDialog h2,#previewDialog h2,#installHelp,.support-note,.home-hint,.add-hint,#loginForm #password{-webkit-text-stroke:.55px currentColor;paint-order:stroke fill}
#contactOptions h2,#zipDialog h2,#previewDialog h2{-webkit-text-stroke:.8px currentColor}
.ss-field::placeholder{-webkit-text-stroke:0}
#presets button{font-size:clamp(13px,3.9vw,22px)}

/* movie-ticket tag strip (replaces the small tag chips) */
#favorites{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;display:block;gap:0}
#favorites::-webkit-scrollbar{display:none}
#favorites .ticket{position:relative;min-width:100%}
#favorites .ticket svg{display:block;width:100%;height:auto}
#favorites .stub{position:absolute;top:0;bottom:0;padding:0;margin:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
#favorites .stub:focus-visible{outline:3px solid var(--ss-main,#cfe5bb);outline-offset:-3px;border-radius:8px}
#favorites .stub::before{content:none}
#longTags button.emptyTag svg{display:block;height:60%;margin:auto}
#longTags button.emptyTag{display:flex;align-items:center;padding-left:24%}
#tagBanner span.hintText{color:#666;font-weight:700}

/* ================= New home screen (shoot + tag first) ================= */
#homeScreen.hs{box-sizing:border-box;max-width:480px;margin:0 auto;min-height:100svh;padding:max(10px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;background:#fff;font-family:var(--ss-hand)}
.hs-top{display:flex;align-items:center;gap:10px}
.hs-logo{width:54px;height:54px;object-fit:contain;flex:none}
.hs-brand{flex:1;display:flex;flex-direction:column;line-height:1.1}
.hs-brand b{font:700 22px var(--ss-hand);color:#111;-webkit-text-stroke:.5px #111}
.hs-brand span{font:700 12px var(--ss-hand);color:#8a8a8b;letter-spacing:.04em}
.hs-icon{width:46px;height:46px;border:0;background:transparent;padding:4px;cursor:pointer}
.hs-icon img{width:100%;height:100%}

/* current category card */
#homeScreen.hs #tagBanner{position:relative;left:auto;top:auto;width:100%;aspect-ratio:auto;min-height:92px;margin:0;padding:14px 52px 12px 18px;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;text-align:left;
  background:#ebf2e1 !important;border:3px solid #a8cc88;border-radius:20px;color:#2f5a1f;cursor:pointer;box-shadow:0 3px 0 #d5e3ca}
#homeScreen.hs #tagBanner .tb-title{display:block;width:100%;font:700 26px/1.15 var(--ss-hand);-webkit-text-stroke:.6px currentColor;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#homeScreen.hs #tagBanner .tb-title b{font-weight:700}
#homeScreen.hs #tagBanner .tb-meta{display:flex;gap:10px;flex-wrap:wrap;font:700 13px var(--ss-hand);color:#5b7a35}
#homeScreen.hs #tagCount:not(:empty){background:#fff;border:2px solid #a8cc88;border-radius:999px;padding:0 8px}
#homeScreen.hs .tb-edit{position:absolute;right:16px;top:50%;width:26px;height:26px;margin-top:-13px;color:#5b7a35}
#homeScreen.hs #tagBanner:active{transform:translateY(2px);box-shadow:0 1px 0 #d5e3ca}

/* category strip */
.hs-label{display:flex;justify-content:space-between;align-items:baseline;margin:2px 2px -6px}
.hs-label span{font:700 15px var(--ss-hand);color:#333}
.hs-label small{font:700 12px var(--ss-hand);color:#a3a3a3}
#homeScreen.hs #favoritesRow{position:relative;left:auto;top:auto;width:100%;height:auto;display:flex;align-items:center;gap:8px;background:transparent}
#homeScreen.hs #favorites{flex:1;width:auto}
#homeScreen.hs #openTags{width:46px;flex:none}

/* last photo */
.hs-last{flex:none;min-height:110px;display:flex;align-items:center;gap:14px;padding:12px;border:2.5px dashed #d4d4d4;border-radius:20px}
.hs-thumb{width:96px;height:96px;flex:none;border-radius:14px;background:#f6f6f6;display:grid;place-items:center;overflow:hidden}
.hs-thumb svg{width:46px;height:46px}
.hs-thumb img{width:100%;height:100%;object-fit:cover}
.hs-lastText{min-width:0}
.hs-lastText b{display:block;font:700 15px var(--ss-hand);color:#333;overflow-wrap:anywhere}
#homeScreen.hs #cameraStatus{position:static;margin:4px 0 0;padding:0;background:none;font:700 13px/1.35 var(--ss-hand);color:#777;text-align:left;width:auto;transform:none}

/* controls: thumb zone */
.hs-controls{margin-top:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:8px;padding:4px 6px 0}
.hs-side{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:4px;width:76px;padding:8px 0 6px;border:2.5px solid #8a8a8b;border-radius:18px;background:#fff;cursor:pointer;font:700 14px var(--ss-hand);color:#111}
.hs-side svg{width:38px;height:38px}
.hs-side:active{transform:scale(.96)}
.hs-shutter{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;padding:0;cursor:pointer}
.hs-ring{width:104px;height:104px;border-radius:50%;background:#8dcd77;border:4px solid #5b7a35;box-shadow:0 6px 0 #46602a, inset 0 0 0 5px #a9dc93;display:grid;place-items:center}
.hs-ring svg{width:56px;height:56px}
.hs-say{font:700 18px var(--ss-hand);color:#111;-webkit-text-stroke:.5px #111}
.hs-shutter:active .hs-ring{transform:translateY(5px);box-shadow:0 1px 0 #46602a, inset 0 0 0 5px #a9dc93}

/* footer: owner's name art + email bar kept as-is */
.hs-foot{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:2px}
.hs-names{width:78%;height:auto}
.hs-email{border:0;background:transparent;padding:0;width:62%;cursor:pointer}
.hs-email img{display:block;width:100%;height:auto}
#homeScreen.hs #cameraStatus:empty::before{content:"Pick a category, then Say Cheese."}
#homeScreen.hs #tagBanner .tb-hint{font:700 13px var(--ss-hand);color:#7d9567}
#homeScreen.hs #tagBanner .tb-meta{align-items:center}
#homeScreen.hs #tagBanner .tb-meta>span{flex:none;width:auto}
#homeScreen.hs #hsLastPath{margin:2px 0 0;font:700 13px var(--ss-hand);color:#5b7a35}
#homeScreen.hs #hsLastPath:empty{display:none}
#homeScreen.hs #cameraStatus:empty::before{content:none}
#homeScreen.hs .hs-last:has(#hsLastPath:empty) #cameraStatus:empty::before{content:"Pick a category, then Say Cheese."}
#tagSettings .setNote{margin:0;font:700 13px var(--ss-hand);color:#666}

/* ===== Home B: big last-photo view on top, phone camera shutter below ===== */
#homeScreen.hsB{padding:0;gap:0;min-height:100svh;background:#fff}
.hsB-view{position:relative;flex:1 1 auto;min-height:52svh;background:linear-gradient(160deg,#efe9e1 0%,#d9cfc3 100%);display:flex;align-items:center;justify-content:center;overflow:hidden}
.hsB-view::after{content:"";position:absolute;inset:18px 18px 40px;border:2px solid rgba(255,255,255,.75);border-radius:18px;pointer-events:none}
.hsB-empty{display:flex;flex-direction:column;align-items:center;gap:8px;font:700 14px var(--ss-hand);color:#8f8577}
.hsB-empty svg{width:64px;height:64px}
.hsB-view.has-photo .hsB-empty{display:none}
.hsB-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#efe9e1}
.hsB-logo{position:absolute;top:14px;left:14px;width:52px;height:52px;z-index:2}
.hsB-gear{position:absolute;top:72px;left:16px;width:46px;height:46px;border:0;border-radius:23px;background:rgba(255,255,255,.9);padding:6px;z-index:2;cursor:pointer}
.hsB-gear img{width:100%;height:100%}
#homeScreen.hsB #tagBanner{position:absolute;left:auto;top:14px;right:14px;width:auto;max-width:62%;min-height:0;aspect-ratio:auto;z-index:2;margin:0;padding:8px 14px;
  display:flex;flex-direction:row;align-items:center;gap:8px;background:#fff !important;border:3px solid #a8cc88;border-radius:16px;box-shadow:none;color:#2f5a1f;cursor:pointer}
#homeScreen.hsB #tagBanner .tb-title{font:700 19px/1.1 var(--ss-hand);-webkit-text-stroke:.5px currentColor;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}
#homeScreen.hsB #tagCount{font:700 12px var(--ss-hand);color:#4e6b33;background:none;border:0;padding:0}
#hsProgress{position:absolute;left:50%;bottom:54px;transform:translateX(-50%);margin:0;padding:6px 14px;border-radius:999px;background:rgba(17,17,17,.72);color:#fff;font:700 14px var(--ss-hand);z-index:2}
.hsB-panel{position:relative;margin-top:-24px;border-radius:26px 26px 0 0;background:#fff;padding:14px 16px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;z-index:3}
#homeScreen.hsB #favoritesRow{position:relative;left:auto;top:auto;width:100%;height:auto;display:flex;align-items:center;gap:8px;background:transparent}
#homeScreen.hsB #favorites{flex:1;width:auto}
#homeScreen.hsB #openTags{width:44px;flex:none}
#homeScreen.hsB #cameraStatus{position:static;margin:0;font:700 13px var(--ss-hand);color:#b4462f;text-align:center;transform:none;width:auto}
#homeScreen.hsB #cameraStatus:empty{display:none}
.hsB-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center}
.hsB-side{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:3px;width:78px;padding:7px 0 5px;border:2.5px solid #8a8a8b;border-radius:18px;background:#fff;cursor:pointer;font:700 13px var(--ss-hand);color:#111}
.hsB-side svg{width:34px;height:34px}
.hsB-side:active{transform:scale(.96)}
.hsB-side:disabled{opacity:.5}
.hsB-shutter{justify-self:center;width:100px;height:100px;border-radius:50%;background:#8dcd77;border:4px solid #5b7a35;box-shadow:0 6px 0 #46602a;display:grid;place-items:center;padding:0;cursor:pointer}
.hsB-shutter svg{width:54px;height:54px}
.hsB-shutter:active{transform:translateY(5px);box-shadow:0 1px 0 #46602a}
.hsB-shutter:disabled{opacity:.6}
#homeScreen.hsB .hs-email{align-self:center;width:58%;margin-top:2px}
.hsB-view::after{content:none}
#homeScreen.hsB #tagBanner .tb-title{flex:0 1 auto;min-width:1.2em}
#homeScreen.hsB #tagCount:not(:empty){flex:none;border:0;background:#ebf2e1;border-radius:999px;padding:1px 8px;font:700 13px var(--ss-hand);color:#2f5a1f}
#homeScreen.hsB #tagCount:empty{display:none}
#homeScreen.hsB #tagBanner .tb-title{width:auto;display:inline-block}
#homeScreen.hsB #tagBanner{justify-content:flex-start}
#homeScreen.hsB #tagBanner span{width:auto;display:inline-block}

/* ===== Live camera (continuous shooting) ===== */
body.lc-open{overflow:hidden}
.lc{position:fixed;inset:0;z-index:50;background:#111;display:flex;flex-direction:column;font-family:var(--ss-hand)}
.lc[hidden]{display:none}
#lcVideo{flex:1 1 auto;min-height:0;width:100%;object-fit:cover;background:#2a2622;touch-action:none}
#lcFlash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
#lcFlash.go{animation:lcflash .25s ease-out}
@keyframes lcflash{from{opacity:.75}to{opacity:0}}
.lc-round{position:absolute;top:max(16px,env(safe-area-inset-top));width:46px;height:46px;border:0;border-radius:23px;background:rgba(255,255,255,.92);color:#111;display:grid;place-items:center;padding:0;cursor:pointer}
.lc-round svg{width:22px;height:22px}
.lc-close{left:16px}
.lc-torch{left:70px}
.lc-torch.on{background:#ffe27a}
.lc-chip{position:absolute;top:max(16px,env(safe-area-inset-top));right:16px;max-width:62%;display:flex;align-items:center;gap:8px;padding:8px 14px;border:3px solid #a8cc88;border-radius:16px;background:#fff;color:#2f5a1f;font:700 19px var(--ss-hand);cursor:pointer}
#lcName{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-text-stroke:.5px currentColor}
#lcCount{font-size:13px;color:#4e6b33}
#lcZoom{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);margin:0;padding:6px 14px;border-radius:999px;background:rgba(17,17,17,.7);color:#fff;font:700 18px var(--ss-hand)}
.lc-panel{position:relative;margin-top:-24px;border-radius:26px 26px 0 0;background:#fff;padding:14px 16px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
#lcTags #favoritesRow{position:relative;left:auto;top:auto;width:100%;height:auto;display:flex;align-items:center;gap:8px;background:transparent}
#lcTags #favorites{flex:1;width:auto}
#lcTags #openTags{width:44px;flex:none}
#lcStatus{margin:0;text-align:center;font:700 13px var(--ss-hand);color:#b4462f}
#lcStatus:empty{display:none}
.lc-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center}
.lc-last{justify-self:start;width:60px;height:60px;border:2.5px solid #8a8a8b;border-radius:16px;background:linear-gradient(160deg,#efe9e1,#d9cfc3) center/cover no-repeat;padding:0}
.lc-shutter{justify-self:center;width:96px;height:96px;border-radius:50%;background:#8dcd77;border:4px solid #5b7a35;box-shadow:0 6px 0 #46602a;display:grid;place-items:center;padding:0;cursor:pointer}
.lc-shutter svg{width:52px;height:52px}
.lc-shutter:active{transform:translateY(5px);box-shadow:0 1px 0 #46602a}
.lc-done{justify-self:end;height:48px;padding:0 18px;border:3px solid #84966d;border-radius:16px;background:#d5e3ca;color:#111;font:700 17px var(--ss-hand);cursor:pointer}
.lc-email{align-self:center;width:58%}

/* ===== Home S1: one big Say Cheese card ===== */
#homeScreen.hs1{gap:12px}
#homeScreen.hs1 #favoritesRow{position:relative;left:auto;top:auto;width:100%;height:auto;display:flex;align-items:center;gap:8px;background:transparent}
#homeScreen.hs1 #favorites{flex:1;width:auto}
#homeScreen.hs1 #openTags{width:46px;flex:none}
.hs1-card{position:relative;flex:1 1 auto;min-height:300px;display:flex;flex-direction:column;border:3.5px solid #5b7a35;border-radius:28px;background:#8dcd77;box-shadow:0 7px 0 #46602a;margin-bottom:6px;overflow:hidden}
#homeScreen.hs1 #tagBanner{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:auto;max-width:86%;min-height:0;aspect-ratio:auto;margin:0;padding:6px 16px;z-index:2;
  display:flex;flex-direction:row;align-items:center;gap:8px;background:#fff !important;border:0;border-radius:999px;box-shadow:none;color:#2f5a1f;cursor:pointer}
#homeScreen.hs1 #tagBanner span{width:auto;display:inline-block}
#homeScreen.hs1 #tagBanner .tb-title{font:700 19px/1.15 var(--ss-hand);-webkit-text-stroke:.5px currentColor;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeScreen.hs1 #tagCount{font:700 13px var(--ss-hand);color:#4e6b33}
#homeScreen.hs1 #tagCount:empty{display:none}
.hs1-shoot{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:0;background:transparent;padding:64px 16px 20px;cursor:pointer;color:#fff}
.hs1-shoot svg{width:112px;height:112px}
.hs1-say{font:700 38px var(--ss-hand);text-shadow:0 2px 0 #3f5a22;-webkit-text-stroke:.6px #fff}
.hs1-path{font:700 14px var(--ss-hand);color:#f2fbe9}
.hs1-card:active{transform:translateY(5px);box-shadow:0 2px 0 #46602a}
#homeScreen.hs1 #hsProgress{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);margin:0;padding:6px 14px;border-radius:999px;background:rgba(17,17,17,.72);color:#fff;font:700 14px var(--ss-hand)}
#homeScreen.hs1 #cameraStatus{position:static;margin:0;font:700 13px var(--ss-hand);color:#b4462f;text-align:center;transform:none;width:auto}
#homeScreen.hs1 #cameraStatus:empty{display:none}
.hs1-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hs1-side{display:flex;align-items:center;gap:10px;padding:10px 12px;border:2.5px solid #8a8a8b;border-radius:18px;background:#fff;color:#111;text-align:left;cursor:pointer;font-family:var(--ss-hand)}
.hs1-side svg{width:34px;height:34px;flex:none}
.hs1-side span{display:flex;flex-direction:column;gap:1px}
.hs1-side b{font:700 16px var(--ss-hand)}
.hs1-side small{font:700 11px var(--ss-hand);color:#6f6f70}
.hs1-side:disabled{opacity:.5}
#homeScreen.hs1 .hs-names{width:70%}
#homeScreen.hs1 .hs-email{width:58%}
#homeScreen.hs1 #tagBanner{z-index:5}
.hs1-shoot{position:relative;z-index:1}
#homeScreen.hs1 #tagBanner:active{transform:translateX(-50%) translateY(2px)}

/* iPhone / iPad save */
.pending-bar{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 16px;border:3px solid #a8cc88;border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.15);font:700 15px var(--ss-hand);color:#2f5a1f;white-space:nowrap}
.pending-bar[hidden]{display:none}
.pending-bar .ss-strong{min-height:42px;padding:4px 18px;margin-bottom:4px}
body.lc-open .pending-bar{display:none}
.save-all{width:min(92vw,420px);box-sizing:border-box;border:0;border-radius:24px;padding:22px 20px;display:none;flex-direction:column;gap:12px}
.save-all[open]{display:flex}
.save-all h2{margin:0;font:700 24px var(--ss-hand);color:#111}
.save-all p{margin:0;font:700 14px var(--ss-hand);color:#4e6b33}
.save-all p:empty{display:none}
#saveAllStatus{color:#555}

/* v-art: film strip fills the row (wand moved to the top corner) */
#homeScreen #favoritesRow #openTags{display:none}
#lcTags #openTags{display:none}
#homeScreen .hs-icon img,#homeScreen .hsB-gear img{object-fit:contain}
/* tag-shaped long tag */
#homeScreen #tagBanner{background:url(tag-shape.svg) center/100% 100% no-repeat !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}
#homeScreen #tagBanner .tb-title{font:700 26px/1.1 var(--ss-hand);-webkit-text-stroke:.6px currentColor;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeScreen #tagBanner.two .tb-title{font-size:17px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.12}

/* S1: original Say Cheese art, no green fill; long tag at the top of the box */
.hs1-card{background:#fff;border:2.5px solid #e3e3e3;box-shadow:none;border-radius:24px;align-items:center;padding:16px 14px 10px;gap:6px;min-height:0}
.hs1-card:active{transform:none;box-shadow:none}
#homeScreen.hs1 #tagBanner{position:static;transform:none;left:auto;top:auto;align-self:stretch;max-width:none;width:auto;height:76px;padding:6px 18px 6px 52px;display:flex;align-items:center;gap:10px}
#homeScreen.hs1 #tagBanner:active{transform:translateY(2px)}
#homeScreen.hs1 #tagCount{margin-left:auto;flex:none}
.hs1-shoot{flex:1;min-height:0;padding:6px 0 0;display:flex;align-items:center;justify-content:center}
.hs1-shoot img{width:100%;max-width:330px;height:auto;max-height:100%;object-fit:contain}
.hs1-shoot:active img{transform:scale(.97)}
.hs1-row{grid-template-columns:1fr 1fr;align-items:center}
.hs1-wow{border:0;background:transparent;padding:0;cursor:pointer;display:flex;justify-content:center}
.hs1-wow img{width:100%;max-width:160px;height:auto}
.hs1-wow:active img{transform:scale(.96)}
.hs1-wow:disabled{opacity:.5}
#homeScreen.hs.hs1 #tagBanner,#homeScreen.hs.hsB #tagBanner{background:url(tag-shape.svg) center/100% 100% no-repeat !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}
#homeScreen.hs #tagBanner.two .tb-title{font-size:20px}
#homeScreen.hs.hsB #tagBanner.two .tb-title{font-size:16px}
#homeScreen.hs.hs1 #tagBanner:not(.two) .tb-title{font-size:32px}

/* ===== tag manager list ===== */
#tlNow{display:flex;flex-direction:column;gap:2px;margin:4px 2px 10px;padding:10px 14px;border:3px solid #a8cc88;border-radius:16px;background:#ebf2e1;color:#2f5a1f}
#tlNow small{font:700 12px var(--ss-hand);color:#4e6b33}
#tlNow b{font:700 20px var(--ss-hand)}
#longTags{display:flex !important;flex-direction:column;gap:8px;grid-template-columns:none !important}
.tl-row{display:flex;align-items:center;gap:4px;padding:4px 4px 4px 6px;border:2.5px solid #dcdcdc;border-radius:16px;background:#fff}
.tl-row.on{border:3px solid #a8cc88;background:#ebf2e1}
.tl-pick{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:4px;text-align:left;cursor:pointer;font-family:var(--ss-hand)}
.tl-chip{flex:none;width:96px;height:38px;box-sizing:border-box;padding-left:28px;display:flex;align-items:center;justify-content:center;background:url(tag-shape.svg) center/100% 100% no-repeat;font:700 16px var(--ss-hand);color:#2f5a1f;filter:grayscale(1) brightness(1.02)}
.tl-row.on .tl-chip{filter:none}
.tl-chip.star{color:#fff;font-size:12px;background:url(tag-shape.svg) center/100% 100% no-repeat}
.tl-chip.star::before{content:"";position:absolute}
.tl-txt{display:flex;flex-direction:column;min-width:0}
.tl-txt b{font:700 16px var(--ss-hand);color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-row:not(.on) .tl-chip.star + .tl-txt b{color:#8a8a8b}
.tl-txt small{font:700 11px var(--ss-hand);color:#6f6f70}
.tl-icon{flex:none;width:42px;height:42px;border:0;background:transparent;padding:9px;color:#555;cursor:pointer}
.tl-icon svg{width:100%;height:100%}
.tl-bin{color:#b4462f}
.tl-icon[hidden]{display:none}
/* ===== tag editor: docked at the top, keyboard-safe ===== */
.te{position:fixed;inset:0 0 auto 0;margin:0;width:100%;max-width:none;max-height:none;box-sizing:border-box;border:0;border-radius:0 0 24px 24px;padding:max(10px,env(safe-area-inset-top)) 16px 14px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);display:none;flex-direction:column;gap:10px;font-family:var(--ss-hand)}
.te[open]{display:flex}
.te::backdrop{background:rgba(0,0,0,.35)}
.te > *{width:100%;max-width:560px;margin:0 auto}
.te-head{display:flex;align-items:center;gap:8px}
.te-head b{flex:1;font:700 20px var(--ss-hand);color:#111}
.te-x{width:40px;height:40px;border:0;background:transparent;padding:9px;color:#555;cursor:pointer}
.te-x svg{width:100%;height:100%}
.te-save{min-height:40px;padding:4px 20px}
.te-preview{height:70px;box-sizing:border-box;padding:4px 16px 4px 50px;display:flex;align-items:center;background:url(tag-shape.svg) center/100% 100% no-repeat;color:#2f5a1f}
.te-preview span{font:700 30px/1.1 var(--ss-hand);-webkit-text-stroke:.6px currentColor;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.te-preview.two span{font-size:19px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#editTag{display:flex;flex-direction:column;gap:8px}
.te-fields{display:flex;gap:10px}
.te-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.te-code{flex:0 0 112px}
.te-name{flex:1}
.te-l{display:flex;justify-content:space-between;font:700 12px var(--ss-hand);color:#555}
.te-l i{font-style:normal;color:#8a8a8b}
.te-l i.warn{color:#c25a1b}
.te-code input{text-align:center;font-size:19px}
#teFile{margin:0;font:700 12px var(--ss-hand);color:#4e6b33;overflow-wrap:anywhere}
.te-row{display:flex;align-items:center;gap:8px}
.te-row .ss-check{flex:1;font-size:15px}
.te-del{display:flex;align-items:center;gap:4px;height:36px;padding:0 12px;border:2px solid #e2b3a8;border-radius:12px;background:#fff;color:#b4462f;font:700 14px var(--ss-hand);cursor:pointer}
.te-del svg{width:18px;height:18px}
.te-del[hidden]{display:none}
.te-confirm{width:min(86vw,340px);box-sizing:border-box;border:0;border-radius:24px;padding:22px 20px;display:none;flex-direction:column;gap:12px;font-family:var(--ss-hand)}
.te-confirm[open]{display:flex}
.te-confirm b{font:700 22px var(--ss-hand)}
.te-confirm p{margin:0;font:700 14px/1.4 var(--ss-hand);color:#555}
.te-danger{height:48px;border:3px solid #b4462f;border-radius:16px;background:#f6d8d0;color:#7a2615;font:700 17px var(--ss-hand);cursor:pointer}

/* sheet: same height in S1 and S2, opens from the top area so the whole list fits */
#tagSheet{--sheet-top:max(64px,12dvh) !important;width:min(100%,560px)}
#tagScroll{overflow-y:auto}
.tl-chip.star{color:#9a9a9a}
.tl-row.on .tl-chip.star{color:#2f5a1f}
.tl-chip.star svg{width:30px;height:30px}

#teRecent[hidden]{display:none !important}
.te-row .te-del{margin-left:auto}

/* long tags: shape and font size come from fitTag() */
#tlNow{height:86px;box-sizing:border-box;justify-content:center;gap:0;padding-top:4px;padding-bottom:4px;margin:4px 2px 10px}
#tlNow small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.te-preview{height:72px}
.lc-chip{width:min(66vw,300px);max-width:none;height:58px;box-sizing:border-box;padding-top:4px;padding-bottom:4px;background:transparent}
#lcName{flex:1 1 auto}
#lcCount{flex:none;background:#fff;border:2px solid #a8cc88;border-radius:10px;padding:0 6px;font-size:13px}
#lcCount:empty{display:none}
#homeScreen #tagBanner .tb-title{flex:1 1 auto}

/* ===================================================================
   Responsive: phone & tablet, portrait & landscape.
   Wider screens get more tag stubs / rows and side-by-side panels,
   not just bigger copies of the phone layout.
   =================================================================== */
#favorites{--tk-stub:86px;--tk-rows:1}
.tk-rows{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#favorites .tk-rows .ticket{flex:none;min-width:0}
#favorites .tk-rows:not(.multi) .ticket{min-width:100%}
#longTags{gap:8px}

/* ---------- phone landscape (short screens) ---------- */
@media (orientation:landscape) and (max-height:540px){
  #homeScreen.hs{max-width:none;height:100svh;min-height:0;overflow:hidden;
    padding:max(8px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  .hs-logo{width:40px;height:40px}
  .hs-brand b{font-size:19px}
  .hs-icon{width:40px;height:40px}

  /* S1: Say Cheese card on the left, everything else on the right */
  #homeScreen.hs.hs1{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;column-gap:18px;row-gap:6px}
  #homeScreen.hs1 .hs1-card{grid-column:1;grid-row:1/-1;margin:0;padding:10px 12px 8px}
  #homeScreen.hs1 .hs-top{grid-column:2;grid-row:1}
  #homeScreen.hs1 .hs-label{grid-column:2;grid-row:2;margin:0}
  #homeScreen.hs1 #favoritesRow{grid-column:2;grid-row:3}
  #homeScreen.hs1 .hs1-row{grid-column:2;grid-row:4;align-self:center}
  #homeScreen.hs1 #cameraStatus{grid-column:2;grid-row:5}
  #homeScreen.hs1 .hs-foot{grid-column:2;grid-row:6;flex-direction:row;justify-content:center;gap:12px;margin:0}
  #homeScreen.hs1 .hs-names{width:48%}
  #homeScreen.hs1 .hs-email{width:44%}
  #homeScreen.hs1 #tagBanner{height:58px;flex:none}
  .hs1-wow img{max-width:130px}
  .hs1-side{padding:8px 10px}

  /* S2: last photo on the left, controls panel on the right */
  #homeScreen.hs.hsB{display:grid;grid-template-columns:minmax(0,1fr) min(46%,420px);padding:0}
  #homeScreen.hsB .hsB-view{min-height:0;height:100svh}
  #homeScreen.hsB .hsB-panel{margin:0;border-radius:0;justify-content:center;gap:10px;overflow-y:auto;
    padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 14px}
  #homeScreen.hsB #tagBanner{height:54px}
  #galleryBtn.hsB-art{width:92px}
  .hsB-say{width:128px}
  #homeScreen.hsB .hs-email{width:70%}
}

/* ---------- tablet portrait (Galaxy Tab, iPad mini, iPad Pro) ---------- */
@media (min-width:600px) and (orientation:portrait){
  #homeScreen.hs{max-width:none;padding:max(20px,env(safe-area-inset-top)) 32px max(18px,env(safe-area-inset-bottom));gap:16px}
  #homeScreen.hs #favorites{--tk-stub:118px;--tk-rows:2}
  .hs-logo{width:72px;height:72px}
  .hs-brand b{font-size:30px}
  .hs-brand span{font-size:15px}
  .hs-icon{width:60px;height:60px}
  .hs-label span{font-size:19px}
  .hs-label small{font-size:14px}

  /* S1 */
  #homeScreen.hs1 #tagBanner{height:100px}
  .hs1-card{padding:22px 22px 14px}
  .hs1-shoot img{max-width:min(520px,90%)}
  .hs1-row{gap:24px}
  .hs1-wow img{max-width:230px}
  .hs1-side{padding:18px 22px;gap:16px;border-radius:24px}
  .hs1-side svg{width:52px;height:52px}
  .hs1-side b{font-size:24px}
  .hs1-side small{font-size:15px}
  #homeScreen.hs1 .hs-names{width:52%}
  #homeScreen.hs1 .hs-email{width:42%}

  /* S2 */
  #homeScreen.hs.hsB{padding:0;gap:0}
  .hsB-view{min-height:50svh}
  .hsB-logo{width:76px;height:76px;top:20px;left:20px}
  .hsB-gear{width:62px;height:62px;top:104px;left:24px;border-radius:31px}
  #homeScreen.hsB #tagBanner{height:84px;max-width:min(60%,560px);top:20px;right:20px}
  .hsB-panel{padding:20px 32px max(18px,env(safe-area-inset-bottom));gap:16px}
  #galleryBtn.hsB-art{width:170px}
  .hsB-say{width:250px}
  .hsB-side.hsB-add{width:130px;padding:14px 0 10px}
  .hsB-add svg{width:46px;height:46px}
  .hsB-add span{font-size:17px}
  #homeScreen.hsB .hs-email{width:40%}
}

/* ---------- tablet landscape ---------- */
@media (orientation:landscape) and (min-height:541px){
  #homeScreen.hs{max-width:none;height:100svh;min-height:0;overflow:hidden;
    padding:max(22px,env(safe-area-inset-top)) 32px max(18px,env(safe-area-inset-bottom));gap:14px}
  #homeScreen.hs #favorites{--tk-stub:112px;--tk-rows:3}
  .hs-logo{width:66px;height:66px}
  .hs-brand b{font-size:28px}
  .hs-brand span{font-size:14px}
  .hs-icon{width:56px;height:56px}
  .hs-label span{font-size:18px}
  .hs-label small{font-size:13px}

  /* S1: big Say Cheese card left, controls right */
  #homeScreen.hs.hs1{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;column-gap:32px;row-gap:12px}
  #homeScreen.hs1 .hs1-card{grid-column:1;grid-row:1/-1;margin:0;padding:22px 22px 14px}
  #homeScreen.hs1 .hs-top{grid-column:2;grid-row:1}
  #homeScreen.hs1 .hs-label{grid-column:2;grid-row:2;margin:6px 2px -4px}
  #homeScreen.hs1 #favoritesRow{grid-column:2;grid-row:3}
  #homeScreen.hs1 .hs1-row{grid-column:2;grid-row:4;align-self:center;gap:20px}
  #homeScreen.hs1 #cameraStatus{grid-column:2;grid-row:5}
  #homeScreen.hs1 .hs-foot{grid-column:2;grid-row:6;margin:0}
  #homeScreen.hs1 #tagBanner{height:96px;flex:none}
  .hs1-shoot img{max-width:min(560px,92%)}
  .hs1-wow img{max-width:220px}
  .hs1-side{padding:16px 20px;gap:14px;border-radius:22px}
  .hs1-side svg{width:48px;height:48px}
  .hs1-side b{font-size:22px}
  .hs1-side small{font-size:14px}
  #homeScreen.hs1 .hs-names{width:70%}
  #homeScreen.hs1 .hs-email{width:56%}

  /* S2: last photo left, panel right */
  #homeScreen.hs.hsB{display:grid;grid-template-columns:minmax(0,1fr) min(42%,520px);padding:0;gap:0}
  #homeScreen.hsB .hsB-view{min-height:0;height:100svh}
  .hsB-logo{width:72px;height:72px;top:20px;left:20px}
  .hsB-gear{width:60px;height:60px;top:100px;left:26px;border-radius:30px}
  #homeScreen.hsB #tagBanner{height:84px;max-width:min(64%,560px);top:20px;right:20px}
  #homeScreen.hsB .hsB-panel{margin:0;border-radius:0;justify-content:center;gap:22px;padding:24px 28px}
  #galleryBtn.hsB-art{width:150px}
  .hsB-say{width:210px}
  .hsB-side.hsB-add{width:118px;padding:12px 0 10px}
  .hsB-add svg{width:42px;height:42px}
  .hsB-add span{font-size:16px}
  #homeScreen.hsB .hs-email{width:66%}
}

/* ---------- live camera ---------- */
/* landscape (phone or tablet): preview left, controls column right, like the phone's own camera */
@media (orientation:landscape){
  .lc{flex-direction:row;--lcp:min(40%,300px)}
  #lcVideo{height:100%;width:auto;flex:1 1 auto;min-width:0}
  .lc-panel{flex:none;width:var(--lcp);box-sizing:border-box;margin:0;border-radius:0;justify-content:center;overflow-y:auto;
    padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 14px}
  #lcTags #favorites{--tk-stub:86px;--tk-rows:2}
  .lc-chip{right:calc(var(--lcp) + 16px);width:min(48vw - var(--lcp)/2,300px)}
  #lcZoom{left:calc((100% - var(--lcp))/2)}
  .lc-shutter{width:84px;height:84px}
  .lc-last{width:54px;height:54px}
  .lc-done{height:44px;padding:0 14px}
  .lc-email{width:80%}
}
@media (orientation:landscape) and (min-height:541px){
  .lc{--lcp:min(38%,440px)}
  #lcVideo{object-fit:contain;background:#111}
  .lc-panel{gap:20px;padding:24px 26px}
  #lcTags #favorites{--tk-stub:110px;--tk-rows:3}
  .lc-chip{height:72px;width:min(50vw - var(--lcp)/2,420px);top:max(20px,env(safe-area-inset-top))}
  .lc-round{width:56px;height:56px;border-radius:28px}
  .lc-shutter{width:112px;height:112px}
  .lc-shutter svg{width:60px;height:60px}
  .lc-last{width:76px;height:76px}
  .lc-done{height:56px;padding:0 22px;font-size:20px}
}
/* tablet portrait: panel at the bottom, but wider strip with more stubs */
@media (min-width:600px) and (orientation:portrait){
  #lcVideo{object-fit:contain;background:#111}
  .lc-panel{align-items:center;padding:20px 32px max(18px,env(safe-area-inset-bottom));gap:16px}
  .lc-panel > *{width:100%;max-width:820px}
  #lcTags #favorites{--tk-stub:118px;--tk-rows:2}
  .lc-chip{height:76px;width:min(56vw,460px);top:max(20px,env(safe-area-inset-top))}
  .lc-round{width:56px;height:56px;border-radius:28px}
  .lc-torch{left:84px}
  .lc-shutter{width:116px;height:116px}
  .lc-shutter svg{width:62px;height:62px}
  .lc-last{width:80px;height:80px}
  .lc-done{height:58px;padding:0 24px;font-size:20px}
  .lc-email{width:40%;max-width:none}
}
/* old tablet rule (phone-width column) is replaced by the layouts above */
@media (min-width:600px){ .lc-panel > *{max-width:none} }
@media (min-width:600px) and (orientation:portrait){ .lc-panel > *{max-width:820px} .lc-email{max-width:none} }

/* ---------- tag manager sheet ---------- */
@media (min-width:640px){
  #tagSheet{width:min(94vw,980px)}
  #longTags{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr)) !important;align-content:start}
}
@media (orientation:landscape) and (max-height:540px){
  #tagSheet{--sheet-top:10px !important;width:min(96vw,900px)}
}
@media (min-width:600px) and (min-height:541px){
  .tl-chip{width:112px;height:44px}
  .tl-txt b{font-size:18px}
}

/* ---------- tag editor: wide screens put preview and fields side by side ---------- */
@media (min-width:640px){
  .te[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:20px;row-gap:10px;align-items:center;
    padding-left:max(16px,calc((100% - 980px)/2));padding-right:max(16px,calc((100% - 980px)/2))}
  .te > *{max-width:none;margin:0}
  .te-head{grid-column:1/-1}
}
@media (min-width:600px) and (min-height:541px){
  .te-preview{height:96px}
  .te-head b{font-size:24px}
  .te-l{font-size:14px}
  .te-code input,.te-name input{font-size:22px;min-height:54px}
}

/* ---------- big tablets (iPad Pro 12.9/13) ---------- */
@media (min-width:1000px) and (min-height:1000px){
  #homeScreen.hs #favorites{--tk-stub:136px}
  #lcTags #favorites{--tk-stub:130px}
  .hs1-wow img{max-width:280px}
  #galleryBtn.hsB-art{width:190px}
  .hsB-say{width:280px}
  .hsB-side.hsB-add{width:150px}
}
@media (min-width:640px){
  #longTags{grid-template-columns:repeat(auto-fill,minmax(380px,1fr)) !important}
}

.hsB-art,.hsB-side.hsB-add{max-width:100%;box-sizing:border-box}
.hsB-row{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,.85fr);column-gap:8px}

/* ===== camera: preview as big as the screen allows, controls float over the spare space ===== */
.lc{display:block !important}
.lc[hidden]{display:none !important}
#lcVideo{position:absolute !important;inset:0;width:100% !important;height:100% !important;object-fit:contain !important;object-position:center top;background:#000 !important}
.lc-panel{position:absolute !important;left:0;right:0;bottom:0;width:auto !important;margin:0 !important;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.lc-done{width:62px;height:62px;padding:0;border:0;background:transparent;justify-self:end}
.lc-done img{display:block;width:100%;height:100%;object-fit:contain}
.lc-done:active img{transform:scale(.9)}
@media (orientation:landscape){
  #lcVideo{object-position:left center}
  .lc-panel{left:auto;top:0;width:var(--lcp) !important;border-radius:0}
  .lc-done{width:56px;height:56px}
}
@media (orientation:landscape) and (min-height:541px){ .lc-done{width:76px;height:76px} }
@media (min-width:600px) and (orientation:portrait){ .lc-done{width:80px;height:80px} }

/* tag manager header: plain gear, Tag it! as wand + words (no button box) */
#tagSheet #gear,#tagSheet #gear:focus,#tagSheet #gear:focus-visible{outline:none !important;border:0 !important;box-shadow:none !important;background:transparent !important}
#tagSheet #add.tl-add{background:transparent;border:0;box-shadow:none;outline:none;min-height:48px;padding:0 6px;margin:0;gap:6px;color:#2f5a1f;font:700 26px var(--ss-hand);-webkit-text-stroke:.5px currentColor}
#tagSheet #add.tl-add img{width:46px;height:46px;top:0}
#tagSheet #add.tl-add:active{transform:scale(.96)}

@media (orientation:landscape) and (min-height:541px){ .lc{--lcp:min(30%,330px)} #lcTags #favorites{--tk-stub:104px;--tk-rows:4} .lc-panel{padding:20px 18px;gap:18px} }

.lc-done svg{display:block;width:100%;height:100%}
.lc-done{transform:translateY(-10px)}
.lc-done:active{transform:translateY(-8px) scale(.92)}

/* camera, landscape: tag list stacked top to bottom, scrolls when long, Tag it! under it */
.lc-add{display:none}
@media (orientation:landscape){
  .lc-panel{justify-content:flex-start !important;overflow:hidden !important}
  #lcTags{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  #lcTags #favoritesRow{flex:1 1 auto;min-height:0;align-items:stretch}
  #lcTags #favorites{--tk-vertical:1;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  .tk-vert{position:relative}
  .tk-vert svg{display:block}
  .lc-add{display:flex;align-items:center;justify-content:center;gap:6px;flex:none;border:0;background:transparent;padding:0;margin:0;color:#2f5a1f;font:700 22px var(--ss-hand);-webkit-text-stroke:.4px currentColor;cursor:pointer}
  .lc-add img{width:36px;height:36px;object-fit:contain}
  .lc-add:active{transform:scale(.96)}
  .lc-row{flex:none}
}
@media (orientation:landscape) and (min-height:541px){ .lc-add{font-size:26px} .lc-add img{width:44px;height:44px} }

.lc-shutter,.lc-shutter:active{box-shadow:none !important}
.lc-shutter:active{transform:scale(.95)}

/* camera, landscape: narrow right column so the preview gets the most room */
@media (orientation:landscape){
  .lc{--lcp:136px}
  .lc-panel{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 8px !important;gap:8px !important}
  .lc-add{font-size:16px !important;gap:3px}
  .lc-add img{width:26px !important;height:26px !important}
  .lc-row{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"shut shut" "last home";justify-items:center;row-gap:8px}
  .lc-shutter{grid-area:shut;justify-self:center;width:76px;height:76px}
  .lc-shutter svg{width:40px;height:40px}
  .lc-last{grid-area:last;justify-self:center;width:50px;height:50px}
  .lc-done{grid-area:home;justify-self:center;width:54px;height:54px;transform:none}
  .lc-done:active{transform:scale(.92)}
  .lc-chip{width:min(46vw - 68px,300px)}
}
@media (orientation:landscape) and (min-height:541px){
  .lc{--lcp:176px}
  .lc-panel{padding:16px 12px !important;gap:14px !important}
  .lc-add{font-size:19px !important}
  .lc-add img{width:32px !important;height:32px !important}
  .lc-shutter{width:100px;height:100px}
  .lc-shutter svg{width:52px;height:52px}
  .lc-last{width:66px;height:66px}
  .lc-done{width:70px;height:70px}
  .lc-chip{width:min(50vw - 88px,420px)}
}

@media (orientation:landscape){ #lcVideo{inset:0 var(--lcp) 0 0 !important;width:auto !important;object-position:center !important} #lcZoom{left:calc((100% - var(--lcp))/2)} }

@media (orientation:landscape){ #lcVideo{width:calc(100% - var(--lcp)) !important} }

/* camera: no X (Home star closes). Portrait bottom row: wand · Home star · shutter · last photo */
.lc-torch{left:16px}
@media (orientation:portrait){
  .lc-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"add home shut last";align-items:center;justify-items:center}
  .lc-add{grid-area:add;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:0;background:transparent;padding:0;cursor:pointer}
  .lc-add img{width:46px;height:46px;object-fit:contain}
  .lc-add:active{transform:scale(.92)}
  .lc-add-t{display:none}
  .lc-done{grid-area:home;justify-self:center !important;transform:none !important}
  .lc-done:active{transform:scale(.92) !important}
  .lc-shutter{grid-area:shut;justify-self:center}
  .lc-last{grid-area:last;justify-self:center}
}
@media (min-width:600px) and (orientation:portrait){ .lc-add{width:80px;height:80px} .lc-add img{width:64px;height:64px} }
@media (orientation:landscape){
  .lc-row{grid-template-areas:"add add" "shut shut" "last home"}
  .lc-add{grid-area:add}
}

/* camera: no wand / Tag it! (add tags from the wand on the home screen) */
@media (orientation:portrait){ .lc-row{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"home shut last"} }
@media (orientation:landscape){ .lc-row{grid-template-areas:"shut shut" "last home"} }

/* camera rows: portrait = last photo · shutter · Home; landscape = tags, then one row last · shutter · Home */
@media (orientation:portrait){ .lc-row{grid-template-areas:"last shut home"} }
@media (orientation:landscape){
  .lc{--lcp:196px}
  .lc-row{display:flex !important;flex-direction:row;align-items:center;justify-content:space-between;gap:6px}
  .lc-last{width:44px;height:44px;flex:none}
  .lc-shutter{width:68px;height:68px;flex:none}
  .lc-shutter svg{width:36px;height:36px}
  .lc-done{width:50px;height:50px;flex:none}
  .lc-chip{width:min(46vw - 98px,300px)}
}
@media (orientation:landscape) and (min-height:541px){
  .lc{--lcp:260px}
  .lc-row{gap:10px}
  .lc-last{width:60px;height:60px}
  .lc-shutter{width:92px;height:92px}
  .lc-shutter svg{width:48px;height:48px}
  .lc-done{width:68px;height:68px}
  .lc-chip{width:min(50vw - 130px,420px)}
}

/* camera, portrait: one row of tags, swipe sideways for more */
@media (orientation:portrait){ #lcTags #favorites{--tk-rows:1 !important;overflow-x:auto;overflow-y:hidden} .lc-panel{gap:10px !important;padding-top:10px !important} }

/* camera portrait: one row of tags (swipe sideways) so the preview gets more room */
@media (orientation:portrait){ #lcTags #favorites{--tk-rows:1 !important} }
/* camera landscape: tag column + a separate column (last photo, shutter, Home) at the far edge */
@media (orientation:landscape){
  .lc-panel{flex-direction:row !important;align-items:stretch;gap:8px !important}
  #lcTags{flex:1 1 auto;min-width:0;height:100%}
  .lc-row{flex-direction:column !important;justify-content:center !important;align-items:center;gap:14px !important;width:auto;flex:none}
  #lcStatus{position:absolute;left:8px;right:8px;bottom:8px}
}
@media (orientation:landscape) and (min-height:541px){ .lc-row{gap:22px !important} }

/* camera portrait: tags in ONE sideways-scrolling row so the preview gets more room */
@media (orientation:portrait){
  #lcTags #favorites{--tk-rows:1 !important}
  .lc-panel{gap:10px !important;padding-top:10px !important}
}
/* camera landscape: two columns side by side — tags (scroll up/down) | last photo · shutter · Home stacked */
@media (orientation:landscape){
  .lc{--lcp:204px}
  .lc-panel{flex-direction:row !important;align-items:stretch;gap:8px !important}
  #lcTags{flex:1 1 auto;min-width:0;height:100%}
  #lcStatus{position:absolute;left:8px;right:8px;bottom:6px;z-index:2}
  .lc-row{display:flex !important;flex-direction:column !important;align-items:center;justify-content:center;gap:14px;flex:none;width:72px}
  .lc-last{width:50px;height:50px}
  .lc-shutter{width:68px;height:68px}
  .lc-done{width:54px;height:54px}
}
@media (orientation:landscape) and (min-height:541px){
  .lc{--lcp:280px}
  .lc-panel{gap:12px !important}
  .lc-row{width:100px;gap:22px}
  .lc-last{width:68px;height:68px}
  .lc-shutter{width:96px;height:96px}
  .lc-shutter svg{width:50px;height:50px}
  .lc-done{width:74px;height:74px}
}

/* ===== camera landscape, like the phone's own camera: preview fills the screen, a black strip on the right
   holds luggage-tag shaped tags (sticking out over the preview), then shutter, last photo, Home ===== */
@media (orientation:landscape){
  .lc{--lcp:128px;--tagw:176px}
  #lcVideo{object-position:right center !important}
  .lc-chip{display:none !important}
  .lc-panel{background:#000 !important;-webkit-backdrop-filter:none;backdrop-filter:none;flex-direction:column !important;align-items:center;overflow:visible !important;
    padding:max(10px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 8px !important;gap:12px !important}
  #lcTags{flex:1 1 auto;min-height:0;width:var(--tagw);height:auto;align-self:flex-end;margin-right:2px}
  #lcTags #favorites{--tk-vertical:2;--vtag-h:50px;overflow-y:auto;overflow-x:hidden;height:100%;background:transparent}
  .tk-tags{display:flex;flex-direction:column;gap:10px;padding:2px 0}
  .vtag{flex:none;width:100%;box-sizing:border-box;border:0;padding:0 12px 0 0;display:flex;align-items:center;gap:6px;cursor:pointer;color:#2f5a1f;font-family:var(--ss-hand);text-align:left;min-width:0}
  .vtag b{font:700 20px var(--ss-hand);-webkit-text-stroke:.4px currentColor;white-space:nowrap}
  .vtag small{font:700 12px var(--ss-hand);color:#4e6b33;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .vtag.def{color:#8a8a8b}
  .vtag.def small{color:#8a8a8b}
  .vtag:active{transform:translateX(-3px)}
  .lc-row{display:flex !important;flex-direction:column !important;align-items:center;justify-content:center;gap:12px;width:auto;flex:none}
  .lc-shutter{order:1;width:72px;height:72px}
  .lc-last{order:2;width:52px;height:52px;border-radius:50%;border:2px solid #fff}
  .lc-done{order:3;width:52px;height:52px}
  .lc-done path{fill:#fff;stroke:#fff}
  .lc-done text{fill:#111}
  #lcStatus{color:#ffb3a1}
}
@media (orientation:landscape) and (min-height:541px){
  .lc{--lcp:168px;--tagw:240px}
  #lcTags #favorites{--vtag-h:64px}
  .tk-tags{gap:14px}
  .vtag b{font-size:26px}
  .vtag small{font-size:15px}
  .lc-row{gap:18px}
  .lc-shutter{width:100px;height:100px}
  .lc-last{width:70px;height:70px}
  .lc-done{width:70px;height:70px}
}
@media (orientation:landscape) and (max-height:540px){
  #lcTags #favorites{--vtag-h:46px}
  .tk-tags{gap:8px}
  .vtag b{font-size:19px}
  .lc-panel{gap:8px !important}
  .lc-row{gap:8px}
  .lc-shutter{width:64px;height:64px}
  .lc-last{width:44px;height:44px}
  .lc-done{width:46px;height:46px}
}

/* ===== camera portrait, same look as landscape: preview on top, black bar below with
   one sideways-scrolling row of luggage tags, then last photo · shutter · Home ===== */
@media (orientation:portrait){
  .lc{display:flex !important;flex-direction:column;background:#000}
  #lcVideo{position:static !important;flex:1 1 auto;min-height:0;width:100% !important;height:auto !important;object-position:center center !important}
  .lc-chip{display:none !important}
  .lc-panel{position:static !important;flex:none;background:#000 !important;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0 !important;
    padding:12px 0 max(14px,env(safe-area-inset-bottom)) !important;gap:14px !important}
  .lc-panel > *{max-width:none !important}
  #lcTags #favorites{--tk-vertical:3;--vtag-w:150px;--vtag-h:46px;overflow-x:auto;overflow-y:hidden;padding:0 14px;scroll-padding:0 14px}
  .tk-tags.h{flex-direction:row;gap:8px;padding:0;width:max-content}
  .tk-tags.h .vtag{flex:none}
  .vtag b{font-size:19px}
  .lc-row{padding:0 22px}
  .lc-last{width:52px;height:52px;border-radius:50%;border:2px solid #fff}
  .lc-shutter{width:76px;height:76px}
  .lc-done{width:54px;height:54px}
  .lc-done path{fill:#fff;stroke:#fff}
  .lc-done text{fill:#111}
  #lcStatus{color:#ffb3a1}
}
@media (min-width:600px) and (orientation:portrait){
  #lcTags #favorites{--vtag-w:200px;--vtag-h:60px;padding:0 24px}
  .vtag b{font-size:25px}
  .vtag small{font-size:14px}
  .tk-tags.h{gap:12px}
  .lc-row{padding:0 60px}
  .lc-last{width:72px;height:72px}
  .lc-shutter{width:104px;height:104px}
  .lc-done{width:74px;height:74px}
}
/* luggage-tag buttons (camera, both orientations) */
.tk-tags{display:flex;flex-direction:column;gap:10px;padding:2px 0}
.vtag{flex:none;width:100%;box-sizing:border-box;border:0;padding:0 12px 0 0;display:flex;align-items:center;justify-content:flex-start;gap:6px;cursor:pointer;color:#2f5a1f;font-family:var(--ss-hand);text-align:left;min-width:0}
.vtag b{font-weight:700;font-family:var(--ss-hand);-webkit-text-stroke:.4px currentColor;white-space:nowrap}
.vtag small{font:700 12px var(--ss-hand);color:#4e6b33;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.vtag.def,.vtag.def small{color:#8a8a8b}
.vtag:active{transform:scale(.97)}
@media (orientation:portrait){ .tk-tags.h{flex-direction:row} }

/* ===== camera with a black side strip: phone sideways, and tablets/iPads both ways ===== */
.lc.lc-side{--lcp:128px;--tagw:176px;--vth:46px;--sh:64px;--lt:44px;--hm:46px;--tf:19px;--gap:8px}
.lc.lc-side.lc-big{--lcp:170px;--tagw:244px;--vth:64px;--sh:100px;--lt:70px;--hm:70px;--tf:26px;--gap:14px}
.lc.lc-side #lcVideo{inset:0 auto 0 0 !important;width:calc(100% - var(--lcp)) !important;height:100% !important;object-fit:contain !important;object-position:right center !important}
.lc.lc-side .lc-chip{display:none !important}
.lc.lc-side #lcZoom{left:calc((100% - var(--lcp))/2)}
.lc.lc-side .lc-panel{position:absolute !important;top:0 !important;right:0 !important;bottom:0 !important;left:auto !important;width:var(--lcp) !important;margin:0 !important;border-radius:0 !important;
  background:#000 !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:flex-start !important;
  overflow:visible !important;padding:max(10px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) 8px !important;gap:var(--gap) !important}
.lc.lc-side .lc-panel > *{max-width:none !important}
.lc.lc-side #lcTags{flex:1 1 auto !important;min-height:0 !important;width:var(--tagw) !important;height:auto !important;align-self:flex-end !important;display:flex !important;flex-direction:column !important;margin-right:2px}
.lc.lc-side #lcTags #favoritesRow{flex:1 1 auto;min-height:0;height:100%;align-items:stretch}
.lc.lc-side #lcTags #favorites{--tk-vertical:2 !important;--vtag-h:var(--vth);overflow-y:auto !important;overflow-x:hidden !important;height:100%;background:transparent;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.lc.lc-side .tk-tags{display:flex;flex-direction:column;gap:var(--gap);padding:2px 0}
.lc.lc-side .vtag{flex:none;width:100%;box-sizing:border-box;border:0;padding-right:12px;display:flex;align-items:center;gap:6px;cursor:pointer;color:#2f5a1f;font-family:var(--ss-hand);text-align:left;min-width:0}
.lc.lc-side .vtag b{font:700 var(--tf) var(--ss-hand);-webkit-text-stroke:.4px currentColor;white-space:nowrap}
.lc.lc-side .vtag small{font:700 calc(var(--tf) * .6) var(--ss-hand);color:#4e6b33;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.lc.lc-side .vtag.def,.lc.lc-side .vtag.def small{color:#8a8a8b}
.lc.lc-side .vtag:active{transform:translateX(-3px)}
.lc.lc-side .lc-row{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:var(--gap) !important;width:auto !important;flex:none !important;grid-template-areas:none !important}
.lc.lc-side .lc-shutter{order:1;width:var(--sh) !important;height:var(--sh) !important;justify-self:auto}
.lc.lc-side .lc-shutter svg{width:calc(var(--sh) * .52);height:calc(var(--sh) * .52)}
.lc.lc-side .lc-last{order:2;width:var(--lt) !important;height:var(--lt) !important;border-radius:50% !important;border:2px solid #fff !important}
.lc.lc-side .lc-done{order:3;width:var(--hm) !important;height:var(--hm) !important;transform:none !important}
.lc.lc-side .lc-done:active{transform:scale(.92) !important}
.lc.lc-side .lc-done path{fill:#fff;stroke:#fff}
.lc.lc-side .lc-done text{fill:#111}
.lc.lc-side #lcStatus{position:absolute;left:8px;right:8px;bottom:6px;color:#ffb3a1}
.lc.lc-side .lc-torch{left:16px}

.lc.lc-side:not([hidden]){display:block !important}
.lc.lc-side #lcVideo{position:absolute !important;flex:none !important}

.lc[hidden],.lc.lc-side[hidden]{display:none !important}

/* camera: full title of the selected tag in a long tag at the bottom of the picture (see-through) */
.lc .lc-chip{display:flex !important;position:absolute !important;top:auto !important;right:auto !important;
  bottom:calc(var(--pbh,0px) + 14px);left:calc((100% - var(--lcp,0px))/2);transform:translateX(-50%);
  width:min(72vw,360px) !important;height:62px !important;z-index:4;color:#1f3d12;text-shadow:0 0 6px rgba(255,255,255,.9)}
.lc:not(.lc-side) .lc-chip{left:50%}
.lc.lc-side .lc-chip{bottom:max(14px,env(safe-area-inset-bottom));width:min(calc((100vw - var(--lcp)) * .62),420px) !important}
.lc.lc-side.lc-big .lc-chip{height:80px !important;width:min(calc((100vw - var(--lcp)) * .6),520px) !important}
.lc .lc-chip:active{transform:translateX(-50%) translateY(2px)}
/* shorter category tags */
.lc.lc-side{--tagw:150px}
.lc.lc-side.lc-big{--tagw:204px}
.lc .vtag small{display:none !important}
.lc .vtag b{overflow:hidden;text-overflow:ellipsis;min-width:0}

@media (orientation:portrait){ #lcTags #favorites{--vtag-w:112px} }

.lc.lc-side .lc-chip,.lc:not(.lc-side) .lc-chip{display:flex !important}

/* camera picture centred in the space left of the strip */
.lc.lc-side #lcVideo{object-position:center center !important}

/* category tags pushed right, flush with the screen edge (notch-safe) */
.lc.lc-side #lcTags{margin-right:calc(env(safe-area-inset-right,0px) - max(8px,env(safe-area-inset-right,0px))) !important}

/* home: "From Phone Camera" art button */
.hs1-pc,.hsB-pc{border:0;background:transparent;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center}
.hs1-pc img{width:100%;max-width:150px;height:auto}
.hsB-pc img{display:block;width:100%;height:auto}
#addShotsBtn.hsB-pc{width:84px}
.hs1-pc:active img,.hsB-pc:active img{transform:scale(.96)}
.hs1-pc:disabled,.hsB-pc:disabled{opacity:.5}
@media (min-width:600px) and (min-height:541px){ .hs1-pc img{max-width:220px} #addShotsBtn.hsB-pc{width:120px} }
@media (orientation:landscape) and (max-height:540px){ .hs1-pc img{max-width:110px} #addShotsBtn.hsB-pc{width:72px} }

/* phone portrait camera: categories as the same movie-ticket strip as the home screen */
.lc:not(.lc-side) #lcTags #favorites{--tk-vertical:0 !important;--tk-rows:1 !important;--tk-stub:86px;overflow-x:auto !important;overflow-y:hidden !important;padding:0 12px !important}
.lc:not(.lc-side) .tk-rows.cam{flex-direction:row;align-items:center;gap:8px;width:auto}
.lc:not(.lc-side) .tk-rows.cam .ticket{min-width:0 !important}
.tk-plus{flex:none;width:44px;height:44px;border-radius:12px;border:3px dashed #8fc06a;background:#fff;color:#2f5a1f;font:700 28px/1 var(--ss-hand);padding:0;cursor:pointer}
.tk-plus:active{transform:scale(.94)}
/* '+' tag at the end of the camera tag list */
.vtag.plus{align-self:flex-end;justify-content:center}
.vtag.plus b{font-size:calc(var(--tf,19px) * 1.3) !important;color:#2f5a1f}
.tk-tags.h .vtag.plus{align-self:center}
#favoritesRow #favorites .tk-plus{flex:none;width:52px;height:52px;box-sizing:border-box;border:3px dashed #8fc06a !important;border-radius:12px;background:#fff !important;color:#2f5a1f;font:700 34px/1 var(--ss-hand);padding:0 0 4px !important;display:grid;place-items:center}
#favorites .vtag.plus b{font-size:calc(var(--tf,19px) * 1.9) !important;line-height:1;-webkit-text-stroke:1.2px currentColor}
#favoritesRow #favorites .tk-plus{margin-right:14px}

/* '+' at the end of the phone-portrait ticket strip: a short grey stub like the other unselected tickets */
#favoritesRow #favorites .tk-plus{width:54px;height:56px;border:4.5px solid #a3a3a3 !important;border-radius:12px;background:#fff !important;color:#8a8a8b;font:700 34px/1 var(--ss-hand);
  -webkit-mask:radial-gradient(circle 8px at 0 50%,transparent 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 8px at 100% 50%,transparent 98%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 8px at 0 50%,transparent 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 8px at 100% 50%,transparent 98%,#000) right/51% 100% no-repeat}
#favorites .vtag.plus b{color:#8a8a8b !important}
/* camera button: no outline */
.lc-shutter{border:0 !important}

/* home: WoW and Device Camera smaller, same size, side by side */
.hs1-row{justify-items:center;align-items:center}
.hs1-wow img{max-width:112px !important}
.hs1-pc img{max-width:84px !important}
#galleryBtn.hsB-art{width:82px !important}
#addShotsBtn.hsB-pc{width:60px !important}
@media (min-width:600px) and (min-height:541px){ .hs1-wow img{max-width:170px !important} .hs1-pc img{max-width:128px !important} #galleryBtn.hsB-art{width:120px !important} #addShotsBtn.hsB-pc{width:88px !important} }
@media (orientation:landscape) and (max-height:540px){ .hs1-wow img{max-width:96px !important} .hs1-pc img{max-width:72px !important} #galleryBtn.hsB-art{width:72px !important} #addShotsBtn.hsB-pc{width:52px !important} }
/* home: selected title shown as plain text (no tag shape) */
#homeScreen #tagBanner{background:none !important}
#homeScreen.hsB #tagBanner{text-shadow:0 0 6px #fff,0 0 2px #fff}
.hs1-row{grid-template-columns:auto auto !important;justify-content:center;column-gap:40px}

/* home: smiling app star instead of the book logo; Say Cheese box border in the app's green */
.hs-star{object-fit:contain}
.hsB-logo.hs-star{background:rgba(255,255,255,.85);border-radius:50%;padding:4px;box-sizing:border-box}
#homeScreen .hs1-card{border:3px solid #a8cc88 !important}

.hs-brand span{font-size:16px !important;color:#666 !important;letter-spacing:.02em}
@media (min-width:600px) and (min-height:541px){ .hs-brand span{font-size:20px !important} }
/* S2: wand without the round background */
.hsB-gear{background:transparent !important}

/* wand: a gentle wiggle every few seconds (handle stays put, star end sways) */
@keyframes wandWiggle{0%,62%,100%{transform:rotate(0)}68%{transform:rotate(-9deg)}74%{transform:rotate(7deg)}80%{transform:rotate(-5deg)}86%{transform:rotate(3deg)}92%{transform:rotate(0)}}
#hsSettings img,.hsB-gear img,#tagSheet #add img{transform-origin:18% 85%;animation:wandWiggle 3.2s ease-in-out infinite}
#tagSheet #add img{animation-delay:.6s}
@media (prefers-reduced-motion:reduce){ #hsSettings img,.hsB-gear img,#tagSheet #add img{animation:none} }

/* camera title tag: grey, see-through (like the unselected tags) */
.lc .lc-chip{color:#333 !important;text-shadow:0 0 5px rgba(255,255,255,.95),0 0 2px #fff !important}

/* camera title tag: grey, see-through */
.lc .lc-chip{color:#333 !important;text-shadow:0 0 5px rgba(255,255,255,.9) !important}

.hs1-row{column-gap:64px !important}
@media (min-width:600px){ .hs1-row{column-gap:96px !important} }
.hsB-row{column-gap:18px !important}

/* Say Cheese art smaller */
.hs1-shoot img{max-width:min(240px,70%) !important}
.hsB-say{width:104px !important}
@media (min-width:600px) and (min-height:541px){ .hs1-shoot img{max-width:min(380px,65%) !important} .hsB-say{width:180px !important} }
@media (orientation:landscape) and (max-height:540px){ .hs1-shoot img{max-width:min(200px,60%) !important} .hsB-say{width:96px !important} }

/* S1: smaller Say Cheese art */
.hs1-shoot img{max-width:min(240px,70%) !important}
@media (min-width:600px) and (min-height:541px){ .hs1-shoot img{max-width:min(380px,66%) !important} }
@media (orientation:landscape) and (max-height:540px){ .hs1-shoot img{max-width:min(200px,70%) !important} }

/* camera picture fills the whole screen; controls float on a see-through dark bar */
.lc #lcVideo,.lc.lc-side #lcVideo{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;object-fit:cover !important;object-position:center center !important;flex:none !important}
.lc:not([hidden]){display:block !important}
.lc .lc-panel{position:absolute !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;background:rgba(0,0,0,.45) !important}
.lc.lc-side .lc-panel{left:auto !important;top:0 !important;background:rgba(0,0,0,.45) !important}

/* home: bigger app name + star */
.hs-logo.hs-star{width:66px !important;height:66px !important}
.hs-brand b{font-size:27px !important}
.hs-brand span{font-size:18px !important}
@media (min-width:600px) and (min-height:541px){ .hs-logo.hs-star{width:88px !important;height:88px !important} .hs-brand b{font-size:36px !important} .hs-brand span{font-size:22px !important} }
.hsB-logo.hs-star{width:64px !important;height:64px !important}
/* S1: selected category + name centred in the Say Cheese box */
#homeScreen.hs1 #tagBanner{justify-content:center !important;text-align:center}
#homeScreen.hs1 #tagBanner .tb-title{text-align:center;flex:0 1 auto !important}
/* camera: shutter, last photo and Home star about the same size */
.lc .lc-shutter{width:64px !important;height:64px !important}
.lc .lc-shutter svg{width:34px !important;height:34px !important}
.lc .lc-last{width:58px !important;height:58px !important}
.lc .lc-done{width:62px !important;height:62px !important}
.lc.lc-side .lc-shutter{width:var(--sh) !important;height:var(--sh) !important}
.lc.lc-side{--sh:58px;--lt:52px;--hm:56px}
.lc.lc-side.lc-big{--sh:80px;--lt:72px;--hm:78px}
.lc.lc-side .lc-shutter svg{width:calc(var(--sh)*.52) !important;height:calc(var(--sh)*.52) !important}

/* no photo counts anywhere */
#tagCount,#lcCount{display:none !important}
.tl-txt small:empty{display:none}
/* camera: wand at the end of the tag list opens tags & settings */
#favorites .vtag.plus img{height:72%;width:auto;object-fit:contain;transform-origin:18% 85%;animation:wandWiggle 3.2s ease-in-out infinite}

.lc .vtag{color:#666 !important}
.lc .vtag.on{color:#2f5a1f !important}

/* editor preview = camera title tag, same size and look */
.te-preview{align-self:center;max-width:100%;box-sizing:border-box;color:#333 !important;margin:0 auto !important}
@media (min-width:640px){ .te[open] .te-preview{grid-column:1/-1;justify-self:center} }
.te-preview{justify-content:center}.te-preview span{text-align:center}

/* camera preview = exactly the photo (same 4:3 / 3:4 shape as the phone's own camera), as big as the screen allows;
   controls sit in the black space beside it, like the device camera */
.lc #lcVideo{inset:0 0 var(--pbh,0px) 0 !important;width:100% !important;height:auto !important;object-fit:contain !important;object-position:center center !important;background:#000 !important}
.lc.lc-side #lcVideo{inset:0 var(--lcp) 0 0 !important;width:auto !important;height:100% !important}
.lc .lc-panel,.lc.lc-side .lc-panel{background:#000 !important}
.lc{background:#000 !important}
.lc.lc-side #lcVideo{width:calc(100% - var(--lcp)) !important;right:auto !important}

/* camera: picture as big as the whole screen allows, centred so the black bars are equal on both sides;
   controls sit on the bars (see-through where they cross the picture) */
.lc #lcVideo,.lc.lc-side #lcVideo{inset:0 !important;width:100% !important;height:100% !important;object-fit:contain !important;object-position:center center !important}
.lc .lc-panel,.lc.lc-side .lc-panel{background:rgba(0,0,0,.5) !important}

/* camera: no dark band — controls float straight on the picture; tags shorter and see-through,
   shutter / last photo / Home star stay solid */
.lc .lc-panel,.lc.lc-side .lc-panel{background:transparent !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
.lc.lc-side{--tagw:112px}
.lc.lc-side.lc-big{--tagw:150px}
.lc .vtag{opacity:.72}
.lc .vtag.on{opacity:.9}
.lc:not(.lc-side) #lcTags #favorites{--tk-stub:68px !important}
.lc:not(.lc-side) #lcTags .ticket{opacity:.75}
.lc .lc-shutter,.lc .lc-last,.lc .lc-done{opacity:1 !important}

/* camera gear (settings): no button, just the icon; white on dark, black on light */
.lc-gear{border:0;background:transparent;padding:0;width:40px;height:40px;cursor:pointer;flex:none;align-self:flex-end;margin-right:4px}
.lc-gear img{width:100%;height:100%;object-fit:contain;filter:invert(1) drop-shadow(0 0 2px rgba(0,0,0,.5));transition:filter .3s}
.lc-gear.on-light img{filter:none drop-shadow(0 0 2px rgba(255,255,255,.6))}
.lc-gear:active{transform:scale(.92)}
.lc.lc-big .lc-gear{width:52px;height:52px}
/* phone portrait: picture moved up; gear at the right under the film strip */
.lc:not(.lc-side) #lcVideo{object-position:center top !important}
.lc:not(.lc-side) .lc-gear{position:absolute;right:12px;top:-48px}
/* side strip (phone landscape, tablets): tags a bit longer and flush right; buttons in one column on the right */
.lc.lc-side{--tagw:132px}
.lc.lc-side.lc-big{--tagw:176px}
.lc.lc-side .lc-panel{align-items:flex-end !important;padding-right:max(6px,env(safe-area-inset-right)) !important}
.lc.lc-side .lc-row{align-items:flex-end !important;align-self:flex-end !important}
.lc.lc-side .lc-row > *{margin-right:calc((var(--sh) - var(--item,var(--sh)))/2)}
.lc.lc-side .lc-last{--item:var(--lt)}
.lc.lc-side .lc-done{--item:var(--hm)}
.lc.lc-side .lc-gear{margin-right:calc((var(--sh) - 40px)/2)}
.lc.lc-side.lc-big .lc-gear{margin-right:calc((var(--sh) - 52px)/2)}

.tl-addrow{width:100%;border:2.5px dashed #c4c4c4 !important;background:#fff;cursor:pointer;justify-content:flex-start;gap:10px;padding:8px 10px;font-family:var(--ss-hand)}
.tl-pluschip{filter:none !important;color:#8a8a8b;font:700 26px/1 var(--ss-hand) !important;background:url(tag-shape.svg) center/100% 100% no-repeat}
.tl-addtxt{font:700 16px var(--ss-hand);color:#8a8a8b}
.tl-addrow:active{transform:scale(.98)}

/* phone portrait: picture centred between the top of the screen and the film strip */
.lc:not(.lc-side) #lcVideo{top:0 !important;bottom:var(--pbh,0px) !important;height:auto !important;object-position:center center !important}
#tlNow small{color:#1f3d12 !important;font-weight:700;font-size:14px !important;-webkit-text-stroke:.3px currentColor}

#tlNow small .tl-ns{font-weight:900;color:#1f3d12;-webkit-text-stroke:.5px currentColor}
#tlNow small .tl-ns{color:#0e2a06 !important;-webkit-text-stroke:.9px currentColor !important}

/* editor: Delete top-right, Save bottom-right */
.te-head .te-del{margin-left:auto}
.te-row .te-save{margin-left:auto}
.te-row .te-save{width:auto !important;flex:none !important;min-height:44px;padding:4px 26px;margin-left:auto !important}

/* tag list: category chip sized for 8 letters, text centred in the space right of the hole */
.tl-chip{width:124px !important;padding-left:24px !important;padding-right:8px !important;justify-content:center !important;font-size:15px !important;letter-spacing:-.2px;white-space:nowrap;overflow:hidden}
.tl-txt{flex:1;min-width:0}
.tl-txt b{line-height:1.12;overflow:hidden;word-break:break-word;white-space:nowrap}
/* selected row: green outline only */
.tl-row.on{background:#fff !important}
/* "Now shooting" tag: same grey look as the camera title tag */
#tlNow{color:#333 !important}
#tlNow small{color:#555 !important}
#tlNow b{color:#333 !important}
/* camera tags a little more see-through */
.lc .vtag{opacity:.55 !important}
.lc .vtag.on{opacity:.75 !important}
.lc:not(.lc-side) #lcTags .ticket{opacity:.6 !important}
.tl-chip{font-size:16px !important}
.lc:not(.lc-side) .lc-gear{top:-104px !important}
.lc:not(.lc-side) .lc-gear{top:-60px !important;right:8px !important}

/* tag list rows: swipe instead of buttons */
#longTags .tl-row{position:relative;overflow:hidden;touch-action:pan-y}
#longTags .tl-row .tl-icon{display:none !important}
#longTags .tl-pick{position:relative;z-index:1;background:#fff;align-self:stretch;margin:-4px -4px -4px -6px;padding:8px 10px;border-radius:14px}
.tl-under{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-radius:14px;opacity:0}
.tl-under span{width:30px;height:30px;display:none}
.tl-under svg{width:100%;height:100%}
.tl-row.sw-r .tl-under{opacity:1;background:#f1f1f1}
.tl-row.sw-r .u-edit{display:block;color:#111}
.tl-row.sw-l .tl-under{opacity:1;background:#fbe3dd;justify-content:flex-end}
.tl-row.sw-l .u-del{display:block;color:#c0392b}
.tl-row.sw-l.sw-far .tl-under{background:#c0392b}.tl-row.sw-l.sw-far .u-del{color:#fff}
.tl-row.sw-r.sw-far .tl-under{background:#222}.tl-row.sw-r.sw-far .u-edit{color:#fff}

/* password screen: install help as a left-aligned block under the frame */
#installHelp{left:50% !important;right:auto !important;transform:translateX(-50%);width:max-content;max-width:92%;text-align:left !important;font-size:clamp(11px,3.4vw,19px) !important;line-height:1.45 !important}

/* side strip (phone landscape, tablets): exactly 3 tags visible, scroll for more */
.lc.lc-side #lcTags{flex:none !important;height:calc(var(--vth) * 3 + var(--gap) * 2 + 4px) !important}
.lc.lc-side #lcTags #favoritesRow{height:100%}
.lc.lc-side #lcTags #favorites{height:100% !important}
.lc.lc-side .lc-panel{justify-content:center !important}
/* settings gear: bottom-left corner of the screen */
.lc.lc-side .lc-gear{position:fixed !important;left:max(16px,env(safe-area-inset-left)) !important;bottom:max(16px,env(safe-area-inset-bottom)) !important;right:auto !important;top:auto !important;margin:0 !important;z-index:6}
/* side strip: 3 tags + the wand tag always visible under them (wand stays put while the tags scroll) */
.lc.lc-side #lcTags{height:calc(var(--vth) * 4 + var(--gap) * 3 + 4px) !important}
.lc.lc-side .tk-tags .vtag.plus{position:sticky;bottom:0;z-index:2;opacity:.9 !important}
.lc.lc-side .tk-tags .vtag.plus{opacity:1 !important}
/* tablets: 3–7 tags (fits the screen) + wand tag at the top; shutter, last photo, Home pushed to the bottom */
.lc.lc-side.lc-big #lcTags{height:calc(var(--vth) * (var(--tagrows,3) + 1) + var(--gap) * var(--tagrows,3) + 4px) !important}
.lc.lc-side.lc-big .lc-panel{justify-content:flex-start !important}
.lc.lc-side.lc-big .lc-row{margin-top:auto !important}
.lc.lc-side .lc-panel{padding-top:max(22px,env(safe-area-inset-top)) !important}.lc.lc-side.lc-big .lc-panel{padding-top:max(30px,env(safe-area-inset-top)) !important}

/* side strip: the tag list scrolls on its own; the short wand tag sits under it, never on top of a tag */
.lc.lc-side #lcTags{height:auto !important;flex:none !important;gap:var(--gap)}
.lc.lc-side #lcTags #favoritesRow{height:auto !important;flex:none !important}
.lc.lc-side #lcTags #favorites{height:calc(var(--vth) * var(--tagrows,3) + var(--gap) * (var(--tagrows,3) - 1) + 4px) !important}
#lcWandSlot{display:flex;justify-content:flex-end}
.lc:not(.lc-side) #lcWandSlot{display:none}
#lcWandSlot .vtag.plus{position:static !important;opacity:1 !important;justify-content:center}
#lcWandSlot .vtag.plus img{height:70%;width:auto;object-fit:contain;transform-origin:18% 85%;animation:wandWiggle 3.2s ease-in-out infinite}
.lc.lc-side .lc-panel{justify-content:flex-start !important}.lc.lc-side .lc-row{margin-top:auto !important}
.lc.lc-side:not(.lc-big){--vth:38px;--sh:50px;--lt:42px;--hm:46px;--gap:6px}.lc.lc-side:not(.lc-big) .lc-panel{padding-top:max(16px,env(safe-area-inset-top)) !important;padding-bottom:max(6px,env(safe-area-inset-bottom)) !important}.lc.lc-side:not(.lc-big) .vtag b{font-size:17px !important}

/* tag sheet: "Now shooting" label above a camera-sized tag */
#tlNowLabel{margin:2px 4px 4px;font:700 13px var(--ss-hand);color:#555;text-align:center}
#tlNowLabel .tl-ns{font-size:20px;color:#8dcd77 !important;-webkit-text-stroke:.6px #6fb35a !important;text-shadow:0 0 6px rgba(141,205,119,.9),0 0 14px rgba(141,205,119,.7),0 0 22px rgba(141,205,119,.45);animation:nsGlow 2.2s ease-in-out infinite}
@keyframes nsGlow{50%{text-shadow:0 0 3px rgba(141,205,119,.6),0 0 8px rgba(141,205,119,.4)}}
#tlNow{margin:0 auto 10px !important;padding-top:4px;padding-bottom:4px;flex-direction:row !important;align-items:center}
#tlNow small{display:none}
/* "+ Add more tags": bigger plus */
.tl-pluschip{font-size:38px !important;line-height:.8 !important;font-weight:700}
.tl-addtxt{font-size:17px}
/* camera tag text */
.lc-chip .tc,.te-preview .tc,#tlNow .tc{font-weight:700;-webkit-text-stroke:.5px currentColor}
.lc-chip .tn,.te-preview .tn,#tlNow .tn{font-weight:700}

.tl-pluschip{background:url(tag-outline.svg) center/100% 100% no-repeat !important;color:#8a8a8b !important}

/* name: a bit lighter than the category (category keeps its bold outline) */
.lc-chip .tn,.te-preview .tn,#tlNow .tn{-webkit-text-stroke:0 !important;opacity:.82;letter-spacing:-.1px}
.lc-chip .tn,.te-preview .tn,#tlNow .tn{-webkit-text-stroke:.25px currentColor !important;opacity:.9 !important}

/* home title: same category / name look as the tags */
#homeScreen #tagBanner .tc{font-weight:700;-webkit-text-stroke:.5px currentColor}
#homeScreen #tagBanner .tn{font-weight:700;-webkit-text-stroke:.25px currentColor !important;opacity:.9}

body[data-home-title="gray"] #homeScreen #tagBanner,body[data-home-title="gray"] #homeScreen #tagBanner .tb-title,body[data-home-title="tag"] #homeScreen #tagBanner,body[data-home-title="tag"] #homeScreen #tagBanner .tb-title{color:#333 !important}

/* S1: Say Cheese art a touch smaller */
.hs1-shoot img{max-width:min(215px,64%) !important}
@media (min-width:600px) and (min-height:541px){ .hs1-shoot img{max-width:min(340px,60%) !important} }
@media (orientation:landscape) and (max-height:540px){ .hs1-shoot img{max-width:min(180px,64%) !important} }

/* S1 Say Cheese box: app frame green, thick line, rounded corners */
#homeScreen .hs1-card{border:8px solid #b2ca96 !important}

/* home star logo: blinks twice every 8 s, same slow blink as the old splash star (2 s per blink) */
@keyframes homeStarBlink{0%,25%,50%,100%{opacity:1}8.75%,13.75%,33.75%,38.75%{opacity:0}}
.hs-star{animation:homeStarBlink 8s ease-out infinite}
@media (prefers-reduced-motion:reduce){ .hs-star{animation:none} }
#homeScreen .hs1-card{border:5px solid #b2ca96 !important}

/* tag list: category chip just long enough for 7 letters */
.tl-chip{width:106px !important;padding-left:22px !important;padding-right:6px !important}
.tl-pluschip{color:#333 !important}.tl-addtxt{color:#333 !important}.tl-addrow{border-color:#9a9a9a !important}
/* home star: two slow blinks (2 s each, same as the old splash star) every 22 s */
@keyframes homeStarBlink22{0%,9.09%,18.18%,100%{opacity:1}3.18%,5%,12.27%,14.09%{opacity:0}}
.hs-star{animation:homeStarBlink22 22s ease-out infinite !important}
@media (prefers-reduced-motion:reduce){ .hs-star{animation:none !important} }
/* tag sheet: wand icons stay still */
#tagSheet #add img,#tagSheet img{animation:none !important}
/* home star: two slow blinks every 45 s */
@keyframes homeStarBlink45{0%,4.44%,8.89%,100%{opacity:1}1.56%,2.44%,6%,6.89%{opacity:0}}
.hs-star{animation:homeStarBlink45 45s ease-out infinite !important}
@media (prefers-reduced-motion:reduce){ .hs-star{animation:none !important} }

/* settings view (gear): no "Tag it!", no Recovery copies, no Now shooting tag */
#tagSheet:has(#tagSettings:not([hidden])) #add,
#tagSheet:has(#tagSettings:not([hidden])) #gallery,
#tagSheet:has(#tagSettings:not([hidden])) #tlNow,
#tagSheet:has(#tagSettings:not([hidden])) #tlNowLabel{display:none !important}
/* phone landscape camera: no wand tag */
.lc.lc-side:not(.lc-big) #lcWandSlot{display:none !important}
/* wand wiggle: once every 12 s (same little shake) */
@keyframes wandWiggle12{0%,91%,100%{transform:rotate(0)}92.5%{transform:rotate(-9deg)}94%{transform:rotate(7deg)}95.5%{transform:rotate(-5deg)}97%{transform:rotate(3deg)}98.5%{transform:rotate(0)}}
#hsSettings img,.hsB-gear img,#lcWandSlot .vtag.plus img,#favorites .vtag.plus img{animation:wandWiggle12 12s ease-in-out infinite !important}
#tagSheet img{animation:none !important}
@media (prefers-reduced-motion:reduce){ #hsSettings img,.hsB-gear img,#lcWandSlot .vtag.plus img{animation:none !important} }
/* wand: one little shake every 40 s */
@keyframes wandWiggle40{0%,97.5%,100%{transform:rotate(0)}98%{transform:rotate(-9deg)}98.5%{transform:rotate(7deg)}99%{transform:rotate(-5deg)}99.5%{transform:rotate(3deg)}}
#hsSettings img,.hsB-gear img,#lcWandSlot .vtag.plus img,#favorites .vtag.plus img{animation:wandWiggle40 40s ease-in-out infinite !important}
#tagSheet img{animation:none !important}
/* smiling star: two slow blinks every 120 s */
@keyframes homeStarBlink120{0%,1.667%,3.333%,100%{opacity:1}.583%,.917%,2.25%,2.583%{opacity:0}}
.hs-star{animation:homeStarBlink120 120s ease-out infinite !important}
@media (prefers-reduced-motion:reduce){ .hs-star,#hsSettings img,.hsB-gear img,#lcWandSlot .vtag.plus img{animation:none !important} }


/* camera gear: white or black outline picked by the background; star stays light green */
.lc-gear img,.lc-gear.on-light img{filter:drop-shadow(0 0 2px rgba(0,0,0,.35)) !important}

/* password screen: swipe the names right to reveal a star; all the way = Home */
#nameSwipe{position:absolute;left:8.22%;top:76.69%;width:83.06%;height:3.646%;overflow:hidden;background:#fff;z-index:6;touch-action:pan-y;user-select:none;-webkit-user-select:none}
#nameSwipe .ns-star{position:absolute;left:10%;top:4%;height:92%;width:auto;margin:0!important;max-width:none;pointer-events:none}
#nameSwipeText{position:absolute;inset:0;margin:0!important;max-width:none;width:100%;height:100%;display:block;background:#fff;pointer-events:none}

/* Installed app: one line instead of the install help */
#installHelp .ih3{display:none}
#installHelp.installed .ih1,#installHelp.installed .ih2{display:none}
#installHelp.installed .ih3{display:block;text-align:center}
#installHelp .ih-check{color:#7cbf5c;font-weight:900;margin-left:2px}
/* tablet side strip: tags and buttons hug the right edge */
.lc.lc-side.lc-big #lcTags{margin-right:calc(-1 * max(6px,env(safe-area-inset-right,0px))) !important}
.lc.lc-side.lc-big #lcTags #favorites{padding-right:0 !important}
.lc.lc-side.lc-big .lc-row{padding-right:4px !important;padding-left:0 !important}

/* login: help line sits between the green box and the install text */
.login-artwork > .support-note{position:absolute !important;left:50% !important;right:auto !important;top:88.4% !important;bottom:auto !important;transform:translateX(-50%);margin:0 !important;width:max-content;max-width:94%;z-index:5}
#installHelp{top:92.6% !important}

/* WoW: help line between the green box and the green tip sentence */
#workArt > .wow-help{position:absolute !important;left:50% !important;right:auto !important;top:85.2% !important;bottom:auto !important;transform:translate(-50%,-50%);margin:0 !important;width:max-content;max-width:94%;z-index:5}

#nameSwipeMsg{position:absolute;right:6%;top:50%;transform:translateY(-50%);font:700 18px/1 var(--ss-hand,"Comic Neue"),"Comic Sans MS",system-ui;color:#8fbf6d;white-space:nowrap;pointer-events:none}

/* "+ Add more tags": the plus sits in the exact middle of the tag body (not counting the pointed end) */
#longTags .tl-pluschip{position:relative !important;line-height:0 !important}
#longTags .tl-pluschip .tl-plus{position:absolute;left:55.2%;top:50%;transform:translate(-50%,-50%);width:20px;height:20px;display:block}

#tlNow{cursor:pointer;-webkit-tap-highlight-color:transparent}
#tlNow:active{transform:scale(.98)}

/* Home: help line under the email bar */
#homeScreen .hs-help{position:static !important;transform:none !important;margin:4px auto 0 !important;width:max-content;max-width:94%;display:flex !important;align-items:center;gap:6px;font-size:12.5px !important;line-height:1.2 !important}
#homeScreen .hs-help svg{width:16px !important;height:16px !important;flex:none}
#homeScreen .hs-foot{gap:2px !important}
@media (orientation:landscape){ #homeScreen .hs-foot{flex-wrap:wrap} #homeScreen .hs-foot > .hs-help{flex:0 0 100%;justify-content:center;width:auto} }

/* Phone landscape tag sheet: info on the left, tag list on the right (scrolls up/down) */
@media (orientation:landscape) and (max-height:540px){
  #tagSheet[open]{display:grid !important;grid-template-columns:40% 1fr;grid-template-rows:auto auto 1fr auto;column-gap:14px;row-gap:2px;align-items:start}
  #tagSheet>header{grid-column:1;grid-row:1;width:100% !important}
  #tagSheet #add{font-size:22px !important}
  #tlNowLabel{grid-column:1;grid-row:2;margin:0 !important;text-align:center}
  #tlNow{box-sizing:border-box !important;grid-column:1;grid-row:3;align-self:center;justify-self:center;margin:0 !important}
  #tagScroll{grid-column:2;grid-row:1/5;overflow:auto !important;max-height:calc(100dvh - 30px) !important;height:100% !important;margin:0 !important;padding-top:4px}
  #longTags{display:flex !important;flex-direction:column;gap:6px}
  #scrollDown{display:none !important}
  #tagSheet .sheetEmail{grid-column:1;grid-row:4;justify-self:center;width:78% !important;margin:2px 0 0 !important;position:static !important}
  #tagSettings{grid-column:1 / 3;grid-row:2 / 5;overflow:auto;max-height:calc(100dvh - 90px)}
  #tagSheet:has(#tagSettings:not([hidden])) #tagScroll{display:none !important}
  #tagSheet:has(#tagSettings:not([hidden])) .sheetEmail{display:none !important}
  #tagSheet:has(#tagSettings:not([hidden]))>header{grid-column:1 / 3;width:100% !important}
}

/* Question-mark help line next to the email bar on the start, Done! and Tag it! screens */
.splash-help,.done-help,.sheet-help{position:static !important;transform:none !important;display:flex !important;align-items:center;justify-content:center;gap:6px;width:max-content;max-width:94%;margin:6px auto 0 !important;font-size:12.5px !important;line-height:1.2 !important}
.splash-help svg,.done-help svg,.sheet-help svg{width:16px !important;height:16px !important;flex:none}
#splashScreen:not([hidden]){flex-direction:column}
#splashArtwork{width:min(100vw,calc((100svh - 30px) * 951 / 1980)) !important}
@media (orientation:landscape) and (max-height:540px){ .splash-help{display:none !important} #splashArtwork{width:min(100vw,calc(100svh * 951 / 1980)) !important} }
.done-help{margin:10px auto 14px !important}
#tagSheet .sheet-help{margin:4px auto 0 !important}
@media (orientation:landscape) and (max-height:540px){ #tagSheet[open]:not(:has(#tagSettings:not([hidden]))){grid-template-rows:auto auto 1fr auto auto} #tagSheet .sheet-help{grid-column:1;grid-row:5;font-size:11px !important} }
#tagSheet:has(#tagSettings:not([hidden])) .sheet-help{display:none !important}

#longTags,#longTags .tl-pick{touch-action:manipulation}
#tlNow,#tlNowLabel,#tagSheet>header,#tagSheet .sheetEmail,#tagSheet .sheet-help{flex-shrink:0 !important}
/* Home: the smiling star first blinks 3 s after the screen appears, the wand 1 s later (4 s); then every 120 s / 40 s */
@keyframes homeStarBlink124{0%,1.613%,3.226%,100%{opacity:1}.565%,.887%,2.177%,2.5%{opacity:0}}

/* Photo Size (gear) */
#sizeOpts{display:flex;flex-direction:column;gap:7px}
#sizeOpts .sz-row{display:flex;align-items:center;gap:6px;padding:4px 8px 4px 4px;border:2px solid #e3e3e3;border-radius:14px;background:#fff}
#sizeOpts .sz-row.on{border-color:#8dcd77;background:#f0f8ea}
#sizeOpts .sz-pick{flex:1;display:flex;align-items:center;gap:8px;background:none;border:0;padding:8px 4px;text-align:left;font:700 16px var(--ss-hand);color:#111;cursor:pointer;min-width:0}
#sizeOpts .sz-pick b{font-weight:700}#sizeOpts .sz-px{font-weight:400;color:#7a7a7a;font-size:14px;white-space:nowrap}
#sizeOpts .sz-dot{width:18px;height:18px;border-radius:50%;border:2px solid #bbb;box-shadow:inset 0 0 0 3px #fff;flex:none}
#sizeOpts .sz-row.on .sz-dot{border-color:#6fae4f;background:#6fae4f}
#sizeOpts .sz-keep{display:flex;align-items:center;gap:5px;font:700 12.5px var(--ss-hand);color:#bbb;padding:4px 9px;border:1.5px dashed #e2e2e2;border-radius:20px;white-space:nowrap;cursor:pointer}
#sizeOpts .sz-row.on .sz-keep{color:#333;border-color:#9cc985}
#sizeOpts .sz-row.on .sz-keep:has(input:checked){background:#e4f3db;border-color:#6fae4f}
#sizeOpts .sz-keep input{width:15px;height:15px;margin:0;accent-color:#6fae4f}
#sizeOpts .sz-keep[hidden]{display:none}
.tl-row:not(.on) .tl-txt b.tl-noname{color:#8a8a8b}

/* camera film strip: the film itself is see-through (inside the SVG), the last wand frame is solid white */
.lc:not(.lc-side) #lcTags .ticket{opacity:1 !important}
/* phone landscape: wand tag at the end of the tag scroll, solid white */
.lc.lc-side .tk-tags .vtag.plus.endwand{position:static !important;opacity:1 !important;align-self:stretch;justify-content:center;padding-left:0 !important;flex-shrink:0}
.lc.lc-side .tk-tags .vtag.plus.endwand img{height:72%;width:auto;object-fit:contain;margin-left:18%}

/* S2 home: the title tag keeps its full size so category + name can grow to fill it (no shrinking around short names) */
#homeScreen.hsB #tagBanner{width:62% !important}

/* photos waiting: short blink when the app comes back */
@keyframes pendNudge{0%,100%{transform:translateX(-50%) scale(1)}20%,60%{transform:translateX(-50%) scale(1.08)}40%,80%{transform:translateX(-50%) scale(.98)}}
.pending-bar.nudge{animation:pendNudge 1.2s ease-in-out 1}

/* iPhone/iPad save sheet (B3): ZIP is the main choice; Photos (no folders) is a small chip next to Later */
.save-all .sa-zip{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 12px !important;min-height:0 !important}
.save-all .sa-zip b{font:700 22px var(--ss-hand)}
.save-all .sa-zip small{font:700 15px var(--ss-hand);color:#fff;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.save-all .sa-row{display:flex;gap:10px;align-items:center}
.save-all .sa-row .ss-secondary{flex:1}
.save-all .sa-photos{flex:none;border:2px solid #cfcfcf;background:#fff;border-radius:999px;padding:9px 13px;font:700 13px var(--ss-hand);color:#666;cursor:pointer}
.save-all .sa-photos[hidden]{display:none}

/* "N photos waiting": above Say Cheese, bigger and easy to spot */
.pending-bar.on-say{font-size:17px;border-width:3px;border-color:#7fb35a;box-shadow:0 0 0 5px rgba(143,192,106,.28),0 8px 22px rgba(0,0,0,.18);z-index:45}
.pending-bar.on-say .ss-strong{min-height:44px;font-size:18px}
@media (min-width:600px){ .pending-bar.on-say{font-size:21px;padding:10px 10px 10px 20px;gap:16px} .pending-bar.on-say .ss-strong{min-height:52px;font-size:21px;padding:4px 24px} }
/* tablet: bigger save sheet */
@media (min-width:600px){ .save-all{width:min(72vw,580px);padding:34px 32px;gap:18px;border-radius:30px}
 .save-all h2{font-size:34px} .save-all p{font-size:19px}
 .save-all .sa-zip{padding:20px 16px !important} .save-all .sa-zip b{font-size:30px} .save-all .sa-zip small{font-size:19px}
 .save-all .sa-row .ss-secondary{font-size:21px;min-height:58px} .save-all .sa-photos{font-size:17px;padding:12px 18px} }

@media (prefers-reduced-motion:reduce){ .hs-star{animation:none !important} }

/* ---- Home: star + wand timing ----
   Entering (password or name-swipe): wand wiggles 7 times and the star blinks once, together.
   After that: wand wiggles twice every 40s, star blinks once every 124s (they meet now and then: ~20:40, 41:20, 62:00). */
@keyframes wandIntro3{0%,100%{transform:rotate(0)}5%,38.3%,71.7%{transform:rotate(-10deg)}12%,45.3%,78.7%{transform:rotate(8deg)}19%,52.3%,85.7%{transform:rotate(-5deg)}26%,59.3%,92.7%{transform:rotate(3deg)}33.3%,66.7%{transform:rotate(0)}}
@keyframes wandDouble40{0%,3%,100%{transform:rotate(0)}.375%,1.875%{transform:rotate(-9deg)}.75%,2.25%{transform:rotate(7deg)}1.125%,2.625%{transform:rotate(-5deg)}1.5%{transform:rotate(0)}}
@keyframes starIntro{0%,41.2%,100%{opacity:1}2.9%,14.7%,61.8%,73.5%{opacity:0}}
#hsSettings img,.hsB-gear img{animation:wandDouble40 40s ease-in-out 40s infinite !important;transform-origin:18% 85%}
@keyframes wandIntro7{0%,100%{transform:rotate(0)}14.29%,28.57%,42.86%,57.14%,71.43%,85.71%{transform:rotate(0)}2.14%,16.43%,30.71%,45.0%,59.29%,73.57%,87.86%{transform:rotate(-10deg)}5.14%,19.43%,33.71%,48.0%,62.29%,76.57%,90.86%{transform:rotate(8deg)}8.14%,22.43%,36.71%,51.0%,65.29%,79.57%,93.86%{transform:rotate(-5deg)}11.14%,25.43%,39.71%,54.0%,68.29%,82.57%,96.86%{transform:rotate(3deg)}}
body.hs-intro #hsSettings img,body.hs-intro .hsB-gear img{animation:wandIntro7 4.9s ease-in-out 0s 1,wandDouble40 40s ease-in-out 40s infinite !important}
.hs-star{animation:homeStarBlink124 124s ease-out 123.3s infinite !important}
body.hs-intro .hs-star{animation:starIntro 3.4s ease-out 0s 1,homeStarBlink124 124s ease-out 123.3s infinite !important}
@media (prefers-reduced-motion:reduce){ .hs-star,#hsSettings img,.hsB-gear img,body.hs-intro .hs-star,body.hs-intro #hsSettings img,body.hs-intro .hsB-gear img{animation:none !important} }

/* tablet landscape: the footer is a column, so the help line must not take a full "100%" column of its own (it was pushed off to the right and cut) */
@media (orientation:landscape) and (min-height:541px){ #homeScreen .hs-foot > .hs-help{flex:none !important;align-self:center;max-width:100%;white-space:normal} }

/* version number: faint, bottom of the password screen only (for checking that an update arrived) */
.app-ver{display:none;position:fixed;left:0;right:0;bottom:max(6px,env(safe-area-inset-bottom));margin:0;text-align:center;font:600 11px/1 system-ui,sans-serif;color:#000;opacity:.22;letter-spacing:.04em;pointer-events:none;z-index:1}
body.login-mode .app-ver{display:block}

/* version: placed by script at the bottom of the page (not fixed), centred */
body.login-mode .app-ver{position:absolute !important;bottom:auto !important;left:0;right:0;text-align:center}

/* version: at the very bottom of the password page (after the last line, centered), so it never covers anything on any screen */
body.login-mode{position:relative;min-height:100vh;min-height:100dvh;padding-bottom:22px;box-sizing:border-box}
body.login-mode .app-ver{position:absolute;bottom:max(4px,env(safe-area-inset-bottom))}

/* S1 home header: star, title block and wand share one centre line */
#homeScreen .hs-top{align-items:center !important}
#homeScreen .hs-top > .hs-logo,#homeScreen .hs-top > .hs-brand,#homeScreen .hs-top > #hsSettings{align-self:center !important;margin-top:0 !important;margin-bottom:0 !important}
#homeScreen .hs-top > .hs-brand{justify-content:center}
#hsSettings{display:flex !important;align-items:center;justify-content:center}
#hsSettings img{display:block;margin:0 !important}

/* in-app notice before the phone's permission box: says "Star Studio by TUTOR JENNY K" instead of the web address */
.perm-ask{text-align:center}
.perm-ask .perm-star{width:64px;height:64px;display:block;margin:0 auto 4px}
.perm-ask h2{font-size:22px;line-height:1.2}
.perm-ask p{font:700 16px/1.4 var(--ss-hand);color:#333;margin:0}
.perm-ask .perm-next{color:#4e8a2e}
@media (min-width:600px){ .perm-ask h2{font-size:30px} .perm-ask p{font-size:20px} .perm-ask .perm-star{width:84px;height:84px} }
@media (min-width:600px){ .perm-ask .ss-strong,.perm-ask .ss-secondary{font-size:21px !important;min-height:56px !important} }

/* No long-press menus (copy / save / share / open in browser) and no text highlighting anywhere in the app.
   Typing boxes (password, tag names) still work normally. */
html,body,body *{-webkit-user-select:none !important;user-select:none !important;-webkit-touch-callout:none !important}
img,svg,a,button{-webkit-user-drag:none !important;user-drag:none}
input,textarea,select,[contenteditable="true"]{-webkit-user-select:text !important;user-select:text !important;-webkit-touch-callout:default !important}

/* version number: fainter */
.app-ver{opacity:.13 !important}

/* Edit category header: Delete on the left, X (close) on the right */
.te-head > .te-del{order:-1}
.te-head > b{order:0}
.te-head > .te-x{order:2;margin-right:-6px}
.te-head > .te-del + b,.te-head > b{margin-left:6px}

/* gear: no "Saved in …" line under Photo Size */
#sizeNote{display:none !important}
#location[hidden]{display:none !important}

/* Photo-size tip: light-green dashed box — on WoW (around the tip drawn in the picture) and in the gear sheet */
#workArt{position:relative}
#workArt .wow-guide-box{position:absolute;left:15.4%;top:87.3%;width:71.6%;height:7.75%;border:3px dashed #a8cc88;border-radius:18px;pointer-events:none;box-sizing:border-box}
#sizeGroup .sz-guide{display:inline-block;width:auto;max-width:100%;margin:10px 0 2px;padding:7px 11px;border-radius:14px;border:2.5px dashed #a8cc88;background:transparent;box-sizing:border-box}
#sizeGroup .sz-guide p{margin:0;font:700 11.5px/1.45 var(--ss-hand);color:#222}
#sizeGroup .sz-guide .sz-tip{color:#6fae4f;font-size:12px;margin-bottom:4px}
#sizeGroup .sz-guide{align-self:flex-start;width:fit-content !important;justify-self:start}

/* Photo-size guide: light-green dashed box — around the guide in the WoW picture, and the same guide in the gear sheet (centred, only as wide as the text) */
#workArt{position:relative}
#workArt .wow-guide-box{position:absolute;left:15.4%;top:87.3%;width:71.6%;height:7.75%;border:3px dashed #a8cc88;border-radius:18px;pointer-events:none;box-sizing:border-box}
#sizeGroup .sz-guide{display:block;width:fit-content;max-width:100%;box-sizing:border-box;margin:22px auto 2px;padding:7px 11px;border-radius:13px;border:2.5px dashed #a8cc88;background:transparent}
#sizeGroup .sz-guide p{margin:0;font:700 11.5px/1.45 var(--ss-hand);color:#222;text-align:left}
#sizeGroup .sz-guide .sz-tip{color:#6fae4f;font-size:12px;margin-bottom:4px}
#sizeGroup .sz-guide{align-self:center !important;justify-self:center !important;display:block !important;margin:22px auto 2px !important}
@media (min-width:600px){ #sizeGroup .sz-guide{padding:10px 14px !important;border-width:3px !important;border-radius:16px !important} #sizeGroup .sz-guide p{font-size:14px !important} #sizeGroup .sz-guide .sz-tip{font-size:15px !important;margin-bottom:6px !important} }
@media (min-width:600px){ #sizeGroup .sz-guide p{font-size:16px !important} #sizeGroup .sz-guide{padding:11px 16px !important} }

/* WoW guide is now real text (English) inside the dashed box; sizes follow the picture width */
#workArt{container-type:inline-size}
#workArt .wow-guide-box{display:flex;align-items:center;justify-content:center}
#workArt .wg-in{text-align:left;font-family:var(--ss-hand);font-weight:700;color:#222;font-size:2.55cqw;line-height:1.38}
#workArt .wg-in p{margin:0}
#workArt .wg-in .wg-tip{color:#6fae4f;font-size:2.7cqw;margin-bottom:.45em}
#workArt .wg-in .wg-tip b{color:#111}

/* WoW guide: bigger letters on phones (fills the dashed box) */
@media (max-width:599px){ #workArt .wg-in{font-size:2.95cqw !important} #workArt .wg-in .wg-tip{font-size:3.1cqw !important} }

/* wand: double wiggle every 36s (was 40s); star every 124s -> they still meet now and then (~18:36, 37:12, 55:48) */
@keyframes wandDouble36{0%,3.333%,100%{transform:rotate(0)}0.417%,2.083%{transform:rotate(-9deg)}0.833%,2.5%{transform:rotate(7deg)}1.25%,2.917%{transform:rotate(-5deg)}1.667%{transform:rotate(0)}}
#hsSettings img,.hsB-gear img{animation:wandDouble36 36s ease-in-out 36s infinite !important}
body.hs-intro #hsSettings img,body.hs-intro .hsB-gear img{animation:wandIntro7 4.9s ease-in-out 0s 1,wandDouble36 36s ease-in-out 36s infinite !important}
@media (prefers-reduced-motion:reduce){ #hsSettings img,.hsB-gear img,body.hs-intro #hsSettings img,body.hs-intro .hsB-gear img{animation:none !important} }
/* S1 home title: a little closer to the star */
#homeScreen .hs-top > .hs-brand{margin-left:-10px !important}
@media (min-width:600px){ #homeScreen .hs-top > .hs-brand{margin-left:-14px !important} }
@media (min-width:600px){ #homeScreen .hs-top > .hs-brand{margin-left:-4px !important} }
@media (orientation:landscape) and (max-height:540px){ #homeScreen .hs-top > .hs-brand{margin-left:-4px !important} }

/* permission notice title: one line */
.perm-ask h2#permWho{white-space:nowrap;overflow:hidden;max-width:100%;letter-spacing:0}

/* permission notice: OK like the Save button — bigger letters, shorter buttons in the middle */
#permAsk #permOk{font-size:22px !important;width:auto !important;min-width:150px;padding-left:42px !important;padding-right:42px !important;align-self:center;margin-left:auto !important;margin-right:auto !important;display:block}
#permAsk #permLater{width:auto !important;min-width:150px;align-self:center;margin-left:auto !important;margin-right:auto !important;display:block}
@media (min-width:600px){ #permAsk #permOk{font-size:26px !important;min-width:190px} #permAsk #permLater{min-width:190px} }

/* permission notice OK: no focus glow, same height as the Save button */
#permAsk #permOk,#permAsk #permOk:focus,#permAsk #permOk:focus-visible{outline:none !important;box-shadow:none !important;-webkit-tap-highlight-color:transparent}
#permAsk #permOk{min-height:44px !important;height:44px !important}
@media (min-width:600px){ #permAsk #permOk{min-height:52px !important;height:52px !important} }
#permAsk #permOk::after,#permAsk #permOk:focus-visible::after{content:none !important;display:none !important}

/* "N photos waiting": soft glowing border (pulses gently) */
@keyframes pendGlow{0%,100%{box-shadow:0 0 0 4px rgba(143,192,106,.25),0 0 10px 2px rgba(143,192,106,.35),0 8px 22px rgba(0,0,0,.18)}50%{box-shadow:0 0 0 7px rgba(143,192,106,.45),0 0 26px 8px rgba(143,192,106,.75),0 8px 22px rgba(0,0,0,.18)}}
.pending-bar.on-say{animation:pendGlow 2s ease-in-out infinite}
.pending-bar.on-say.nudge{animation:pendNudge 1.2s ease-in-out 1,pendGlow 2s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){ .pending-bar.on-say,.pending-bar.on-say.nudge{animation:none} }

/* tag editor preview with no category: gray star, no letter */
#tePreview.no-code .tc{color:transparent !important;-webkit-text-stroke:0 !important;text-shadow:none !important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpolygon%20points%3D%2750.0%2C6.0%2063.5%2C33.4%2093.7%2C37.8%2071.9%2C59.1%2077.0%2C89.2%2050.0%2C75.0%2023.0%2C89.2%2028.1%2C59.1%206.3%2C37.8%2036.5%2C33.4%27%20fill%3D%27%23b0b0b0%27%20stroke%3D%27%23b0b0b0%27%20stroke-width%3D%277%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") center/contain no-repeat;min-width:1em}

/* tag editor preview with no category: gray star with its default letter in white (like the empty tags) */
#tePreview.no-code .tc{color:#fff !important;-webkit-text-stroke:0 !important;text-shadow:none !important;display:inline-flex !important;align-items:center;justify-content:center;min-width:0 !important;line-height:1 !important;box-sizing:border-box;flex:0 0 auto !important}

/* letter tags (no category of their own): gray star with the letter on every long tag */
.no-code .tc{color:transparent !important;-webkit-text-stroke:0 !important;text-shadow:none !important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpolygon%20points%3D%2750.0%2C6.0%2063.5%2C33.4%2093.7%2C37.8%2071.9%2C59.1%2077.0%2C89.2%2050.0%2C75.0%2023.0%2C89.2%2028.1%2C59.1%206.3%2C37.8%2036.5%2C33.4%27%20fill%3D%27%23b0b0b0%27%20stroke%3D%27%23b0b0b0%27%20stroke-width%3D%277%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") center/contain no-repeat;min-width:1em}
.no-code .tc{color:#fff !important;-webkit-text-stroke:0 !important;text-shadow:none !important;display:inline-flex !important;align-items:center;justify-content:center;min-width:0 !important;line-height:1 !important;box-sizing:border-box;flex:0 0 auto !important}
.vtag .vstar{display:inline-flex;height:1.9em;width:1.9em;flex:0 0 auto}.vtag .vstar svg{width:100%;height:100%}.vtag.on .vstar path{fill:#7fb35a;stroke:#7fb35a}

/* tag list: bigger star, bigger letter */
.tl-chip.star svg{height:68% !important;width:auto !important;aspect-ratio:34/33;margin:0 !important;display:block}
.tl-chip.star{display:flex !important;align-items:center;justify-content:center}
.tl-chip.star{color:#9a9a9a}
.tl-chip.star{color:#838383}

/* camera side tags: the selected tag is solid light green, its star the same green as its border with a white letter */
.lc .vtag.on{opacity:1 !important}
.vtag .vstar{height:1.7em !important;width:auto !important;aspect-ratio:34/33}
.vtag.on .vstar path{fill:#7fb35a !important;stroke:#7fb35a !important}

/* ===== camera extras ===== */
#lcAid,#lcCtl{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:3}
#lcCtl{z-index:5}
#lcAid .g{position:absolute;background:rgba(255,255,255,.55);box-shadow:0 0 1px rgba(0,0,0,.45)}
#lcAid .gv{top:0;bottom:0;width:1px} #lcAid .gh{left:0;right:0;height:1px}
.lca-mid{position:absolute;left:33.333%;top:33.333%;width:33.333%;height:33.333%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.lca-focus{position:relative;width:min(46%,26vmin,calc(var(--cellh,999px)*.48));aspect-ratio:1;filter:drop-shadow(0 0 1.5px rgba(0,0,0,.55))}
.lca-focus svg{width:100%;height:100%;display:block}
.lca-c2{position:absolute;left:50%;top:50%;width:30%;height:30%;border:max(2px,.05em) solid #fff;border-radius:50%;box-sizing:border-box;
  --off:0;transform:translate(calc(-50% + var(--off)*150%),calc(-50% + var(--off)*-95%));opacity:0;transition:opacity .25s,transform .16s linear}
#lcAid.blur .lca-c2{opacity:1}
.lca-c2{border-width:2.5px}
.lca-level{position:relative;flex:none;margin-top:calc(var(--fz,60px)*.18);width:var(--lw,120px);height:auto;aspect-ratio:100/30;overflow:visible;filter:drop-shadow(0 0 1.5px rgba(0,0,0,.55))}
.lca-beam{transform-origin:50px 10px;transform-box:view-box;transition:transform .12s linear}
#lcAid.level .lca-beam path{stroke:#8fc06a}
#lcAid.flat .lca-level{opacity:0}
.lca-col{position:absolute;left:10px;top:10px;display:flex;flex-direction:column;gap:10px;pointer-events:auto}
.lca-col .lc-round{position:relative !important;left:auto !important;top:auto !important;width:42px !important;height:42px !important;border-radius:21px !important;background:rgba(0,0,0,.42) !important;color:#fff !important;border:1.5px solid rgba(255,255,255,.75)}
.lca-col .lc-round svg{width:22px;height:22px}
.lca-col .lc-round.on{background:#8fc06a !important;border-color:#8fc06a;color:#fff !important}
.lca-col .lca-wb b{font:700 13px/1 var(--ss-hand,sans-serif);letter-spacing:.5px}
#lcTorch .slash{display:none} #lcTorch[data-mode="off"] .slash{display:inline}
#lcTorch i{position:absolute;right:-4px;bottom:-4px;font:700 10px/1 sans-serif;font-style:normal;background:#fff;color:#111;border-radius:7px;padding:2px 4px}
#lcTorch i:empty{display:none}
#lcTorch[data-mode="flash"].on,#lcTorch[data-mode="torch"].on{background:#ffd84a !important;border-color:#ffd84a;color:#111 !important}
.lca-lens{position:absolute;left:50%;top:10px;transform:translateX(-50%);display:flex;gap:6px;padding:4px;border-radius:999px;background:rgba(0,0,0,.38);pointer-events:auto}
.lca-lens[hidden]{display:none}
.lca-lens button{min-width:36px;height:36px;border-radius:18px;border:0;background:rgba(255,255,255,.18);color:#fff;font:700 14px/1 var(--ss-hand,sans-serif);padding:0 6px;cursor:pointer}
.lca-lens button.on{background:#fff;color:#2f5a1f;min-width:44px}
.lca-exp{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:40px;height:min(220px,62%);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:auto}
.lca-exp[hidden]{display:none}
.lca-exp svg{width:24px;height:24px;flex:none;filter:drop-shadow(0 0 1.5px rgba(0,0,0,.6));cursor:pointer}
.lca-exp.moved svg circle{fill:#ffd84a}
.lca-exp input{flex:1;min-height:0;width:28px;margin:0;writing-mode:vertical-lr;direction:rtl;accent-color:#fff;background:transparent;-webkit-appearance:slider-vertical}
.lca-tap{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;pointer-events:none;z-index:6;filter:drop-shadow(0 0 1.5px rgba(0,0,0,.55));animation:lcaTap 1.05s ease-out forwards}
@keyframes lcaTap{0%{transform:scale(1.5);opacity:0}15%{transform:scale(1);opacity:1}70%{opacity:1}100%{transform:scale(.9);opacity:0}}
/* dim screen: everything goes very dark, no white blink when a photo is taken */
.lc.lc-dim #lcFlash{display:none !important}

.lc{overflow:hidden}
#lcVideo{transform-origin:center center}

.lca-tap svg{width:100%;height:100%;display:block}
.lca-col .lc-round,.lca-dim{position:relative}
.lc .lca-dim{position:absolute !important;width:42px !important;height:42px !important;border-radius:21px !important;background:rgba(0,0,0,.42) !important;color:#fff !important;border:1.5px solid rgba(255,255,255,.75);z-index:41;display:grid;place-items:center;padding:0;top:auto;left:10px}
.lc .lca-dim svg{width:22px;height:22px}
.lc .lca-dim.on{background:#8fc06a !important;border-color:#8fc06a}
#lcShade{position:absolute;inset:0;background:rgba(0,0,0,.78);pointer-events:none;z-index:40;display:none}
.lc.lc-dim #lcShade{display:block}

/* tap to focus: small white circle (final choice) */
.lca-tap{width:56px !important;height:56px !important;margin:-28px 0 0 -28px !important;border:2px solid #fff;border-radius:50%;box-sizing:border-box}
.lca-tap svg{display:none}

/* lens buttons: more see-through, a little smaller */
.lca-lens{gap:4px !important;padding:3px !important;background:rgba(0,0,0,.18) !important}
.lca-lens button{min-width:30px !important;height:30px !important;border-radius:15px !important;font-size:12px !important;background:rgba(255,255,255,.12) !important;color:rgba(255,255,255,.95) !important;padding:0 5px !important}
.lca-lens button.on{min-width:38px !important;background:rgba(255,255,255,.62) !important;color:#2f5a1f !important}

/* round camera buttons: more see-through; chosen = light green outline + light green icon, no fill */
.lca-col .lc-round,.lc > .lca-dim{background:rgba(0,0,0,.18) !important;border:1.5px solid rgba(255,255,255,.55) !important}
.lca-col .lca-flip.on,.lca-col .lca-wb.on,.lc > .lca-dim.on{background:rgba(0,0,0,.18) !important;border:2px solid #8fc06a !important;color:#8fc06a !important}
.lca-col .lca-wb.on b{color:#8fc06a}

/* dim screen: darkness set by the little bar (default 65%) */
#lcShade{background:rgba(0,0,0,var(--dim,.65)) !important}
.lca-dimbar{position:absolute;z-index:42;transform:translateY(-50%);display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(0,0,0,.55);border:1.5px solid #8fc06a}
.lca-dimbar[hidden]{display:none}
.lca-dimbar input{width:150px;accent-color:#8fc06a;margin:0}
.lca-dimbar b{color:#8fc06a;font:700 13px/1 var(--ss-hand,sans-serif);min-width:34px;text-align:right}
/* grid lines a bit stronger */
#lcAid .g{background:rgba(255,255,255,.8) !important}

/* dim bar: white lines */
.lca-dimbar{border-color:#fff !important}
.lca-dimbar input{accent-color:#fff !important}
.lca-dimbar b{color:#fff !important}

/* camera switch: below the dim button, same look as the other round buttons */
.lc > .lca-flip{position:absolute !important;z-index:6;width:42px !important;height:42px !important;border-radius:21px !important;background:rgba(0,0,0,.18) !important;color:#fff !important;border:1.5px solid rgba(255,255,255,.55) !important;display:grid;place-items:center;padding:0}
.lc > .lca-flip[hidden]{display:none}
.lc > .lca-flip svg{width:22px;height:22px}
.lc > .lca-flip.on{border:2px solid #8fc06a !important;color:#8fc06a !important}

/* phone held sideways: smaller lens buttons */
@media (orientation:landscape) and (max-height:540px){
  .lca-lens{gap:3px !important;padding:2px !important}
  .lca-lens button{min-width:24px !important;height:24px !important;border-radius:12px !important;font-size:10px !important;padding:0 4px !important}
  .lca-lens button.on{min-width:30px !important}
}

/* grid lines 85% */
#lcAid .g{background:rgba(255,255,255,.85) !important}

/* WB letters a touch crisper */
.lca-col .lca-wb b{font-size:13.5px !important;font-weight:800 !important;text-shadow:0 0 1.5px rgba(0,0,0,.55)}
@media (orientation:landscape) and (max-height:540px){ .lca-col .lca-wb b{font-size:13px !important} }

/* login: the whole login picture fits on one screen (tablets too); help line a touch bigger */
@media (orientation:portrait),(min-height:600px){ #loginForm{max-width:min(600px,calc((100vh - 26px) * 1824 / 3840)) !important;max-width:min(600px,calc((100dvh - 26px) * 1824 / 3840)) !important} }  /* phone held sideways keeps the normal size (scrolls) so the password box stays readable */
#installHelp{font-size:clamp(7px,3.4cqw,19px) !important;white-space:nowrap}
.login-artwork > .support-note{font-size:clamp(6.5px,2.85cqw,14.5px) !important}
.login-artwork > .support-note .help-icon{width:1.7em !important;height:1.7em !important;flex-basis:1.7em !important}

/* contact window: a line under the two green buttons */
#contactOptions .contact-tap{margin:12px 0 2px;text-align:center;font:700 15px/1.3 var(--ss-hand,'Comic Neue'),'Chalkboard SE','Comic Sans MS',sans-serif;color:#555}

/* contact window: logo before the title; buttons and the tap line a bit lower */
#contactOptions h2{display:flex;align-items:center;justify-content:center;gap:10px}
#contactOptions .contact-logo{width:46px;height:46px;flex:none;border-radius:50%;-webkit-text-stroke:0}
#contactOptions h2 + .ss-primary{margin-top:18px}
#contactOptions .contact-tap{margin-top:16px}
#contactOptions h2{white-space:nowrap;font-size:clamp(16px,5.2vw,24px) !important;gap:8px}
#contactOptions .contact-logo{width:40px;height:40px}

/* contact window: logo in a square tile (like an app-bar tile), title without "Contact" */
#contactOptions .contact-tile{flex:none;width:48px;height:48px;border-radius:12px;background:#fff;border:1.5px solid #d9d9d9;box-shadow:0 1px 3px rgba(0,0,0,.12);display:grid;place-items:center;overflow:hidden;-webkit-text-stroke:0}
#contactOptions .contact-tile .contact-logo{width:44px;height:44px;border-radius:0}
#contactOptions h2{gap:12px;font-size:clamp(18px,6vw,26px) !important}

/* contact window: smaller box; buttons and the tap line sit lower, under the title */
#contactOptions{width:min(92%,360px) !important;max-width:360px !important;padding:18px 18px 12px !important;gap:10px !important}
#contactOptions h2 + .ss-primary{margin-top:26px !important}
#contactOptions .contact-tap{margin:8px 0 0 !important}

/* contact window: logo + name a little lower; whole logo fits inside its tile */
#contactOptions{padding-top:28px !important}
#contactOptions .contact-tile{width:50px !important;height:50px !important;padding:4px;box-sizing:border-box}
#contactOptions .contact-tile .contact-logo{width:100% !important;height:100% !important;object-fit:contain}
#contactOptions .contact-tile .contact-logo{margin:0 !important;max-width:100%;max-height:100%}

/* contact window: bigger logo tile; name in the logo colours (blue TUTOR, yellow JENNY K, dark outline) */
#contactOptions .contact-tile{width:66px !important;height:66px !important;border-radius:15px !important;padding:5px !important}
#contactOptions h2{font-size:clamp(20px,6.6vw,28px) !important;gap:12px !important}
#contactOptions .ct-blue{color:#0087ff;-webkit-text-stroke:1.6px #082140;paint-order:stroke fill}
#contactOptions .ct-yellow{color:#ffd50f;-webkit-text-stroke:1.6px #082140;paint-order:stroke fill}
#contactOptions .ct-name{letter-spacing:.3px}
#contactOptions .ct-blue,#contactOptions .ct-yellow{-webkit-text-stroke:2.6px #082140 !important;paint-order:stroke fill !important}
#contactOptions .ct-name{letter-spacing:.8px}

/* name styled like the logo: heavy letters, blue / yellow-to-orange, dark outline + small dark shadow */
#contactOptions .ct-name{font-weight:700;letter-spacing:.6px;filter:drop-shadow(1.5px 2px 0 #082140)}
#contactOptions .ct-yellow{background:linear-gradient(#fff36b 0%,#ffd50f 45%,#ffb000 100%);-webkit-background-clip:text;background-clip:text;color:transparent !important}
#contactOptions .ct-blue{background:linear-gradient(#36a3ff 0%,#0087ff 55%,#006ad6 100%);-webkit-background-clip:text;background-clip:text;color:transparent !important}

/* contact window: name in a heavy round font like the book logo (Poppins Bold, in the app), thick dark outline + small drop */
@font-face{font-family:'TJK Logo';src:url('Poppins-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
#contactOptions .ct-name{font-family:'TJK Logo',sans-serif !important;font-weight:700;letter-spacing:.2px !important;line-height:1}
#contactOptions .ct-blue,#contactOptions .ct-yellow{-webkit-text-stroke:5px #082140 !important;paint-order:stroke fill !important;text-shadow:0 2.5px 0 #082140}
#contactOptions .ct-blue{color:#1a8cff !important}
#contactOptions .ct-yellow{color:#ffd21a !important}
#contactOptions h2{font-size:clamp(20px,6.4vw,27px) !important}
#contactOptions .ct-blue,#contactOptions .ct-yellow{-webkit-text-stroke:4px #082140 !important;text-shadow:0 2px 0 #082140 !important}
#contactOptions .ct-name{letter-spacing:1.3px !important;word-spacing:4px;filter:none !important}

/* contact name: Fredoka (the book logo's font). Loaded from Google Fonts when online; Poppins Bold (in the app) when offline */
#contactOptions .ct-name{font-family:'Fredoka','TJK Logo',sans-serif !important;font-weight:700 !important;letter-spacing:.6px !important}

/* Fredoka (the book logo's font) is inside the app now: works offline too */
@font-face{font-family:'Fredoka';src:url('Fredoka.ttf') format('truetype');font-weight:300 700;font-stretch:75% 125%;font-display:swap}

/* contact window B: logo (no own tile) + name together in one white tile; tile a bit lower, closer to the buttons; tap line in black */
#contactOptions h2{display:flex !important;width:max-content;max-width:100%;margin:10px auto 0 !important;padding:8px 16px 8px 10px;border-radius:16px;background:#fff;border:1.5px solid #d9d9d9;box-shadow:0 1px 4px rgba(0,0,0,.12)}
#contactOptions .contact-tile{border:0 !important;box-shadow:none !important;background:transparent !important;padding:0 !important;width:56px !important;height:56px !important}
#contactOptions h2 + .ss-primary{margin-top:16px !important}
#contactOptions .contact-tap{color:#111 !important}

/* tap line: crisper */
#contactOptions .contact-tap{font-weight:700 !important;-webkit-text-stroke:.5px #111;paint-order:stroke fill;font-size:15.5px !important}

/* less empty space above the logo tile */
#contactOptions{padding-top:16px !important}
#contactOptions h2{margin-top:0 !important}

/* "Tap a button." in the same green as the green buttons' border */
#contactOptions .contact-tap .ct-tapword{color:#84966d !important;-webkit-text-stroke-color:#84966d !important}

/* "Tap a button." darker green (easier to read) */
#contactOptions .contact-tap .ct-tapword{color:#5b7a35 !important;-webkit-text-stroke-color:#5b7a35 !important}

/* login shortcut: hidden star a little further right */
#nameSwipe .ns-star{left:14% !important}

/* login shortcut: star and message hidden further in (16% each) */
#nameSwipe .ns-star{left:16% !important}
#nameSwipeMsg{right:16% !important}

/* photo size: "· 1200 px" / "· 2400 px" sit closer to their names */
#sizeOpts .sz-pick b + .sz-px{margin-left:-3px}

/* broom tag row at the end of the tag list (Clear all tags) */
.tl-clearrow{margin-top:6px}
.tl-clearrow .tl-clearimg{height:40px;width:auto;flex:none;display:block}

/* "Clear all tags" row: border hugs the picture + words, centred */
#longTags .tl-clearrow{width:max-content !important;max-width:100%;margin:8px auto 2px !important;padding:6px 14px 6px 8px !important;gap:10px !important;align-self:center}
#longTags .tl-clearrow{padding:8px 14px !important;justify-content:center !important;align-items:center !important}
#longTags .tl-clearrow .tl-addtxt{line-height:1;display:flex;align-items:center;margin:0 !important;padding:0 !important}
#longTags .tl-clearrow .tl-clearimg{margin:0 !important}

/* tag list: star fits inside the tag shape (the shape is 106×28 inside its box) */
.tl-chip.star svg{height:23px !important;width:auto !important}
/* selected letter tag: star in the same light green as the row's border */
.tl-row.on .tl-chip.star{color:#a8cc88 !important}
/* "Clear all tags" sits centred under the whole list (tablets show tags in 2 columns) */
#longTags .tl-clearrow{grid-column:1 / -1;justify-self:center}

/* selected letter tag: star one step darker green */
.tl-row.on .tl-chip.star{color:#8fc06a !important}
/* tag sheet × : crisper */
#tagSheet #closeSheet{color:#111 !important;font-weight:600 !important;font-size:32px !important;-webkit-text-stroke:.8px #111}

/* camera + tag list: taps react at once (no double-tap zoom wait) */
.lc button,.lc .stub,.lc .vtag,.lc input,#tagSheet button,#tagSheet .tl-row,.ticket .stub{touch-action:manipulation}

/* tag editor: Save in the middle of its line (the Quick Tags checkbox, when shown, sits on its own line above) */
.te-row{flex-wrap:wrap !important;justify-content:center !important}
.te-row .ss-check:not([hidden]){flex:1 1 100% !important}
.te-row .te-save{margin:0 auto !important}

/* Add to Quick Tags: always shown; ticked and faded when the tag is in Quick Tags already */
#teRecent.auto{opacity:.4;pointer-events:none}
/* wide screens: the form spans the whole editor so Save sits in the middle of the screen */
@media (min-width:640px){ .te[open] #editTag{grid-column:1/-1} .te[open] .te-row{width:100%} }
#tePreview{transform:translateX(calc(var(--tp,0px) * -1))}
/* editor title in the middle of the screen, Delete left, × right */
.te-head{position:relative}
.te-head > #teTitle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0 !important;white-space:nowrap;pointer-events:none}
.te-head > .te-x{margin-left:auto}
.te-head > .te-del{margin-left:0 !important;margin-right:0 !important}

/* camera helpers can be turned off in Settings */
.lc.no-focushelp .lca-c2{display:none !important}
.lc.no-level .lca-level{display:none !important}
#camHelpers .cam-opt{display:flex;align-items:center;gap:8px;margin:4px 0;font:700 16px var(--ss-hand)}

/* grid lines a little softer */
#lcAid .g{background:rgba(255,255,255,.6) !important;box-shadow:0 0 1px rgba(0,0,0,.3) !important}
.lca-c2{border-width:1.8px !important}
.lca-c2{border-width:1.3px !important}
.lca-tap{border-width:1.5px !important}

/* camera screen: gray letter stars darker (side tags and the long tag) */


/* brightness bar: the white part and the round knob a touch darker */
.lca-exp input{accent-color:#d4d4d4 !important}

/* v3.45: focus frame + circle thinner */
.lca-c2{border-width:1px !important}
.lca-tap{border-width:1.1px !important}

/* v3.47: gear lines always white; auto: on a light scene a dark glow appears behind it so it still shows */
.lc-gear img{filter:drop-shadow(0 0 2px rgba(0,0,0,.35)) !important}
.lc-gear.on-light img{filter:drop-shadow(0 0 1.5px rgba(0,0,0,.75)) drop-shadow(0 0 4px rgba(0,0,0,.45)) !important}

/* v3.48: save-location line in the tag editor hidden (shown elsewhere) */
#teFile{display:none !important}

/* v3.49: wand in the sheet header (Settings open) */
#tagSheet #gear.is-wand img{transform-origin:18% 85%;animation:wandWiggle 3.2s ease-in-out infinite}
#tagSheet #gear.is-wand:active img{transform:none}

/* v3.50: Focus circles off → the whole focus frame (brackets + centre circle) is hidden too */
.lc.no-focushelp .lca-focus{display:none !important}

/* v3.52: phone sideways — wand tag at the end of the side tags is short and lined up on the right */
.lc.lc-side .tk-tags .vtag.plus.endwand{align-self:flex-end !important;margin-left:auto !important}
.lc.lc-side .tk-tags .vtag.plus.endwand img{margin-left:22% !important;height:66% !important}
/* brightness bar: light grey sparkle on top (no yellow) */
.lca-exp.moved svg circle{fill:#d4d4d4}
.lca-exp svg{width:22px;height:22px}

/* v3.57: phone sideways camera — the star in the tag at the bottom middle is darker */
.lc.lc-side:not(.lc-big) #lcChip.no-code .tc{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpolygon%20points%3D%2750.0%2C6.0%2063.5%2C33.4%2093.7%2C37.8%2071.9%2C59.1%2077.0%2C89.2%2050.0%2C75.0%2023.0%2C89.2%2028.1%2C59.1%206.3%2C37.8%2036.5%2C33.4%27%20fill%3D%27%23707070%27%20stroke%3D%27%23707070%27%20stroke-width%3D%277%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") center/contain no-repeat !important}

/* v3.58: phone sideways — bottom long tag hidden until the green side tag is swiped left; swipe it right to hide */
.lc.lc-side:not(.lc-big) #lcTags .vtag.on{touch-action:pan-y}
.lc.lc-side:not(.lc-big) #lcChip{touch-action:pan-y;transition:opacity .22s ease,translate .22s ease}
.lc.lc-side:not(.lc-big):not(.chip-on) #lcChip{opacity:0 !important;visibility:hidden;pointer-events:none;translate:40px 0}

/* v3.65: Settings shows where photos go */
#location.loc-path{font-weight:700;color:#5b7a35;word-break:break-word;margin:4px 0 10px}

/* v3.66: where-should-photos-go choice */
#folderWhere h2{margin:6px 0 16px;text-align:center}
#folderWhere .ss-block{margin:8px auto;display:block}
#folderWhere .fw-alt{font-family:"Comic Neue","Chalkboard SE","Comic Sans MS",ui-rounded,system-ui !important;background:#fff;border:2px solid #b9b9b9;border-radius:999px;padding:12px 18px;font-size:inherit;font-weight:700;color:#333}

/* v3.68: folder place icons (Phone / SD card / Google Drive) */
#folderKind h2{margin:6px 0 2px;text-align:center}
#folderKind .fk-name{text-align:center;color:#5b7a35;font-size:1.1em;margin:0 0 16px}
#folderKind .fk-ops{display:flex;gap:10px;justify-content:center;margin-bottom:18px}
#folderKind .fk-op{flex:1 1 0;max-width:110px;aspect-ratio:1/1.05;border:2.5px solid #bdbdbd;border-radius:18px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:15px;color:#333;padding:6px}
#folderKind .fk-op svg{width:42px;height:42px;color:#444}
#folderKind .fk-op.on{border-color:#8fc06a;background:#eef6e6;color:#2f4d1c}
#folderKind .fk-op.on svg{color:#4f7a2c}
#folderKind #fkOk:disabled{opacity:.45}
#location.loc-path{display:flex;flex-direction:column;gap:6px;color:#333;font-weight:400}
#location .loc-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#location .loc-chip{display:inline-flex;align-items:center;gap:5px;border:2px solid #8fc06a;background:#eef6e6;border-radius:999px;padding:3px 10px 3px 6px;font:inherit;font-size:15px;color:#2f4d1c}
#location .loc-chip svg{width:22px;height:22px;color:#4f7a2c}
#location .loc-chip.unset{border-color:#bdbdbd;background:#fff;color:#777;padding:3px 10px}
#location .loc-row b{font-size:1.05em;color:#222;word-break:break-word}
#folderKind .fk-op,#location .loc-chip{font-family:"Comic Neue","Chalkboard SE","Comic Sans MS",ui-rounded,system-ui !important;font-weight:700}

/* v3.69: why photos are waiting (under the count) */
#pendingBar:has(.pending-why:not([hidden])){display:grid !important;grid-template-columns:1fr auto;column-gap:14px;max-width:min(92vw,560px)}
#pendingBar .pending-why{grid-column:1/-1;font-size:13px;line-height:1.3;color:#8a4a2b;text-align:center;margin-top:6px;white-space:normal}

/* v3.7: phone sideways, Say Cheese home: no names line and no "?" note — just the email bar at the bottom */
@media (orientation:landscape) and (max-height:540px){ body.home-mode #homeScreen .hs-names, body.home-mode #homeScreen .hs-help{display:none !important} }
