:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #171a35;
  background: #f6f7fb;
  --muted: #565e77;
  --line: #e4e6f0;
  --accent: #513adc;
  --accent-dark: #3e29bb;
  --lavender: #eeeaff;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #816fff; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .63; }
h1, h2, h3, p { margin: 0; }
.workspace { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; min-height: 100dvh; height: fit-content; padding: 31px 17px 22px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: #1d1b3d; font-weight: 780; font-size: 1.27rem; letter-spacing: -.055em; text-decoration: none; line-height: 1.07; }
.sidebar .brand { padding-inline: 9px; }
.brand small { display: block; font-size: .81rem; font-weight: 550; color: var(--muted); letter-spacing: .01em; margin-top: 5px; }
.brand-mark { display: block; position: relative; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, #7058ff, #4a2ed2); flex: 0 0 40px; box-shadow: 0 4px 11px #4e38d731; }
.brand-mark::before { content: ''; position: absolute; width: 15px; height: 12px; border: 1.8px solid white; border-radius: 3px 3px 5px 5px; left: 11px; top: 16px; }
.brand-mark::after { content: ''; position: absolute; width: 7px; height: 6px; border: 1.8px solid white; border-bottom: 0; border-radius: 8px 8px 0 0; left: 15px; top: 11px; }
.navigation { display: grid; gap: 7px; margin-top: 42px; }
.navigation a { color: #565b75; min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: .91rem; font-weight: 650; white-space: nowrap; }
.navigation a:hover { background: #f5f4fb; }
.navigation a[aria-current="page"] { color: #4a30cc; background: #eeeaff; }
.nav-icon { display: block; position: relative; width: 17px; height: 17px; flex: 0 0 17px; }
.nav-icon.tiles { border: 1.6px solid currentColor; border-radius: 4px; background: linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat, linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat; }
.nav-icon.bars { border-bottom: 1.6px solid currentColor; background: linear-gradient(currentColor,currentColor) 2px bottom / 2px 6px no-repeat, linear-gradient(currentColor,currentColor) 7px bottom / 2px 11px no-repeat, linear-gradient(currentColor,currentColor) 12px bottom / 2px 15px no-repeat; }
.nav-icon.bookmark::before { content: ''; position: absolute; width: 12px; height: 15px; border: 1.6px solid currentColor; left: 2px; border-radius: 3px 3px 6px 6px; }
.nav-count { margin-left: auto; font-size: .76rem; background: #f2f1f8; padding: 2px 6px; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding: 28px 8px 0; }
.sidebar-bottom h2 { font-size: .78rem; font-weight: 730; color: #686e86; margin-bottom: 15px; }
.tracked { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.tracked strong, .tracked small { display: block; }
.tracked strong { font-size: .86rem; }
.tracked small { color: var(--muted); font-size: .75rem; margin-top: 3px; white-space: nowrap; }
.store-mark { display: grid; place-items: center; border-radius: 9px; width: 32px; height: 32px; flex: 0 0 32px; font-size: .94rem; font-weight: 850; font-style: normal; }
.store-mark.aldi, .store-chip.aldi { background: #e4effe; color: #164c8f; }
.store-mark.edeka, .store-chip.edeka { background: #fff1be; color: #6b4c00; }
.text-button { border: 0; background: transparent; padding: 6px 1px; color: var(--muted); font-size: .84rem; font-weight: 650; text-align: left; }
.account-actions { display: flex; gap: 12px; }
.main { width: min(100%, 1500px); margin-inline: auto; padding: 35px clamp(23px, 3.2vw, 48px) 48px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.top h1 { font-size: clamp(2rem, 3.1vw, 2.85rem); font-weight: 790; line-height: 1.06; letter-spacing: -.056em; }
.top p { color: var(--muted); margin-top: 8px; line-height: 1.4; }
.snapshot { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 11px; color: #515977; font-size: .8rem; font-weight: 650; }
.date-icon { position: relative; width: 13px; height: 12px; border: 1.3px solid currentColor; border-radius: 2px; }
.date-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid currentColor; }
.compare-banner { position: relative; isolation: isolate; overflow: hidden; min-height: 161px; display: flex; align-items: center; border: 1px solid #ded5fc; border-radius: 16px; background: linear-gradient(115deg, #eae5ff 1%, #f0ebff 57%, #e1dcff 100%); }
.banner-content { width: min(100%, 680px); padding: 24px 26px; z-index: 1; }
.banner-content h2 { font-size: clamp(1.37rem, 2.25vw, 2rem); font-weight: 790; letter-spacing: -.045em; margin-bottom: 14px; }
.banner-art { position: absolute; inset: 0 0 0 auto; width: 37%; overflow: hidden; pointer-events: none; }
.banner-art i { position: absolute; display: block; width: 250px; height: 250px; border-radius: 50%; border: 1px solid #9a84f769; background: #c9bcff38; right: -33px; top: -45px; }
.banner-art i:nth-child(2) { right: 26px; top: 0; background: #f7f3ff60; }
.banner-art i:nth-child(3) { right: -104px; top: 41px; background: #b7a4fd50; }
.search-form { display: flex; gap: 9px; align-items: stretch; }
.search-field { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; min-height: 43px; padding: 0 12px; background: white; border: 1px solid #dddfee; border-radius: 9px; color: #636b8c; }
.search-field:focus-within { outline: 2px solid #9f92fa; outline-offset: 1px; }
.search-field input { border: 0; background: transparent; padding: 0; width: 100%; color: #222440; min-width: 0; outline: 0; }
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: #666d88; }
.search-icon { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 13px; margin-right: 2px; }
.search-icon::after { content: ''; width: 6px; height: 1.6px; background: currentColor; border-radius: 2px; transform: rotate(45deg); position: absolute; right: -5px; bottom: -3px; }
.primary, .secondary, .danger { border: 1px solid transparent; min-height: 41px; border-radius: 9px; padding: 0 13px; font-weight: 710; font-size: .875rem; white-space: nowrap; }
.primary { background: var(--accent); color: white; box-shadow: 0 2px 4px #34249e20; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: white; color: #3e4165; border-color: var(--line); }
.secondary:hover { border-color: #bfb4f2; color: var(--accent-dark); }
.danger { background: #a92348; color: white; }
.catalog { margin-top: 32px; }
.section-heading, .watch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-heading h2, .watch-top h2 { font-size: 1.43rem; letter-spacing: -.035em; }
.section-heading p, .watch-top p { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 17px; }
.segments { display: flex; gap: 2px; padding: 3px; background: #eaeaf4; border-radius: 10px; width: fit-content; }
.segments button { padding: 7px 10px; background: transparent; border: 1px solid transparent; border-radius: 8px; display: flex; gap: 6px; align-items: center; white-space: nowrap; font-size: .83rem; font-weight: 660; color: #525974; }
.segments button[aria-pressed="true"] { background: white; border-color: #deddee; box-shadow: 0 1px 2px #26225e14; color: #3e2baa; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 7px; }
.dot.aldi { background: #2f71ba; }.dot.edeka { background: #9c720a; }
.filters { display: flex; flex: 1; justify-content: flex-end; gap: 8px; align-items: center; }
.list-search { min-height: 38px; min-width: 123px; flex: 0 1 190px; font-size: .865rem; }
.select-field { position: relative; display: inline-flex; align-items: center; }
.select-field::after { pointer-events: none; content: ''; position: absolute; width: 6px; height: 6px; right: 11px; transform: rotate(45deg); border: solid #646b85; border-width: 0 1.5px 1.5px 0; margin-top: -3px; }
.select-field select { appearance: none; min-height: 38px; border: 1px solid #dddfee; border-radius: 9px; background: #fff; padding: 0 25px 0 9px; color: #454d6d; font-size: .82rem; font-weight: 625; cursor: pointer; }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.offer-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 13px; display: flex; flex-direction: column; box-shadow: 0 2px 6px #28225208; }
.offer-card:hover { border-color: #cdc4f0; box-shadow: 0 3px 12px #28225214; }
.offer-media { display: grid; place-items: center; min-height: 151px; aspect-ratio: 1.64; background: #f3f4f9; position: relative; padding: 27px 12px 10px; }
.offer-media img { display: block; z-index: 1; width: 100%; height: 100%; max-height: 159px; object-fit: contain; mix-blend-mode: multiply; }
.media-fallback { width: 46%; max-width: 84px; aspect-ratio: 1.3; border: 1px solid #dad8ee; border-radius: 13px; background: linear-gradient(135deg,#ebe9f8,#f0eff7); position: absolute; }
.media-fallback::after { content: ''; width: 30%; height: 24%; border: 2px solid #cecae8; border-bottom: 0; border-radius: 7px 7px 0 0; left: 35%; position: absolute; top: -24%; }
.offer-media:has(img) .media-fallback { display: none; }
.store-chip { padding: 5px 7px; border-radius: 6px; font-size: .72rem; font-weight: 780; line-height: 1.05; width: fit-content; white-space: nowrap; }
.offer-media .store-chip { position: absolute; top: 9px; left: 9px; z-index: 2; }
.offer-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 13px; gap: 4px; }
.offer-brand { font-size: .74rem; font-weight: 670; color: #666e88; overflow-wrap: anywhere; }
.offer-card h3 { font-size: .99rem; font-weight: 720; line-height: 1.2; letter-spacing: -.014em; overflow-wrap: anywhere; }
.offer-meta, .offer-context { color: var(--muted); font-size: .79rem; line-height: 1.38; }
.offer-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-money { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 825; font-size: 1.52rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.previous-price { color: #69708a; font-size: .8rem; }
.offer-context { min-height: 18px; }
.offer-date { border-top: 1px solid #eeeef5; margin-top: 7px; padding-top: 8px; color: #505a76; font-size: .77rem; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.offer-date a, .result-quote a { color: var(--accent-dark); font-weight: 725; text-underline-offset: 3px; }
.load-area { display: flex; justify-content: center; margin-top: 19px; }
.empty { grid-column: 1 / -1; padding: 29px 20px; border: 1px dashed #d9d8e9; border-radius: 12px; text-align: center; background: #fafaff; color: var(--muted); line-height: 1.5; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 21px; }
.compare-search { margin-bottom: 19px; }
.compare-search .search-form { max-width: 670px; }
.suggestions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.suggestions button { background: #f5f3ff; border: 1px solid #e6deff; color: #4d39aa; padding: 5px 9px; border-radius: 12px; font-weight: 650; font-size: .82rem; }
.result-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 22px 0 12px; }
.result-heading h2 { font-size: 1.45rem; letter-spacing: -.04em; }
.result-heading p { color: var(--muted); font-size: .9rem; margin-top: 4px; line-height: 1.4; }
.answer-panel { padding: 17px 19px; border: 1px solid #dcd3fa; border-left: 3px solid #7356f0; border-radius: 12px; background: #f0ebff; }
.answer-panel h2 { font-size: .83rem; font-weight: 780; color: #4a30bb; }
.answer-text { margin-top: 6px; font-size: 1.04rem; font-weight: 650; color: #28224c; line-height: 1.5; }
.answer-detail { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.result-group { margin: 0 0 14px; }
.result-group h3 { font-size: 1.03rem; letter-spacing: -.015em; }
.result-description { color: var(--muted); font-size: .88rem; margin: 5px 0 13px; }
.result-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.result-quote { border: 1px solid var(--line); border-radius: 11px; padding: 13px; display: grid; gap: 8px; align-content: start; }
.result-quote.best { background: #f2fbf6; border-color: #bfe0cd; }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.best-label { font-size: .74rem; font-weight: 740; color: #0a6c45; }
.quote-price { font-size: 1.7rem; font-weight: 820; letter-spacing: -.055em; }
.quote-price small { font-size: .9rem; letter-spacing: 0; }
.result-quote a { width: fit-content; line-height: 1.3; overflow-wrap: anywhere; }
.quote-detail { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.pack-list { display: grid; gap: 8px; margin-top: 10px; padding-left: 18px; color: #3e4263; }
.watch-panel { max-width: 980px; }
.watch-top { margin-bottom: 6px; }
.watch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid #eeeeF5; }
.watch-identity { display: flex; align-items: center; min-width: 0; gap: 11px; }
.watch-letter { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: #eeeaff; color: #5038c2; font-weight: 780; }
.watch-identity h3 { font-size: .97rem; font-weight: 720; overflow-wrap: anywhere; }
.watch-identity p { margin-top: 3px; color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.row-actions button { min-height: 34px; padding: 0 7px; border-radius: 7px; font-size: .81rem; font-weight: 680; }
.row-actions .remove { border: 0; color: #9b2147; background: transparent; }
.row-actions .remove:hover { background: #fceaee; }
.alert, .error { color: #952046; line-height: 1.4; }
.alert { background: #fff2f5; border: 1px solid #f3dbe4; border-radius: 9px; padding: 9px 11px; margin-bottom: 14px; font-size: .88rem; }
.error { font-size: .86rem; }
.sign-in { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 35% 18%,#e7dfff,#f8f8fc 66%); }
.sign-in-card { width: min(100%,400px); padding: 30px; border: 1px solid var(--line); background: white; border-radius: 17px; display: grid; gap: 12px; box-shadow: 0 12px 38px #21145c12; }
.auth-form { display: grid; gap: 12px; }
.sign-in-card h1 { margin-top: 8px; font-size: 1.8rem; line-height: 1.1; letter-spacing: -.045em; }
.sign-in-card p:not(.error) { color: var(--muted); line-height: 1.4; }
.sign-in-card label, .dialog-form label { font-size: .91rem; font-weight: 720; }
.sign-in-card input, .dialog-form input, .dialog-form textarea { width: 100%; padding: 9px 10px; background: #fbfbff; border: 1px solid #dcdfee; border-radius: 8px; color: #1e2140; }
.sign-in-card input { margin-top: -5px; }
dialog { width: min(500px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 15px; padding: 0; color: inherit; }
dialog::backdrop { background: #171a4d66; }
.dialog-form { display: grid; gap: 12px; padding: 23px; }
.dialog-form h2 { font-size: 1.43rem; letter-spacing: -.04em; }
.dialog-form label { display: grid; gap: 6px; }
.dialog-form .optional, .field-help, .dialog-form > p:not(.error) { color: var(--muted); font-weight: 450; font-size: .83rem; line-height: 1.4; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 9px; color: white; background: #30286d; z-index: 5; font-size: .9rem; }
@media (max-width: 1120px) { .offer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.filters { justify-content: flex-start; }.sidebar { padding-inline: 12px; }.workspace { grid-template-columns: 195px minmax(0,1fr); } }
@media (max-width: 780px) {
  .workspace { display: block; }.sidebar { position: static; min-height: auto; padding: 14px 15px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding-inline: 0; }.sidebar .brand-mark { width: 37px; height: 37px; flex-basis: 37px; }
  .navigation { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }.navigation a { min-height: 37px; padding: 0 8px; font-size: .84rem; gap: 7px; }
  .sidebar-bottom { padding: 0; position: absolute; top: 19px; right: 16px; }.sidebar-bottom h2,.tracked { display: none; }
  .main { padding: 20px 14px 32px; }.top { margin-bottom: 17px; }.top h1 { font-size: 1.94rem; }.top p { font-size: .9rem; }
  .compare-banner { min-height: 0; }.banner-content { padding: 18px 14px; }.catalog { margin-top: 23px; }
}
@media (max-width: 600px) {
  .offer-grid, .result-quotes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.offer-media { min-height: 110px; }.offer-media img { max-height: 106px; }
  .main { padding-inline: 11px; }.toolbar { gap: 8px; }.filters { flex: 1 0 100%; flex-wrap: wrap; }.list-search { flex-basis: 100%; }
  .top { flex-wrap: wrap; gap: 8px; }.snapshot { margin-top: 0; }.search-form { gap: 5px; }.search-form input { font-size: .89rem; }
  .search-form button { padding-inline: 8px; }.banner-content h2 { margin-bottom: 12px; }.search-field { padding-inline: 8px; }.offer-card h3 { font-size: .94rem; }
  .offer-body { padding: 9px; }.offer-date { align-items: flex-start; flex-direction: column; }.result-quotes { grid-template-columns: 1fr; }
  .panel { padding: 14px; }.watch-row { flex-wrap: wrap; gap: 7px; }.row-actions { margin-left: 43px; }.result-heading .secondary { white-space: normal; }
}
