:root { --bg:#f6f8fc; --text:#192844; --muted:#6e7d94; --line:#e3e9f2; --blue:#2563eb; color-scheme:light; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; color:var(--text); background:var(--bg); }
* { box-sizing:border-box; }
body { margin:0; }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
a { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #93b5ff; outline-offset:3px; }
[hidden] { display:none!important; }
.shell { width:min(1440px,100%); margin:auto; padding-left:36px; padding-right:36px; }
.site-header { padding-top:26px; padding-bottom:24px; }
.top-line,.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-size:13px; font-weight:800; letter-spacing:.09em; }
.brand-mark { display:grid; place-items:center; width:31px; height:31px; background:var(--blue); color:#fff; border-radius:9px; font-size:20px; }
.local-tag { font-size:9px; color:#8a98ad; border:1px solid #d5dfee; border-radius:4px; padding:3px 5px; }
.cadence { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:7px; }
.live-dot { width:6px; height:6px; background:#1e9b73; border-radius:50%; }
.hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:38px; }
.eyebrow { font-size:10px; letter-spacing:.2em; font-weight:700; color:var(--blue); margin:0 0 12px; }
h1 { font-size:clamp(28px,3.6vw,42px); letter-spacing:-.045em; line-height:1.3; margin:0; font-weight:750; }
h1 span { color:var(--blue); }
.subtitle { font-size:13px; color:var(--muted); line-height:1.8; margin:12px 0 0; }
.button { border:1px solid var(--line); border-radius:8px; padding:10px 15px; background:#fff; font-size:12px; font-weight:550; color:var(--text); transition:background .15s,border-color .15s; }
.button:hover { border-color:#aebfdb; background:#f8faff; }
.primary { background:var(--blue); border-color:var(--blue); color:#fff; white-space:nowrap; box-shadow:0 4px 8px #2563eb15; }
.primary:hover { background:#1c52cf; color:#fff; }
.overview { display:flex; flex-wrap:wrap; gap:22px; margin-top:23px; font-size:12px; color:var(--muted); }
.overview strong { font-size:18px; color:var(--text); margin-right:5px; font-weight:650; font-variant-numeric:tabular-nums; }
.stat-separator { width:1px; background:var(--line); }
.source-section { background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 3px 16px #1b355008; padding:18px 20px; margin-bottom:22px; }
.section-heading { margin-bottom:14px; }
h2 { font-size:13px; margin:0; font-weight:650; }
.text-button { font-size:11px; color:var(--muted); border:0; padding:3px; background:none; }
.text-button:hover { color:var(--blue); }
#issueCount { color:#bd740b; }
.source-filters { display:flex; flex-wrap:wrap; gap:8px; }
.source-chip { display:flex; align-items:center; gap:7px; padding:9px 12px; border:1px solid var(--line); border-radius:7px; background:#fff; color:#4d5c75; font-size:11px; line-height:1.2; }
.source-chip:hover { border-color:var(--source-color,#2563eb); background:#f8faff; }
.source-chip.active { border-color:var(--source-color,#2563eb); background:color-mix(in srgb,var(--source-color,#2563eb) 6%,white); color:var(--source-color,#2563eb); }
.source-dot { width:7px; height:7px; border-radius:50%; background:var(--source-color,#2563eb); flex-shrink:0; }
.chip-count { font-variant-numeric:tabular-nums; border-left:1px solid var(--line); padding-left:8px; font-size:10px; color:#7b879b; }
.chip-warning { color:#bf7a14; font-size:10px; }
.status-panel { border-top:1px solid var(--line); margin-top:18px; padding-top:4px; }
.status-source { padding:13px 0; border-bottom:1px solid #edf0f5; }
.status-source:last-child { border-bottom:0; }
.status-source-head { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; font-weight:600; }
.status-source-head a { text-decoration:none; }
.status-feeds { display:grid; gap:9px; margin-top:11px; }
.feed-status { display:grid; grid-template-columns:110px 70px 1fr; gap:12px; font-size:11px; align-items:start; color:var(--muted); line-height:1.7; }
.feed-status a { color:#596e8b; overflow-wrap:anywhere; }
.feed-status p { margin:0; }
.feed-error { color:#a86a13; word-break:break-word; }
.status-pill { font-size:10px; font-weight:500; border-radius:4px; padding:3px 6px; background:#eef8f3; color:#247b57; white-space:nowrap; }
.status-pill.partial,.status-pill.cached { color:#a86a13; background:#fff6e8; }
.status-pill.error { color:#bf4550; background:#fef0f2; }
.status-pill.disabled,.status-pill.pending { color:#7a8799; background:#f0f2f5; }
.status-reason { font-size:11px; line-height:1.8; color:var(--muted); margin:8px 0 0; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.time-tabs,.layout-toggle { display:flex; padding:3px; border-radius:8px; border:1px solid var(--line); background:#ebeff6; gap:2px; }
.time-tabs button,.layout-toggle button { border:0; background:transparent; border-radius:5px; color:#7b8799; font-size:11px; padding:8px 13px; white-space:nowrap; }
.time-tabs button.active,.layout-toggle button.active { background:#fff; box-shadow:0 1px 4px #16305212; color:var(--text); font-weight:600; }
.view-actions { display:flex; gap:10px; align-items:center; }
.favorites-filter { padding:9px 12px; background:transparent; font-size:11px; }
.favorites-filter.active { background:#fff7e7; border-color:#e4c488; color:#9f670b; }
.favorites-filter span { margin-left:4px; color:var(--muted); }
.layout-toggle button { font-size:20px; line-height:1; padding:5px 10px; }
.search-row { display:flex; align-items:center; gap:20px; margin:18px 0 19px; }
.search-box { display:flex; align-items:center; gap:9px; width:min(390px,100%); border:1px solid var(--line); background:#fff; border-radius:7px; padding:8px 11px; color:#8291a7; }
.search-box span { font-size:22px; line-height:1; }
.search-box input { width:100%; border:0; outline:0; background:none; font-size:12px; color:var(--text); }
.search-box input::placeholder { color:#9ba7b7; }
.sort-control { font-size:11px; color:var(--muted); white-space:nowrap; display:flex; gap:8px; align-items:center; margin-left:auto; }
.sort-control select { background:#fff; border:1px solid var(--line); padding:8px; border-radius:6px; color:#40536f; font-size:11px; }
.hide-expired { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:11px; color:var(--muted); }
input[type=checkbox] { accent-color:var(--blue); }
.results-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; font-size:11px; color:var(--muted); margin-bottom:14px; }
.results-heading p { margin:0; }
.results-heading strong { color:var(--text); font-weight:650; }
#lastUpdated { font-size:10px; text-align:right; }
.source-note { font-size:11px; color:#977140; background:#fff8e9; border:1px solid #f3e6ca; border-radius:7px; padding:10px 12px; margin:0 0 16px; line-height:1.7; }
.deal-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(245px,1fr)); gap:18px; align-items:stretch; }
.deal-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:11px; overflow:hidden; box-shadow:0 3px 16px #1b355008; transition:transform .16s,box-shadow .16s,border-color .16s; min-width:0; }
.deal-card:hover { border-color:#c7d4e8; box-shadow:0 9px 26px #1c365315; transform:translateY(-2px); }
.card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 13px 8px; min-height:40px; }
.source-badge { font-size:10px; color:var(--source-color); background:color-mix(in srgb,var(--source-color) 7%,white); border:1px solid color-mix(in srgb,var(--source-color) 15%,white); padding:4px 7px; border-radius:4px; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; font-weight:600; max-width:calc(100% - 30px); }
.source-badge .source-dot { height:5px; width:5px; }
.favorite-button { border:0; background:none; font-size:20px; line-height:1; padding:2px; color:#aab5c7; flex-shrink:0; }
.favorite-button[aria-pressed=true],.favorite-button:hover { color:#df9a16; }
.product-image { position:relative; display:flex; align-items:center; justify-content:center; margin:0 13px; background:#fff; aspect-ratio:1.65; overflow:hidden; text-decoration:none; }
.product-image img { width:100%; height:100%; object-fit:contain; padding:8px; }
.image-fallback { color:#b1bdcf; font-size:13px; letter-spacing:.1em; background:#f8faff; width:100%; height:100%; display:grid; place-items:center; border-radius:6px; }
.expired-label { position:absolute; bottom:6px; right:6px; background:#fff0f1; color:#bc4050; padding:4px 7px; border-radius:4px; font-size:10px; }
.is-expired .product-image img { filter:grayscale(.7); opacity:.6; }
.card-body { padding:14px 15px 15px; display:flex; flex:1; flex-direction:column; }
.card-title { font-size:13px; line-height:1.65; font-weight:550; color:#273956; text-decoration:none; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 7px; word-break:break-word; }
.card-title:hover { color:var(--blue); }
.description { font-size:11px; line-height:1.7; color:#91a0b5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 9px; word-break:break-word; }
.merchant-line { font-size:10px; color:#8c9ab0; line-height:1.7; margin-bottom:10px; display:flex; flex-wrap:wrap; gap:4px 8px; }
.merchant-name { color:#5c708d; font-weight:550; }
.feed-label { color:#95a1b4; }
.deal-price-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:5px; }
.deal-price { font-size:21px; font-weight:700; letter-spacing:-.03em; color:#1f365b; line-height:1.3; font-variant-numeric:tabular-nums; }
.deal-price.no-price { font-size:11px; font-weight:450; color:#8a98ad; letter-spacing:0; }
.community-score { font-size:10px; color:#b3750c; background:#fff7e8; border:1px solid #f5e8cb; border-radius:5px; padding:4px 6px; white-space:nowrap; }
.card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:13px; padding-top:11px; border-top:1px solid #eef1f6; color:#8b99ad; font-size:10px; }
.card-footer time { line-height:1.5; }
.deal-link { font-size:10px; color:var(--source-color,var(--blue)); font-weight:550; text-decoration:none; white-space:nowrap; }
.expiry-info { margin:7px 0 0; color:#95a1b4; font-size:9px; }
.deal-grid.rows { grid-template-columns:1fr; gap:10px; }
.rows .deal-card { display:grid; grid-template-columns:150px 1fr; position:relative; }
.rows .card-top { grid-column:1/-1; padding:10px 15px 4px; }
.rows .product-image { aspect-ratio:1.15; grid-column:1; margin:0 10px 12px 15px; align-self:center; }
.rows .card-body { grid-column:2; padding:5px 15px 14px 4px; }
.rows .card-title { -webkit-line-clamp:2; }
.rows .description { -webkit-line-clamp:1; }
.rows .card-footer { margin-top:8px; padding-top:8px; }
.rows .deal-price-row { padding-top:0; }
.empty-state { grid-column:1/-1; display:grid; place-items:center; text-align:center; padding:75px 20px; background:#fff; border:1px dashed #d4dfef; border-radius:10px; color:var(--muted); font-size:12px; line-height:1.9; }
.empty-state strong { font-size:16px; font-weight:600; color:#526881; }
.load-more { text-align:center; margin-top:28px; }
.error-banner { background:#fff3ec; border:1px solid #f2d9c6; border-radius:8px; color:#9d5c30; padding:12px 15px; font-size:12px; margin-bottom:20px; line-height:1.7; }
footer { font-size:10px; text-align:center; color:#99a6b8; padding:35px 0 30px; line-height:1.8; }
@media(min-width:1300px) { .deal-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:900px) {
  .shell { padding-left:22px; padding-right:22px; }
  .hero { padding-top:28px; }
  .source-section { padding:16px; }
  .overview { gap:14px; }
  .search-row { gap:12px; flex-wrap:wrap; }
  .search-box { flex:1; min-width:200px; }
  .hide-expired { margin-left:auto; }
  .toolbar { gap:12px; flex-wrap:wrap; }
  .time-tabs { flex:1; }
  .time-tabs button { flex:1; padding:8px 10px; }
  .deal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
}
@media(max-width:520px) {
  .shell { padding-left:16px; padding-right:16px; }
  .site-header { padding-top:18px; padding-bottom:20px; }
  .brand { font-size:11px; gap:7px; }
  .brand-mark { height:27px; width:27px; font-size:17px; }
  .local-tag { font-size:8px; }
  .cadence { font-size:9px; }
  .hero { align-items:flex-start; flex-wrap:wrap; gap:16px; padding-top:28px; }
  h1 { font-size:30px; }
  .eyebrow { font-size:9px; }
  .subtitle { font-size:11px; line-height:1.9; margin-top:9px; }
  .hero .primary { font-size:11px; padding:10px 13px; }
  .overview { gap:12px; margin-top:19px; font-size:10px; }
  .overview strong { font-size:16px; margin-right:3px; }
  .source-section { padding:14px 12px; margin-bottom:18px; }
  .source-chip { font-size:10px; padding:8px; gap:5px; }
  .source-filters { gap:7px; }
  .chip-count { font-size:9px; padding-left:6px; }
  .source-section h2 { font-size:12px; }
  .text-button { font-size:10px; }
  .toolbar { gap:10px; }
  .time-tabs { width:100%; flex-basis:100%; }
  .time-tabs button { font-size:10px; padding:8px; }
  .view-actions { width:100%; justify-content:space-between; }
  .search-row { gap:10px; margin-top:12px; margin-bottom:16px; }
  .search-box { width:100%; flex-basis:100%; }
  .search-box input { font-size:11px; }
  .sort-control { margin-left:0; font-size:10px; }
  .sort-control select,.hide-expired { font-size:10px; }
  .results-heading { align-items:flex-start; font-size:10px; gap:10px; }
  #lastUpdated { font-size:9px; }
  .deal-grid { gap:10px; }
  .card-top { padding:9px 9px 6px; gap:3px; min-height:34px; }
  .source-badge { font-size:8px; padding:4px 5px; gap:4px; max-width:calc(100% - 18px); }
  .favorite-button { font-size:17px; padding:0; }
  .product-image { margin:0 8px; aspect-ratio:1.2; }
  .product-image img { padding:5px; }
  .card-body { padding:10px; }
  .card-title { font-size:11px; line-height:1.65; -webkit-line-clamp:3; }
  .description { display:none; }
  .merchant-line { font-size:8px; line-height:1.6; margin-bottom:8px; gap:2px 6px; }
  .deal-price { font-size:18px; }
  .deal-price.no-price { font-size:9px; }
  .deal-price-row { flex-wrap:wrap; gap:4px; }
  .community-score { font-size:8px; padding:3px 4px; }
  .card-footer { flex-wrap:wrap; gap:5px; font-size:8px; margin-top:9px; padding-top:8px; }
  .deal-link { font-size:9px; }
  .expiry-info { font-size:8px; }
  .feed-status { grid-template-columns:90px 1fr; gap:6px; font-size:10px; }
  .feed-message { grid-column:1/-1; }
  .status-source-head { font-size:11px; }
  .rows .deal-card { grid-template-columns:100px 1fr; }
  .rows .product-image { margin-left:9px; margin-right:7px; }
  .rows .card-body { padding-right:10px; }
  .rows .card-top { padding:9px 10px 4px; }
  .rows .card-title { font-size:11px; }
  .rows .description { display:none; }
  .rows .card-footer { flex-wrap:nowrap; }
  .source-note { font-size:10px; }
  footer { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none!important; animation:none!important; } }
