:root {
  --bg: #f7f5ef; --paper: #fffefa; --ink: #30372e; --muted: #626958;
  --line: #dedfd3; --orange: #a7422b; --orange-light: #f4e4da; --green: #495d3d;
  --serif: Georgia, 'Times New Roman', serif; --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; transition: background .15s, transform .15s; }
button:disabled { opacity: .55; cursor: wait; }
button:active:not(:disabled) { transform: translateY(1px); }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.hidden { display: none !important; }
.loading { min-height: 100dvh; display: grid; place-items: center; padding: 24px; font: 24px var(--serif); text-align: center; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.6px; text-decoration: none; white-space: nowrap; }
.brand-dot { color: var(--orange); font-size: 12px; align-self: flex-start; margin: 3px 0 0 -6px; }
.topbar { min-height: 80px; padding: 12px max(5%, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.text-button { min-height: 44px; border: 0; background: none; padding: 10px 4px; color: var(--green); font-size: 14px; }
.text-button:hover { text-decoration: underline; }
.workspace { max-width: 1380px; padding: 32px 5% 0; margin: auto; }
.page-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 1.3px; color: var(--muted); }
.house-label { font-weight: 600; color: var(--green); }
.small-date { letter-spacing: 0; }
.heading-row { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 30px; gap: 24px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.1; letter-spacing: -2px; }
h1 em { color: var(--orange); }
h2 { font-size: 32px; line-height: 1.15; letter-spacing: -1px; }
.heading-row p { margin: 14px 0 0; font-size: 15px; }
.muted { color: var(--muted); line-height: 1.65; }
.primary, .secondary { min-height: 48px; border: 1px solid transparent; border-radius: 9px; padding: 12px 20px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.primary { background: var(--orange); color: #fffdf6; }
.primary:hover { background: #883923; }
.secondary { background: var(--paper); border-color: #c9cfbe; color: var(--green); }
.secondary:hover { background: #ecede4; }
.plus { font-size: 25px; font-weight: 400; line-height: 18px; }
.overview { background: #eceee2; border: 1px solid #dde1d1; border-radius: 12px; display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; padding: 23px 25px; margin-bottom: 32px; }
.overview > div + div { border-left: 1px solid #d4dac9; padding-left: 24px; }
.overview-label { font-size: 10px; letter-spacing: 1px; color: #576249; display: block; margin-bottom: 10px; font-weight: 600; }
.overview strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; font: 30px var(--serif); letter-spacing: -.7px; }
.overview strong span { font: 12px/1.5 var(--sans); letter-spacing: 0; color: var(--muted); }
.people-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.avatars { display: flex; padding-left: 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #dac9af; border: 2px solid #eceee2; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; margin-left: -4px; color: #534536; }
.avatar:nth-child(3n+2) { background: #c4cfbc; color: #3d5141; }
.avatar:nth-child(3n+3) { background: #dcb8a9; color: #754731; }
#member-label { font-size: 13px; }
.wishlist-section { scroll-margin-top: 20px; }
.list-heading { border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 30px; }
.tab { min-height: 48px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 0 16px; color: var(--muted); font-size: 16px; }
.tab.active { color: var(--ink); border-color: var(--orange); }
.tab span { font-size: 12px; background: #e7e9df; min-width: 24px; display: inline-block; border-radius: 6px; padding: 3px 6px; margin-left: 6px; }
.tab.active span { background: var(--orange-light); color: var(--orange); }
.filter-row { display: flex; align-items: center; gap: 16px; margin: 20px 0 5px; }
.categories { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { min-height: 44px; flex-shrink: 0; background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 13px; padding: 10px 12px; border-radius: 7px; }
.chip:hover { background: #eaece2; }
.chip.selected { background: #e4e9d9; color: #3f5233; border-color: #d4ddc6; }
.search { display: flex; gap: 10px; align-items: center; margin: 0 0 0 auto; min-width: 170px; max-width: 210px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.search span { font-size: 25px; color: var(--muted); }
.search input { border: 0; margin: 0; padding: 12px 0; background: transparent; min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
#results-count { font-size: 12px; color: var(--muted); margin: 0; }
.sort-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 0; }
.sort-label select { margin: 0; min-height: 44px; border: 0; background: transparent; width: auto; font-size: 14px; padding: 8px 0 8px 4px; }
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.item-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s; }
.item-card:hover { box-shadow: 0 4px 18px #30372e0a; }
.card-top { padding: 20px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.category-tag { font-size: 11px; background: #ebeee2; padding: 7px 9px; border-radius: 5px; color: #536144; }
.category-tag.kitchen { background: #f4e8d9; color: #805c32; }
.category-tag.bathroom { background: #e7edee; color: #49696c; }
.category-tag.outdoors { background: #e6ebde; color: #4b6633; }
.card-price { font: 22px var(--serif); letter-spacing: -.4px; }
.card-price.unknown { font: 12px var(--sans); color: var(--muted); }
.card-main { background: none; border: 0; text-align: left; padding: 20px; flex: 1; min-height: 150px; }
.card-main:focus-visible { outline-offset: -4px; }
.card-main h3 { font: 27px/1.16 var(--serif); letter-spacing: -.6px; margin: 0 0 10px; overflow-wrap: anywhere; }
.card-main p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-meta { padding: 0 20px 18px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.mini-avatar { background: #e9ddcc; color: #74533b; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 10px; flex-shrink: 0; }
.card-bottom { padding: 10px 14px; border-top: 1px solid #e8eadf; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vote-button { min-height: 44px; border: 1px solid #dce0d2; background: var(--paper); border-radius: 7px; display: flex; gap: 8px; align-items: center; padding: 9px 11px; font-size: 13px; white-space: nowrap; }
.vote-button.selected { background: #f7e8e0; border-color: #dcb5a1; color: #983d27; }
.heart { font-size: 20px; line-height: 16px; }
.comment-button { min-height: 44px; font-size: 13px; background: none; border: 0; color: var(--muted); padding: 8px; text-align: right; }
.empty { text-align: center; padding: 40px 20px 48px; background: #eff0e5; border: 1px dashed #cbd3be; border-radius: 12px; }
.empty-icon { font-size: 50px; color: #aa6040; margin-bottom: 16px; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 600; display: block; color: #5a674e; }
.empty h2 { margin-top: 12px; font-size: 30px; }
.empty p { line-height: 1.8; font-size: 14px; color: var(--muted); margin: 15px auto 23px; max-width: 400px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 42px; padding: 24px 0 30px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-flower { font-size: 20px; color: var(--orange); vertical-align: middle; padding-left: 10px; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-story { background: #e8ebdc; position: relative; padding: 45px 9%; overflow: hidden; display: flex; flex-direction: column; min-height: 760px; }
.story-copy { margin-top: 76px; position: relative; z-index: 1; }
.story-copy h1 { font-size: clamp(58px, 6.7vw, 94px); line-height: .99; letter-spacing: -4px; margin-top: 21px; }
.story-copy p { color: #5e6a51; line-height: 1.8; margin-top: 26px; font-size: 15px; }
.story-footer { font-size: 12px; color: #59694a; position: relative; z-index: 1; margin-top: auto; padding-top: 35px; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 12%; position: relative; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 40px; margin-top: 16px; }
.auth-card > p { font-size: 15px; margin: 16px 0 28px; }
.auth-note { font-size: 13px !important; line-height: 1.7; color: var(--muted); text-align: center; margin-top: 24px !important; }
.private-note { position: absolute; bottom: 32px; font-size: 12px; color: var(--muted); }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 19px; }
input, select, textarea { display: block; width: 100%; min-height: 48px; border: 1px solid #cfd5c5; border-radius: 8px; padding: 12px 13px; margin-top: 8px; background: var(--paper); color: var(--ink); font-size: 16px; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #777e6e; opacity: 1; }
.password-field { position: relative; margin: -11px 0 20px; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; right: 4px; top: 3px; min-height: 44px; min-width: 60px; border: 0; border-radius: 5px; background: transparent; color: var(--green); font-size: 13px; }
.full { width: 100%; justify-content: space-between; }
.optional { font-size: 12px; font-weight: 400; color: var(--muted); }
.hint { font-size: 12px; line-height: 1.6; color: var(--muted); }
.error { color: #a33321; font-size: 14px; line-height: 1.5; margin: 8px 0 15px; }
.error:empty { display: none; }
dialog { width: min(580px, calc(100% - 40px)); max-height: calc(100dvh - 48px); border: 1px solid #d8ddcf; border-radius: 16px; background: var(--bg); color: var(--ink); padding: 28px; box-shadow: 0 20px 100px #26342033; overscroll-behavior: contain; }
dialog::backdrop { background: #26342066; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 30px; margin-top: 10px; }
.icon-button { border: 0; background: #e6eadb; border-radius: 50%; font-size: 26px; width: 44px; height: 44px; flex-shrink: 0; line-height: 1; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-columns > label { min-width: 0; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.detail-title { font-size: 38px; line-height: 1.1; overflow-wrap: anywhere; }
.detail-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.75; color: var(--muted); margin: 20px 0; }
.detail-price { font: 28px var(--serif); margin: 17px 0; }
.detail-byline { font-size: 13px; color: var(--muted); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }
.edit-actions { display: flex; justify-content: space-between; gap: 20px; }
.danger { color: #a33321; }
.discussion { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 20px; }
.discussion h3 { font: 25px var(--serif); margin: 0 0 20px; }
.discussion h3 span { color: var(--muted); font: 14px var(--sans); margin-left: 5px; }
.comment { padding: 16px; background: #eceee3; border-radius: 9px; font-size: 14px; margin-bottom: 12px; }
.comment strong { font-size: 13px; }
.comment time { font-size: 12px; color: var(--muted); margin-left: 10px; }
.comment p { white-space: pre-wrap; line-height: 1.65; margin: 8px 0 0; overflow-wrap: anywhere; }
.no-comments { font-size: 14px; line-height: 1.6; color: var(--muted); padding-bottom: 10px; }
#comment-form { text-align: right; }
#comment-form textarea { margin-bottom: 12px; }
.invite-actions { display: flex; gap: 8px; }
#invite-link { text-overflow: ellipsis; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #38442f; color: #fffefa; padding: 14px 20px; border-radius: 10px; z-index: 99; box-shadow: 0 4px 20px #0002; font-size: 14px; line-height: 1.5; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.connection-status { background: #f3dfb6; color: #684916; padding: 12px 20px; text-align: center; font-size: 14px; line-height: 1.5; }
.skip-link { position: absolute; top: -70px; left: 16px; padding: 12px 20px; background: var(--paper); z-index: 100; }
.skip-link:focus { top: 16px; }
body:has(#app.hidden) .skip-link { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 24px; }
.room-art{height:265px;position:relative;margin-top:12px;max-width:490px;flex-shrink:0}.art-window{position:absolute;right:18px;top:0;width:100px;height:123px;border:6px solid #d5dbc4;border-radius:52px 52px 0 0;background:#f8f1da;overflow:hidden}.art-window:after{content:'';position:absolute;left:43px;width:5px;height:100%;background:#d5dbc4}.art-window:before{content:'';position:absolute;left:0;top:52px;width:100%;height:5px;background:#d5dbc4}.art-sun{position:absolute;right:36px;top:14px;border-radius:50%;width:40px;height:40px;background:#e5b574;z-index:1;opacity:.7}.art-frame{position:absolute;left:28px;top:25px;border:5px solid #af9775;padding:12px 17px;background:#f8f3e5;color:#98704b;transform:rotate(-5deg);font-family:var(--serif);font-size:21px;line-height:1.1}.art-sofa{position:absolute;bottom:50px;left:39px;width:220px;height:80px;background:#b86b4b;border-radius:22px 22px 9px 9px;z-index:3;border-bottom:16px solid #a9573c}.art-sofa:before,.art-sofa:after{content:'';position:absolute;top:30px;width:25px;height:62px;background:#b96948;border-radius:10px 10px 4px 4px;box-shadow:0 8px 0 -4px #7c5b43}.art-sofa:before{left:-10px}.art-sofa:after{right:-10px}.art-sofa i{position:absolute;width:60px;height:50px;background:#dac38e;border-radius:12px;top:11px;left:16px;transform:rotate(-12deg)}.art-sofa b{position:absolute;left:108px;width:2px;top:4px;height:58px;background:#995638;opacity:.6}.art-rug{position:absolute;bottom:17px;left:10px;width:340px;height:55px;background:#cbd2b9;border-radius:50%;transform:rotate(-3deg)}.art-table{position:absolute;bottom:27px;left:210px;width:105px;height:45px;border-top:12px solid #866b4c;border-radius:50%;z-index:4}.art-table:after,.art-table:before{content:'';height:26px;position:absolute;top:0;width:6px;background:#866b4c}.art-table:before{left:15px}.art-table:after{right:15px}.art-plant{position:absolute;right:23px;bottom:45px;width:53px;height:49px;background:#ba9b6c;border-radius:3px 3px 18px 18px;z-index:2}.art-plant b{position:absolute;bottom:49px;left:25px;width:3px;height:82px;background:#738159}.art-plant i{position:absolute;bottom:69px;left:0;width:29px;height:55px;background:#7a8960;border-radius:85% 0 85% 0;transform:rotate(-44deg)}.art-plant i:nth-of-type(2){left:24px;bottom:88px;transform:rotate(35deg)}.art-plant i:nth-of-type(3){bottom:117px;left:7px;height:42px;width:20px}
@media (max-width: 1100px) {
  .overview strong { display: block; }
  .overview strong span { display: block; margin-top: 5px; }
  .overview { grid-template-columns: .85fr 1fr 1.1fr; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row { flex-wrap: wrap; }
  .search { max-width: 100%; width: 100%; }
  .auth-story { padding: 35px 8%; }
  .auth-panel { padding: 40px 8%; }
  .room-art { transform: scale(.88); transform-origin: left bottom; width: 350px; }
}
@media (max-width: 720px) {
  .topbar { min-height: 68px; padding: 10px max(20px, env(safe-area-inset-left)) 10px max(20px, env(safe-area-inset-right)); }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-dot, #greeting { display: none; }
  .account { gap: 0; }
  #logout { font-size: 13px; }
  .workspace { padding: 24px max(20px, env(safe-area-inset-left)) 84px max(20px, env(safe-area-inset-right)); }
  .small-date { font-size: 11px; }
  .heading-row { display: block; margin: 20px 0 24px; }
  .heading-row h1 { font-size: clamp(35px, 10vw, 48px); letter-spacing: -1.7px; }
  .heading-row p { font-size: 14px; line-height: 1.6; margin-top: 12px; }
  #add-item { position: fixed; z-index: 10; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 430px; height: 54px; border-radius: 12px; box-shadow: 0 6px 24px #553a3233, 0 0 0 6px #f7f5efe8; }
  .overview { grid-template-columns: .8fr 1.2fr; padding: 18px; gap: 16px; margin-bottom: 24px; }
  .overview > div + div { padding-left: 18px; }
  .overview strong { font-size: 28px; }
  .overview strong span { font-size: 12px; line-height: 1.4; }
  .overview-label { font-size: 9px; letter-spacing: .8px; margin-bottom: 8px; }
  .overview .people-block { grid-column: span 2; border-left: 0; border-top: 1px solid #d4dac9; padding: 10px 0 0; }
  .people-block > .overview-label { display: none; }
  .people-row { justify-content: space-between; gap: 8px; }
  .tabs { gap: 0; }
  .tab { flex: 1; font-size: 15px; padding: 12px 4px 15px; }
  .tab span { margin-left: 4px; }
  .filter-row { display: flex; flex-direction: column-reverse; gap: 12px; margin-top: 18px; }
  .categories { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 3px 1px 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .chip { font-size: 13px; }
  .results-toolbar { margin-top: 0; }
  .sort-label { font-size: 0; gap: 0; }
  .sort-label select { font-size: 16px; max-width: 170px; }
  .item-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-top { padding: 18px 18px 0; }
  .card-main { min-height: 114px; padding: 16px 18px; }
  .card-main h3 { font-size: 27px; }
  .card-meta { padding: 0 18px 16px; }
  .card-bottom { padding: 10px 12px; }
  .footer { margin-top: 30px; padding-bottom: 20px; font-size: 11px; }
  .footer > span:last-child { text-align: right; }
  .footer-flower { display: none; }
  .auth { display: block; }
  .auth-story { padding: 22px 24px 24px; min-height: auto; }
  .story-copy { margin-top: 26px; }
  .story-copy .eyebrow { font-size: 9px; }
  .story-copy h1 { font-size: 39px; line-height: 1.05; letter-spacing: -1.8px; margin-top: 14px; }
  .story-copy h1 br { display: none; }
  .story-copy p, .room-art, .story-footer { display: none; }
  .auth-panel { padding: 28px 24px max(65px, env(safe-area-inset-bottom)); }
  .auth-card { max-width: 430px; }
  .auth-card > .eyebrow { display: none; }
  .auth-card h2 { font-size: 32px; margin-top: 0; }
  .auth-card > p { font-size: 14px; margin: 12px 0 24px; }
  .private-note { bottom: 24px; }
  dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 580px; max-height: calc(100dvh - max(16px, env(safe-area-inset-top))); border: 0; border-radius: 20px 20px 0 0; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); }
  .dialog-heading { gap: 10px; margin-bottom: 22px; }
  .dialog-heading h2 { font-size: 28px; }
  .dialog-heading .eyebrow { font-size: 9px; }
  .form-columns { gap: 12px; }
  .form-columns .optional { display: block; margin-top: 3px; }
  .form-columns label { display: flex; flex-direction: column; align-items: stretch; }
  .form-columns input, .form-columns select { margin-top: auto; }
  .form-columns input { margin-top: 8px; }
  .dialog-footer { flex-direction: column; align-items: stretch; }
  .dialog-footer > .hint { text-align: center; }
  .detail-actions { flex-direction: column; }
  .detail-title { font-size: 34px; }
  .invite-actions > button { flex: 1; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .empty { padding: 32px 18px; }
  .empty h2 { font-size: 28px; }
  .desktop { display: none; }
}
@media (max-width: 360px) {
  .workspace { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 16px; }
  .small-date { display: none; }
  .overview { padding: 16px; gap: 12px; }
  .overview > div + div { padding-left: 12px; }
  .comment-button, .vote-button { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
