:root{font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:#493326;background:#faf7ef;line-height:1.55;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}a{color:#456853;text-underline-offset:4px}[hidden]{display:none!important}
button,input,select,textarea{font:inherit}button{border:0;border-radius:13px;background:#ffe589;color:#493326;min-height:48px;padding:11px 18px;cursor:pointer;font-weight:700}button:hover{background:#f5d771}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#edf2f8;color:#354d68}button.danger{background:#995447;color:#fff}button.download-action{background:#d9efff;color:#264e71}
input:not([type=checkbox]),select,textarea{border:1px solid #cdd4df;border-radius:12px;background:#fff;padding:11px;min-height:48px;color:inherit;max-width:100%}input[type=checkbox]{width:22px;height:22px;accent-color:#538d79;flex-shrink:0;margin:1px 0 0}textarea{width:100%;resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,6vw,3rem);line-height:1.2;margin-bottom:8px;font-weight:800}h2{font-size:1.2rem;line-height:1.4;margin-bottom:10px}h3{font-size:1.15rem;line-height:1.4;margin-bottom:8px}p{overflow-wrap:anywhere}small,.muted{color:#736d79}.muted{font-size:.9rem}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #b78740;outline-offset:3px}
.memory-header{display:flex;align-items:center;gap:18px;padding:14px max(20px,calc((100% - 1040px)/2));border-bottom:1px solid #e9e3d8;background:#fffefbf5;padding-top:max(14px,env(safe-area-inset-top));min-height:64px}
.memory-back{display:flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap;text-decoration:none;color:#493326;font-size:.9rem}.memory-back>span:first-child{font-size:2rem;line-height:1}.brand{display:flex;align-items:center;gap:8px;white-space:nowrap;text-decoration:none;font-weight:800;color:#493326}.brand img{width:34px;height:34px;border-radius:10px}.memory-header nav{display:flex;gap:18px;font-size:.9rem;margin-left:auto}
.memory-shell{max-width:1040px;margin:0 auto;padding:24px 20px calc(40px + env(safe-area-inset-bottom))}.intro{position:relative;min-height:180px;border:1px solid #dfebd2;border-radius:22px;padding:28px;margin-bottom:20px;overflow:hidden;background:linear-gradient(125deg,#e7f4fd,#f0f7df)}.intro-copy{position:relative;z-index:1;max-width:58%}.intro .eyebrow{display:block;color:#78805c;font-size:.8rem;letter-spacing:.06em;margin-bottom:6px}.intro p{color:#61584e;margin:0}.intro-art{position:absolute;right:0;bottom:-2px;width:55%;height:100%;object-fit:contain;object-position:right bottom;pointer-events:none}
#memory-status{font-size:.9rem;color:#746d61;margin:0 0 18px}#memory-status:empty{display:none}.panel{background:#fffefb;border:1px solid #e9e3d8;border-radius:22px;padding:24px;margin-bottom:20px;box-shadow:0 3px 10px #49332608}.exploration{display:flex;gap:10px 16px;flex-wrap:wrap;align-items:center}.exploration>div{flex:1;min-width:0}.exploration h2{margin-bottom:6px}.exploration p{font-size:.9rem;margin-bottom:0;color:#586171}.exploration>a{display:flex;align-items:center;gap:6px;min-height:44px;text-decoration:none;color:#476a5a;white-space:nowrap;font-weight:600;font-size:.9rem}.exploration progress{display:block;width:100%;height:10px;accent-color:#91b6d9}.exploration small{width:100%;font-size:.8rem}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.section-heading h2{margin-bottom:12px}.section-heading h2>span{color:#ecc54c}.section-heading>span{font-size:.8rem;color:#7a8276}.daily-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px}.daily-card .photo-button{border-radius:16px;overflow:hidden}.daily-card time{display:block;font-size:.85rem;color:#586d7e;margin-bottom:5px}.daily-card p{margin-bottom:10px}.daily-actions{display:flex;gap:10px;margin-top:14px}.daily-actions button{flex:1;padding-inline:10px;font-size:.9rem}.daily-actions button.secondary{background:#fff;color:#493326;border:1px solid #e9e3d8}
.photo-button{display:block;width:100%;padding:0;background:#eef3e8;border-radius:0;text-align:left;overflow:hidden;min-height:0}.photo-button img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.photo-button .image-unavailable{display:grid;place-items:center;min-height:150px;padding:20px;font-size:.85rem;color:#697265;background:#eef3e8}
.tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.tag{font-size:.82rem;background:#ffe4e9;border-radius:20px;padding:5px 12px;color:#75464e;overflow-wrap:anywhere;max-width:100%}.tag:nth-child(3n+2){background:#dcefff;color:#365f7d}.tag:nth-child(3n){background:#e5f4dd;color:#4e6840}.tag:nth-child(4n){background:#fff0b5;color:#70571d}
.search-row{display:flex;gap:10px}.search-row input{flex:1;min-width:0}.album-filter{display:flex;align-items:center;gap:12px;margin:14px 0;font-size:.9rem}.album-filter select{min-width:0}.search-note{font-size:.8rem;margin-bottom:0}.memory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.memory-card{border:1px solid #e7e9e0;border-radius:16px;overflow:hidden;background:#fff;min-width:0}.card-text{padding:13px}.card-text p{margin:4px 0;font-size:.9rem}.card-text time{font-size:.8rem;color:#5f7081}.pagination{display:flex;justify-content:center;gap:14px;align-items:center;margin-top:18px;font-size:.9rem}
#exploration-settings>summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item}details[open]>summary{margin-bottom:18px}.settings-intro{color:#5f6473}.check{display:flex;align-items:flex-start;gap:12px;min-height:44px;margin:8px 0;cursor:pointer}.preferences{border:1px solid #e6e8df;border-radius:16px;padding:14px 16px;margin:16px 0}.preferences .check:last-child{margin-bottom:0}fieldset{border:1px solid #e6e8df;border-radius:16px;padding:16px;margin:18px 0}legend{font-weight:700;padding-inline:5px}.album-setting{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #eceee7}.album-setting:last-child{border-bottom:0}.album-setting strong{flex:1;min-width:110px;overflow-wrap:anywhere}.album-setting label{display:flex;align-items:center;gap:9px;font-size:.9rem;min-height:44px;cursor:pointer}.selection-note{margin:12px 0 0;font-size:.8rem}.consent-card{border:1px solid #e6e8df;border-radius:16px;padding:16px;margin:18px 0}.consent-card .check{font-weight:600;margin-top:0}.consent-card p{font-size:.83rem;margin:8px 0}.consent-card>a{display:inline-flex;align-items:center;min-height:44px;font-size:.9rem}.consent-card small{display:block;font-size:.8rem}.save-settings{width:100%}#settings-status{margin:10px 0 0;font-size:.9rem;color:#456853}#settings-status:empty{display:none}.erase-section{margin-top:20px;background:#fff1ee;border:1px solid #f2ded7;border-radius:16px;padding:16px;color:#8b443b}.erase-section>summary{font-weight:700;cursor:pointer;min-height:44px}.erase-section p{font-size:.9rem;color:#746b6c}.settings-view .home-section,.settings-view #memory-status{display:none}.settings-view .intro{min-height:0;background:transparent;border:0;padding:0;overflow:visible;margin-bottom:20px}.settings-view .intro-copy{max-width:100%}.settings-view .intro-art,.settings-view .eyebrow,.settings-view #exploration-settings>summary{display:none}.settings-view #exploration-settings{padding:0;border:0;background:none;box-shadow:none}.settings-view #memory-settings>.settings-intro{display:none}.settings-view h1{font-size:2rem}.settings-view fieldset{background:#fffefb;margin-top:0}.settings-view .preferences,.settings-view .consent-card{background:#fffefb}
#memory-viewer{border:4px solid #f2e8ba;border-radius:22px;padding:0;width:min(1080px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:#493326;background:#453326}#memory-viewer[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,36%);grid-template-areas:"toolbar toolbar" "photo info";gap:0 16px;padding:0 16px 16px}#memory-viewer::backdrop{background:#30251fd9}.viewer-header{grid-area:toolbar;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fffefb;padding:4px 0}.viewer-header form{margin:0}.viewer-header .close{position:static;background:transparent;color:#fffefb;padding:7px 12px;min-width:44px;min-height:44px;font-size:1.2rem}#memory-photo{grid-area:photo;display:block;width:100%;max-height:calc(100dvh - 120px);object-fit:contain;align-self:center;border-radius:14px;background:#453326}.viewer-body{grid-area:info;background:#fffefb;border-radius:18px;padding:20px;min-width:0;max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}.viewer-body h2{margin-bottom:5px;overflow-wrap:anywhere}.viewer-body>p{font-size:.85rem;color:#687384}.original-tags{padding:12px 0;border-top:1px solid #e6e8e2;border-bottom:1px solid #e6e8e2;margin:12px 0}.original-tags h3{font-size:.9rem;margin:0}.original-tags .tag{background:#fff0b5}.viewer-body #memory-edit label{display:block;margin-bottom:12px;font-size:.9rem;font-weight:600}.viewer-body #memory-edit :is(input,textarea){width:100%;margin-top:7px;font-weight:400}.editable-tags{margin:12px 0}.editable-tags button.tag{min-height:44px;padding:6px 12px;font-weight:500}.viewer-actions{display:flex;flex-direction:column;gap:8px}.viewer-note{text-align:center;margin:12px 0 5px!important;font-size:.8rem!important}.transfer-link{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:.85rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:600px){.memory-header{padding-left:14px;padding-right:14px;gap:12px;justify-content:space-between}.brand img{width:28px;height:28px;border-radius:9px}.brand span{font-size:.9rem}.memory-header nav{display:none}.memory-shell{padding:16px 12px calc(26px + env(safe-area-inset-bottom))}.intro{min-height:166px;padding:20px 16px}.intro h1{font-size:2.1rem}.intro-copy{max-width:62%}.intro .eyebrow{font-size:.72rem}.intro p{font-size:.85rem}.intro-art{width:74%;height:90%;right:-8px;bottom:-5px}.panel{padding:18px 15px;border-radius:18px;margin-bottom:16px}.exploration{gap:8px}.exploration>div{flex:1 1 100%}.exploration>a{order:3;margin-left:auto;min-height:44px}.exploration progress{order:1}.exploration small{order:2;width:auto;flex:1}.exploration p{font-size:.83rem}.daily-card{grid-template-columns:1fr;gap:12px}.daily-panel{padding:15px 10px}.daily-card>div{padding:0 5px}.daily-card .photo-button{border-radius:12px}.section-heading{flex-wrap:wrap;gap:0 8px}.section-heading h2{font-size:1.1rem}.search-row{flex-direction:column}.album-filter select{flex:1}.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card-text{padding:9px}.card-text p{font-size:.8rem}.card-text time{font-size:.72rem}.memory-grid .tag{padding:4px 8px;font-size:.7rem}.memory-grid .tags{gap:5px}.settings-view .memory-shell{padding:24px 16px calc(28px + env(safe-area-inset-bottom))}.settings-view fieldset{padding:14px}.preferences,.consent-card{padding:14px}.check{font-size:.92rem}.album-setting strong{font-size:.95rem}#memory-viewer{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}#memory-viewer[open]{display:block;padding:0}.viewer-header{padding:4px 10px;position:sticky;top:0;z-index:2;background:#453326}#memory-photo{border-radius:0;max-height:42dvh;width:100%;min-height:160px}.viewer-body{border-radius:18px 18px 0 0;padding:18px;max-height:none}.viewer-body>p{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* 2026-11-13 Hank: 拾光設定 = two collapsed groups (LINE 背景上傳, 背景回憶探索) with an intro at the top; saved settings locked. */
body:not(.settings-view) .settings-only{display:none}
/* card look and chevron come from ui-kit (details.panel) */
.sg-card{margin-bottom:16px}
.sg-card>summary,body.settings-view #exploration-group.sg-card>summary{display:flex;align-items:center;gap:12px;min-height:64px;margin:0;cursor:pointer;list-style:none}
.sg-card[open]>summary{margin-bottom:8px}
.sg-head{display:grid;gap:3px;min-width:0}
.sg-title{font-size:18px;font-weight:700;line-height:1.3}
.sg-sub{font-size:13px;line-height:1.45;color:#6f604f;font-weight:400}
.sg-intro{background:#f3f6ef;border:1px solid #dfe8d6;border-radius:14px;padding:12px 14px;margin:0 0 14px}
.sg-intro p{margin:0;font-size:14px;line-height:1.65;color:#3f5144}
.sg-link{min-height:60px;padding:8px 2px;border-top:1px solid #efe9de}
.sg-link-copy{flex:1;min-width:0;display:grid;gap:2px}
.sg-link-copy small{font-size:13px;font-weight:400;color:#6f604f}
.memory-lock{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;border-radius:14px;background:#f6f1e4}
.memory-lock[hidden]{display:none}
.memory-lock p{margin:0;min-width:0;font-size:14px;line-height:1.55;color:#4b3f33}
.memory-lock button{flex:none;min-height:44px;margin:0;padding:0 18px}
#memory-settings.locked fieldset,#memory-settings.locked .preferences{opacity:.72}
.memory-actions{display:grid;gap:10px;margin-top:4px}
.memory-actions button{width:100%;min-height:48px;margin:0}
.sg-note{margin:16px 0 2px;font-size:13px;line-height:1.6}
/* 2026-11-13 Hank「讓LINE收件頁面內容全部移入 LINE背景上傳」: LINE 收件 inside the group. The LINE page styles (css/line-albums.css,
   loaded with this view only) draw each part as its own card; inside a group they are flat sections with a hairline between them. */
/* 2026-11-13 Hank: 加入好友導引 at the top of LINE 背景上傳 — three numbered steps and the add-friend button of the official account. */
.line-start{margin:0 0 16px;padding:14px 14px 12px;border:1px solid #e6dcc8;border-radius:14px;background:#fffdf6}
.line-start h3{margin:0 0 8px;font-size:15px;line-height:1.4;font-weight:700;color:#3c2f25}
.line-page .line-start-steps,.line-start-steps{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.line-start-steps li{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.55;color:#4b3f33}
.line-start-n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-top:-1px;border-radius:50%;background:#e7eedf;color:#2f5d3b;font-size:13px;font-weight:700}
.line-start-copy{min-width:0;overflow-wrap:anywhere}
html body.app-ui.app-ui .line-start a.line-start-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:0;padding:0 16px;box-sizing:border-box;text-decoration:none;color:#fff}
.line-start-note{margin:8px 0 0;font-size:13px;line-height:1.5;color:#6f604f}
.line-embed{margin:0}
/* arriving at a group from an old LINE link or back from 參考對象: its heading stays below the page bar, not under it */
#line-background,#line-golden,#exploration-group{scroll-margin-top:calc(env(safe-area-inset-top,0px) + 64px)}
.line-embed-title{display:none;margin:0 0 10px;font-size:18px;line-height:1.35}
html body.app-ui.app-ui .line-embed :is(.line-card,.line-status-card){margin:0;padding:14px 0;border:0;border-top:1px solid #efe9de;border-radius:0;background:transparent;box-shadow:none}
html body.app-ui.app-ui .line-embed .line-status-card{display:block;border-top:0;padding:0 0 12px}
html body.app-ui.app-ui .line-embed .line-status-card p{margin:0;font-size:14px;line-height:1.6;color:#4f6354}
html body.app-ui.app-ui .line-embed details.line-card{padding:2px 0}
html body.app-ui.app-ui .line-embed details.line-card[open]{padding-bottom:14px}
html body.app-ui.app-ui .line-embed details.line-card>summary{min-height:52px;margin:0}
.line-embed .line-card h2{font-size:16px;line-height:1.4;margin:0 0 8px}
.line-embed .line-bound-groups{margin-bottom:0}
.line-embed .line-import-section{margin-top:0}
.line-embed .line-footer{margin-top:0;padding:12px 0 0;text-align:left}
.line-embed #line-items{max-height:26rem}
/* a group binding link shows only the group being bound (the LINE page rule hides the rest of LINE 收件) */
body.line-group-binding .line-embed-title{display:block}
body.line-group-binding :is(.intro,#exploration-group,#line-background>summary,#line-background>.sg-intro,#line-background>.line-start){display:none!important}
/* the LINE page styles are written for a page of its own; keep them off the other group */
.line-page #exploration-group fieldset{background:transparent;border:1px solid #e6e8df;border-radius:16px;padding:16px;margin:18px 0;box-shadow:none}
.line-page #exploration-group legend{font-size:1rem;font-weight:700;padding-inline:5px}
.line-page #exploration-group .check{display:flex;align-items:flex-start;gap:12px;min-height:44px;margin:8px 0;font-size:inherit}
.line-page #exploration-group .consent-card .check{margin-top:0}
.line-page #exploration-group .album-setting label{display:flex}

/* Claude R3427 batch07-07: 「回憶探索進度」: the note keeps at least 10em; when 「拾光設定 ›」 cannot fit beside it, the link drops
   below it instead of squeezing the note into a narrow column (also at normal size on 320px; at 402px they still
   share one line). */
html body.app-ui .exploration>#exploration-quota{flex:1 1 10em;min-width:0}
html body.app-ui .exploration>#exploration-quota:empty{flex-basis:0}

/* Claude R3427 batch07-09: 「想找哪一段回憶？」 breaks only at its <wbr> (想找哪一段／回憶？), not 「想找哪／一段回憶？」. */
html body.app-ui #search-title{word-break:keep-all;overflow-wrap:anywhere}
/* Claude R3427 batch07-09: the daily memory card's 「收藏這張」「不再推薦這張」 split mid-word at 150% text (「收藏這／張」「不再推／
   薦這張」, and 「不再推薦這／張」 even at normal size on a 320px screen). Each label stays on one line: a button is never narrower
   than its own label (min-width:max-content, measured on the drawn text, so Android's text zoom counts; em lengths do not grow
   with it). Side by side they still share the row equally; when both labels do not fit they stack full width, 8px apart.
   The selector (0,5,3) outranks ui-kit.css's pill rule, which loads later and sets min-width:0; white-space:normal:
   … :is(main,…,.timehut-dialog,…) button:not([class]) is (0,4,3) because :is() counts its most specific argument, and
   … :is(…,button.secondary,…) is (0,4,3) too. */
html body.app-ui .daily-actions{flex-wrap:wrap;row-gap:8px}
html body.app-ui.app-ui .daily-actions.daily-actions.daily-actions>button{flex:1 1 0;min-width:max-content;max-width:100%;white-space:nowrap}
