:root{--bg: #f4f5f7;--surface: #ffffff;--surface-alt: #eceef1;--text: #1f2933;--text-muted: #52606d;--border: #dde1e6;--primary: #1f7a68;--primary-contrast: #ffffff;--accent: #c97a1a;--danger: #b3271e;--danger-contrast: #ffffff;--focus-ring: #1f7a68;--radius-sm: 8px;--radius-md: 14px;--shadow: 0 1px 3px rgba(20, 24, 28, .12);--tabbar-size: 60px;--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #14181c;--surface: #1c242b;--surface-alt: #232e37;--text: #eef2f5;--text-muted: #9aa7b2;--border: #313d47;--primary: #4fd1c5;--primary-contrast: #0d1a17;--accent: #f0a340;--danger: #ff7a6e;--danger-contrast: #2a0d0a;--focus-ring: #4fd1c5;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4;-webkit-text-size-adjust:100%}h1,h2,h3{margin:0 0 .5rem;line-height:1.2}p{margin:0 0 .75rem}ul{list-style:none;margin:0;padding:0}img{max-width:100%;display:block}a{color:var(--primary)}button{font:inherit}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-sm)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:-999px;top:0;background:var(--primary);color:var(--primary-contrast);padding:.6rem 1rem;border-radius:0 0 var(--radius-sm) 0;z-index:100}.skip-link:focus{left:0}.app-shell{min-height:100vh;display:flex;flex-direction:column}.content{flex:1;width:100%;max-width:640px;margin:0 auto;padding:1rem 1rem calc(var(--tabbar-size) + var(--safe-bottom) + 1.5rem)}.tabbar{position:fixed;left:0;right:0;bottom:0;display:flex;background:var(--surface);border-top:1px solid var(--border);padding-bottom:var(--safe-bottom);z-index:50}.tabbar__item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;padding:.5rem .25rem;min-height:var(--tabbar-size);color:var(--text-muted);text-decoration:none;font-size:.75rem}.tabbar__icon{font-size:1.25rem}.tabbar__item--active{color:var(--primary);font-weight:600}@media(min-width:800px){.app-shell{flex-direction:row}.tabbar{position:sticky;top:0;left:auto;right:auto;bottom:auto;flex-direction:column;width:220px;height:100vh;border-top:none;border-right:1px solid var(--border);padding:1.5rem .5rem;gap:.25rem;align-items:stretch}.tabbar__item{flex-direction:row;justify-content:flex-start;gap:.75rem;font-size:.95rem;border-radius:var(--radius-sm);padding:.65rem .9rem}.tabbar__item--active{background:var(--surface-alt)}.content{max-width:720px;padding:2rem}}.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;background:var(--primary);color:var(--primary-contrast);border:none;border-radius:var(--radius-sm);padding:.6rem 1rem;font-weight:600;cursor:pointer;min-height:44px}.button:disabled{opacity:.55;cursor:not-allowed}.button--secondary{background:var(--surface-alt);color:var(--text)}.button--danger{background:transparent;color:var(--danger);border:1px solid var(--danger)}.button--star{background:var(--surface-alt);color:var(--accent);font-size:1.25rem;min-width:44px;padding:.6rem}input[type=text],input[type=search]{width:100%;padding:.65rem .85rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);min-height:44px;font-size:1rem}.search-form{display:flex;gap:.5rem;margin-bottom:.5rem}.search-form__input{flex:1;font-size:1.1rem}.search-form__feedback,.settings-feedback{color:var(--primary);font-size:.9rem;margin:-.25rem 0 .75rem}.section-title{font-size:1rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-top:1rem}.watch-form{display:flex;gap:.5rem;margin-bottom:1rem}.watch-form__input{flex:1}.status-message{padding:1rem;border-radius:var(--radius-md);background:var(--surface);color:var(--text-muted);text-align:center}.status-message--error{background:color-mix(in srgb,var(--danger) 12%,var(--surface));color:var(--text);text-align:left;display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}.offer-list{display:flex;flex-direction:column;gap:.75rem}.offer-card{display:flex;gap:.75rem;background:var(--surface);border-radius:var(--radius-md);padding:.75rem;box-shadow:var(--shadow)}.offer-card__image{flex:none;width:64px;height:64px;border-radius:var(--radius-sm);overflow:hidden;background:var(--surface-alt);display:flex;align-items:center;justify-content:center}.offer-card__image img{width:100%;height:100%;object-fit:contain}.offer-card__image-fallback{font-size:1.5rem;font-weight:700;color:var(--text-muted)}.offer-card__body{flex:1;min-width:0}.offer-card__product{font-weight:600;margin:0}.offer-card__brand{color:var(--text-muted);font-size:.9rem;margin:0 0 .25rem}.offer-card__prices{display:flex;align-items:baseline;gap:.5rem;margin:.15rem 0}.offer-card__price{font-size:1.4rem;font-weight:700;color:var(--primary)}.offer-card__unit-price{font-size:.8rem;color:var(--text-muted)}.offer-card__meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.85rem;color:var(--text-muted);align-items:center}.offer-card__remaining{padding:.1rem .5rem;border-radius:999px;background:var(--surface-alt)}.offer-card__remaining--soon{background:color-mix(in srgb,var(--accent) 25%,var(--surface-alt));color:var(--accent);font-weight:600}.regional-note{margin-top:.4rem;font-size:.8rem;color:var(--text-muted)}.regional-note summary{cursor:pointer;list-style:none}.regional-note summary::-webkit-details-marker{display:none}.regional-note summary:before{content:"ⓘ "}.regional-note p{margin:.35rem 0 0}.watch-list{display:flex;flex-direction:column;gap:.5rem}.watch-list__item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;background:var(--surface);border-radius:var(--radius-md);padding:.75rem 1rem;box-shadow:var(--shadow)}.watch-list__query{font-weight:600;margin:0}.watch-list__meta{color:var(--text-muted);font-size:.8rem;margin:0}.leaflet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}@media(min-width:480px){.leaflet-grid{grid-template-columns:repeat(3,1fr)}}.leaflet-tile{display:block;background:var(--surface);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow);text-decoration:none;color:var(--text)}.leaflet-tile__image{aspect-ratio:3 / 4;background:var(--surface-alt);display:flex;align-items:center;justify-content:center}.leaflet-tile__image img{width:100%;height:100%;object-fit:cover}.leaflet-tile__image-fallback{font-size:2rem}.leaflet-tile__market{font-weight:600;font-size:.9rem;margin:.5rem .6rem 0}.leaflet-tile__dates{color:var(--text-muted);font-size:.78rem;margin:.15rem .6rem .6rem}.back-link{display:inline-block;margin-bottom:1rem;text-decoration:none}.leaflet-detail__dates{color:var(--text-muted)}.leaflet-detail__cover{background:var(--surface-alt);border-radius:var(--radius-md);min-height:240px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:3rem}.leaflet-detail__cover img{width:100%}.leaflet-detail__note{margin-top:1rem;color:var(--text-muted);font-style:italic}.settings-section{background:var(--surface);border-radius:var(--radius-md);padding:1rem;box-shadow:var(--shadow);margin-bottom:1rem}.health-stats{display:flex;gap:1.5rem;margin:0 0 .75rem;flex-wrap:wrap}.health-stats dt{font-size:.78rem;color:var(--text-muted)}.health-stats dd{margin:0;font-size:1.3rem;font-weight:700}.settings-actions{display:flex;flex-wrap:wrap;gap:.5rem}.settings-market-search{margin-bottom:.75rem}.market-list{display:flex;flex-direction:column;gap:.4rem;max-height:360px;overflow-y:auto}.market-toggle{width:100%;display:flex;align-items:center;gap:.5rem;background:var(--surface-alt);border:1px solid transparent;border-radius:var(--radius-sm);padding:.6rem .75rem;text-align:left;cursor:pointer;color:var(--text);min-height:44px}.market-toggle__name{flex:1}.market-toggle__retailer{color:var(--text-muted);font-size:.8rem}.market-toggle__state{font-weight:700;color:var(--text-muted);width:1.2rem;text-align:center}.market-toggle--active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 14%,var(--surface-alt))}.market-toggle--active .market-toggle__state{color:var(--primary)}
