@font-face{font-family:Geist;src:url('./assets/Geist-Sans-Variable.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:100 900}*{box-sizing:border-box} :root{color-scheme:light;--bg:#fff;--fg:#171717;--muted:#747474;--check-border:#b8b8b8;--surface:#f5f5f5;--border:#e6e6e6;--raised:#fff;--shadow:0 4px 24px #00000010;--active:#e6e6e6}html[data-theme=dark]{color-scheme:dark;--bg:#151515;--fg:#f0f0f0;--muted:#a2a2a2;--check-border:#626262;--surface:#232323;--border:#363636;--raised:#292929;--shadow:0 4px 24px #00000030;--active:#333}@media(prefers-color-scheme:dark){html:not([data-theme=light]):not([data-theme=dark]){color-scheme:dark;--bg:#151515;--fg:#f0f0f0;--muted:#a2a2a2;--check-border:#626262;--surface:#232323;--border:#363636;--raised:#292929;--shadow:0 4px 24px #00000030;--active:#333}}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--fg)}body{font-family:var(--app-font,Geist),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;overscroll-behavior:none}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.35;cursor:default}button:focus,textarea:focus,input:focus,select:focus{outline:none}button{border:0;background:none}#app{position:fixed;top:0;left:0;right:0;transform:translateY(var(--viewport-top,0px));overflow:hidden;height:var(--app-height,100dvh);max-width:608px;margin:0 auto;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}header{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;padding:4px 24px}.icon-button{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.icon{display:block;width:24px;height:24px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat;pointer-events:none}#list-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;overflow-anchor:none;padding:8px 24px 24px;scroll-padding:12px;-webkit-overflow-scrolling:touch}#items{padding-bottom:12px}.row{display:flex;align-items:center;gap:12px;min-height:36px;padding:6px 8px;margin-bottom:8px;position:relative;border-radius:8px}.check{padding:0;width:20px;height:20px;flex-shrink:0;border:1.5px solid currentColor;border-radius:50%;display:flex;justify-content:center;align-items:center;position:relative}.check:before{content:'';position:absolute;inset:-12px}.check.done{background:var(--check-fill,var(--fg));color:var(--check-mark,var(--bg));border-color:var(--check-fill,var(--fg))}.check.done .icon{width:14px;height:14px}.entry{font-family:var(--app-font,Geist),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px;line-height:24px;border:0;border-radius:0;background:transparent;resize:none;margin:0;padding:0;min-width:0;width:100%;height:24px;overflow:hidden;display:block;outline:none!important;field-sizing:content}.row:focus-within .check:not(.done){border-color:var(--check-border)}.completed-divider{height:1px;background:var(--border);margin:20px 0 28px}.row.reordering{gap:8px;background:var(--surface);align-items:center;min-height:36px;touch-action:pan-y}.handle{width:24px;height:24px;padding:0;touch-action:none;flex-shrink:0;position:relative}.handle:before{content:'';position:absolute;inset:-8px}.handle .icon{width:24px;height:24px}.row.reordering .item-text{font-size:18px;line-height:24px;overflow-wrap:anywhere;flex:1}.row.dragging{opacity:.35}.drag-ghost{position:fixed;z-index:20;pointer-events:none;background:var(--active)!important;box-shadow:1px 3px 8px #00000015;margin:0;opacity:1!important;transform:scale(1.015)}.move-actions{display:flex;gap:2px}.move-actions button{font-family:inherit;width:32px;height:32px;padding:4px;border-radius:50%;color:var(--muted)}@media(hover:hover) and (pointer:fine){.move-actions button:hover{background:var(--active)}}footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:8px 24px var(--footer-inset,max(16px,env(safe-area-inset-bottom)));gap:16px}.toolbar,.floating{background:var(--raised);box-shadow:var(--shadow);border:1px solid var(--border);border-radius:32px}.toolbar{display:flex;padding:4px;gap:4px}.floating{width:58px;height:58px}@media(hover:hover) and (pointer:fine){.toolbar .icon-button:hover,.floating:hover{background:var(--surface)}}.icon-button[aria-pressed=true]{background:var(--surface)}#toast{position:fixed;bottom:calc(74px + var(--footer-inset,max(16px,env(safe-area-inset-bottom))));left:50%;transform:translateX(-50%);z-index:30;align-items:center;gap:16px;padding:10px 12px 10px 18px;background:var(--fg);color:var(--bg);border-radius:28px;box-shadow:var(--shadow);width:max-content;max-width:calc(100vw - 32px);font-size:15px}#toast:not([hidden]){display:flex}#toast-message{white-space:nowrap}#undo{text-decoration:underline;text-underline-offset:3px;padding:4px}#dismiss-toast{padding:0 5px;font-size:22px;color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{padding:20px 24px 28px;border:1px solid var(--border);background:var(--bg);color:var(--fg);width:min(100% - 24px,480px);max-height:calc(var(--app-height,100dvh) - 24px);top:var(--viewport-top,0px);bottom:var(--viewport-bottom,0px);border-radius:24px;box-shadow:0 16px 64px #0002;margin:auto auto max(12px,env(safe-area-inset-bottom));overflow:auto}dialog::backdrop{background:#0005}.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.sheet-top h1{font-size:24px;font-weight:400;line-height:1.2;margin:0}.sheet-top .icon-button{width:36px;height:36px}h2{font-size:19px;font-weight:400;margin:24px 0 12px}p{line-height:1.55;color:var(--muted);margin:0 0 16px}.label{display:block;margin:16px 0 8px}input,select,.template-text{width:100%;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:12px;min-height:46px}.template-text{height:180px;line-height:24px;resize:vertical}.primary{display:block;width:100%;background:var(--fg);color:var(--bg);padding:14px;border-radius:14px;margin-top:20px}.secondary{display:block;width:100%;padding:14px;border:1px solid var(--border);border-radius:14px;margin-top:12px}.template-card{display:flex;align-items:center;background:var(--surface);border-radius:12px;margin-bottom:10px;padding:4px}.template-add{flex:1;min-width:0;text-align:left;padding:12px}.template-name{display:block;font-size:19px;overflow-wrap:anywhere}.template-preview{display:block;color:var(--muted);font-size:14px;margin-top:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.row-actions{display:flex}.row-actions .icon-button{width:36px;height:40px}.row-actions .icon{width:24px;height:24px}.route{padding-left:24px;color:var(--muted);line-height:1.8}.note{font-size:14px}.error{padding:12px;background:var(--surface);border-radius:10px;color:var(--fg)}@media(min-width:700px){#app{border:0}header{height:80px}dialog{margin:auto}footer{padding-bottom:28px}.move-actions{opacity:0}.row:focus-within .move-actions{opacity:1}@media(hover:hover) and (pointer:fine){.row:hover .move-actions{opacity:1}}}@media(prefers-reduced-motion:no-preference){dialog[open]{animation:sheet-in .18s ease-out}#toast:not([hidden]){animation:toast-in .15s ease-out}@keyframes sheet-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}}

.row[hidden]{display:none}.move-actions .icon{width:24px;height:24px}

/* Geist aligns optically with the centered 20px circular checks. */
.entry,.item-text{transform:none}

.row.reordering{user-select:none;-webkit-user-select:none}.row.dragging{opacity:0}.is-dragging{cursor:grabbing}.drag-ghost{opacity:1!important}.drag-ghost .move-actions{visibility:hidden}

.sheet-top{position:sticky;top:-20px;z-index:2;background:var(--bg);margin:-20px -24px 16px;padding:20px 24px 12px}.sheet-top .close-sheet-button{width:auto;gap:5px;padding:0 4px;white-space:nowrap}.close-sheet-button .icon{width:24px;height:24px}

/* Keep the root still; only the list (or an open sheet) owns scrolling. */
body{position:fixed;inset:0}
html[data-keyboard=true]{--footer-inset:12px}
html[data-keyboard=true] footer{padding-bottom:12px}
html[data-keyboard=true] dialog{margin-bottom:12px}
#toast{position:absolute}
@media(pointer:coarse){header{height:56px}footer{padding-bottom:var(--footer-inset,max(16px,env(safe-area-inset-bottom)))}}

/* Controls float independently; the list can pass behind them. */
#app{padding-top:0}
#app>header{position:absolute;top:calc(env(safe-area-inset-top) + 24px);left:0;right:0;height:58px;z-index:2;background:transparent;pointer-events:none;padding:0 24px}
#app>header>button{pointer-events:auto}
#list-scroll{position:absolute;inset:0;padding-top:calc(env(safe-area-inset-top) + 64px);padding-bottom:calc(80px + var(--footer-inset,max(8px,env(safe-area-inset-bottom))))}
#app>footer{position:absolute;bottom:0;left:0;right:0;z-index:2;background:transparent;pointer-events:none;padding:0 24px var(--footer-inset,max(8px,env(safe-area-inset-bottom)))}
#app>footer>*{pointer-events:auto}
.check:not(.done){border-color:var(--check-border)}

@font-face{font-family:"Geist Serif";src:url('./assets/Geist-Serif-Regular.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:400}
@font-face{font-family:"Geist Mono";src:url('./assets/Geist-Mono-Variable.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:100 900}
@font-face{font-family:"Geist Pixel";src:url('./assets/Geist-Pixel-Square.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:400}
html[data-font=sans]{--app-font:Geist}
html[data-font=serif]{--app-font:"Geist Serif"}
html[data-font=mono]{--app-font:"Geist Mono"}
html[data-font=pixel]{--app-font:"Geist Pixel"}
/* A flat desktop toolbar expands to labels; the collapsed rail has tooltips. */
#settings.floating{width:58px;height:58px}
#desktop-menu[hidden],#app>header[hidden],#app>footer[hidden],.toolbar-tooltip[hidden],#toolbar-toggle[hidden]{display:none}
#desktop-menu{position:absolute;left:16px;top:calc(var(--desktop-top,48px) - 14px);transform:none;width:216px;max-height:calc(100% - var(--desktop-top,48px) - 80px);overflow:auto;z-index:3;background:transparent;border:0;box-shadow:none;padding:4px}
.menu-group{display:flex;flex-direction:column;gap:4px}
#desktop-menu .icon-button{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;height:auto;min-height:44px;padding:10px;border:0;border-radius:10px;box-shadow:none;background:transparent;text-align:left;font-size:14px;line-height:20px}
#desktop-menu .icon{width:24px;height:24px;flex-shrink:0}
#desktop-menu .menu-label{overflow-wrap:anywhere}#desktop-menu .icon-button[aria-pressed=true]{background:var(--surface)}@media(hover:hover) and (pointer:fine){
#desktop-menu .icon-button:hover{background:var(--surface)}}
#toolbar-toggle{position:absolute;left:20px;bottom:16px;z-index:3;margin:0;width:44px;height:44px;padding:10px;justify-content:center;border:0;border-radius:10px;background:transparent}
#toolbar-toggle .icon{width:24px;height:24px}@media(hover:hover) and (pointer:fine){
#toolbar-toggle:hover{background:var(--surface)}}
.menu-divider{border:0;height:1px;background:var(--border);margin:8px 8px}
#desktop-menu[data-collapsed=true]{width:52px}
#desktop-menu[data-collapsed=true] .menu-label{display:none}
#desktop-menu[data-collapsed=true] .icon-button{justify-content:center;width:44px;height:44px;padding:11px}
.toolbar-tooltip{position:fixed;z-index:50;pointer-events:none;background:var(--fg);color:var(--bg);font-size:12px;line-height:18px;padding:6px 10px;border-radius:8px;white-space:nowrap;box-shadow:var(--shadow)}
@media(min-width:900px) and (hover:hover) and (pointer:fine){
 #app{max-width:none;border:0;--desktop-top:48px}
 #list-scroll{left:max(88px,calc(1128px - 100vw));right:24px;max-width:608px;margin:0 auto;padding-top:calc(var(--desktop-top,48px) - 8px);padding-bottom:40px}
 html[data-toolbar-collapsed=true] #list-scroll{left:88px}
}

#app{cursor:text}
#app[data-reordering=true],#desktop-menu{cursor:default}
.entry{cursor:text}

/* Mobile controls share the same size and safe-area-aware edge insets. */
@media(max-width:899px),(hover:none),(pointer:coarse){
 #app{--mobile-edge:20px;--mobile-button:58px;--footer-inset:max(16px,env(safe-area-inset-bottom))}
 html[data-keyboard=true] #app{--footer-inset:12px}
 #app>header{top:calc(env(safe-area-inset-top) + var(--mobile-edge));height:var(--mobile-button);padding:0 var(--mobile-edge)}
 #app>footer{padding:0 var(--mobile-edge) var(--footer-inset)}
 #settings.floating,#add.floating{width:var(--mobile-button);height:var(--mobile-button)}
 #app>header .icon,#app>footer .icon{width:24px;height:24px}
 #app>footer .toolbar{padding:4px;gap:4px}
 #app>footer .toolbar .icon-button{width:48px;height:48px}
 #toast{bottom:calc(74px + var(--footer-inset))}
}

.settings-section{margin-bottom:24px}
.settings-section h2{margin:0 0 12px}
.choice-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:10px}
.choice-card{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:58px;padding:24px 20px;border:1px solid var(--border);border-radius:14px;background:var(--bg)}@media(hover:hover) and (pointer:fine){
.choice-card:hover{background:var(--surface)}}
.choice-card[aria-pressed=true]{background:var(--surface);border-color:var(--fg);box-shadow:inset 0 0 0 1px var(--fg)}
.choice-label{font-size:12px;line-height:18px;text-align:left;overflow-wrap:anywhere}
.font-preview{flex-shrink:0;font-size:25px;line-height:32px}
.appearance-preview{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}
.appearance-preview .icon{width:24px;height:24px}
.color-preview{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;flex-shrink:0}

.sheet-top .close-sheet-button{width:40px;height:40px;gap:0;padding:8px;border-radius:10px;background:transparent}@media(hover:hover) and (pointer:fine){
.sheet-top .close-sheet-button:hover{background:var(--surface)}}

@media(max-width:899px),(hover:none),(pointer:coarse){.choice-card{padding:20px 16px}}

#toast{gap:10px;padding:10px 12px 10px 14px}
#toast-icon{display:flex;align-items:center;flex-shrink:0}
#toast-icon .icon{width:24px;height:24px}
#toast-message{white-space:normal;overflow-wrap:anywhere;line-height:20px}
#undo{flex-shrink:0}
#dismiss-toast{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;padding:4px;border-radius:8px}
#dismiss-toast .icon{width:24px;height:24px}@media(hover:hover) and (pointer:fine){
#dismiss-toast:hover{background:color-mix(in srgb,currentColor 12%,transparent)}}

@media(prefers-reduced-motion:no-preference){
 .check{transition:transform 100ms cubic-bezier(0.2,0,0,1)}
 .check:active{transform:scale(0.99)}
}

#app>header #share{margin-right:auto;position:relative}
@media(max-width:899px),(hover:none),(pointer:coarse){#share.floating{width:var(--mobile-button);height:var(--mobile-button)}}
#desktop-menu #share{position:relative}
.share-count{position:absolute;right:0;top:0;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--fg);color:var(--bg);font-size:10px;line-height:1;padding:2px}
.peer-marker{position:absolute;left:-20px;top:8px;width:18px;height:18px;cursor:default}
.peer-marker .icon{width:18px;height:18px}
.peer-caret{position:absolute;width:2px;height:24px;background:var(--peer-color);pointer-events:none;z-index:2}
.peer-caret:before{content:'';position:absolute;left:-2px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--peer-color)}
.caret-mirror{position:fixed;left:-10000px;top:0;visibility:hidden;white-space:pre-wrap;overflow-wrap:break-word;padding:0;border:0}

/* Settings layout: Figma 22:120. Existing color tokens are intentional. */
.settings-view{width:min(calc(100% - 48px),560px);font-family:inherit;padding:0}
.settings-view .sheet-top{position:sticky;top:0;display:block;margin:0;padding:28px 16px 48px;background:var(--bg);z-index:3}
.settings-view .sheet-top h1{margin:0 4px;font-size:32px;line-height:42px;font-weight:500;padding-right:40px}
.settings-view .sheet-top .close-sheet-button{position:absolute;top:24px;right:16px;width:42px;height:42px;padding:8px}
.settings-back-icon{display:none}
.settings-view #sheet-body{padding:0 16px 32px}
.settings-view .settings-section{margin:0 0 32px}
.settings-view .settings-section h2,.settings-view .settings-help h2{margin:0 4px 12px;font-size:20px;line-height:26px;font-weight:500}
.settings-view .choice-grid{gap:8px}
.settings-view .choice-card{min-height:0;padding:24px 20px;border-radius:16px;gap:16px;border:1px solid var(--border)}
.settings-view .choice-card[aria-pressed=true]{border:1.5px solid var(--fg);box-shadow:none;background:var(--surface)}
.settings-view .choice-label{font-size:16px;line-height:21px;font-weight:500}
.settings-view .font-preview{font-size:22px;line-height:24px;min-width:28px}
.settings-view .color-preview{width:24px;height:24px}
.settings-view .settings-section[data-kind=theme] .choice-grid{align-items:center}
.settings-view .settings-section[data-kind=theme] .choice-card{flex-direction:column;align-items:flex-start;gap:24px}
.settings-view .appearance-preview,.settings-view .appearance-preview .icon{width:24px;height:24px}
.settings-view .settings-help p{margin:0 4px;font-size:16px;line-height:21px;font-weight:400;color:var(--muted)}
/* Same shared control, moved into the mobile bottom toolbar. */
#app>footer .toolbar #share{position:relative;border:0;box-shadow:none;background:transparent}@media(hover:hover) and (pointer:fine){
#app>footer .toolbar #share:hover{background:var(--surface)}}
@media(max-width:899px),(hover:none),(pointer:coarse){
 .settings-view{position:fixed;top:var(--viewport-top,0px);left:0;right:0;bottom:auto;width:100%;max-width:none;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh);margin:0!important;padding:0;border:0;border-radius:0;box-shadow:none;overflow-y:auto}
 .settings-view .sheet-top{position:static;top:auto;margin:0;padding:calc(90px + env(safe-area-inset-top)) 16px 48px}
 .settings-view .sheet-top h1{padding:0}
 .settings-view .sheet-top .close-sheet-button{position:fixed;left:16px;right:auto;top:calc(var(--viewport-top,0px) + env(safe-area-inset-top) + 24px);width:42px;height:42px;border:1px solid var(--border);border-radius:50%;padding:8px;background:var(--raised);box-shadow:0 1px 8px #00000014;z-index:5}
 .settings-view .settings-close-icon{display:none}
 .settings-view .settings-back-icon{display:block}
 .settings-view #sheet-body{padding:0 16px calc(32px + env(safe-area-inset-bottom))}
 .settings-view .choice-card{padding:20px 16px}
}
@media(max-width:360px){#app>footer{gap:8px}}

.settings-view{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;overflow-x:hidden;touch-action:pan-y}

/* Mobile store selector follows Figma 57:269; desktop uses the toolbar. */
.store-selector{position:absolute;z-index:3;left:16px;top:calc(env(safe-area-inset-top) + 24px);display:flex;align-items:center;gap:8px;max-width:calc(100% - 88px);min-height:44px;padding:8px 12px 8px 8px;border:1px solid var(--border);border-radius:999px;background:var(--raised);box-shadow:0 1px 8px #00000014;font-size:18px;line-height:26px;font-weight:500;cursor:pointer}@media(hover:hover) and (pointer:fine){
.store-selector:hover{background:var(--surface)}}
.store-selector-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.store-selector>.icon{width:22px;height:22px;flex-shrink:0;transform:rotate(-90deg)}
.store-badge{width:26px;height:26px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;font-size:16px;line-height:26px;font-weight:600;object-fit:contain}
span.store-badge{background:var(--surface)}
.store-badge>.icon{width:20px;height:20px}
.store-options{display:flex;flex-direction:column;gap:8px}
.store-option{display:flex;align-items:center;border:1px solid var(--border);border-radius:16px;overflow:hidden}
.store-option:has([aria-pressed=true]){border-color:var(--fg);background:var(--surface)}
.store-option-select{display:flex;flex:1;min-width:0;align-items:center;gap:12px;text-align:left;padding:16px}@media(hover:hover) and (pointer:fine){
.store-option-select:hover,.store-option>.icon-button:hover{background:var(--surface)}}
.store-option-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.store-name{font-size:18px;line-height:24px;overflow-wrap:anywhere}
.store-description{font-size:14px;line-height:20px;color:var(--muted)}
.store-option-select>.icon{width:20px;height:20px;flex-shrink:0}
.store-option>.icon-button{width:40px;height:40px;margin-right:8px;border-radius:10px}
.store-add{display:flex;align-items:center;justify-content:center;gap:8px}
.store-form>.label:first-child{margin-top:0}
.store-form select{appearance:none;-webkit-appearance:none;background-image:none;padding-right:44px;background-color:var(--surface)}

.store-route{padding:0;margin:16px 0 8px;list-style:none;display:flex;flex-direction:column;gap:8px}
.store-category{display:flex;align-items:center;gap:12px;min-height:58px;border:1px solid var(--border);border-radius:12px;padding:8px;background:var(--bg)}
.store-category-name{flex:1;min-width:0;font-size:16px;line-height:22px}
.store-category-handle{display:flex;justify-content:center;align-items:center;width:32px;height:40px;touch-action:none;cursor:grab;flex-shrink:0;border-radius:8px}
.store-category.is-moving{opacity:.5}
.store-category.drop-target{border-color:var(--fg);background:var(--surface)}
.store-category-actions{display:flex;gap:2px}
.store-category-actions>.icon-button{width:32px;height:36px;border-radius:8px}@media(hover:hover) and (pointer:fine){
.store-category-actions>.icon-button:hover,.store-category-handle:hover{background:var(--surface)}}
.store-reset{padding:8px 0;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
@media(max-width:899px),(hover:none),(pointer:coarse){
 #app>header{top:calc(env(safe-area-inset-top) + 24px);height:44px;padding:0 16px}
 #settings.floating{align-self:flex-start;width:42px;height:42px;padding:8px;box-shadow:0 1px 8px #00000014}
 #list-scroll{padding-top:calc(env(safe-area-inset-top) + 92px)}
}
@media(min-width:900px) and (hover:hover) and (pointer:fine){
 #desktop-menu .store-selector{margin-bottom:8px;position:relative;left:auto;top:auto;z-index:auto;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;min-height:44px;height:44px;max-width:none;gap:0;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:none;overflow:hidden}
 #desktop-menu .store-selector-name{display:none}
 #desktop-menu .store-selector>.store-badge{width:100%;height:100%;border-radius:inherit;background:transparent}
 #desktop-menu .store-selector>.store-logo{background:#fff}
 #desktop-menu .store-selector .store-logo-image{width:100%;height:100%}
 #desktop-menu .store-selector>.store-logo[data-chain=rema]{background:#023ea5}
 #desktop-menu .store-selector>.store-logo[data-chain=extra]{background:#FFD241}
 #desktop-menu .store-selector>.store-logo[data-chain=prix]{background:#ffd517}
 #desktop-menu .store-selector>.store-logo[data-chain=mega]{background:#2f5529}
 #desktop-menu .store-selector>.icon{display:none}
 #list-scroll{padding-top:calc(var(--desktop-top,48px) - 8px)}
}

/* Official chain artwork keeps its own colors in both app themes. */
span.store-badge.store-logo{background:#fff;overflow:hidden}
.store-logo-image{display:block;width:26px;height:26px;object-fit:contain;flex-shrink:0}
.store-logo[data-chain=extra] .store-logo-image{object-fit:cover;object-position:left center}

/* Each surface keeps native momentum and its local edge feedback. */
dialog{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}

/* The editor body scrolls between fixed header and save actions. */
dialog.has-sheet-actions[open]{display:flex;flex-direction:column;height:min(680px,calc(var(--app-height,100dvh) - 24px));padding:0;overflow:hidden}
.has-sheet-actions .sheet-top{position:relative;top:auto;flex-shrink:0;margin:0;padding:20px 24px 12px}
.has-sheet-actions #sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 24px 24px}
.sheet-actions{flex-shrink:0;padding:12px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--bg)}
.sheet-actions .primary{margin:0}
.select-field{position:relative}
.select-field>.icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--fg);pointer-events:none}

@media(min-width:900px) and (hover:hover) and (pointer:fine){#desktop-menu .store-selector:hover{background:var(--surface)}}

/* REMA supplies the R symbol in white; retain its official blue field. */
span.store-badge.store-logo[data-chain=rema]{background:#023ea5}
