:root {
  --cream: #f8f1e7;
  --surface: #fffdf8;
  --ink: #2d1c28;
  --muted: #756b65;
  --line: rgba(83, 56, 37, .13);
  --green: #254f3f;
  --green-soft: #dfebdd;
  --plum: #5b2d4d;
  --coral: #e8654d;
  --coral-soft: #ffe5dd;
  --lavender: #eee8f6;
  --mint: #e5f1e7;
  --amber: #edba55;
  --amber-soft: #fff0c9;
  --shadow: 0 16px 38px rgba(74, 47, 29, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.scene { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1040px) 280px; gap: 20px; align-items: center; justify-content: center; padding: clamp(14px, 2.2vw, 30px); background: radial-gradient(circle at 7% 8%, rgba(232,101,77,.18), transparent 28rem), radial-gradient(circle at 84% 5%, rgba(37,79,63,.15), transparent 28rem), radial-gradient(circle at 70% 88%, rgba(237,186,85,.22), transparent 27rem), linear-gradient(145deg, #fff8ef 0%, var(--cream) 58%, #f0e4d2 100%); }
.desktop-frame { min-height: 700px; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.86); border-radius: 36px; background: rgba(255,253,248,.78); box-shadow: 0 28px 90px rgba(72,44,26,.17); backdrop-filter: blur(18px); }
.sidebar { display: flex; flex-direction: column; gap: 18px; padding: 24px 17px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,249,239,.76), rgba(250,239,223,.58)); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.04em; line-height: 1.04; }
.brand-mark { width: 37px; height: 37px; border-radius: 15px; background: white; border: 2px solid var(--green); position: relative; }
.brand-mark:after { content: ""; position: absolute; inset: 9px; border-radius: 8px; border: 2px solid var(--coral); }
.side-nav { display: grid; gap: 6px; }
.side-nav.secondary { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 999px; color: var(--muted); font-weight: 820; font-size: .9rem; }
.side-nav a.active { color: white; background: var(--green); box-shadow: 0 12px 24px rgba(37,79,63,.18); }
.icon { width: 18px; height: 18px; display: inline-grid; place-items: center; border: 1.6px solid currentColor; border-radius: 6px; font-size: .68rem; line-height: 1; font-weight: 900; }
.side-stat { margin-top: auto; padding: 15px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.78); }
.stat-pair { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; padding: 5px 0; }
.stat-pair + .stat-pair { border-top: 1px solid var(--line); }
.stat-pair strong { font: 800 1.45rem/1 Sora, sans-serif; letter-spacing: -.05em; }
.stat-pair span { color: var(--muted); font-weight: 820; font-size: .82rem; }
.muted-label { color: var(--coral); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 900; }
.content { padding: 23px; }
.compact-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
h2, h3 { margin: 0; font-family: Sora, "Plus Jakarta Sans", sans-serif; letter-spacing: -.045em; line-height: 1.05; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.02rem; }
.quick-add, .phone-plus { display: inline-grid; place-items: center; color: white; border-radius: 999px; background: linear-gradient(135deg, var(--coral), #c94531); box-shadow: 0 14px 28px rgba(232,101,77,.22); font-weight: 900; }
.quick-add { min-height: 42px; padding: 0 17px; white-space: nowrap; }
.top-tabs { display: flex; gap: 24px; flex: 1; border-bottom: 1px solid var(--line); }
.top-tabs a { padding: 0 0 11px; color: var(--muted); font-weight: 850; position: relative; font-size: .93rem; }
.top-tabs a.active { color: var(--green); }
.top-tabs a.active:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 999px; background: var(--green); }
.filter-row, .card-topline, .card-footer, .source-row, .link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-row { margin-bottom: 15px; }
.filter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: white; color: var(--muted); font-size: .82rem; font-weight: 820; }
.filter.active { color: var(--green); background: var(--green-soft); border-color: rgba(37,79,63,.26); }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 255px; gap: 13px; }
.wish-card { position: relative; overflow: visible; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.92); border-radius: 25px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); padding: 18px 18px 22px; }
.stripe { position: absolute; left: 0; top: 18px; bottom: 18px; width: 6px; border-radius: 999px; }
.stripe.coral, .phone-stripe.coral { background: var(--coral); }
.stripe.green, .phone-stripe.green { background: var(--green); }
.stripe.amber, .phone-stripe.amber { background: var(--amber); }
.stripe.plum, .phone-stripe.plum { background: var(--plum); }
.stripe.mint { background: #95b68b; }
.chip, .priority, .status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: .68rem; font-weight: 900; }
.chip.food { color: #8b3325; background: var(--coral-soft); }
.chip.stuff { color: var(--green); background: var(--green-soft); }
.chip.place { color: var(--plum); background: var(--lavender); }
.priority.must { color: #654112; background: var(--amber-soft); }
.priority.mid { color: var(--green); background: var(--green-soft); }
.priority.low { color: var(--muted); background: #f2ebe2; }
.note { margin: 10px 0 0; color: var(--muted); line-height: 1.42; font-size: .86rem; }
.meta-panel { margin-top: auto; padding-top: 13px; border-top: 1.5px solid rgba(83,56,37,.12); display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; color: var(--muted); font-weight: 820; font-size: .76rem; }
.source-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.price-chip { color: var(--ink); background: #fff8ee; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; white-space: nowrap; font-weight: 900; }
.link-row { justify-content: space-between; margin-top: auto; padding-top: 12px; color: var(--muted); font-weight: 800; font-size: .82rem; column-gap: 18px; border-top: 1px solid rgba(83,56,37,.08); }
.link-row span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.link-row span:last-child { margin-left: auto; white-space: nowrap; color: var(--ink); }
.source-row { margin-top: auto; padding-top: 10px; }
.source-row a { padding: 7px 9px; border: 1px solid var(--line); border-radius: 13px; background: #fff8ee; color: #5e524c; font-weight: 820; font-size: .76rem; }
.card-footer { justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .78rem; font-weight: 820; }
.status.planned { color: #813427; background: var(--coral-soft); }
.status.comparing { color: var(--green); background: var(--green-soft); }
.status.saved { color: #6c4514; background: var(--amber-soft); }
.status.booked { color: var(--plum); background: var(--lavender); }
.empty-state { align-items: center; justify-content: center; text-align: center; border: 2px dashed rgba(37,79,63,.32); box-shadow: none; background: rgba(255,253,248,.72); }
.box-illustration { width: 108px; height: 70px; border: 3.5px dashed rgba(37,79,63,.78); border-radius: 16px; background: linear-gradient(180deg, #fffdf8, #fff4df); position: relative; margin-bottom: 16px; box-shadow: inset 0 -12px 0 rgba(37,79,63,.08), 0 10px 24px rgba(37,79,63,.08); }
.box-illustration:before { content: ""; position: absolute; width: 50px; height: 30px; left: 2px; top: -24px; border: 3px dashed rgba(37,79,63,.70); border-bottom: 0; border-radius: 14px 14px 0 0; transform: rotate(-18deg); background: #fffdf8; }
.box-illustration:after { content: ""; position: absolute; width: 50px; height: 30px; right: 2px; top: -24px; border: 3px dashed rgba(37,79,63,.70); border-bottom: 0; border-radius: 14px 14px 0 0; transform: rotate(18deg); background: #fffdf8; }
.empty-state p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.38; }
.phone-frame { align-self: center; max-height: none; overflow: visible; border: 1px solid rgba(255,255,255,.92); border-radius: 34px; background: #fffdf8; box-shadow: 0 26px 78px rgba(74,44,28,.18); padding: 9px; transform: scale(.92); transform-origin: center; }
.phone-top, .phone-header, .bottom-nav { display: flex; align-items: center; justify-content: space-between; }
.phone-top { color: var(--muted); font-size: .7rem; font-weight: 900; padding: 1px 9px 8px; justify-content: flex-start; }
.phone-header strong { color: var(--plum); font-family: Sora, sans-serif; font-size: 1rem; letter-spacing: -.04em; }
.hamburger { width: 28px; height: 28px; border: 0; background: transparent; color: var(--green); font-weight: 900; font-size: 1rem; }
.phone-plus { width: 36px; height: 36px; font-size: 1.18rem; }
.phone-tabs, .phone-filters { display: flex; gap: 7px; overflow-x: auto; }
.phone-tabs { margin: 8px 0 6px; border-bottom: 1px solid var(--line); }
.phone-tabs span { white-space: nowrap; padding: 0 0 6px; color: var(--muted); font-size: .68rem; font-weight: 850; position: relative; }
.phone-tabs span.active { color: var(--green); }
.phone-tabs span.active:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 999px; background: var(--green); }
.phone-filters span { white-space: nowrap; padding: 4px 6px; border-radius: 999px; background: #f4eadb; color: var(--muted); font-size: .6rem; font-weight: 850; }
.phone-filters { margin-bottom: 7px; }
.phone-filters span:first-child { color: var(--green); background: var(--green-soft); }
.phone-card { overflow: hidden; display: grid; grid-template-columns: 5px 1fr; gap: 7px; padding: 7px; margin-bottom: 5px; border-radius: 21px; border: 1px solid var(--line); background: white; box-shadow: 0 12px 28px rgba(74,44,28,.10); }
.phone-card.compact { min-height: 68px; align-items: center; }
.phone-stripe { width: 6px; border-radius: 999px; }
.phone-card h3 { margin: 3px 0 1px; font-size: .82rem; }
.phone-card p { margin: 0 0 3px; color: var(--muted); line-height: 1.15; font-size: .6rem; }
.phone-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 5px; }
.phone-meta > span:not(.status) { color: var(--muted); background: transparent; border: 0; padding: 0; font-size: .58rem; font-weight: 820; }
.source-meta { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; }
.source-meta i { width: 10px; height: 10px; display: inline-block; border: 1.4px solid var(--green); border-radius: 4px; position: relative; }
.source-meta i:after { content: ""; position: absolute; width: 4px; height: 1.4px; right: -4px; top: 3px; background: var(--green); transform: rotate(-35deg); }
.phone-empty { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px dashed var(--line); border-radius: 19px; background: #fff9ef; }
.box-illustration.small { flex: 0 0 auto; width: 34px; height: 26px; border-radius: 9px; margin: 0; border: 2px dashed rgba(37,79,63,.45); background: white; box-shadow: none; }
.box-illustration.small:before { width: 16px; height: 9px; left: 2px; top: -7px; border-width: 2px; border-bottom: 0; border-radius: 7px 7px 0 0; }
.box-illustration.small:after { width: 16px; height: 9px; right: 2px; top: -7px; border-width: 2px; border-bottom: 0; border-radius: 7px 7px 0 0; }
.box-illustration.small:before { width: 16px; height: 9px; left: 7px; top: -7px; border-radius: 7px 7px 0 0; }
.phone-empty p { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 760; line-height: 1.25; }
.bottom-nav { margin-top: 6px; padding: 7px 8px; border-radius: 21px; background: #f7eee2; color: var(--muted); font-weight: 850; font-size: .68rem; }
.bottom-nav .active { color: var(--green); }
.bottom-nav .add-icon { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-weight: 900; }
.bottom-nav .add-icon b { width: 24px; height: 24px; display: grid; place-items: center; color: var(--green); background: transparent; border: 1.5px solid var(--green); border-radius: 999px; font-size: .9rem; }
.bottom-nav .add-icon em { font-style: normal; color: var(--muted); font-size: .6rem; }
@media (max-width: 1120px) { .scene { grid-template-columns: 1fr; } .phone-frame { width: min(292px, 100%); justify-self: center; } }
@media (max-width: 820px) { .desktop-frame { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .side-nav.primary { grid-template-columns: repeat(2, minmax(0,1fr)); } .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } .compact-toolbar { align-items: stretch; flex-direction: column; } }

/* final review overrides */
.meta-stack {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px solid rgba(83,56,37,.14);
  display: grid;
  gap: 13px;
}
.meta-stack > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 36px;
}
.meta-stack > div + div {
  padding-top: 12px;
  border-top: 1px solid rgba(83,56,37,.08);
}
.meta-stack span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.meta-stack strong:not(.status) {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.box-illustration {
  width: 116px;
  height: 72px;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  margin-bottom: 16px;
}
.box-illustration .box-base {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 50px;
  border: 4px dashed rgba(37,79,63,.82);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #fff1da);
  box-shadow: inset 0 -10px 0 rgba(37,79,63,.08), 0 8px 18px rgba(37,79,63,.08);
}
.box-illustration .flap {
  position: absolute;
  top: 2px;
  width: 54px;
  height: 34px;
  border: 4px dashed rgba(37,79,63,.78);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fffdf8;
  z-index: 2;
}
.box-illustration .flap.left { left: 5px; transform: rotate(-18deg); }
.box-illustration .flap.right { right: 5px; transform: rotate(18deg); }
.box-illustration .box-line {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(37,79,63,.34);
  z-index: 3;
}
.box-illustration:before,
.box-illustration:after { content: none !important; }
.box-illustration.small {
  width: 34px;
  height: 26px;
  border: 2px dashed rgba(37,79,63,.45);
  border-radius: 9px;
  background: white;
}
.box-illustration.small .flap,
.box-illustration.small .box-base,
.box-illustration.small .box-line { display: none; }

/* final literal open-box pass */
.empty-state { overflow: visible; }
.box-illustration {
  width: 128px !important;
  height: 82px !important;
  margin-top: 10px;
  margin-bottom: 18px !important;
}
.box-illustration .box-base {
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 62px;
  border: 4px solid rgba(37,79,63,.72);
  border-style: dashed;
  border-radius: 10px 10px 18px 18px;
  background: #fff5e6;
}
.box-illustration .flap {
  width: 60px;
  height: 38px;
  top: -2px;
  border: 4px solid rgba(37,79,63,.72);
  border-style: dashed;
  background: #fffdf8;
}
.box-illustration .flap.left { left: 8px; transform: rotate(-24deg) skewX(-8deg); transform-origin: bottom right; }
.box-illustration .flap.right { right: 8px; transform: rotate(24deg) skewX(8deg); transform-origin: bottom left; }
.box-illustration .box-line {
  left: 28px;
  right: 28px;
  bottom: 25px;
  height: 5px;
  background: rgba(37,79,63,.50);
}
.box-illustration.small {
  width: 34px !important;
  height: 26px !important;
  margin: 0 !important;
  border: 2px dashed rgba(37,79,63,.45) !important;
  border-radius: 9px !important;
  background: white !important;
}

/* thirteenth review breathing-room + literal-box overrides */
.wish-card { padding-bottom: 26px !important; }
.meta-stack { gap: 13px !important; padding-top: 16px !important; margin-bottom: 2px; }
.meta-stack > div { min-height: 36px !important; }
.meta-stack > div + div { padding-top: 12px !important; }
.meta-stack .status { padding: 7px 10px; }
.empty-state .box-illustration {
  width: 138px !important;
  height: 92px !important;
}
.empty-state .box-illustration .box-base {
  left: 14px;
  right: 14px;
  height: 64px;
  border-style: solid;
  border-width: 4px;
  border-color: rgba(37,79,63,.74);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(37,79,63,.16) 49% 51%, transparent 52%),
    linear-gradient(225deg, transparent 0 48%, rgba(37,79,63,.16) 49% 51%, transparent 52%),
    #fff3df;
}
.empty-state .box-illustration .flap {
  width: 62px;
  height: 42px;
  top: 0;
  border-style: solid;
  border-width: 4px;
  border-color: rgba(37,79,63,.74);
  background: #fffdf8;
}
.empty-state .box-illustration .flap.left { left: 9px; transform: rotate(-28deg) skewX(-8deg); }
.empty-state .box-illustration .flap.right { right: 9px; transform: rotate(28deg) skewX(8deg); }
.empty-state .box-illustration .box-line {
  left: 38px;
  right: 38px;
  bottom: 30px;
  height: 6px;
  background: rgba(37,79,63,.55);
}

/* mobile small open-box fix */
.box-illustration.small {
  position: relative !important;
  width: 42px !important;
  height: 32px !important;
  border: 0 !important;
  background: transparent !important;
  flex: 0 0 42px;
}
.box-illustration.small .box-base,
.box-illustration.small .flap,
.box-illustration.small .box-line { display: block !important; }
.box-illustration.small .box-base {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 22px;
  border: 2px solid rgba(37,79,63,.70);
  border-style: dashed;
  border-radius: 5px 5px 8px 8px;
  background: #fff3df;
}
.box-illustration.small .flap {
  position: absolute;
  top: 1px;
  width: 20px;
  height: 14px;
  border: 2px solid rgba(37,79,63,.70);
  border-style: dashed;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #fffdf8;
}
.box-illustration.small .flap.left { left: 3px; transform: rotate(-25deg); transform-origin: bottom right; }
.box-illustration.small .flap.right { right: 3px; transform: rotate(25deg); transform-origin: bottom left; }
.box-illustration.small .box-line {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(37,79,63,.48);
}
