/* 原生 dialog 進入 top layer 後不能依賴外層 flex 置中。 */
[hidden]{display:none!important}
dialog{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 40px));height:fit-content;max-height:calc(100dvh - 40px);max-width:none;overflow:hidden}
dialog[open]{display:flex;flex-direction:column}.dialog-backdrop{display:block}.dialog-head,.dialog-foot{flex:none;position:static}.dialog-head{padding:19px 24px;gap:16px}.dialog-head h2{min-width:0;font-size:21px;line-height:1.5;text-wrap:balance}.dialog-head .icon-btn{flex-shrink:0}.dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:23px 24px}.dialog-foot{padding:15px 24px;gap:10px}.dialog-foot .btn{white-space:nowrap}.login-dialog{width:min(440px,calc(100vw - 36px))}.record-editor-dialog{height:min(740px,calc(100dvh - 36px));width:min(760px,calc(100vw - 40px))}.record-editor-dialog .dialog-body{display:flex;flex-direction:column;padding:0;overflow:hidden}.record-editor-dialog .dialog-head{padding-block:17px}.editor-progress{display:flex;align-items:center;justify-content:center;gap:12px;padding:15px 20px;border-bottom:1px solid var(--line);background:#f1f1e7;flex:none}.editor-progress button{display:flex;gap:7px;align-items:center;white-space:nowrap;font-size:10px;color:var(--muted);padding:0}.editor-progress button span{width:24px;height:24px;display:grid;place-items:center;border:1px solid #c9d0bc;border-radius:50%;font:12px var(--serif)}.editor-progress button.active{color:var(--green);font-weight:600}.editor-progress button.active span{background:var(--green);color:var(--paper);border-color:var(--green)}.editor-progress i{width:24px;height:1px;background:#d0d6c4}#record-form{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;padding:20px 25px}.editor-step{position:relative;min-height:100%}.editor-step-intro{margin-bottom:16px}.editor-step-intro h3{font-family:var(--serif);font-size:19px;margin:0 0 6px;line-height:1.5}.editor-step-intro p{font-size:10px;color:var(--muted);margin:0;line-height:1.8}.compact-fields{gap:13px 17px}.compact-fields .field{gap:6px;font-size:11px}.compact-fields input,.compact-fields select,.compact-fields textarea{padding:9px 10px;font-size:12px;min-width:0;line-height:1.5}.compact-fields textarea{min-height:80px;max-height:130px}.compact-fields .field>span{white-space:nowrap}.photo-entry{display:flex;align-items:stretch;gap:12px;margin-bottom:10px}.photo-entry .upload-zone{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px}.photo-entry .upload-zone .icon{margin:0 0 2px;width:23px;height:23px}.photo-entry .upload-zone strong{font-size:12px;font-weight:500}.photo-entry .upload-zone span{font-size:9px}.photo-entry .upload-zone small{font-size:8px;color:var(--muted)}.editor-placeholder{width:135px;display:flex;flex-direction:column;justify-content:center;background:#f1eedf;border-radius:7px;overflow:hidden;flex-shrink:0}.editor-placeholder img{height:95px;object-fit:contain}.editor-placeholder span{text-align:center;font-size:8px;color:#879177;padding:0 5px 8px}.upload-feedback{font-size:10px;color:var(--muted);line-height:1.7}.upload-feedback:not(:empty){padding:6px 0}.photo-editor{gap:9px;max-height:110px;overflow:auto;margin:8px 0 14px;flex-wrap:nowrap}.photo-edit{width:90px;flex-shrink:0}.photo-edit img{height:60px;aspect-ratio:4/3}.photo-edit .cover-mark{font-size:8px;line-height:1.7;white-space:nowrap}.photo-edit .photo-tools{display:flex;justify-content:space-between;gap:2px}.photo-edit .photo-tools button{padding:1px 0;font-size:9px;color:var(--green);white-space:nowrap}.photo-edit .remove{font-size:13px;top:2px;right:2px}.editor-footer-space{flex:1}.editor-quick-save{font-size:10px;color:var(--muted);white-space:nowrap;padding:7px}.rating-section-label{grid-column:1/-1;font-size:10px;color:var(--muted);padding-top:4px;border-top:1px solid var(--line);line-height:1.8}.dimension-field{display:grid;grid-template-columns:1fr 1.25fr;align-items:center;gap:10px}.dimension-field select{font-size:10px;padding:8px}.location-input-row{display:flex;align-items:flex-end;gap:9px;margin-bottom:10px}.location-input-row .field{flex:1;min-width:0;font-size:10px;gap:6px}.location-input-row input{font-size:11px;padding:10px;line-height:1.5}.location-input-row .btn{height:37px;flex-shrink:0;padding:8px 12px;font-size:10px}.location-feedback{font-size:9px;line-height:1.7;margin:0 0 8px;gap:10px}.location-feedback>span{min-width:0}.location-feedback>button{flex-shrink:0;color:var(--muted);font-size:9px;text-decoration:underline}.editor-step .preview-map{height:190px;border:1px solid var(--line);margin-top:5px}.editor-step .location-search-list{max-height:140px;position:absolute;left:0;right:0;top:192px;background:var(--surface);box-shadow:var(--shadow);border-radius:6px;z-index:4}.editor-step .location-search-list:empty{display:none}.editor-extra{margin-top:13px;border-top:1px solid var(--line)}.editor-extra summary{cursor:pointer;list-style:none;font-family:var(--serif);font-size:14px;padding:13px 2px;display:flex;align-items:center;gap:10px}.editor-extra summary:after{content:'＋';margin-left:auto;color:var(--muted)}.editor-extra[open] summary:after{content:'−'}.editor-extra summary span{font-family:var(--sans);font-size:9px;color:var(--muted)}.editor-extra .form-grid{padding-bottom:10px}.focus-editor{position:absolute;inset:-1px;background:var(--paper);z-index:6;padding:0 2px 10px}.focus-editor h3{font-family:var(--serif);font-size:18px;margin:0 0 7px}.focus-editor p{font-size:10px;margin:0;color:var(--muted)}.focus-preview{width:min(100%,360px);aspect-ratio:4/3;margin:16px auto 12px;position:relative;border-radius:7px;overflow:hidden;cursor:grab;touch-action:none;border:1px solid var(--line);user-select:none}.focus-preview:active{cursor:grabbing}.focus-preview img{object-fit:cover;pointer-events:none}.focus-grid{position:absolute;inset:0;background:linear-gradient(90deg,transparent 33%,#fff5 33%,#fff5 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#fff5 66%,#fff5 calc(66% + 1px),transparent calc(66% + 1px)),linear-gradient(0deg,transparent 33%,#fff5 33%,#fff5 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#fff5 66%,#fff5 calc(66% + 1px),transparent calc(66% + 1px));pointer-events:none}.focus-hint{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:9px;white-space:nowrap;background:#fffdf8dc;color:#345440;border-radius:20px;padding:5px 9px;pointer-events:none}.focus-sliders{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:10px 0 17px}.focus-sliders label{font-size:10px;color:var(--muted)}.focus-sliders input{display:block;width:100%;accent-color:var(--green);margin-top:10px}.food-card .card-photo{aspect-ratio:4/3!important}.detail-cover img{object-fit:contain;cursor:zoom-in}.detail-cover{background:#efefe5}.full-photo{max-width:100%;max-height:72dvh;object-fit:contain}.sidebar .brand small{font-size:6px;letter-spacing:1.3px;white-space:nowrap}.btn,.chip{white-space:nowrap}.page-heading>div:first-child{min-width:0}.page-heading h1{text-wrap:balance;line-height:1.6}.page-heading>.btn,.page-heading>.row{flex-shrink:0}.section-title h2{min-width:0;line-height:1.7;text-wrap:balance}.section-title .eyebrow{display:inline-block;white-space:nowrap}.card-title{width:100%}.card-title h3{text-wrap:pretty;overflow-wrap:anywhere}.card-place{overflow-wrap:anywhere}.sources-list a,.source-box a{overflow-wrap:anywhere}.dark-mode .editor-progress{background:#2a392b}.dark-mode .editor-placeholder,.dark-mode .detail-cover{background:#31412e}
@media(max-width:680px){dialog{inset:0;margin:auto;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.record-editor-dialog{height:calc(100dvh - 20px);width:calc(100vw - 20px)}.dialog-head{padding:15px 17px}.dialog-head h2{font-size:19px}.dialog-body{padding:18px}.dialog-foot{padding:13px 16px;gap:8px}.dialog-foot .btn{padding:10px 13px;font-size:11px}.editor-progress{padding:13px 12px;gap:7px}.editor-progress button{font-size:9px;gap:5px}.editor-progress button span{width:21px;height:21px;font-size:10px}.editor-progress i{width:9px}#record-form{padding:17px}.editor-step-intro h3{font-size:18px}.editor-step-intro p{font-size:9px}.photo-entry .upload-zone{padding:10px;gap:3px}.photo-entry .upload-zone small{font-size:7px}.photo-entry .upload-zone span{font-size:8px}.editor-placeholder{width:95px}.editor-placeholder img{height:80px}.editor-placeholder span{font-size:7px}.compact-fields{gap:12px}.compact-fields .field{font-size:10px}.compact-fields input,.compact-fields textarea{font-size:16px;padding:9px}.compact-fields select{font-size:11px;padding:10px 5px}.dimension-field{grid-template-columns:1fr;gap:5px}.dimension-field select{font-size:10px}.editor-quick-save{font-size:9px}.editor-step .preview-map{height:180px}.location-input-row input{font-size:16px;padding:9px}.location-input-row .btn{font-size:9px;padding:8px 10px}.focus-editor h3{font-size:17px}.focus-preview{width:min(100%,310px);margin-top:14px}.focus-sliders{gap:14px}.page-heading h1{font-size:24px}.page-heading .row{gap:6px}.page-heading .row .btn{padding:8px;font-size:9px}}

html{scrollbar-gutter:stable}.photo-editor:empty{display:none;margin:0}.editor-step-intro{margin-bottom:11px}.editor-step-intro h3{font-size:18px}.photo-entry .upload-zone{padding:8px 10px;gap:2px}.photo-entry .upload-zone .icon{width:20px;height:20px}.editor-placeholder img{height:70px}.editor-placeholder span{padding-bottom:6px}.record-editor-dialog #record-form{padding:16px 22px}.photo-entry .upload-zone small{line-height:1.6}.focus-sliders{grid-template-columns:repeat(3,1fr);gap:12px}.focus-preview{width:min(100%,280px);margin:12px auto}.focus-editor{overflow:auto}.clear-filters{order:10;font-size:10px;color:var(--green);white-space:nowrap;padding:9px 11px;border:1px solid var(--line);border-radius:5px}.toolbar .search{order:0}.toolbar select{order:1}
@media(max-width:680px){.record-editor-dialog #record-form{padding:16px}.photo-entry .upload-zone span{font-size:8px}.photo-entry .upload-zone small{font-size:7px}.clear-filters{font-size:9px;padding:8px}.editor-step-intro h3{font-size:17px}}

.editor-step[data-editor-step="2"] textarea{min-height:58px;max-height:90px}.editor-dimensions summary{font-size:13px}.editor-dimensions summary span{font-size:8px;line-height:1.7}.editor-dimensions[open] .form-grid{padding-bottom:14px}.editor-step[data-editor-step="2"] .field.full select{max-width:260px}

.banner-season strong{white-space:nowrap}.focus-preview img{max-width:none}.collection-card h2{overflow-wrap:anywhere}.dialog-head h2{min-width:0;overflow-wrap:anywhere}.field{min-width:0}
@media(max-width:680px){.banner-season{width:66px;height:66px;right:12px}.banner-season strong{font-size:14px!important}.photo-entry .upload-zone{padding:10px 8px}.photo-entry .upload-zone span{font-size:9px}.photo-entry .upload-zone small{font-size:9px;line-height:1.6}.editor-placeholder{width:74px}.editor-placeholder img{height:64px}.editor-placeholder span{font-size:9px;line-height:1.5;padding:0 5px 6px}.editor-step-intro p{font-size:11px;line-height:1.7}.compact-fields .field{font-size:11px}.editor-extra summary span{font-size:10px}.editor-step .location-feedback{font-size:11px}.editor-placeholder span{display:none}.photo-entry .upload-zone .icon{display:none}}

.editor-step.focus-mode>:not(.focus-editor){display:none!important}.editor-step.focus-mode .focus-editor{position:relative;inset:auto;overflow:visible;padding:0}.editor-step.focus-mode .focus-preview{margin-top:14px}

.photo-edit-preview{height:60px;aspect-ratio:4/3;overflow:hidden;border-radius:5px}.photo-edit-preview img{width:100%;height:100%;border-radius:0}.photo-edit>.remove,.photo-edit>.cover-mark,.photo-edit>.photo-tools{z-index:1;position:relative}.photo-edit>.remove{position:absolute}

.focus-sliders{grid-template-columns:1fr 1fr;align-items:end;gap:20px}.rotation-control{min-width:0;font-size:11px;color:var(--muted)}.rotation-control label{font-size:11px}.rotation-value{display:flex;align-items:center;gap:3px}.rotation-value input{width:64px;padding:4px 6px;font-size:12px}.rotation-control>input{width:100%;accent-color:var(--green);margin-top:10px}.focus-shortcuts{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.focus-shortcuts .btn:last-child{margin-left:auto}.focus-shortcuts .btn{font-size:10px;padding:8px 10px}.detail-cover{aspect-ratio:4/3;height:auto}.detail-cover img{object-fit:cover}.photo-edit-preview{height:auto;aspect-ratio:4/3}.photo-edit-preview img{height:100%}.focus-sliders input{touch-action:pan-x}.focus-hint{font-size:9px}
@media(max-width:680px){.focus-sliders{gap:14px}.focus-shortcuts .btn{font-size:10px;padding:9px}.focus-shortcuts .btn:last-child{flex:1 1 100%;margin:2px 0 0}.focus-hint{font-size:8px}.focus-preview{width:min(100%,250px)}.rotation-value input{font-size:16px}.rotation-control .row{gap:4px}}

.capture-dialog{width:min(490px,calc(100vw - 30px))}.capture-intro{display:flex;gap:16px;align-items:center;margin-bottom:18px}.capture-flower{font-size:42px;color:var(--orange)}.capture-intro p{font-size:12px;color:var(--muted);margin:0}.capture-dialog textarea{min-height:95px;resize:vertical;line-height:1.8;font-size:13px}.capture-source{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0 18px}.capture-extra{border-top:1px solid var(--line)}.capture-extra summary{padding:14px 0;font-size:12px;cursor:pointer;color:var(--green)}.capture-extra summary span{font-size:10px;color:var(--muted);margin-left:8px}.capture-extra .field{margin-bottom:14px}.capture-dialog .dialog-foot{justify-content:space-between}.capture-dialog .dialog-foot .btn{font-size:11px;padding:10px 13px}.wishlist-complete{margin:0 0 20px}.map-result-photo{height:72px;width:72px;flex-shrink:0;overflow:hidden;border-radius:6px}.map-result .map-result-photo img{width:100%;height:100%;border-radius:0}.visit-item .visit-photo{display:block;margin:0;height:90px;overflow:hidden;border-radius:6px}.visit-item .visit-photo img{height:100%;border-radius:0}
@media(max-width:680px){.capture-dialog textarea,.capture-dialog input:not([type=hidden]){font-size:16px}.capture-dialog .dialog-head h2{font-size:18px}.capture-intro p{font-size:12px}.capture-extra summary span{display:block;margin:5px 0 0 16px}.map-result-photo{height:62px;width:66px}.page-heading>.row{flex-wrap:wrap;justify-content:flex-end}.page-heading>.row .btn{font-size:10px}}

.rb-stop-photo{width:42px;height:42px;overflow:hidden;border-radius:5px;flex-shrink:0}.rb-stop-photo .rb-stop-image{width:100%;height:100%;border-radius:0}.map-popup-photo{height:125px;overflow:hidden;border-radius:5px;margin-bottom:10px}.map-popup .map-popup-photo img{height:100%;margin:0;border-radius:0}

.capture-dialog .dialog-body{text-align:left}.capture-dialog .field{text-align:left}.editor-step.focus-mode .focus-editor{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px 20px;align-items:center}.focus-editor>.row{grid-column:1/-1}.focus-mode .focus-preview{grid-column:1;grid-row:2/4;width:100%;max-width:300px;margin:0 auto}.focus-mode .focus-sliders{grid-column:2;grid-row:2;grid-template-columns:1fr;gap:9px;margin:0}.focus-mode .focus-shortcuts{grid-column:2;grid-row:3;align-self:start;gap:6px}.focus-mode .focus-shortcuts .btn:last-child{width:100%;margin:2px 0 0}.focus-mode .focus-shortcuts .btn{font-size:10px;padding:8px}.focus-editor h3{font-size:17px}
@media(max-width:680px){.editor-step.focus-mode .focus-editor{grid-template-columns:1fr;gap:10px}.focus-editor>.row,.focus-mode .focus-preview,.focus-mode .focus-sliders,.focus-mode .focus-shortcuts{grid-column:1;grid-row:auto}.focus-mode .focus-preview{width:min(100%,240px)}.focus-mode .focus-sliders{grid-template-columns:1fr 1fr;gap:12px}.focus-mode .focus-shortcuts{justify-content:center}.focus-mode .focus-shortcuts .btn:last-child{flex:1 1 100%;margin-top:2px}.focus-editor h3{font-size:16px}.focus-editor p{font-size:10px}}
@media(max-width:680px) and (max-height:650px){.focus-mode .focus-preview{width:190px}.focus-mode .focus-hint{font-size:7px}.focus-mode .focus-sliders{gap:10px}.focus-editor>.row h3{font-size:15px}}

.wishlist-info .record-rating,.wishlist-info .detail-data,.wishlist-info .record-dimensions{display:none}.wishlist-source{margin:0 0 20px 7px}.wishlist-info .detail-note{border-top:1px solid var(--line);padding-top:20px;margin-top:6px}@media(max-width:680px){.wishlist-source{margin-left:0;margin-right:7px}}

.capture-dialog .dialog-body{padding:20px 24px}.capture-dialog .capture-intro{text-align:left}.capture-dialog .capture-extra .field{display:flex}.capture-dialog .capture-extra .category-picker{width:100%}

.dark-mode .avatar{background:#43583d;color:#f4efdc}.dark-mode .capture-extra summary{color:#c4d1ad}.dark-mode .focus-hint{background:#fffdf8e6;color:#345440}

.capture-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.capture-fields .field{margin:0 0 9px;gap:6px}.capture-fields .full{grid-column:1/-1}.capture-fields .field small{font-size:10px;line-height:1.7;color:var(--muted)}.capture-fields input{min-width:0;width:100%;font-size:12px;padding:9px}.capture-fields .cp-trigger{height:38px}.capture-dialog:has(.capture-extra[open]){width:min(590px,calc(100vw - 30px))}.capture-dialog:has(.capture-extra[open]) textarea{min-height:70px}.capture-dialog:has(.capture-extra[open]) .capture-intro{margin-bottom:12px}.capture-dialog:has(.capture-extra[open]) .capture-source{margin-block:8px}.capture-dialog .capture-extra summary{padding-block:12px}
@media(max-width:680px){.capture-fields{gap:8px 10px}.capture-fields input{font-size:16px}.capture-fields .field small{font-size:10px}.capture-dialog:has(.capture-extra[open]) .capture-intro{display:none}.capture-dialog:has(.capture-extra[open]) textarea{min-height:64px;max-height:80px}.capture-dialog .dialog-body{padding:16px 18px}}

.capture-dialog{max-width:none}.capture-dialog .dialog-head h2{font-size:21px;margin:0}.capture-dialog:has(.capture-extra[open]) .capture-intro{display:none}.capture-dialog:has(.capture-extra[open]) textarea{height:66px;min-height:66px;max-height:100px}.capture-dialog:has(.capture-extra[open]) .dialog-body{padding:18px 22px}.capture-dialog .capture-fields .field{font-size:11px}
@media(max-width:680px){.capture-dialog .dialog-head h2{font-size:18px}.capture-dialog:has(.capture-extra[open]) .dialog-body{padding:16px 18px}}

.sidebar{overflow:auto;scrollbar-width:thin}.editor-prompt-link{font-size:10px;color:var(--green);padding:2px 0;text-decoration:underline;text-underline-offset:3px}.prompt-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:5px 0 28px;padding:14px 16px;border:1px dashed #c9d2bd;border-radius:7px;background:#eff1e7;color:var(--green);text-decoration:none;font-size:11px;line-height:1.8}.prompt-entry>span:first-child{display:flex;align-items:center;gap:8px;white-space:nowrap}.prompt-entry>span:last-child{font-size:10px}.pl-public{padding-block:36px 50px}.dark-mode .prompt-entry{background:#2d402f;color:#d2dcbd}.dark-mode .editor-prompt-link{color:#c2d1ae}@media(max-width:680px){.prompt-entry{gap:8px;align-items:flex-start;flex-direction:column;padding:12px 14px}.prompt-entry>span:last-child{font-size:11px}.pl-public{padding:25px 20px}.editor-prompt-link{font-size:10px;white-space:nowrap}}

.page{padding-top:25px}.page-heading{margin-bottom:20px;align-items:center}.page-heading .eyebrow{font-size:8px;letter-spacing:1.8px}.page-heading h1{font-size:28px;line-height:1.4;margin:7px 0}.page-heading p{font-size:11px;margin:0;line-height:1.7}.journal-cover{margin-bottom:9px;border-bottom:1px solid var(--line)}.journal-cover>summary{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);cursor:pointer;padding:7px 0 10px;list-style:none}.journal-cover>summary>span{font-size:10px;white-space:nowrap}.journal-cover .editorial-banner{margin-top:9px}.journal-meta{display:flex;gap:15px;flex-wrap:wrap;align-items:center;font-size:11px;color:var(--muted);margin:10px 0 11px}.journal-meta a{margin-left:auto;font-size:10px;text-decoration:none}.prompt-entry{background:transparent;border:0;border-bottom:1px solid var(--line);padding:9px 0;margin:0 0 18px;border-radius:0;min-height:30px}.prompt-entry>span:last-child{font-size:10px}.record-filters{margin-bottom:16px}.toolbar.toolbar-compact{gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap}.toolbar-compact .search{flex:1 1 250px;min-width:0}.toolbar-compact>.category-picker{flex:0 1 155px}.toolbar-compact .clear-filters{font-size:10px;padding:8px 10px}.advanced-filters{position:relative;order:2;flex:none}.advanced-filters>summary{list-style:none;cursor:pointer;border:1px solid var(--line);padding:8px 11px;border-radius:5px;background:var(--surface);font-size:10px;white-space:nowrap;color:var(--ink);line-height:1.8}.advanced-filters>summary b{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--green);color:white;font-weight:400;margin-left:3px}.advanced-filter-panel{position:absolute;right:-60px;top:calc(100% + 8px);z-index:20;width:min(360px,calc(100vw - 40px));padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:13px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:var(--shadow)}.advanced-filter-panel>label{font-size:10px;color:var(--muted);min-width:0;display:flex;flex-direction:column;gap:7px}.advanced-filter-panel select{width:100%;min-width:0;font-size:11px;padding:8px}.active-filter-status{font-size:10px;line-height:1.7;margin:0 0 9px;color:var(--green)}.filter-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}.filter-bottom .chips{margin:0;min-width:0;gap:6px}.filter-bottom .chip{font-size:10px;padding:6px 10px}.filter-bottom .view-toggle{flex-shrink:0}.dark-mode .active-filter-status{color:#cad9b9}
@media(max-width:680px){.page{padding-top:20px}.page-heading{gap:10px;margin-bottom:16px}.page-heading h1{font-size:23px;line-height:1.4}.page-heading p{font-size:10px}.page-heading .eyebrow{font-size:7px;letter-spacing:1.4px}.journal-meta{font-size:10px;gap:12px;margin-block:8px}.journal-meta a{font-size:9px}.prompt-entry{flex-direction:row;align-items:center;gap:10px;margin-bottom:14px;padding-block:8px}.prompt-entry>span:first-child{font-size:10px}.prompt-entry>span:last-child{font-size:9px}.toolbar-compact .search{flex:1 1 100%;height:37px}.toolbar-compact>.category-picker{flex:1 1 135px;min-width:110px}.toolbar-compact .cp-trigger{height:35px;font-size:11px}.toolbar-compact .clear-filters{font-size:10px;padding:7px 9px}.advanced-filters>summary{font-size:11px;padding:6px 9px}.advanced-filter-panel{right:-52px}.filter-bottom .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}.filter-bottom .chip{font-size:10px;padding:6px 9px}.filter-bottom .view-toggle{display:none}.journal-cover>summary{font-size:10px}.journal-cover>summary>span{font-size:9px}}

.topbar{height:64px}.page{padding-top:20px}@media(max-width:680px){.topbar{height:60px}.page{padding-top:16px}}

.toolbar .advanced-filter-panel select{max-width:none;width:100%}

.working-drafts{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:16px;background:var(--surface);display:flex;gap:12px;align-items:center}.working-drafts>span{font-size:11px;white-space:nowrap;color:var(--muted)}.working-drafts>div{display:flex;gap:7px;min-width:0;overflow:auto;scrollbar-width:thin}.working-drafts button{padding:8px 10px;font-size:12px;background:var(--light);border-radius:5px;white-space:nowrap;max-width:240px;text-overflow:ellipsis;overflow:hidden}.working-drafts:empty{display:none}@media(max-width:680px){.working-drafts{display:block}.working-drafts>div{margin-top:6px}.working-drafts button{min-height:40px;max-width:220px}}

/* 同頁編輯器：只有表單捲動，導覽與儲存維持可見。 */
.record-editor-dialog{width:min(850px,calc(100vw - 40px));height:min(840px,calc(100dvh - 32px))}.record-editor-dialog .dialog-head{padding-block:12px}.editor-anchors{justify-content:stretch;padding:5px 16px;gap:6px}.editor-anchors button{flex:1;justify-content:center;min-height:42px;font-size:12px;border-radius:6px;padding:8px}.editor-anchors button.active{background:var(--surface);box-shadow:0 1px 5px #263b3210}.single-page-editor{scroll-behavior:smooth;scroll-padding-top:10px}.editor-section{position:relative;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--line);scroll-margin-top:10px;min-height:0}.editor-section:last-of-type{border-bottom:0;margin-bottom:0}.editor-section>h3,.editor-section-heading h3{font:500 19px/1.5 var(--serif);margin:0 0 14px}.editor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.editor-section-heading h3{margin:0}.field-optional{font-size:10px!important;color:var(--muted);font-weight:400}.entry-link-row{display:flex;align-items:flex-end;gap:9px}.entry-link-row .field{flex:1;min-width:0;margin-bottom:0;font-size:12px;gap:6px}.entry-link-row input{width:100%;min-width:0;font-size:13px;padding:10px}.entry-link-row .btn{min-height:42px;flex:none}.entry-link-state{font-size:11px;color:var(--muted);line-height:1.7;margin:7px 0 10px}.entry-sources{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.entry-sources:empty{display:none}.entry-sources>span{display:flex;gap:4px;align-items:center;border:1px solid var(--line);border-radius:5px;background:var(--surface);font-size:11px}.entry-sources a{padding:6px 7px;text-decoration:none}.entry-sources button{width:30px;min-height:32px;font-size:18px}.store-fields{margin-bottom:12px}.single-page-editor .compact-fields .field{font-size:12px}.meal-entry-heading{display:flex;justify-content:space-between;align-items:center;margin:2px 0 9px}.meal-entry-heading h4{font-size:14px;font-weight:500;margin:0}.meal-entry-heading>span{font-size:11px;color:var(--muted)}.dish-row{display:grid;grid-template-columns:minmax(0,1fr) 70px 110px 32px;gap:8px;align-items:end;margin-bottom:9px}.dish-row label{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:5px;min-width:0}.dish-row input{width:100%;min-width:0;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);padding:9px;font-size:13px;min-height:40px}.dish-remove{height:40px;width:32px;font-size:20px;color:var(--muted)}.add-dish{min-height:40px;font-size:12px;color:var(--green);padding:7px 0}.meal-total-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;align-items:center;margin:10px 0}.meal-total-row .field{margin:0;font-size:12px}.meal-total-row p{margin:0;font-size:11px;color:var(--muted);line-height:1.8}.title-preview{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;background:var(--light);border-radius:7px;padding:11px 13px;margin:12px 0 17px}.title-preview>span{font-size:10px;color:var(--muted)}.title-preview>strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.custom-title{margin-left:auto;font-size:11px}.custom-title>summary{cursor:pointer;padding:5px 0;min-height:28px;color:var(--green)}.custom-title[open]{flex:1 1 100%;margin:0}.custom-title input{font-size:13px}.editor-section .preview-map{height:210px;position:relative;border:1px solid var(--line);border-radius:7px;overflow:hidden}.editor-map{margin:10px 0 12px;border-top:1px solid var(--line)}.editor-map>summary{font-size:12px;cursor:pointer;padding:12px 0;min-height:44px}.editor-map>summary span{font-size:10px;color:var(--muted);margin-left:8px}.field-note{font-size:11px;color:var(--muted);margin:7px 0}.single-page-editor .location-search-list{position:static;max-height:190px;overflow:auto}.collection-fields{margin-top:18px}.editor-save-hint{font-size:11px;color:var(--muted);margin-right:auto;line-height:1.6}.editor-section .location-feedback{font-size:11px}.editor-photo-section.focus-mode>:not(.focus-editor){display:none}.editor-photo-section.focus-mode .focus-editor{position:relative;inset:auto;padding:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 18px;overflow:visible}.editor-photo-section.focus-mode .focus-editor>.row{grid-column:1/-1}.focus-mode .focus-preview{grid-column:1;grid-row:2/4}.focus-mode .focus-sliders{grid-column:2;grid-row:2}.focus-mode .focus-shortcuts{grid-column:2;grid-row:3}.meal-detail-list{border:1px solid var(--line);border-radius:7px;padding:13px 15px;margin:17px 0}.meal-detail-list h3{font-size:14px;margin:0 0 10px}.meal-detail-list>div{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:6px 0}.meal-detail-list small{color:var(--muted);margin-left:5px}
@media(max-width:680px){.record-editor-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.record-editor-dialog .dialog-head{padding:10px 14px}.record-editor-dialog .dialog-head h2{font-size:18px}.editor-anchors{padding:3px 8px;gap:2px}.editor-anchors button{font-size:12px;padding:8px 3px;min-height:44px}.record-editor-dialog #record-form{padding:15px}.editor-section>h3,.editor-section-heading h3{font-size:18px;margin-bottom:12px}.entry-link-row{gap:7px}.entry-link-row input{font-size:16px;padding:9px}.entry-link-row .field{font-size:11px}.entry-link-row .btn{font-size:11px;padding:8px;min-height:44px}.store-fields{gap:10px}.single-page-editor .compact-fields input,.single-page-editor .compact-fields select,.single-page-editor .compact-fields textarea,.meal-total-row input,.custom-title input{font-size:16px;min-height:44px}.single-page-editor .compact-fields .field{font-size:12px}.dish-row{grid-template-columns:minmax(0,1fr) 55px 78px 28px;gap:5px}.dish-row label{font-size:10px;white-space:nowrap}.dish-row input{font-size:16px;padding:8px 5px;min-height:44px}.dish-remove{width:28px;height:44px}.meal-total-row{grid-template-columns:135px minmax(0,1fr);gap:12px}.meal-total-row .field{font-size:12px}.meal-total-row p{font-size:11px}.editor-save-hint{font-size:10px;max-width:50%}.editor-section-heading .editor-prompt-link{font-size:10px;min-height:36px}.editor-photo-section.focus-mode .focus-editor{display:flex;flex-direction:column;gap:9px}.editor-photo-section.focus-mode .focus-preview{width:min(100%,260px);margin:8px auto}.editor-photo-section.focus-mode .focus-sliders{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-photo-section.focus-mode .focus-shortcuts{display:flex;flex-wrap:wrap;justify-content:center}.custom-title{min-height:32px}.editor-section{padding-bottom:18px;margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.single-page-editor{scroll-behavior:auto}}

.editor-anchors{gap:10px;padding:7px 20px}.editor-anchors button,.editor-anchors button.active{background:transparent;box-shadow:none;gap:8px}.editor-anchors .editor-nav-dot{width:26px;height:26px;flex:none;border:1px solid #c9d0bc;border-radius:50%;display:grid;place-items:center;font:12px var(--serif);color:var(--muted)}.editor-anchors button.active .editor-nav-dot{background:var(--green);color:var(--paper);border-color:var(--green)}.editor-anchors i{display:block;width:24px;height:1px;flex:none;background:#cbd3c0}.dark-mode .editor-anchors i{background:var(--line)}
.field-caption{display:flex;align-items:baseline;gap:7px;line-height:1.6}.field-caption .field-optional{margin:0;white-space:nowrap}.single-page-editor .field-caption small{display:inline;font-size:10px}.single-page-editor .field>input{width:100%}.entry-link-row .field-caption{font-size:12px}
.store-name-row{display:flex;gap:9px;align-items:center}.store-name-row input{width:100%;min-width:0;flex:1}.address-toggle{width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--muted)}.address-toggle:hover,.address-toggle[aria-expanded=true]{background:var(--light);color:var(--green);border-color:#bac8b0}.address-toggle .icon{width:16px;height:16px}.address-tools{padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-top:12px}.address-tools .location-input-row{margin-bottom:8px}.address-tools .editor-map{margin-bottom:0}.address-tools .location-feedback{font-size:10px}.address-tools .location-search-list{margin-bottom:8px}@media(max-width:680px){.address-toggle{width:44px;height:44px}.address-tools{padding:10px}.store-name-row{gap:7px}}
.dialog-body>.working-drafts{display:block}.dialog-body>.working-drafts>div{flex-direction:column;margin-top:10px;max-height:55dvh;overflow:auto}.dialog-body>.working-drafts button{max-width:none;text-align:left;white-space:normal;min-height:44px}
@media(max-width:680px){.editor-anchors{gap:3px;padding:5px 9px}.editor-anchors button{font-size:11px;gap:5px;padding:6px 0;min-height:44px}.editor-anchors .editor-nav-dot{width:21px;height:21px;font-size:11px}.editor-anchors i{width:8px}}
@media(max-width:680px){.advanced-filter-panel select{font-size:16px;min-height:44px}.advanced-filters>summary{min-height:40px;display:flex;align-items:center}.toolbar-compact .clear-filters{min-height:40px}.toolbar-compact .cp-trigger{min-height:40px}}

.page-heading .eyebrow{display:none}.page-heading h1{font-size:26px;margin:0;line-height:1.4}.page-heading p{margin-top:4px}.page:has(#record-grid)>.section-title{margin-block:0 12px}.page:has(#record-grid)>.section-title h2{font-size:15px;line-height:1.6;margin:0}.page:has(#record-grid)>.section-title .eyebrow{display:none}.journal-cover{margin:20px 0 0}.journal-meta{margin-top:0;margin-bottom:6px}.prompt-entry{margin-bottom:13px;padding-block:6px}.record-filters{margin-bottom:14px}@media(max-width:680px){.page-heading h1{font-size:22px}.page-heading p{display:none}.page-heading{margin-bottom:13px}.journal-meta{font-size:10px;margin-bottom:5px}.prompt-entry{margin-bottom:12px}.page:has(#record-grid)>.section-title{margin-bottom:10px}}
