:root { color-scheme:light; --ink:#493326; --accent:#73571f; --paper:#faf7ef; --line:#e9e3d8; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at 5% 15%,#eef5df,transparent 40%),var(--paper); color:var(--ink); font-family:system-ui,-apple-system,sans-serif; line-height:1.6; }
button,input { font:inherit; }
button,a,input { touch-action:manipulation; }
a { color:var(--accent); }
.account-shell { max-width:1100px; margin:auto; padding:24px 24px 48px; }
.account-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:10px; font-size:26px; font-weight:750; text-decoration:none; color:var(--ink); }
.brand img { width:46px; height:46px; border-radius:12px; }
.account-header p { margin:0; color:#736d79; font-size:14px; }
.card { background:#fffefb; border:1px solid var(--line); border-radius:20px; padding:22px; margin:18px 0; }
#account-auth { position:relative; max-width:540px; margin:24px auto; padding:26px; border:2px solid #ede3b5; background:#fffefb url('../assets/storybook-garden-v1.png') center bottom / 100% auto no-repeat; padding-bottom:100px; }
.account-welcome-art { display:block; height:145px; width:100%; object-fit:contain; margin-bottom:16px; }
#account-auth h1,#account-auth > p:first-of-type { text-align:center; }
h1 { font-size:25px; }
h2 { font-size:20px; }
h1,h2 { margin-top:0; }
label { display:flex; flex-direction:column; margin:14px 0; gap:5px; }
input { width:100%; min-height:44px; padding:10px 12px; border:1px solid #d9d7df; border-radius:12px; background:#fff; color:var(--ink); }
small,.note { font-size:13px; color:#736d79; }
.note { margin-top:20px; }
button,.account-story-link { border:1px solid #e9d38d; border-radius:12px; background:#ffe589; color:var(--ink); min-height:44px; padding:10px 16px; cursor:pointer; }
button:disabled { opacity:.65; cursor:wait; }
button.secondary { background:#fffefb; color:var(--ink); border-color:#e4dfd2; }
button.danger { background:#a84251; border-color:#a84251; color:#fff; }
#account-submit,#account-toggle { width:100%; margin-top:12px; }
[hidden] { display:none!important; }
.home-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.home-heading h1 { margin:0; overflow-wrap:anywhere; }
.account-story-welcome { display:flex; align-items:center; gap:28px; min-height:190px; border:1px solid #dce9cf; border-radius:22px; padding:16px 30px; margin:18px 0; background:#e9f5fc url('../assets/storybook-garden-v1.png') right bottom / auto 75px no-repeat; }
.account-story-welcome > img { width:210px; height:170px; object-fit:contain; }
.account-story-welcome h2 { font-size:25px; margin:0 0 8px; }
.account-story-welcome p { margin:0 0 16px; }
.account-story-link { display:inline-flex; align-items:center; text-decoration:none; font-weight:600; }
.album-form { display:flex; align-items:end; gap:16px; flex-wrap:wrap; }
.album-form label { flex:1; min-width:180px; }
.album-form button { margin-bottom:14px; }
#account-albums { display:flex; gap:12px; flex-wrap:wrap; }
#account-albums button { max-width:100%; overflow-wrap:anywhere; min-width:130px; padding:14px 20px; border-radius:16px; }
#account-albums button[aria-current=true] { background:#fff0b2; box-shadow:0 0 0 2px #e9cb72; }
.photo-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.photo-card { min-width:0; }
.photo-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; background:#edf3e9; }
.photo-card p { overflow-wrap:anywhere; margin:6px 0; }
.photo-card button { width:100%; padding:8px; }
.pagination { display:flex; justify-content:center; align-items:center; gap:18px; margin-top:18px; }
#account-message:empty { display:none; }
#account-message { padding:10px 14px; background:#e4f0dd; border-radius:12px; overflow-wrap:anywhere; }
footer { text-align:center; font-size:13px; margin-top:30px; }
footer a { margin-left:12px; }
:focus-visible { outline:3px solid #538f81; outline-offset:3px; }
@media(max-width:600px) {
 .account-shell { padding:16px 12px 32px; }
 .account-header { align-items:flex-start; flex-direction:column; gap:4px; }
 .brand { font-size:23px; }
 .account-header p { padding-left:56px; }
 .card { padding:16px; }
 #account-auth { padding:20px 16px 80px; }
 .account-welcome-art { height:130px; }
 .photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .home-heading { align-items:start; }
 .home-heading h1 { font-size:21px; }
 .account-story-welcome { gap:10px; padding:14px; min-height:160px; background-size:auto 35px; }
 .account-story-welcome > img { width:95px; height:130px; }
 .account-story-welcome h2 { font-size:18px; }
 .account-story-welcome p { font-size:12px; margin-bottom:10px; }
 .account-story-link { padding:8px 10px; font-size:12px; }
 .album-form { gap:0; }
 .album-form label { min-width:100%; margin:8px 0; }
 .album-form button { width:100%; margin:12px 0 0; }
}

#remember-device-label input,#adult-confirmation-label input { width:22px; min-height:22px; height:22px; margin:0 8px 0 0; vertical-align:middle; accent-color:#a8780c; }
/* 2026-11-13: 清除拾光資料 on 刪除帳戶與資料 (js/data-removal.js) */
.data-removal[hidden]{display:none}
html body.app-ui.app-ui .data-removal button.danger{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:14px 0 0;padding:0 16px;border:0;border-radius:14px;font-weight:700}
.data-removal-status{margin:10px 0 0;font-size:14px;line-height:1.6}
.data-removal-status:empty{display:none}
/* 2026-11-13 Hank: the deletion request form and the progress lookup are reached from 刪除帳戶與資料 only (account.html?intent=delete, #deletion-status-panel) */
body:not(.deletion-entry) :is(#account-deletion,#deletion-status-panel){display:none!important}
