/* 505VM 相簿 — 自寫樣式。暖白底、深綠灰文字、鼠尾草綠強調色；圓角 24／16、膠囊按鈕；左側導覽（手機改底部分頁）。 */
:root {
  --bg: #F7F5F1; --surface: #FFFFFF; --surface-2: #EFECE6; --surface-3: #E6E2DA;
  --text: #28352D; --text-2: #5C6A61; --text-3: #8A958E; --line: #E3DED5;
  --accent: #7FA58D; --accent-strong: #557A63; --accent-soft: #E3EDE6; --on-accent: #FFFFFF;
  --danger: #B4533F; --danger-soft: #F6E4DF; --warn: #A87B2C; --warn-soft: #F6EDD9;
  --shadow: 0 1px 2px rgb(40 53 45 / 6%), 0 8px 24px rgb(40 53 45 / 8%);
  --shadow-lg: 0 24px 64px rgb(40 53 45 / 22%);
  --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
  --nav-w: 248px; --top-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161A17; --surface: #1F2420; --surface-2: #272D28; --surface-3: #313832;
    --text: #E6EBE7; --text-2: #A9B4AC; --text-3: #7D8981; --line: #323A34;
    --accent: #8FB59C; --accent-strong: #A6C8B1; --accent-soft: #263329; --on-accent: #10160F;
    --danger: #E08A76; --danger-soft: #3A2722; --warn: #D9B36A; --warn-soft: #3A3122;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --shadow-lg: 0 24px 64px rgb(0 0 0 / 55%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-strong); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: .01em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0; }
.sprite { display: none; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.fill { fill: currentColor; }
.logo { width: 34px; height: 34px; }
.logo-bg { fill: var(--accent); }
.logo-fg { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { fill: #fff; stroke: none; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.noscript { padding: 40px; text-align: center; }
.boot { height: 100%; display: grid; place-items: center; }
.boot-mark .logo { width: 56px; height: 56px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.94); } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 按鈕與輸入 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.small { width: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 550; }
.input, select.input, textarea.input { height: 44px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); outline: none; width: 100%; }
textarea.input { height: auto; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code { font: 600 22px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .3em; text-align: center; }
.hint { font-size: 13px; color: var(--text-2); }
.error-text { font-size: 13px; color: var(--danger); min-height: 1em; }
.seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--text-2); font-weight: 550; font-size: 14px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; }
.chip.ok { background: var(--accent-soft); color: var(--accent-strong); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.range { accent-color: var(--accent); width: 110px; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.meter > i.b { background: color-mix(in srgb, var(--accent) 45%, var(--surface-3)); }
.meter.warn > i { background: var(--warn); }

/* ---------- 版面 ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; height: 100%; }
.nav { display: flex; flex-direction: column; padding: 20px 14px; gap: 4px; border-right: 1px solid var(--line); min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-weight: 700; font-size: 17px; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); }
.nav a.item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 560; }
.nav a.item:hover { background: var(--surface-2); color: var(--text); }
.nav a.item.on { background: var(--accent-soft); color: var(--accent-strong); }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.nav .grow { flex: 1; }
.usage { padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; }
.usage b { font-weight: 650; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px; flex: none; }
.top .title { font-size: 20px; font-weight: 680; margin-right: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: min(380px, 40vw); color: var(--text-3); }
.searchbox input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; border: 0; cursor: pointer; flex: none; }
.content { flex: 1; min-height: 0; overflow: auto; position: relative; scrollbar-gutter: stable; }
.page { padding: 8px 24px 48px; max-width: 1100px; }
.page.wide { max-width: none; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 4px 24px 12px; flex-wrap: wrap; flex: none; }
.toolbar .spacer { flex: 1; }
.selbar { position: absolute; inset: 0 0 auto 0; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 20px; background: var(--surface); box-shadow: var(--shadow); z-index: 5; border-radius: 0 0 var(--r-md) var(--r-md); }
.selbar .count { font-weight: 650; margin-right: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.card + .card { margin-top: 16px; }
.card .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card .row .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.list { display: grid; }
.list > .li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.list > .li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub { font-size: 13px; color: var(--text-2); }
.empty { padding: 80px 24px; text-align: center; color: var(--text-2); display: grid; gap: 14px; justify-items: center; }
.empty svg.ic { width: 48px; height: 48px; color: var(--accent); stroke-width: 1.4; }
.empty h2 { color: var(--text); }

/* ---------- 時間軸格子（虛擬捲動） ---------- */
.grid-wrap { position: relative; margin: 0 24px; }
.grid-hd { position: absolute; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.grid-hd .hd-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--text-3); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; background: transparent; padding: 0; color: transparent; }
.grid-hd:hover .hd-check, .selecting .grid-hd .hd-check { opacity: 1; }
.grid-hd .hd-check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.grid-hd .hd-check svg.ic { width: 14px; height: 14px; stroke-width: 3; }
.tile { position: absolute; border-radius: 6px; overflow: hidden; background: var(--surface-3); cursor: pointer; contain: strict; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .2s; }
.tile img.ok { opacity: 1; }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 12px; font-weight: 600; text-align: center; padding: 6px; }
.tile .badge { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: rgb(0 0 0 / 52%); color: #fff; font-size: 11px; font-weight: 650; }
.tile .badge svg.ic { width: 11px; height: 11px; stroke-width: 2.4; }
.tile .fav { position: absolute; left: 7px; bottom: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 50%)); }
.tile .fav svg.ic { width: 16px; height: 16px; }
.tile .sel { position: absolute; left: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgb(0 0 0 / 18%); display: grid; place-items: center; color: transparent; opacity: 0; transition: opacity .15s; padding: 0; cursor: pointer; }
.tile .sel svg.ic { width: 14px; height: 14px; stroke-width: 3; }
.tile:hover .sel, .selecting .tile .sel { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / 28%), transparent 30%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.tile:hover::after { opacity: 1; }
.tile.on { border-radius: 10px; }
.tile.on img { transform: scale(.9); border-radius: 10px; transition: transform .15s; }
.tile.on .sel { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.tile.on { background: var(--accent-soft); }
.grid-foot { position: absolute; left: 0; right: 0; text-align: center; color: var(--text-3); font-size: 13px; padding: 24px 0; }

/* ---------- 相簿卡 ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; padding: 8px 24px 48px; }
.album { display: grid; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.album .cover { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--text-3); }
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album .cover svg.ic { width: 40px; height: 40px; stroke-width: 1.3; }
.album:hover .cover { box-shadow: var(--shadow); }
.album .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album .s { font-size: 13px; color: var(--text-2); margin-top: -8px; }

/* ---------- 對話框與通知 ---------- */
.overlay { position: fixed; inset: 0; background: rgb(20 26 22 / 42%); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; display: grid; gap: 18px; animation: pop .18s ease-out; }
.dialog.wide { width: min(640px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dialog .head { display: flex; align-items: center; gap: 10px; }
.dialog .head h2 { flex: 1; }
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 550; animation: pop .2s; pointer-events: auto; max-width: 90vw; }
.toast.bad { background: var(--danger); color: #fff; }
.menu { position: fixed; z-index: 60; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px; display: grid; border: 1px solid var(--line); animation: pop .12s; }
.menu button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; height: 40px; padding: 0 12px; border-radius: var(--r-sm); cursor: pointer; text-align: left; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu .lbl { font-size: 12px; color: var(--text-3); padding: 6px 12px 2px; font-weight: 600; }
.qr { width: 220px; height: 220px; background: #fff; border-radius: var(--r-md); padding: 6px; justify-self: center; }
.qr path { fill: #111; }
.codebox { font: 600 15px/1.6 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); border-radius: var(--r-md); padding: 12px 16px; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font: 600 15px ui-monospace, "SF Mono", Menlo, monospace; }
.codes span { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px; text-align: center; }

/* ---------- 上傳面板 ---------- */
.uploads { position: fixed; right: 24px; bottom: 24px; width: 380px; max-width: calc(100vw - 32px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; border: 1px solid var(--line); }
.uploads .uh { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; font-weight: 650; }
.uploads .uh .grow { flex: 1; }
.uploads .ul { max-height: 320px; overflow: auto; border-top: 1px solid var(--line); }
.uploads.min .ul { display: none; }
.uploads .ui { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 20px; font-size: 13px; align-items: center; }
.uploads .ui + .ui { border-top: 1px solid var(--line); }
.uploads .ui .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.uploads .ui .st { color: var(--text-2); }
.uploads .ui .st.ok { color: var(--accent-strong); }
.uploads .ui .st.bad { color: var(--danger); }
.uploads .ui .meter { grid-column: 1 / -1; height: 4px; }
.drop { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--accent) 22%, transparent); display: grid; place-items: center; pointer-events: none; }
.drop > div { background: var(--surface); border: 2px dashed var(--accent); border-radius: var(--r-lg); padding: 40px 56px; text-align: center; display: grid; gap: 10px; justify-items: center; font-weight: 650; font-size: 18px; box-shadow: var(--shadow-lg); }
.drop svg.ic { width: 44px; height: 44px; color: var(--accent); }

/* ---------- 全螢幕檢視 ---------- */
.viewer { position: fixed; inset: 0; z-index: 45; background: #0d0f0e; color: #eef2ef; display: grid; grid-template-columns: 1fr auto; animation: fade .15s; }
.viewer .stage { position: relative; overflow: hidden; touch-action: none; user-select: none; }
.viewer .media { position: absolute; inset: 0; display: grid; grid-template: 100% / 100%; place-items: center; }
.viewer .media img, .viewer .media video { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 0 0; will-change: transform; }
.viewer .media img { cursor: zoom-in; }
.viewer .media img.zoomed { cursor: grab; max-width: none; max-height: none; }
.viewer .media .nopreview { display: grid; gap: 14px; justify-items: center; text-align: center; color: #b9c4bc; }
.viewer .vbar { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; gap: 6px; padding: 14px 16px; background: linear-gradient(rgb(0 0 0 / 55%), transparent); z-index: 2; }
.viewer .vbar .grow { flex: 1; min-width: 0; font-size: 14px; color: #cfd8d2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer .vbar .btn.ghost { color: #eef2ef; }
.viewer .vbar .btn.ghost:hover { background: rgb(255 255 255 / 12%); }
.viewer .vbar .btn.on { color: #f08a8a; }
.viewer .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.viewer .nav-btn:hover { background: rgb(255 255 255 / 20%); }
.viewer .nav-btn.prev { left: 16px; } .viewer .nav-btn.next { right: 16px; }
.viewer .info { width: 340px; background: var(--surface); color: var(--text); overflow: auto; padding: 22px; display: grid; gap: 18px; align-content: start; border-left: 1px solid var(--line); }
.viewer .info dl { display: grid; grid-template-columns: 22px 1fr; gap: 14px 12px; margin: 0; }
.viewer .info dt { color: var(--text-3); padding-top: 2px; }
.viewer .info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.viewer .info dd .sub { font-size: 13px; color: var(--text-2); }
.viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; color: #8d988f; }

/* ---------- 登入頁 ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; overflow: auto; height: 100%; }
.auth .panel { width: min(420px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 36px 32px; display: grid; gap: 20px; border: 1px solid var(--line); }
.auth .panel .logo { width: 48px; height: 48px; }
.auth .panel .actions { display: grid; gap: 10px; }
.auth .panel .btn { height: 46px; }

/* ---------- 地圖 ---------- */
.map { position: absolute; inset: 0 24px 24px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.map-fallback { display: grid; gap: 18px; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; cursor: pointer; }
.place:hover { box-shadow: var(--shadow); }
.place img, .place .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }

/* ---------- 窄螢幕：左側導覽改底部分頁 ---------- */
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .nav { order: 2; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: var(--surface); justify-content: space-around; gap: 0; }
  .nav .brand, .nav .sep, .nav .grow, .usage, .nav a.item.extra { display: none; }
  .nav a.item { flex-direction: column; height: auto; padding: 6px 8px; gap: 2px; font-size: 11px; border-radius: var(--r-sm); }
  .nav a.item.on { background: transparent; }
  .top { padding: 0 16px; gap: 8px; }
  .searchbox { width: auto; flex: 1; }
  .top .title { display: none; }
  .top .title.always { display: flex; }
  .grid-wrap { margin: 0 4px; }
  .page, .toolbar { padding-left: 16px; padding-right: 16px; }
  .albums { padding: 8px 16px 40px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .viewer { grid-template-columns: 1fr; }
  .viewer .info { position: absolute; inset: auto 0 0 0; max-height: 60%; width: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; z-index: 3; }
  .viewer .nav-btn { display: none; }
  .uploads { right: 16px; left: 16px; bottom: 80px; width: auto; }
  .map { inset: 0 8px 8px; }
  .btn .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 補充：清單按鈕、地圖標記 ---------- */
.list > button.li { height: auto; min-height: 52px; border-radius: var(--r-md); justify-content: flex-start; text-align: left; padding: 10px 12px; border-top: 0; }
.list > button.li + button.li { margin-top: 2px; }
.pin { position: absolute; left: 0; top: 0; width: 56px; height: 56px; padding: 0; border: 3px solid #fff; border-radius: 16px; background: var(--surface-3); box-shadow: 0 4px 14px rgb(0 0 0 / 30%); cursor: pointer; overflow: visible; }
.pin img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.pin span { position: absolute; right: -10px; top: -10px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 12px/24px var(--font); text-align: center; box-shadow: 0 2px 6px rgb(0 0 0 / 25%); }
.dialog .row input[type=checkbox], .li input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.dialog form.row .input { flex: 1; }

/* 照片加密區：上鎖中的說明、正在解鎖的提示（2026-11-12） */
.notice { background: var(--accent-soft); color: var(--accent-strong); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 4px; font-size: 14px; line-height: 1.6; }
.unlocking { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 550; max-width: calc(100vw - 32px); }
.unlocking svg { flex: none; }
@media print { body > *:not(.overlay) { display: none !important; } .overlay { position: static; background: none; } .dialog .actions { display: none; } }
