:root {
  color-scheme: light;
  --ink: #202435;
  --muted: #565d70;
  --navy: #181c2a;
  --navy-soft: #262b3f;
  --paper: #f8f8fb;
  --white: #fff;
  --line: #e2e3ec;
  --accent: #f5d59a;
  --accent-text: #4a3414;
  --highlight: #f8e7c6;
  --active: #263c77;
  --radius: 15px;
  --shadow: 0 2px 8px rgb(28 33 52 / 4%);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.5; }
a { color: var(--active); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #526bb8; outline-offset: 3px; }
p { margin: .4rem 0 .9rem; color: var(--muted); }
h1, h2, h3 { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.15rem, 6.8vw, 3.45rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.06rem; line-height: 1.35; }
small { font-size: .85rem; }
.skip { position: fixed; left: 1rem; top: -5rem; padding: .8rem; z-index: 10; background: white; }
.skip:focus { top: .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(100% - 32px, 1140px); margin-inline: auto; }
.site-header { background: var(--navy); color: white; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: white; text-decoration: none; line-height: 1; }
.brand strong { display: block; font-family: Georgia, serif; font-weight: 500; font-size: 1.45rem; letter-spacing: .14em; }
.brand small { display: block; margin-top: 5px; color: #ebd8af; font-size: .65rem; letter-spacing: .21em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; margin-left: 3px; transform: rotate(45deg); border: 1.5px solid #eccf94; position: relative; display: block; }
.brand-mark::before { content: ""; position: absolute; inset: 4px; border: 1px solid #eccf94; }
.brand-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent calc(50% - .5px), #eccf94 calc(50% - .5px), #eccf94 calc(50% + .5px), transparent calc(50% + .5px)); }
.top-nav { display: none; }
.account { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: #f4f5fa; }
.account form { margin: 0; }
.account .avatar { display: grid; place-items: center; width: 26px; height: 26px; color: var(--navy); background: #ecd8af; border-radius: 50%; font-weight: 800; }
.logout { color: #e7e8f2; background: transparent; border: 0; min-height: 44px; padding: 0 .25rem; text-decoration: underline; cursor: pointer; }
.main { padding-block: 20px calc(100px + env(safe-area-inset-bottom)); }
.overview { padding: clamp(20px, 4vw, 38px); border-radius: 20px; background: linear-gradient(118deg, #24293d, #1c2030 70%); color: white; }
.overview h1 { color: var(--white); }
.overview p { color: #e0e2ec; margin-bottom: 0; }
.overview-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: #44485c; border: 1px solid #44485c; border-radius: 11px; overflow: hidden; }
.meter { display: flex; flex-direction: column; justify-content: center; min-height: 80px; padding: 10px 8px; color: #f0f0f7; background: #2a2e42; text-decoration: none; }
.meter:hover, .meter.chosen { background: #3a4055; }
.meter strong { color: #f5d59a; font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.meter span { margin-top: 5px; line-height: 1.3; font-size: .875rem; }
.meter:focus-visible { outline-offset: -3px; outline-color: #f5d59a; }
.desktop-add { display: none !important; }
.section-top { margin: 26px 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-top p { margin: 1px 0 0; font-size: .9rem; }
.filters { display: grid; align-items: end; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.filters .search-label { grid-column: 1 / -1; }
.filters.dates button { grid-column: 1 / -1; }
.filters.dates { margin-bottom: 0; }
label { display: flex; flex-direction: column; gap: .32rem; font-weight: 600; }
input:not([type="checkbox"]):not([type="hidden"]), select, textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #cbd0df; border-radius: 9px; background: white; color: var(--ink); padding: 9px 11px; font-size: 1rem; }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #464e64 50%), linear-gradient(135deg, #464e64 50%, transparent 50%); background-position: calc(100% - 16px) 51%, calc(100% - 11px) 51%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="datetime-local"], input[type="date"] { max-width: 100%; }
textarea { resize: vertical; }
.button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 9px; cursor: pointer; text-align: center; text-decoration: none; line-height: 1.2; font-weight: 700; }
.button.primary { background: var(--accent); color: #272232; border-color: #edcd90; }
.button.primary:hover { background: #ffe1a7; }
.button.secondary { background: #fff; color: var(--ink); border-color: #cbd0df; }
.button.secondary:hover { background: #eef0f8; }
.button.reject { background: #fff; color: #9b342d; border-color: #e5b8b4; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--active); font-weight: 650; }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.listing-card, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.listing-card { display: block; padding: 16px; text-decoration: none; color: var(--ink); }
.listing-card:hover { border-color: #8997bb; }
.listing-card-top, .listing-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .8rem; }
.listing-platform { color: var(--muted); font-size: .875rem; font-weight: 650; }
.listing-card h3 { margin: 10px 0 .15rem; }
.listing-specs { margin: 0 0 .55rem; }
.listing-specs:empty { display: none; }
.listing-card-foot { border-top: 1px solid var(--line); padding-top: 8px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.listing-card-foot strong { font-size: 1rem; color: var(--ink); }
.tag { display: inline-flex; padding: 4px 9px; background: #edf0f8; color: #394666; border-radius: 99px; font-size: .85rem; line-height: 1.3; font-weight: 700; width: fit-content; }
.tag.needs-decision { background: var(--highlight); color: var(--accent-text); }
.empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 15px; text-align: center; background: #fff; }
.empty-symbol { display: grid; place-items: center; height: 49px; width: 49px; margin: 0 auto 12px; background: #edeef5; border-radius: 14px; }
.empty-symbol span { height: 19px; width: 19px; transform: rotate(45deg); border: 1.5px solid #5d678c; position: relative; }
.empty-symbol span::after { content: ""; position: absolute; inset: 4px; border: 1px solid #5d678c; }
.mobile-nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 9px calc(5px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d4d8e6; }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; margin-inline: 2px; text-decoration: none; border-radius: 10px; color: #4c5472; white-space: nowrap; font-size: .875rem; font-weight: 650; }
.mobile-nav a[aria-current="page"] { background: #e9edf8; color: #263c77; }
.nav-symbol { font-size: 1.35rem; line-height: 1.15; }
.panel { padding: 15px; }
.scan-panel, .accordion { margin-top: 13px; }
details > summary { cursor: pointer; font-weight: 730; min-height: 44px; padding-block: 10px; }
details > summary .tag { margin-left: 7px; }
details > p:last-child { margin-bottom: 0; }
.page-title { margin: 3px 0 18px; }
.page-title p { margin: .55rem 0 0; }
.page-title h1 { margin-top: 4px; }
.narrow { max-width: 740px; margin-inline: auto; }
.form-stack { display: grid; gap: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: start; font-weight: 500; flex-direction: row; gap: .55rem; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--active); flex-shrink: 0; margin: 1px 0 0; }
.inset { border-top: 1px solid var(--line); padding: 0; }
.inset[open] { padding-bottom: 13px; }
.detail-meta, .inline-status { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem; color: var(--muted); font-size: .9rem; }
.detail-meta { margin: 2px 0 .45rem; }
.inline-status { margin-top: .8rem; }
.price-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 22px; margin-bottom: 13px; }
.price-panel div { display: grid; gap: 2px; }
.price-panel span, .mini-facts dt { color: var(--muted); font-size: .9rem; }
.price-panel strong { font-size: 1.05rem; }
.detail-grid { display: grid; gap: 12px; align-items: start; }
.decision-panel h2, .finance-panel h2 { margin-bottom: .55rem; }
.verdict { background: #eef0f7; padding: 12px; border-radius: 9px; }
.verdict p { margin-bottom: 0; }
.points { padding-left: 1.35rem; }
.points li { margin: .38rem 0; }
.decision-form, .decision-panel .form-stack { margin-top: 12px; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.decision-actions button { flex: 1 1 140px; }
.helper, .busy-note { margin: 0; color: var(--muted); font-size: .9rem; }
.busy-note { display: none; }
.is-busy .busy-note { display: block; }
.is-busy button { opacity: .65; }
.mini-facts { display: grid; gap: 8px; margin: .45rem 0; }
.mini-facts div { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.mini-facts dd { margin: 0; font-weight: 700; text-align: right; }
.source-list { margin: 0 0 15px; }
.source-list div { display: flex; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); padding: 8px 0; }
.source-list dt { font-weight: 650; }
.source-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.source-list small { display: block; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 3px; overflow-wrap: anywhere; }
.timeline span { color: var(--muted); }
.timeline p { margin: .2rem 0; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f8ebcf; color: #463313; border: 1px solid #e7d6ad; border-radius: 11px; padding: 11px 13px; margin-top: 12px; }
.notice.danger { display: block; margin: 0 0 14px; background: #fff1ef; border-color: #e3b5af; color: #842f2a; }
.notice.saved { background: #eef5ee; border-color: #c7dcc8; color: #224a33; }
.notice.saved p { margin: .15rem 0; }
.pages { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: 15px; }
.list-link { display: grid; padding: 10px 0; min-height: 44px; border-bottom: 1px solid var(--line); }
.login-body .site-header-inner { justify-content: center; }
.login-card { margin: clamp(16px, 10vh, 90px) auto 0; max-width: 440px; padding: 23px; }
.login-card h1 { font-size: 2.55rem; }
@media (max-width: 370px) {
  .shell { width: calc(100% - 24px); }
  .site-header-inner { gap: 12px; }
  .account { gap: 4px; }
  .account .avatar { display: none; }
  .overview { padding: 16px; }
  .meter { padding-inline: 6px; }
  .meter span { font-size: .85rem; }
}
@media (min-width: 650px) {
  .shell { width: min(100% - 54px, 1140px); }
  .main { padding-block: 28px 48px; }
  .mobile-nav { display: none; }
  .top-nav { display: flex; align-items: center; gap: 6px; }
  .top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 10px; border-radius: 7px; color: #f3f3f8; text-decoration: none; white-space: nowrap; }
  .top-nav a[aria-current="page"] { background: #353a50; color: #ffdf9d; }
  .desktop-add { display: inline-flex !important; }
  .overview-stats { max-width: 580px; }
  .meter { padding: 14px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(128px, 2fr) repeat(3, minmax(88px, 1fr)) auto; }
  .filters .search-label, .filters.dates button { grid-column: auto; }
  .filters.dates { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .panel { padding: 20px; }
}
@media (min-width: 900px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .site-header-inner { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
