Files
Bkk1234 6f146aef59 feat(android): Capacitor APK build + native save/share bridge
- android/ — Capacitor project (build/, local.properties ignored)
- app/js/native.js — bridge สำหรับ APK: savePhoto/saveZip/shareItems ผ่าน Filesystem+Share
- app/js/csv.js — นำเข้าโฟลเดอร์หลายรายการจาก CSV (site,letter,datetime,name)
- app/js/orient.js — จัดการ orientation ของ preview/กล้อง
- app/manual.html + APK.md — คู่มือใช้งานและวิธี build APK
- app/templates/folders-template.csv — เทมเพลต CSV
- package.json / package-lock.json / capacitor.config.json / scripts/build-apk.sh
- ปรับ ui, camera, exif, archive, db, naming, main, sw + css/README ตามงานข้างบน
2026-11-20 08:50:42 +07:00

888 lines
24 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================
CamCat — One UI (Samsung) look & feel
ภาษาเดียวกับ One UI 6/7: การ์ดมุมโค้ง 26px, พิลล์แคปซูล,
พื้นผิวเรียบ ไม่มีเส้นขอบหนา, ไอคอน SVG 24px, ระยะ 4/8px
ปรับให้ Galaxy S23 (360–412 CSS px, safe area, 100dvh)
============================================================ */
:root {
/* Light — ค่าเริ่มต้นแบบ One UI */
--bg: #F2F3F5;
--bg-2: #E8EAED;
--card: #FFFFFF;
--card-2: #F7F8F9;
--text: #101114;
--text-2: #5C6169;
--text-3: #62676F;
--line: rgba(16, 17, 20, 0.08);
--accent: #0A72DE;
--accent-text: #0E5FB8;
--accent-soft: #E4EFFC;
--on-accent: #FFFFFF;
--danger: #D93025;
--danger-soft: #FCE8E6;
--field: #EBEDF0;
--shadow-card: 0 1px 2px rgba(16, 17, 20, 0.05), 0 6px 18px rgba(16, 17, 20, 0.05);
--shadow-float: 0 6px 20px rgba(16, 17, 20, 0.14);
--radius-card: 26px;
--radius-row: 20px;
--radius-field: 16px;
--radius-pill: 999px;
--pad: 20px;
--gap: 12px;
--nav-h: 64px;
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--safe-left: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-right, 0px);
--ease: cubic-bezier(0.2, 0, 0, 1);
--dur: 180ms;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #000000;
--bg-2: #101114;
--card: #1B1B1D;
--card-2: #232326;
--text: #F2F3F5;
--text-2: #A9AEB6;
--text-3: #7C8188;
--line: rgba(255, 255, 255, 0.10);
--accent: #4E9DFF;
--accent-text: #6FB3FF;
--accent-soft: #16304D;
--on-accent: #06121F;
--danger: #FF6B60;
--danger-soft: #3A1A18;
--field: #26272A;
--shadow-card: none;
--shadow-float: 0 8px 24px rgba(0, 0, 0, 0.55);
}
}
:root[data-theme="dark"] {
--bg: #000000;
--bg-2: #101114;
--card: #1B1B1D;
--card-2: #232326;
--text: #F2F3F5;
--text-2: #A9AEB6;
--text-3: #7C8188;
--line: rgba(255, 255, 255, 0.10);
--accent: #4E9DFF;
--accent-text: #6FB3FF;
--accent-soft: #16304D;
--on-accent: #06121F;
--danger: #FF6B60;
--danger-soft: #3A1A18;
--field: #26272A;
--shadow-card: none;
--shadow-float: 0 8px 24px rgba(0, 0, 0, 0.55);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
button, input, label { touch-action: manipulation; }
html { height: 100%; background: var(--bg); }
body {
font-family: "SamsungOneUI", "SF Pro Text", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Noto Sans Thai", "IBM Plex Sans Thai", sans-serif;
background: var(--bg);
color: var(--text);
height: 100vh;
height: 100dvh;
overflow: hidden;
overscroll-behavior: none;
user-select: none;
-webkit-user-select: none;
font-size: 15px;
line-height: 1.45;
letter-spacing: -0.1px;
-webkit-font-smoothing: antialiased;
}
#app {
display: flex;
flex-direction: column;
height: 100dvh;
padding-left: var(--safe-left);
padding-right: var(--safe-right);
background: var(--bg);
}
/* ── Header (One UI large title) ─────────────────────────── */
header {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 12px;
padding: calc(8px + var(--safe-top)) var(--pad) 10px;
background: var(--bg);
}
.head-text { flex: 1; min-width: 0; }
header h1 {
font-size: 23px;
font-weight: 700;
letter-spacing: -0.4px;
line-height: 1.2;
display: flex;
align-items: center;
gap: 8px;
}
.head-sub {
display: inline-flex;
align-items: center;
gap: 3px;
margin-top: 2px;
max-width: 100%;
background: none;
border: 0;
padding: 0;
color: var(--text-2);
font-family: inherit;
font-size: 13px;
font-weight: 500;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
min-height: 32px;
}
.head-sub svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.8; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.icon-round {
width: 44px;
height: 44px;
border-radius: 50%;
border: 0;
background: var(--card);
color: var(--text-2);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--shadow-card);
transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-round svg { width: 22px; height: 22px; }
.icon-round:active { transform: scale(0.94); background: var(--bg-2); }
.icon-round.primary { background: var(--accent); color: var(--on-accent); }
.icon-round.primary:active { background: var(--accent); filter: brightness(0.94); }
.head-btns { display: flex; gap: 8px; align-items: center; }
.head-btns .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
/* ── Main ────────────────────────────────────────────────── */
main {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
position: relative;
}
/* ── Bottom tabs (One UI) ────────────────────────────────── */
nav {
flex-shrink: 0;
display: flex;
background: var(--card);
border-top: 1px solid var(--line);
padding: 6px 6px calc(6px + var(--safe-bottom));
}
nav button {
flex: 1;
min-height: 52px;
background: none;
border: 0;
color: var(--text-3);
font-family: inherit;
font-size: 11.5px;
font-weight: 500;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 4px 2px;
border-radius: var(--radius-row);
cursor: pointer;
transition: color var(--dur) var(--ease);
}
nav button .tab-ico {
width: 56px;
height: 30px;
border-radius: var(--radius-pill);
display: flex;
align-items: center;
justify-content: center;
transition: background var(--dur) var(--ease);
}
nav button svg { width: 23px; height: 23px; }
nav button.active { color: var(--accent-text); font-weight: 600; }
nav button.active .tab-ico { background: var(--accent-soft); }
nav button:active .tab-ico { background: var(--bg-2); }
/* ── หน้าเมนูกล้อง: โครมทั้งหน้าเป็นดำแบบ One UI Camera ──── */
#app[data-view="camera"] { background: #000; }
#app[data-view="camera"] header { background: #000; color: #F5F6F7; }
#app[data-view="camera"] header h1 { color: #F5F6F7; }
#app[data-view="camera"] .head-sub { color: #A9AEB6; }
#app[data-view="camera"] .icon-round { background: #1B1B1D; color: #E7E8EA; box-shadow: none; }
#app[data-view="camera"] nav { background: #000; border-top-color: rgba(255, 255, 255, 0.10); }
#app[data-view="camera"] nav button { color: #8A9099; }
#app[data-view="camera"] nav button.active { color: #6FB3FF; }
#app[data-view="camera"] nav button.active .tab-ico { background: #16304D; }
#app[data-view="camera"] nav button:active .tab-ico { background: #232326; }
/* ── Camera (One UI Camera = black) ──────────────────────── */
#camera-view {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
background: #000;
color: #F5F6F7;
}
.stage {
position: relative;
flex: 1;
min-height: 0;
overflow: hidden;
background: #000;
display: flex;
align-items: center;
justify-content: center;
}
/* กรอบพรีวิวตามอัตราส่วนที่เลือก — เห็นอะไร ได้อย่างนั้น */
.frame {
position: relative;
overflow: hidden;
background: #000;
}
/* ขนาดกรอบคำนวณด้วย JS (fitFrame) เพื่อไม่ให้ aspect-ratio ถูก max-height บิด */
.frame.ratio-43, .frame.ratio-34 { width: 100%; height: 100%; }
.cam-chip.ratio-chip {
width: auto;
min-width: 52px;
padding: 0 14px;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.02em;
}
#video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
background: #000;
}
.frame > #video, .frame > .grid-lines { position: absolute; inset: 0; }
.grid-lines { position: absolute; }
.grid-lines {
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.3;
background-image:
linear-gradient(to right, #fff 1px, transparent 1px),
linear-gradient(to bottom, #fff 1px, transparent 1px);
background-size: 33.333% 33.333%;
background-position: -1px -1px;
display: none;
}
.grid-lines.on { display: block; }
.cam-top {
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 12px 14px;
}
.cam-chip {
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(28, 29, 32, 0.62);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 0;
color: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cam-chip svg { width: 21px; height: 21px; }
.cam-chip:active { transform: scale(0.93); }
.cam-chip[aria-pressed="true"] { background: #FFD54A; color: #201A00; }
.cam-bottom {
flex-shrink: 0;
background: #000;
padding: 10px 18px 14px;
}
/* zoom pills แบบ One UI Camera (1× / 2× / 3×) */
.zoom-pills {
display: flex;
justify-content: center;
gap: 8px;
min-height: 40px;
align-items: center;
margin-bottom: 6px;
}
.zoom-pills[hidden] { display: none; }
.zoom-pill {
min-width: 44px;
height: 36px;
padding: 0 11px;
border-radius: var(--radius-pill);
border: 0;
background: rgba(255, 255, 255, 0.14);
color: #EDEEF0;
font-family: inherit;
font-size: 12.5px;
font-weight: 600;
cursor: pointer;
transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.zoom-pill.on { background: #FFD54A; color: #201A00; }
.shutter-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.shutter-side {
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
}
.thumb-btn {
width: 50px;
height: 50px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.18);
background: #1B1B1D;
overflow: hidden;
padding: 0;
cursor: pointer;
color: #8A9099;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn:empty::after {
content: "";
display: block;
width: 16px;
height: 16px;
margin: auto;
border-radius: 4px;
border: 2px solid currentColor;
}
#shutter {
width: 76px;
height: 76px;
border-radius: 50%;
background: #FFFFFF;
border: 4px solid #000;
box-shadow: 0 0 0 3px #FFFFFF;
cursor: pointer;
transition: transform 90ms var(--ease), background 90ms var(--ease);
}
#shutter:active { transform: scale(0.9); background: #D7D9DD; }
#shutter:disabled { opacity: 0.45; }
#shot-count { font-size: 12px; color: #A9AEB6; font-weight: 500; }
/* ── Section heads / buttons ─────────────────────────────── */
.section-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 12px;
padding: 14px var(--pad) 10px;
}
.section-head h2 {
font-size: 20px;
font-weight: 700;
letter-spacing: -0.3px;
line-height: 1.25;
}
.section-head .sub {
font-size: 12.5px;
color: var(--text-2);
font-weight: 400;
margin-top: 3px;
}
.btn {
font-family: inherit;
font-size: 14px;
font-weight: 600;
border-radius: var(--radius-pill);
border: 0;
padding: 0 18px;
min-height: 44px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: var(--shadow-card); }
.btn-tonal { background: var(--accent-soft); color: var(--accent-text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; min-height: 52px; font-size: 15px; }
/* ── Folder list (One UI cards) ──────────────────────────── */
.folder-list {
padding: 0 var(--pad) 8px;
display: flex;
flex-direction: column;
gap: 10px;
}
.folder-item {
display: flex;
align-items: center;
gap: 12px;
background: var(--card);
border-radius: var(--radius-card);
padding: 12px 12px 12px 14px;
cursor: pointer;
box-shadow: var(--shadow-card);
transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.folder-item:active { transform: scale(0.985); background: var(--card-2); }
.folder-item.active { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--accent); }
.f-ico {
width: 44px;
height: 44px;
border-radius: 15px;
background: var(--accent-soft);
color: var(--accent-text);
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.f-ico svg { width: 23px; height: 23px; }
.folder-item .f-main { flex: 1; min-width: 0; }
.folder-item .f-name {
font-size: 15.5px;
font-weight: 600;
letter-spacing: -0.1px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.folder-item .f-meta {
font-size: 12.5px;
color: var(--text-2);
margin-top: 1px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.folder-item .f-actions { display: flex; gap: 2px; flex-shrink: 0; }
.icon-btn {
width: 44px;
height: 44px;
border-radius: 50%;
background: transparent;
border: 0;
color: var(--text-2);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background var(--dur) var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { background: var(--bg-2); }
.icon-btn.danger { color: var(--danger); }
.folder-bulk { padding: 4px var(--pad) 12px; }
.folder-bulk .btn { min-height: 50px; }
.storage-line {
padding: 4px var(--pad) calc(20px + 4px);
font-size: 12.5px;
color: var(--text-2);
line-height: 1.7;
text-align: center;
}
/* ── Gallery ─────────────────────────────────────────────── */
.folder-view,
.gallery-view {
display: flex;
flex-direction: column;
min-height: 100%;
}
.folder-view .folder-list { flex: 1; }
.folder-view .storage-line { padding-bottom: 6px; }
.gallery-view .gallery-grid { flex: 1; align-content: start; }
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
padding: 0 12px 12px;
}
.gallery-item {
position: relative;
aspect-ratio: 1;
border-radius: 10px;
overflow: hidden;
background: var(--card);
border: 0;
padding: 0;
cursor: pointer;
transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.gallery-item:active { transform: scale(0.96); filter: brightness(0.9); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.action-bar {
position: sticky;
bottom: 0;
display: flex;
gap: 10px;
padding: 10px 16px calc(12px + 2px);
background: linear-gradient(to top, var(--bg) 62%, rgba(0, 0, 0, 0));
}
.action-bar .btn { flex: 1; min-height: 52px; font-size: 14.5px; }
/* ── Empty / notice ──────────────────────────────────────── */
.empty {
text-align: center;
padding: 48px 28px;
color: var(--text-2);
font-size: 13.5px;
}
.empty .ico {
display: flex;
width: 64px;
height: 64px;
border-radius: 22px;
background: var(--card);
color: var(--text-2);
align-items: center;
justify-content: center;
margin: 0 auto 12px;
box-shadow: var(--shadow-card);
}
.empty .ico svg { width: 28px; height: 28px; }
.notice {
margin: 12px var(--pad);
padding: 14px 16px;
border-radius: var(--radius-row);
background: var(--danger-soft);
color: var(--text);
font-size: 13px;
line-height: 1.6;
}
.notice b { display: block; margin-bottom: 4px; font-size: 13.5px; }
.notice ol { margin: 6px 0 0 18px; }
.notice code {
background: rgba(0, 0, 0, 0.06);
padding: 1px 5px;
border-radius: 5px;
font-size: 12px;
}
/* ── Camera hero / permission ────────────────────────────── */
.hero {
padding: 28px 26px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
text-align: center;
height: 100%;
background: #000;
color: #F5F6F7;
}
.hero .ico {
width: 72px;
height: 72px;
border-radius: 24px;
background: #1B1B1D;
color: #A9AEB6;
display: inline-flex;
align-items: center;
justify-content: center;
}
.hero .ico svg { width: 34px; height: 34px; }
.hero.cover { position: absolute; inset: 0; z-index: 6; }
.hero h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.hero p { font-size: 13.5px; color: #A9AEB6; line-height: 1.65; max-width: 300px; }
.hero .btn { min-height: 52px; padding: 0 26px; }
.hero.cover .notice {
max-width: 340px;
margin: 0;
text-align: left;
background: rgba(217, 48, 37, 0.16);
color: #FFD9D5;
}
.hero .notice code { background: rgba(255, 255, 255, 0.12); color: #F5F6F7; word-break: break-all; }
.hero .spinner { border-color: rgba(255, 255, 255, 0.18); border-top-color: #fff; }
/* ── Bottom sheet (One UI) ───────────────────────────────── */
.sheet-overlay {
position: fixed;
inset: 0;
z-index: 100;
background: rgba(0, 0, 0, 0.48);
display: flex;
align-items: flex-end;
justify-content: center;
animation: fade-in 160ms var(--ease);
}
.sheet-overlay[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up {
from { transform: translateY(24px); opacity: 0.4; }
to { transform: none; opacity: 1; }
}
.sheet {
position: relative;
background: var(--bg);
width: 100%;
max-width: 520px;
max-height: 88vh;
overflow-y: auto;
border-radius: 28px 28px 0 0;
padding: 26px var(--pad) calc(16px + var(--safe-bottom));
box-shadow: var(--shadow-float);
animation: sheet-up 220ms var(--ease);
}
.sheet::before {
content: "";
position: absolute;
top: 9px;
left: 50%;
transform: translateX(-50%);
width: 38px;
height: 4px;
border-radius: var(--radius-pill);
background: var(--text-3);
opacity: 0.5;
}
.sheet h3 {
font-size: 20px;
font-weight: 700;
letter-spacing: -0.3px;
margin-bottom: 4px;
}
.sheet .hint {
font-size: 12.5px;
color: var(--text-2);
margin-bottom: 14px;
line-height: 1.55;
}
.sheet img.preview {
width: 100%;
max-height: 44vh;
object-fit: contain;
border-radius: 18px;
background: #000;
margin-bottom: 12px;
}
input[type="text"], input[type="search"] {
width: 100%;
min-height: 52px;
padding: 0 16px;
background: var(--card);
border: 2px solid transparent;
border-radius: var(--radius-field);
color: var(--text);
font-size: 16px; /* ≥16px กัน Chrome Android ซูม */
font-family: inherit;
margin-bottom: 12px;
transition: border-color var(--dur) var(--ease);
}
input[type="text"]:focus, input[type="search"]:focus {
outline: none;
border-color: var(--accent);
}
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; min-height: 52px; }
/* ── Metadata table (One UI list) ────────────────────────── */
.meta-table {
font-size: 13.5px;
margin-top: 4px;
background: var(--card);
border-radius: var(--radius-row);
padding: 2px 16px;
box-shadow: var(--shadow-card);
}
.meta-table .row {
display: flex;
justify-content: space-between;
gap: 14px;
padding: 11px 0;
border-bottom: 1px solid var(--line);
}
.meta-table .row:last-child { border-bottom: 0; }
.meta-table .k { color: var(--text-2); flex-shrink: 0; }
.meta-table .v { text-align: right; word-break: break-word; font-weight: 500; }
/* ── QR ──────────────────────────────────────────────────── */
.qr-box {
background: #fff;
border-radius: 24px;
padding: 16px;
display: flex;
justify-content: center;
margin-bottom: 12px;
}
.qr-box canvas, .qr-box img {
width: 232px !important;
height: 232px !important;
display: block;
}
.qr-url {
font-size: 11.5px;
color: var(--text-2);
word-break: break-all;
text-align: center;
margin-bottom: 12px;
font-family: ui-monospace, Menlo, Consolas, monospace;
}
/* ── Toast (One UI pill) ─────────────────────────────────── */
#toast {
position: fixed;
left: 50%;
bottom: calc(88px + var(--safe-bottom));
transform: translate(-50%, 10px);
max-width: 86vw;
background: #2A2A2D;
color: #F2F3F5;
padding: 11px 20px;
border-radius: var(--radius-pill);
font-size: 13.5px;
text-align: center;
z-index: 200;
opacity: 0;
pointer-events: none;
box-shadow: var(--shadow-float);
transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ── Progress ────────────────────────────────────────────── */
.progress-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
padding: 18px 0 10px;
}
.spinner {
width: 36px;
height: 36px;
border: 3px solid var(--line);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-card .label { font-size: 13.5px; color: var(--text-2); }
/* ── Focus / reduced motion ──────────────────────────────── */
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
transition-duration: 1ms !important;
}
}
/* ── Landscape (S23 หมุนจอ 832×384) ──────────────────────── */
@media (max-height: 560px) and (orientation: landscape) {
header { padding-top: calc(4px + var(--safe-top)); padding-bottom: 4px; }
header h1 { font-size: 19px; }
.head-sub { font-size: 12px; }
.cam-bottom { padding: 4px 16px 8px; }
.zoom-pills { min-height: 32px; margin-bottom: 2px; }
.zoom-pill { height: 30px; }
#shutter { width: 60px; height: 60px; box-shadow: 0 0 0 2px #FFFFFF; }
.thumb-btn { width: 42px; height: 42px; }
nav { padding: 4px 6px calc(4px + var(--safe-bottom)); }
nav button { min-height: 44px; font-size: 10.5px; padding: 2px; }
nav button .tab-ico { height: 24px; }
.section-head { padding: 8px var(--pad) 6px; }
.section-head h2 { font-size: 18px; }
}
/* ── Tablet / จอกว้าง ───────────────────────────────────── */
@media (min-width: 600px) {
:root { --pad: 28px; }
.sheet { border-radius: 28px; margin-bottom: 12px; }
.sheet-overlay { align-items: center; }
.gallery-grid { grid-template-columns: repeat(4, 1fr); }
}