/* The Private screen (205-B1): the shared parts live in /app.css (tokens only; Plain and Large & clear come from data-theme). */
body.privscreen { margin: 0; min-height: 100dvh; padding-top: var(--safe-t); }
.privscreen button, .privscreen input, .privscreen textarea { font: inherit; color: inherit; }
.privscreen button { background: none; border: 0; padding: 0; margin: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.apphd .seg button.on { background: var(--seg-on); color: var(--seg-on-ink); font-weight: 700; box-shadow: inset 0 0 0 var(--line-w) var(--seg-ring), var(--lift); border-radius: calc(var(--r-sm) - 2px); }
.apphd .seg > * { min-height: var(--tap); }
.apphd .seg button { min-height: var(--tap); font-weight: 500; }
.gear svg.i { width: calc(var(--icon) + .125rem); height: calc(var(--icon) + .125rem); }
.findrow { display: flex; align-items: center; gap: var(--s-1); padding-right: var(--edge); }
.findrow .find { flex: 1; margin-right: 0; }
.findrow .find input { flex: 1; min-width: 0; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; outline: none; font-size: max(16px, var(--t-body)); color: var(--ink); }
.findrow .find input::placeholder { color: var(--muted); opacity: 1; }
.findrow [hidden], .netline[hidden] { display: none; }
.netline { display: flex; align-items: center; gap: var(--s-2); margin: 0 var(--edge) var(--s-2); color: var(--muted); font-size: var(--t-small); }
.netline svg.i { width: var(--icon-sm); height: var(--icon-sm); }
/* the list ends clear of the band: 130 px, 150 in Large & clear */
.inv { padding-bottom: 130px; }
[data-theme="large"] .inv { padding-bottom: 150px; }
.band { position: fixed; left: 0; right: 0; bottom: 0; height: 112px; z-index: 5; pointer-events: none; background: linear-gradient(transparent, var(--bg) 42%); }
[data-theme="large"] .band { height: 128px; }
.it > button.open { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; border-radius: inherit; }
.it .ring-wrap { bottom: 7px; top: auto; z-index: 2; }
[data-theme="large"] .it .ring-wrap { bottom: var(--s-2); }
.ring-wrap.wait { color: var(--on-photo); }
.ring-wrap.wait svg.i { width: 1.125rem; height: 1.125rem; stroke-width: 2; }
.it .fail { position: absolute; left: var(--s-2); right: var(--s-2); bottom: var(--s-2); z-index: 3; min-height: var(--tap); border-radius: var(--s-3); background: var(--badge); color: var(--bad);
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); font-weight: var(--w-label); font-size: var(--t-small); }
.it .fail svg.i { width: var(--icon-sm); height: var(--icon-sm); }
.it.note b { display: block; font-size: var(--t-small); margin-bottom: var(--s-1); }
.it.note .ext { font-weight: 700; font-size: var(--t-lead); }
.fold { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--tap); border-top: var(--line-w) solid var(--line); font-size: var(--t-body); color: var(--ink); text-align: left; }
.fold .n { color: var(--muted); font-size: var(--t-small); }
.fold svg.i { margin-left: auto; }
.more { display: block; width: 100%; min-height: var(--tap); color: var(--accent); font-weight: var(--w-label); }
.emptyslots { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); margin-top: var(--s-3); }
.emptyslots i { aspect-ratio: 1; border-radius: var(--r); border: 2px dashed var(--line); }
[data-theme="large"] .emptyslots i { aspect-ratio: auto; height: 7.25rem; }
.emptyline { margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--t-body); }
/* the tray over Photo and +: only what is live (Note, File) */
.tray { position: fixed; left: 50%; bottom: calc(7rem + var(--safe-b)); transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; inline-size: min(17rem, calc(100vw - 2 * var(--edge)));
  max-block-size: calc(100dvh - 10rem); overflow-y: auto; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-float); }   /* 2462: one list of words inside the screen at any size and in any language */
[data-theme="large"] .tray { bottom: calc(8rem + var(--safe-b)); }
.tray button { flex: none; min-height: var(--btn); padding: var(--s-2) var(--s-4); color: var(--ink); text-align: start; font-weight: 500; font-size: var(--t-lead); overflow-wrap: anywhere; border-top: 1px solid var(--line); }
.tray.pub > .pubonly ~ .pubonly, .tray:not(.pub) > .privonly ~ .privonly { border-top: 1px solid var(--line); }
.tray.pub > .pubonly:not(.pubonly ~ .pubonly), .tray:not(.pub) > .privonly:not(.privonly ~ .privonly) { border-top: 0; }
.scrim { position: fixed; inset: 0; z-index: 6; background: var(--scrim); }
.scrim[hidden], .tray[hidden], .sheet[hidden], .itemv[hidden] { display: none; }
.duo .plus[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--bg); color: var(--ink); border-radius: 1.125rem 1.125rem 0 0; padding: var(--s-3) var(--edge) calc(var(--s-5) + var(--safe-b)); box-shadow: var(--shadow-float); }
.sheet h2 { font: 700 var(--t-lead)/1.2 var(--ui) !important; color: var(--ink) !important; margin: 0 0 var(--s-2) !important; }   /* beats app.css h2 (1575) */
.sheet textarea { background: var(--surface) !important; display: block; width: 100%; box-sizing: border-box; min-height: 7.5rem; padding: var(--s-3); border-radius: var(--r-sm); border: 0; background: var(--surface); color: var(--ink); resize: none; outline: none;
  box-shadow: inset 0 0 0 var(--line-w) var(--line); font-size: max(16px, var(--t-body)); line-height: 1.35; }
.sheet .two { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.sheet .big { flex: 1; min-height: var(--btn); border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: var(--t-lead); }
/* an item, full size */
.itemv { position: fixed; inset: 0; z-index: 10; background: var(--bg); overflow-y: auto; padding-top: var(--safe-t); padding-bottom: calc(var(--s-5) + var(--safe-b)); }
.itemv .viewer { display: block; width: 100%; background: var(--surface-2); }
.itemv .viewer img, .itemv .viewer video { display: block; width: 100%; height: auto; max-height: 78dvh; object-fit: contain; }
.itemv .body { padding: var(--s-3) var(--edge); font-size: var(--t-lead); line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.itemv .facts { padding: var(--s-2) var(--edge); }
.itemv .facts h2 { margin: 0 0 var(--s-2); font: 700 var(--t-lead)/1.25 var(--ui); overflow-wrap: anywhere; }
.itemv .facts p { display: flex; align-items: center; gap: var(--s-2); margin: 0; min-height: var(--s-5); color: var(--muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.itemv .facts p svg.i { width: var(--icon-sm); height: var(--icon-sm); flex: none; }
.itemv .facts a { color: var(--sel); text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); display: inline-flex; align-items: center; }
.itemv .hdr { display: flex; align-items: center; min-height: var(--btn); padding: 0 var(--s-2); }
.itemv .hdr .ab-back { border: 0; padding: 0 10px; cursor: pointer; }   /* 1442: the same red ‹ back as every page's bar (appbar.css) */

.it { box-sizing: border-box; }
.itemv .acts { display: flex; gap: var(--s-2); padding: var(--s-2) var(--edge); }
.itemv .acts button { flex: 1; flex-direction: column; gap: 4px; display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn); border-radius: var(--r); font: 700 var(--t-body)/1 var(--ui); background: none; color: var(--ink); border: var(--line-w) solid var(--line); }
.itemv .acts button.main { flex: 1.4; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.itemv .acts button.drop { color: var(--bad); }
.itemv .acts svg.i { width: var(--icon); height: var(--icon); }
.itemv .acts a { flex: 1; min-height: var(--btn); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); font-weight: 700; font-size: var(--t-lead); text-decoration: none; border: var(--line-w) solid var(--line); color: var(--ink); }
.itemv .acts a.big { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* a guest added photos to a shared page (the old Pin's arrival row) */
.arrivals { display: grid; gap: var(--s-2); margin: 0 var(--edge) var(--s-2); }
.arrivals[hidden] { display: none; }
.arrived { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; border: 1.5px solid var(--accent); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.arrived img { width: 48px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; background: var(--line); }
.arrived span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.arrived b { color: var(--accent); font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.arrived small { color: var(--muted); font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrived svg.i { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* select (205-B2): a circle on every tile (48 px hit), the count and Done on top, the bar in the Photo + + place */
.it .pk { position: absolute; top: 0; right: 0; width: 48px; height: 48px; z-index: 2; display: grid; place-items: center; }
.it .pk i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--on-photo); background: var(--ring-ground); display: grid; place-items: center; color: var(--accent-ink); }
.it .pk svg.i { width: 16px; height: 16px; opacity: 0; stroke-width: 3; }
.it.on { outline: 3px solid var(--accent); outline-offset: -3px; }
.it.on .pk i { background: var(--accent); border-color: var(--accent); }
.it.on .pk svg.i { opacity: 1; }
.selhd { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--s-2) + var(--safe-t)) var(--edge) var(--s-2); background: var(--bg); border-bottom: var(--line-w) solid var(--line); font: 700 var(--t-lead)/1.2 var(--ui); color: var(--ink); }
.selhd button { min-height: var(--tap); min-width: var(--tap); color: var(--accent); font: 600 var(--t-lead)/1 var(--ui); }
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: var(--s-2); align-items: stretch; padding: var(--s-2) var(--edge) calc(var(--s-3) + var(--safe-b)); background: var(--bg); border-top: var(--line-w) solid var(--line); }
.selbar button { min-height: var(--btn); min-width: 0; padding: 0 var(--s-1); flex: 1; border-radius: var(--r); color: var(--ink); font: 600 var(--t-body)/1 var(--ui); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); }
.selbar button svg.i { width: var(--icon); height: var(--icon); }
.selbar .main { background: var(--accent); color: var(--accent-ink); flex: 1.4; }
.selbar .drop { color: var(--bad); }
.selbar button { max-width: 10rem; }
.selbar .drop { margin-inline-start: auto; }
.selbar .bin { flex: 0 0 var(--btn); }
.selbar .bin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 900px) { .selbar { justify-content: center; } }
body.selecting .duo, body.selecting .band, body.selecting .tray { display: none; }
.toast { position: fixed; left: var(--edge); right: var(--edge); bottom: calc(7.5rem + var(--safe-b)); z-index: 70; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: var(--s-3); background: var(--ink); color: var(--bg); border-radius: var(--r); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3); font: 600 var(--t-body)/1.3 var(--ui); box-shadow: var(--shadow-float); }
.toast span { flex: 1; }
.toast button { min-height: var(--tap); padding: 0 var(--s-3); color: inherit; font-weight: 700; text-decoration: underline; }
html:has(body.selecting) { scroll-padding-top: calc(4.5rem + var(--safe-t, 0px)); }
body.selecting { padding-top: calc(4.5rem + var(--safe-t, 0px)); }   /* 2000: the fixed count bar never lies over the first notice or row */
body.selecting .toast { bottom: calc(6rem + var(--safe-b)); }
a.txt { text-decoration: none; }

/* Public (205-B8): grouped by source and series, counts on each tile, the + sheet, Connect a gallery */
.duo.pub .cam { display: none; }
.duo.pub { justify-content: center; }
.tray .pubonly { display: none; }
.tray.pub .pubonly { display: block; }
.tray.pub .privonly { display: none; }
/* 685: Who's looking, one quiet row on top of Public */
.lookrow { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; margin: var(--s-3) 0 0; padding: 0 var(--s-3) 0 var(--s-4); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: var(--t-body); text-decoration: none; }
.lookrow span { flex: 1; min-width: 0; }
.lookrow svg.i { width: 18px; height: 18px; flex: none; color: var(--muted); }
.lookrow small { flex: none; color: var(--muted); font-size: var(--t-small); }   /* 1694: the Coming up row: how many posts wait */
.srch { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-4) var(--edge) var(--s-2); }
.srch .av { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 var(--t-body)/1 var(--ui); font-style: normal; flex: none; }
.srch div { flex: 1; min-width: 0; }
.pagerow { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0 var(--edge) var(--s-3); text-decoration: none; font: 600 var(--t-body)/1.2 var(--ui); color: var(--accent); }   /* 2582 */
.pagerow.go { border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); }
.srch b { display: block; font: 700 var(--t-lead)/1.2 var(--ui); overflow-wrap: anywhere; }
.srch small { color: var(--muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.srch .up { color: var(--muted); font-size: var(--t-small); }
/* 699: Your series, the first group in Public (moved from Settings): cover, title, line, then Show/Hide first and largest */
.myser .serrow { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--edge); border-top: var(--line-w) solid var(--line); align-items: start; }   /* 2958: the page edge, as the title above */
.myser .serrow > img, .myser .serrow > i { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.myser .sertx { min-width: 0; }
.myser .sertx b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.myser .sertx small { color: var(--muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.myser .seracts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); }
.myser .seracts a, .myser .seracts button { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--ink); font: inherit; font-size: var(--t-body); text-decoration: none; background: none; border: 0; padding: 0; }
.myser .seracts .sermain { padding: 0 var(--s-4); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.myser .seracts .sermain.off { background: var(--surface-2); color: var(--ink); }
.myser .seracts .serdel { color: var(--bad); }
.myser .state-on { color: var(--ok); } .myser .state-off { color: var(--muted); }
[data-theme="large"] .myser .serrow { grid-template-columns: 56px 1fr; }
[data-theme="large"] .myser .serrow > img, [data-theme="large"] .myser .serrow > i { width: 56px; height: 56px; }
.stats { position: absolute; left: var(--s-2); bottom: var(--s-2); right: 3.5rem; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--s-1); pointer-events: none; }
.stat { color: var(--on-photo); font-size: var(--t-small); font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 12px rgba(0,0,0,.45); }   /* 2462 (owner note 107): words on the photo, no pill, no icon */
.stat.new { padding: 1px var(--s-2); border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-shadow: none; }
#connectsheet .lbl { display: block; color: var(--muted); font-size: var(--t-small); margin: var(--s-2) 0 var(--s-1); }
#connectsheet input { display: block; width: 100%; box-sizing: border-box; min-height: var(--btn); padding: 0 var(--s-3); border-radius: var(--r-sm); border: 0; background: var(--surface); box-shadow: inset 0 0 0 var(--line-w) var(--line); font-size: max(16px, var(--t-body)); }
#connectsheet .alt { display: block; width: 100%; min-height: var(--btn); margin-top: var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); font-weight: 700; font-size: var(--t-body); }
#connectsheet .cnmsg { min-height: 1.25rem; margin: var(--s-2) 0 0; color: var(--muted); font-size: var(--t-small); }
#connectsheet .srcs { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--t-small); }
.selbar button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selbar.five { gap: var(--s-1); }
.selbar.five .main { flex: 1; }
.selbar.five button { padding: 0; }
.selbar.five button span { font-size: var(--t-small); }
@media (max-width: 400px) { .selbar.five { padding-inline: var(--s-2); } .selbar.five .drop { flex: 0 0 var(--btn); } .selbar.five .drop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.makev { position: fixed; inset: 0; z-index: 80; background: var(--bg); color: var(--ink); overflow: auto; padding: var(--s-3) var(--edge) calc(var(--s-4) + var(--safe-b)); }
.makev video { display: block; width: 100%; max-height: 60vh; border-radius: var(--r); background: #000; }
.makev .acts { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.makev .acts button { flex: 1; min-height: var(--btn); border-radius: var(--r); color: var(--ink); font: 600 var(--t-body)/1 var(--ui); display: flex; align-items: center; justify-content: center; gap: var(--s-2); }
.makev .acts .main { background: var(--accent); color: var(--accent-ink); }

/* 694: several kept photos into one post - the red line at an 11th pick, Posted on a tile, the Post sheet and its result rows */
.selhd { flex-wrap: wrap; }
.selhd .overline { flex: 1 0 100%; box-sizing: border-box; margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font: 700 var(--t-body)/1.3 var(--ui); }
.it.nosel { box-shadow: 0 0 0 3px var(--bad); }
.it .posted { position: absolute; left: var(--s-2); bottom: var(--s-2); z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px var(--s-2); border-radius: 999px; background: var(--badge); color: var(--badge-ink); font: 600 var(--t-small)/1.3 var(--ui); pointer-events: none; }
.it .posted svg.i { width: var(--icon-sm); height: var(--icon-sm); stroke-width: 3; }
.pmsheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 92dvh; overflow-y: auto; box-sizing: border-box; border: 0; border-radius: 1.125rem 1.125rem 0 0;
  background: var(--bg); color: var(--ink); padding: var(--s-3) var(--edge) calc(var(--s-4) + var(--safe-b)); box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: var(--s-3); }
.pmsheet:not([open]) { display: none; }
.pmsheet::backdrop { background: var(--scrim); }
.pmsheet svg.i { width: var(--icon); height: var(--icon); }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.pm-h { margin: 0; font: 700 var(--t-lead)/1.2 var(--ui); }
.pmsheet .pm-x { min-width: var(--tap); min-height: var(--tap); display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); }
.pm-strip { --sz: 4rem; display: flex; flex-wrap: wrap; gap: var(--s-2); }   /* 5 in a row at 390 px, 4 in Large & clear */
[data-theme="large"] .pm-strip { --sz: 4.5rem; }
.pmsheet .pm-s { position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.pm-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-s.cover { box-shadow: 0 0 0 3px var(--accent); }
.pm-s .pm-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; text-align: center; background: var(--accent); color: var(--accent-ink); font: 700 var(--t-tiny)/1.3 var(--ui); }
.pm-hint { margin: calc(-1 * var(--s-1)) 0 0; color: var(--muted); font-size: var(--t-small); }
.pm-words { display: block; width: 100%; box-sizing: border-box; min-height: var(--btn); padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 var(--line-w) var(--line); font: 500 max(16px, var(--t-body))/1.3 var(--ui); outline: none; }
.pm-words:focus-visible { box-shadow: inset 0 0 0 2px var(--sel); }
.pm-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pmsheet .pm-c { min-height: var(--tap); padding: var(--s-1) var(--s-3); border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 var(--line-w) var(--line); display: inline-flex; align-items: center; gap: var(--s-2);
  font: 600 var(--t-small)/1.2 var(--ui); text-align: start; box-sizing: border-box; }
.pmsheet .pm-c small { font-weight: 500; font-size: var(--t-tiny); color: var(--muted); }
.pmsheet .pm-c .pm-box { width: 1.25rem; height: 1.25rem; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; flex: none; }
.pmsheet .pm-c .pm-box svg.i { width: .875rem; height: .875rem; stroke-width: 3.4; opacity: 0; }
.pmsheet .pm-c.on { box-shadow: inset 0 0 0 2px var(--sel); }
.pmsheet .pm-c.on .pm-box { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.pmsheet .pm-c.on .pm-box svg.i { opacity: 1; }
.pmsheet .pm-go { min-height: var(--btn); width: 100%; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: 700 var(--t-body)/1 var(--ui); display: flex; align-items: center; justify-content: center; gap: var(--s-2); }
.pmsheet .pm-alt { min-height: var(--btn); width: 100%; border-radius: var(--r); background: var(--surface-2); font: 700 var(--t-body)/1 var(--ui); display: flex; align-items: center; justify-content: center; gap: var(--s-2); }
.pm-res { display: flex; flex-direction: column; gap: var(--s-2); }
.pm-r { display: flex; align-items: center; gap: var(--s-3); min-height: var(--btn); padding: var(--s-1) var(--s-3); border-radius: var(--r-sm); background: var(--surface); box-sizing: border-box; }
.pm-r > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pm-r b { font: 650 var(--t-body)/1.2 var(--ui); }
.pm-r small { color: var(--muted); font: 600 var(--t-small)/1.2 var(--ui); }
.pm-r .pm-ok { color: var(--sel); display: grid; }
.pm-r .pm-wait { color: var(--muted); display: grid; }
.pmsheet .pm-r .pm-try { min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font: 700 var(--t-small)/1 var(--ui); }
.pm-ring { width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--sel); animation: pm-spin 1s linear infinite; box-sizing: border-box; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pm-ring { animation: none; } }
.pm-line { margin: 0; color: var(--muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.pm-line a { color: inherit; text-decoration: none; display: inline-block; min-height: var(--tap); line-height: var(--tap); }
.pm-line b { color: var(--ink); }

.askname { position: fixed; left: var(--edge); right: var(--edge); bottom: calc(7.5rem + var(--safe-b)); z-index: 71; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-2); background: var(--bg); color: var(--ink); border: var(--line-w) solid var(--line); border-radius: var(--r); padding: var(--s-3); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.askname label { font-weight: 700; }
.askname input { min-height: var(--btn); font-size: 16px; padding: 0 var(--s-2); border: var(--line-w) solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.askname .main { min-height: var(--btn); border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.askname .txt { min-height: var(--tap); color: var(--muted); }
/* 1575: the birthday/graduation sheet stacked - heading, one price line, the kind switch (the shared .seg), name, date, Make.
   app.css styles every h2, label and input with !important; the .small class there is a grey button, so the notes are .bdnote. */
#bdsheet { max-width: 34rem; margin-inline: auto; max-height: 92dvh; overflow-y: auto; box-sizing: border-box; }
#bdsheet .bdnote { margin: 0 0 var(--s-3); color: var(--muted); font-size: var(--t-small); }
#bdsheet #bd-echo { margin: var(--s-1) 0 0; min-height: 1.25rem; }
#bdsheet .bdkind { flex: none; max-width: none; margin: 0 0 var(--s-3); }
#bdsheet .bdkind[hidden] { display: none; }
#bdsheet .bdkind button[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-ink); font-weight: 700; box-shadow: inset 0 0 0 var(--line-w) var(--seg-ring), var(--lift); }
#bdsheet .lbl { display: block; margin: var(--s-3) 0 var(--s-1); }
#bdsheet input { display: block; width: 100%; box-sizing: border-box; min-height: var(--btn); padding: 0 var(--s-3); }
/* 1744: graduation - the fields left, the welcome sign right (repaints on each tap); School colors: the two picked as a line (the slot
   the next tap fills is ringed), 12 chips in two rows (each with a 1 px --line ring, so black shows on a dark sheet), Type a color. */
#bdsheet .bdgrad[hidden] { display: none; }
#bdsheet .bdtop { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: start; }
#bdsheet .bdpv { margin: var(--s-3) 0 0; inline-size: 7.25rem; text-align: center; color: var(--muted); font-size: var(--t-small); }
#bdsheet .bdpv canvas { display: block; inline-size: 100%; block-size: auto; box-shadow: var(--lift); margin-bottom: var(--s-1); }
#bdsheet .bdopt { color: var(--muted); }
#bdsheet .bdpicked { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); margin: 0 0 var(--s-2); font-weight: 600; }
#bdsheet .bdpicked .sl { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px var(--s-2) 2px 2px; border-radius: 999px; }
#bdsheet .bdpicked .sl.nx { box-shadow: inset 0 0 0 2px var(--line); }
#bdsheet .bdpicked .sw { inline-size: 1.125rem; block-size: 1.125rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
#bdsheet .bdchips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-2); }
#bdsheet .chip { position: relative; aspect-ratio: 1; min-block-size: 0; min-inline-size: 0; border: 0; border-radius: 50%; padding: 0; background: var(--c) !important; box-shadow: 0 0 0 1px var(--line); }   /* app.css resets every button's background */
#bdsheet .chip.sel { outline: 3px solid var(--ink); outline-offset: 2px; }
#bdsheet .chip i { position: absolute; inset-inline-end: -4px; inset-block-start: -4px; min-inline-size: 1.25rem; block-size: 1.25rem; border-radius: .625rem;
  background: var(--ink); color: var(--bg); font: 700 .75rem/1.25rem var(--ui); font-style: normal; text-align: center; }
#bdsheet .chip i:empty { display: none; }
#bdsheet #bd-typemsg { margin: var(--s-1) 0 0; }
#bdsheet #bd-typemsg:empty { display: none; }
.pmsheet a.pm-alt { text-decoration: none; color: var(--ink); }

/* 1442 (live review 5): on a laptop or wider, home sits in the same centred 760 px column as Settings (look.css .wrap),
   so the tabs sit over the list they switch */
@media (min-width: 800px) {
  body.privscreen > :is(#relhost, .netline, .arrivals, .inv), body.privscreen :is(.apphd, .findrow) { box-sizing: border-box; max-width: 760px; margin-inline: auto; }
}
/* 632 (picture docs/design/sketches/632-picture.md, option A): on a desk-sized window the page gets a left column - Private,
   Public, Find, Photo + and its tray, Settings last - and the photos fill the rest in columns. Phone: .pcol is display: contents,
   so nothing below 900 px changes. Logical sides, so Arabic puts the column on the right. */
.pcol { display: contents; }
@media (min-width: 900px) {
  body.privscreen { --colw: 15rem; --tile: 12.5rem; padding-inline-start: var(--colw); }
  html[data-theme="large"] body.privscreen { --colw: 17rem; --tile: 17.5rem; }
  .pcol { display: flex; flex-direction: column; gap: var(--s-3); position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 4; inline-size: var(--colw);
    box-sizing: border-box; padding: calc(var(--s-4) + var(--safe-t)) var(--s-3) var(--s-3); overflow-y: auto; background: var(--bg); }
  .pcol:has(.tray:not([hidden])) { z-index: 7; }   /* the tray stays above the scrim, as on the phone */
  .pcol .apphd { display: contents; }
  /* 632 live r1: with the column the grid fills the window, no 760 px strip */
  body.privscreen:has(.pcol) > :is(#relhost, .netline, .arrivals, .inv), body.privscreen .pcol :is(.apphd, .findrow) { max-width: none; margin-inline: 0; }
  .pcol .apphd .seg { flex-direction: column; flex: none; max-width: none; margin: 0; }
  .pcol .apphd .seg > * { flex: none; min-height: var(--btn); justify-content: flex-start; padding: 0 var(--s-3); text-align: start; }
  .pcol .apphd .seg > #gear { order: 9; position: fixed; inset-block-end: var(--s-3); inset-inline-start: var(--s-3); inline-size: calc(var(--colw) - 2 * var(--s-3));
    box-sizing: border-box; min-height: var(--tap); color: var(--muted); }
  .pcol .findrow { padding: 0; }
  .pcol .findrow .find { margin: 0; min-width: 0; box-sizing: border-box; }
  .pcol .duo { position: static; transform: none; }
  .pcol .duo .cam { flex: 1; min-width: 0; justify-content: center; padding: 0 var(--s-3); }
  .pcol .tray { position: static; transform: none; inline-size: auto; max-block-size: none; }
  .pcol .tray button { text-align: start; }
  .band { display: none; }
  /* the grid: as many columns as fit, tiles of a steady size */
  body.privscreen .items, body.privscreen .emptyslots { grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr)); --gap: var(--s-3); }
  body.privscreen .inv { padding: var(--s-4) var(--s-5) 2rem; }
  /* selecting: the count and the bar sit over the grid, the column stays */
  .selhd, .selbar, .toast { inset-inline-start: var(--colw); }
  /* the note, connect and birthday sheets: a centred dialog, not a bottom sheet */
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(26.25rem, 90vw); border-radius: var(--r); padding: var(--s-4); }
  #bdsheet { width: min(34rem, 90vw); }
  /* an item, full size: the photo left at the window's height, its facts and Send / Make / Drop beside it */
  .itemv:has(> .viewer) { display: grid; grid-template-columns: 1fr 22.5rem; grid-template-rows: auto auto auto 1fr; align-items: start; padding-bottom: 0; }
  .itemv:has(> .viewer)[hidden] { display: none; }
  .itemv:has(> .viewer) .hdr { grid-column: 1 / -1; }
  .itemv .viewer { grid-column: 1; grid-row: 2 / -1; display: grid; place-items: center; height: calc(100dvh - var(--btn) - var(--safe-t)); }
  .itemv .viewer img, .itemv .viewer video { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
  .itemv:has(> .viewer) > :not(.hdr):not(.viewer) { grid-column: 2; padding-inline: var(--s-4); }
  /* a note or a link reads as a column, not a line across the monitor */
  .itemv:not(:has(> .viewer)) > :not(.hdr) { max-inline-size: 40rem; margin-inline: auto; box-sizing: border-box; }
  /* Large & clear on a wide window: square tiles again, the caption over the photo */
  html[data-theme="large"] body.privscreen .it { aspect-ratio: 1; display: block; min-height: 0; }
  html[data-theme="large"] body.privscreen .it > img { position: absolute; inset: 0; width: 100%; height: 100%; }
  html[data-theme="large"] body.privscreen .it .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, var(--photo-shade)); color: var(--on-photo);
    padding: 1.75rem 3.25rem var(--s-2) var(--s-3); }
  html[data-theme="large"] body.privscreen .it .cap small { color: inherit; }
  html[data-theme="large"] body.privscreen .it.note, html[data-theme="large"] body.privscreen .it.sound { padding: 3.25rem var(--s-3) var(--s-3); }
  html[data-theme="large"] body.privscreen .emptyslots i { aspect-ratio: 1; height: auto; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  body.privscreen { --colw: 12.5rem; }
  html[data-theme="large"] body.privscreen { --colw: 15rem; }
}
.pmsheet .pm-rent { min-height: calc(var(--btn) * 1.6); justify-content: flex-start; text-align: start; padding: var(--s-3) var(--s-4); }
.pmsheet .pm-rent > span { display: grid; gap: var(--s-2); min-width: 0; }
.pmsheet .pm-rent b { font-size: var(--t-lead); }
.pmsheet .rt-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pmsheet .rt-chips i { font: 700 var(--t-small)/1.2 var(--ui); padding: var(--s-1) var(--s-3); border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; overflow-wrap: anywhere; }
.pmsheet .rt-cover { width: 100%; max-height: 22vh; object-fit: cover; border-radius: var(--r); }
.pmsheet .rt-rows { display: grid; background: var(--surface); border-radius: var(--r); }
.pmsheet .rt-row { min-height: var(--tap); display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); text-align: start; width: 100%; box-sizing: border-box; color: var(--ink); }
.pmsheet .rt-row + .rt-row { border-top: var(--line-w) solid var(--line); }
.pmsheet .rt-row > span { color: var(--muted); font-size: var(--t-small); }
.pmsheet .rt-row b { overflow-wrap: anywhere; min-width: 0; }
.pmsheet .rt-row b.rt-add { color: var(--muted); }
.pmsheet .rt-row .pm-words { grid-column: 2 / 4; margin: 0; min-width: 0; }
[dir="rtl"] .pmsheet .rt-row svg.i { transform: scaleX(-1); }
.pmsheet .rt-paste { margin: 0; padding: var(--s-3); border-radius: var(--r); background: var(--surface-2); font: 700 var(--t-body)/1.4 var(--ui); }
.pmsheet .rt-paste .rt-text { display: block; width: 100%; margin-top: var(--s-2); font-weight: 400; }
/* 190: the desk column's room (632) only where the column is (home); Settings and Who's looking centre on the window */
@media (min-width: 900px) {
  body.privscreen:not(:has(.pcol)) { padding-inline-start: 0; }
}

/* 2463 (owner note 108): the tabs stay at the top while the list scrolls, as in a phone app */
@media (max-width: 899px) {
  body.privscreen .apphd { position: sticky; top: 0; z-index: 5; margin-top: calc(-1 * var(--safe-t)); padding-top: var(--safe-t); background: var(--bg); }
}

/* 1566: sideways phone - the photo leaves room, so Share, Print and Drop stay in view */
@media (max-height: 520px) and (orientation: landscape) {
  .itemv .viewer img, .itemv .viewer video { max-height: 55dvh; margin-inline: auto; width: auto; max-width: 100%; }
}
/* 2835: the client gallery's link: a field-like row, Copy beside it */
.gal-link { display: flex; align-items: center; gap: var(--s-2); min-height: var(--btn); padding-inline-start: var(--s-3); border: var(--line-w) solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: var(--t-small); }
.gal-link bdi { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-link button { min-height: var(--btn); padding: 0 var(--s-3); display: flex; align-items: center; gap: var(--s-1); font: 700 var(--t-small)/1 var(--ui); color: var(--ink); }
.gal-link button svg.i { width: var(--icon); height: var(--icon); }
.pmsheet .gal-say { color: var(--ink); font-size: var(--t-body); }
.pmsheet .gal-sets { color: var(--ink); font-size: var(--t-body); }   /* 1719: "Pin made 3 sets: ..." and a quiet Change */
.pmsheet .gal-sets a { display: inline-block; min-height: 0; line-height: inherit; padding: .65em var(--s-1); margin-block: -.65em; color: var(--accent); font-weight: 700; }   /* a finger-size tap that keeps the line spacing */
@media (max-width: 340px) { .selbar.five { padding-inline: var(--s-1); gap: 3px; } .selbar.five button:not(.bin) { flex: 1 1 auto; padding-inline: 3px; } .selbar.five .bin { flex: 0 0 var(--tap); } .selbar.tight button span { font-size: .875rem; } .selbar.five button span { overflow: visible; text-overflow: clip; } }   /* 3506: at 320 five words stay whole (Publicar, Compartir, Erstellen, 客户选片): each button starts at its word, the bin is one tap wide; 3571: each word has air inside its button (es Publicar, Compartir) */
.gl .dayall { color: var(--accent); font-weight: 650; min-height: var(--tap); }   /* 2835 polish (Sam): Select all reads as a button */

/* 2795: the first card on Public after Make it mine (public/private/parts/joined.js) */
.jn-card { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: var(--s-4); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.jn-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: var(--s-1); margin-bottom: var(--s-1); }
.jn-covers img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.jn-head { font: 700 var(--t-lead)/1.25 var(--ui); }
.jn-sub, .jn-how { margin: 0; color: var(--muted); font-size: var(--t-small); }
.jn-step, .jn-said { margin: var(--s-1) 0 0; font-size: var(--t-body); line-height: 1.4; }
.jn-said { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--note); color: var(--note-ink); }
.jn-addr { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-1) 0 var(--s-3); border-radius: var(--r-sm); background: var(--surface-2); }
.jn-addr span { flex: 1; min-width: 0; font-weight: var(--w-label); overflow-wrap: anywhere; }
.jn-card .jn-addr button { min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--accent); font-weight: var(--w-label); }
.jn-card .jn-go { display: flex; align-items: center; justify-content: center; min-height: var(--btn); margin-top: var(--s-2); border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: 700 var(--t-lead)/1 var(--ui); text-decoration: none; }
.jn-card .jn-go[disabled], .jn-card .jn-done[disabled] { opacity: .7; }
.jn-card .jn-done { justify-self: center; min-height: var(--tap); padding: 0 var(--s-3); color: var(--accent); font-weight: var(--w-label); }

/* 284: Pin on the empty board, beside its one line */
.emptyline.pinsay { display: flex; align-items: center; gap: var(--s-3, 12px); color: var(--ink); font-weight: 600; }
.emptyline.pinsay svg { flex: none; overflow: visible; }
[data-theme="large"] .emptyline.pinsay svg { width: 76px; height: 76px; }
html[lang="ar"] .emptyline.pinsay .body { transform: rotate(-13deg) !important; }
/* 2919: Sell prints of these too (public/private/parts/sellprints.js): her photo framed on a wall, one outline button */
.sp-card { --sp-frame: #1d1b19; --sp-mat: #faf7f0; }   /* a real black frame and cream mat: the same in light and dark */
.sp-wall { display: grid; place-items: center; padding: var(--s-4) var(--s-3); border-radius: var(--r-sm); background: var(--surface-2); }
.sp-frame { display: block; width: min(72%, 280px); padding: clamp(10px, 3vw, 20px); border: 10px solid var(--sp-frame); background: var(--sp-mat); box-shadow: 0 6px 16px rgb(0 0 0 / .22); }
.sp-frame.sp-bare { padding: 0; border: 0; }
@media (max-height: 500px) { .sp-wall { padding: var(--s-2); } .sp-frame { width: 160px; } }
.sp-frame img { display: block; width: 100%; height: auto; }
.jn-card .sp-go { min-height: var(--btn); margin-top: var(--s-2); border: 2px solid var(--accent); border-radius: var(--r); color: var(--accent); font: 700 var(--t-lead)/1 var(--ui); }
.jn-card .sp-go[disabled] { opacity: .7; }
.sp-on { margin: 0; font-size: var(--t-body); line-height: 1.4; }
.sp-on b { display: block; font: 700 var(--t-lead)/1.25 var(--ui); }
.sp-fan { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.sp-fan img { width: 64px; height: 48px; object-fit: cover; border: 3px solid var(--sp-frame); }
.sp-fan span { display: grid; }
.sp-fan small { color: var(--muted); }
/* 3696: from the client door, each day's photos go to her client in one tap (the same gallery as Select all > Gallery) */
.inv .grp > .clsend { display: flex; box-sizing: border-box; width: calc(100% - 2 * var(--edge)); max-width: 30rem; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--btn); margin: var(--s-3) var(--edge) var(--s-4); padding: 0 var(--s-4); border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: 700 var(--t-body)/1.2 var(--ui); cursor: pointer; }
.inv .grp > .clsend svg { width: 1.25em; height: 1.25em; flex: none; }
