:root {
  color-scheme: light;
  --ink: #19392c;
  --muted: #66776a;
  --paper: #f2f5ef;
  --surface: #fbfcfa;
  --leaf: #1f6547;
  --leaf-dark: #164a33;
  --citrus: #e3b24e;
  --line: #d7e1d7;
  --danger: #934b3e;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 64px, 1160px); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.topbar, footer { display: flex; justify-content: space-between; align-items: center; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 750; letter-spacing: -.045em; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; background: var(--leaf); color: white; font-size: 17px; }
.top-note { color: var(--muted); font-size: 12px; }
.access-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .8fr); align-items: center; gap: clamp(45px, 8vw, 120px); width: 100%; margin: auto; padding: 52px 0; }
.story { max-width: 570px; padding-bottom: 10px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--leaf); font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.kicker::before { width: 22px; height: 3px; border-radius: 9px; background: var(--citrus); content: ""; }
h1 { max-width: 560px; margin: 0; font-size: clamp(44px, 6vw, 72px); font-weight: 720; line-height: .99; letter-spacing: -.072em; }
.intro { max-width: 440px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.card { width: 100%; padding: 34px 32px 28px; border: 1px solid #dfe8de; border-radius: 8px 8px 8px 2px; background: var(--surface); box-shadow: 0 18px 42px #21442b08; }
.card-copy { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.card-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
h2 { margin: 0; font-size: 26px; font-weight: 680; letter-spacing: -.05em; }
.form { margin-top: 22px; }
label, h3 { font-size: 12px; font-weight: 700; }
.input-row { display: flex; flex-direction: column; gap: 11px; margin-top: 9px; }
input, select { min-width: 0; width: 100%; height: 43px; padding: 0 12px; border: 1px solid #cbd8cc; border-radius: 4px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px #1f65471c; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--citrus); outline-offset: 3px; }
.primary { min-height: 42px; padding: 0 15px; border: 0; border-radius: 4px; background: var(--leaf); color: white; font-size: 12px; font-weight: 700; text-align: left; }
.primary:hover { background: var(--leaf-dark); }
.primary:disabled { opacity: .65; cursor: wait; }
.message { min-height: 18px; margin: 9px 0 0; color: var(--danger); font-size: 12px; }
.session-panel { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); }
.signed-in { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; }
.status-dot { width: 8px; height: 8px; border-radius: 99px; background: #538b61; }
.session-note { margin: 8px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
summary { width: fit-content; margin-bottom: 8px; color: var(--leaf-dark); cursor: pointer; font-size: 12px; font-weight: 700; }
.sessions { margin: 0 0 16px; padding: 0; list-style: none; }
.sessions li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); color: #4c554d; font-size: 11px; }
.sessions li span { line-height: 1.6; }
.sessions small { display: block; color: #78847a; }
.revoke { padding: 5px 0 5px 10px; border: 0; background: none; color: var(--danger); font-size: 11px; font-weight: 700; }
.secondary { min-height: 37px; padding: 0 12px; border: 1px solid #cbd8cc; border-radius: 4px; background: white; color: var(--ink); font-size: 11px; font-weight: 680; }
.secondary:hover { border-color: var(--leaf); }

.shopping-app { margin: 8px 0 48px; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; padding: 14px 0 23px; border-bottom: 1px solid var(--line); }
.workspace-heading .kicker { margin-bottom: 8px; }
.workspace-heading h2 { font-size: 32px; }
.workspace-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.shopping-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; padding-top: 25px; }
.list-rail { padding: 17px 15px 18px; border: 1px solid var(--line); border-radius: 6px 6px 6px 2px; background: #e9f0e7; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #d4dfd3; }
.rail-heading h3, .items-heading h3, .add-intro h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.rail-heading > span { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 99px; background: white; color: var(--muted); font-size: 10px; }
.list-nav { margin: 7px -7px 17px; padding: 0; list-style: none; }
.list-nav-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 9px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--ink); text-align: left; }
.list-nav-button:hover { background: #ffffff85; }
.list-nav-button.selected { border-left-color: var(--leaf); background: white; }
.list-nav-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.list-nav-button small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.create-list-form { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #d4dfd3; }
.create-list-form label { font-size: 11px; }
.create-list-form input { height: 39px; font-size: 12px; }
.create-list-form .primary { min-height: 37px; }
.list-workspace { min-width: 0; }
.empty-state { max-width: 470px; padding: 57px 10px; }
.empty-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 17px; border-radius: 50%; background: var(--citrus); color: var(--ink); font-size: 26px; font-weight: 400; }
.empty-state h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.04em; }
.empty-state p { max-width: 400px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 17px; }
.list-heading h2 { font-size: 25px; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.rename-form { display: flex; gap: 6px; }
.rename-form input { width: 170px; height: 36px; font-size: 12px; }
.text-button { padding: 5px; border: 0; background: transparent; color: var(--leaf-dark); font-size: 11px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--danger); }
.total-strip { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(200px, 1.2fr) auto; align-items: center; gap: 18px; min-height: 98px; padding: 17px 20px; border-radius: 5px 5px 5px 2px; background: var(--ink); color: white; }
.total-main { display: grid; gap: 4px; }
.total-main > span { color: #d2ded3; font-size: 11px; }
.total-main strong { color: white; font-size: clamp(25px, 3vw, 34px); font-weight: 690; letter-spacing: -.055em; }
.total-status { max-width: 280px; margin: 0; color: #e0e9dd; font-size: 11px; line-height: 1.55; }
.total-counts { display: grid; justify-items: end; gap: 5px; color: #d2ded3; font-size: 10px; white-space: nowrap; }
.total-counts span:last-child { color: #f1ca73; }
.items-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 29px 0 7px; }
.items-heading > span { color: var(--muted); font-size: 11px; }
.list-feedback { min-height: 18px; margin: 0; color: var(--leaf-dark); font-size: 11px; }
.items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 16px 3px; border-bottom: 1px solid var(--line); }
.item.bought .item-details { opacity: .63; }
.item-name-row { display: flex; align-items: center; gap: 9px; }
.item-name-row h4 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.bought-tag { padding: 3px 6px; border-radius: 2px; background: #dce8dc; color: var(--leaf-dark); font-size: 9px; font-weight: 700; }
.item-meta { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.product-link { display: inline-block; margin-top: 6px; color: var(--leaf-dark); font-size: 10px; font-weight: 680; }
.item-price { display: grid; min-width: 105px; justify-items: end; gap: 4px; }
.item-price strong { font-size: 14px; }
.freshness { color: var(--muted); font-size: 10px; }
.freshness.stale { color: #986022; font-weight: 700; }
.item-actions { display: flex; align-items: center; gap: 6px; }
.item-price-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: 9px; padding: 11px; background: #e9f0e7; }
.item-price-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.item-price-form input { width: 150px; height: 36px; font-size: 12px; }
.add-section { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 24px; margin-top: 35px; padding: 21px; border: 1px solid var(--line); border-radius: 6px 6px 6px 2px; background: var(--surface); }
.add-intro h3 { font-size: 16px; }
.add-intro p { max-width: 260px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.add-form { display: grid; gap: 9px; }
.add-form > label { font-size: 10px; }
.add-form select { height: 39px; font-size: 11px; }
.new-offer-fields { display: grid; gap: 10px; padding: 5px 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid > div { display: grid; align-content: start; gap: 5px; }
.field-grid > div.wide { grid-column: 1 / -1; }
.field-grid label { font-size: 10px; }
.field-grid input { height: 37px; font-size: 11px; }
.optional { color: #819083; font-size: 9px; font-weight: 500; }
.manual-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.add-form > .primary { justify-self: start; }
.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; }
footer { margin-top: auto; padding: 20px 0; color: var(--muted); font-size: 10px; }
footer span:last-child { color: #879389; }
[hidden] { display: none !important; }

.alert-shelf { margin-top: 20px; padding: 0 17px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.collection-shelf { margin-top: 18px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.collection-shelf h3 { margin: 0 0 5px; font-size: 13px; }
.collection-shelf p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.collection-shelf p.collection-error { color: var(--danger); }
.ikea-pilot-checks { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; }
.alert-shelf .items-heading { margin-top: 14px; }
.price-alerts { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.price-alert { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.price-alert > div { flex: 1; min-width: 0; }
.price-alert strong { font-size: 12px; }
.price-alert p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.price-alert.dismissed { opacity: .62; }
.watch-meta { grid-column: 1 / -1; margin: -9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.watch-meta.watch-error { color: var(--danger); }
.price-history { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.price-history summary { width: fit-content; cursor: pointer; color: var(--leaf-dark); font-weight: 700; }
.price-history ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 17px; }

@media (max-width: 840px) {
  .shell { width: min(100% - 38px, 700px); }
  .access-stage { grid-template-columns: 1fr; gap: 28px; padding: 38px 0; }
  .story { max-width: 600px; }
  h1 { max-width: 540px; font-size: clamp(42px, 9vw, 62px); }
  .intro { margin-top: 15px; }
  .shopping-layout { grid-template-columns: 1fr; gap: 20px; }
  .list-rail { padding: 12px; }
  .list-nav { display: flex; overflow-x: auto; gap: 5px; margin: 7px 0 13px; }
  .list-nav li { flex: 0 0 auto; min-width: 155px; }
  .list-nav-button { min-height: 46px; }
  .create-list-form { grid-template-columns: minmax(90px, .6fr) minmax(160px, 1fr) auto; align-items: end; }
  .create-list-form label { grid-column: 1 / -1; }
  .create-list-form input, .create-list-form .primary { height: 39px; }
  .create-list-form .primary { min-width: 110px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 30px, 500px); }
  .topbar { height: 65px; }
  .access-stage { padding: 30px 0; }
  .story .kicker { margin-bottom: 15px; }
  h1 { font-size: clamp(39px, 12vw, 54px); }
  .card { padding: 25px 21px 22px; }
  .workspace-heading { display: block; }
  .workspace-heading h2 { font-size: 28px; }
  .workspace-heading > p { margin-top: 7px; }
  .shopping-layout { padding-top: 16px; }
  .create-list-form { grid-template-columns: 1fr auto; }
  .create-list-form label { grid-column: 1 / -1; }
  .list-heading { align-items: start; flex-direction: column; }
  .list-tools { justify-content: start; }
  .total-strip { grid-template-columns: 1fr auto; gap: 9px 14px; padding: 15px; }
  .total-main { grid-row: span 2; }
  .total-main strong { font-size: 28px; }
  .total-status { align-self: end; }
  .total-counts { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: start; justify-items: start; gap: 4px 9px; white-space: normal; }
  .item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .item-price { grid-column: 2; grid-row: 1; }
  .item-actions { grid-column: 1 / -1; justify-content: start; margin-top: 4px; }
  .item-actions .text-button { padding-left: 0; padding-right: 12px; }
  .item-price-form { grid-column: 1 / -1; }
  .item-price-form input { width: 130px; }
  .add-section { grid-template-columns: 1fr; gap: 15px; padding: 16px; }
  .add-intro p { max-width: 420px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid > div.wide { grid-column: auto; }
  footer { font-size: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .list-nav-button, .primary, .secondary { transition: background-color 130ms ease, border-color 130ms ease; }
}
