:root {
  --rose: #a13f62;
  --rose-soft: #f8e4eb;
  --rose-accent: #973e5a;
  --ink: #302c2e;
  --muted: #716469;
  --line: #e5d7dc;
  --ivory: #fff8f6;
  --paper: #fffdfb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button {
  min-height: 46px;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: #fffdfb;
  border-radius: 12px;
  padding: 11px 19px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: background-color .15s, box-shadow .15s;
}
button:hover { background: #873451; }
button:disabled { opacity: .55; cursor: wait; }
.quiet { background: var(--paper); color: var(--rose); border-color: #dfc6d0; }
.quiet:hover { background: var(--rose-soft); }
a { color: var(--rose); }
header {
  max-width: 1344px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--rose); color: #fff2f5; display: grid; place-items: center; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { color: var(--ink); font-size: 20px; letter-spacing: -.7px; font-weight: 750; line-height: 1.3; }
.brand-tagline { display: block; font-size: 11px; font-weight: 450; color: var(--muted); letter-spacing: .1px; margin-top: 3px; }
.local { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.local::before { content: ''; background: var(--rose-accent); border-radius: 50%; width: 6px; height: 6px; }
main { max-width: 1344px; margin: auto; padding: 4px 32px 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
p { color: var(--muted); }
.eyebrow { letter-spacing: 1.8px; font-size: 10px; font-weight: 750; color: var(--rose-accent); margin: 0; }
.navigation-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.navigation-row #new { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 53px; padding: 12px 22px; white-space: nowrap; background: #a42957; border-color: #92244d; color: #fffdfb; font-size: 15px; font-weight: 750; box-shadow: 0 4px 12px #a4295733, inset 0 1px 0 #ffffff26; }
.navigation-row #new:hover { background: #8c2049; box-shadow: 0 5px 15px #a4295740; }
.add-icon { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border: 1px solid #ffffff55; border-radius: 8px; background: #ffffff16; }
.add-icon svg { width: 18px; height: 18px; }
nav { display: inline-flex; background: #f5e9ed; border: 1px solid #e9d4dd; padding: 5px; border-radius: 14px; gap: 4px; }
nav button { min-height: 43px; background: transparent; border-color: transparent; color: #65505a; padding: 9px 18px; border-radius: 10px; }
nav button:hover { background: #eed7e0; }
nav button.active { background: var(--rose); color: #fffdfb; box-shadow: 0 2px 4px #a13f6214; }
nav span { font-size: 11px; background: #ffffff24; border-radius: 5px; padding: 1px 6px; margin-left: 7px; }
.toolbar { display: grid; grid-template-columns: minmax(0,1fr) 145px 176px auto; gap: 16px; align-items: end; margin: 24px 0 22px; }
.toolbar input, .toolbar select { margin-bottom: 0; }
.search { flex: 1; }
label { display: block; font-size: 12px; font-weight: 650; color: #58464e; }
input, textarea, select { display: block; width: 100%; padding: 12px 13px; border: 1px solid #a48090; background: var(--paper); border-radius: 10px; margin: 7px 0 16px; color: var(--ink); min-width: 0; font-size: 15px; }
input::placeholder, textarea::placeholder { color: #7c6b72; }
input:not(:disabled)::placeholder, textarea:not(:disabled)::placeholder { color: #aaa2a6; opacity: 1; font-weight: 400; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #a13f62; outline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.card { min-width: 0; background: var(--paper); border: 1px solid #eadbe0; border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 4px 14px #a13f6206; }
.card-media { display: block; position: relative; overflow: hidden; border-radius: 17px 17px 0 0; width: 100%; }
.cover { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: #f4e2e8; }
.placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; color: #9c5e75; background: linear-gradient(140deg,#f8e4eb,#f0cdd9); gap: 12px; }
.placeholder svg { width: 44px; height: 44px; }
.placeholder small { font-size: 12px; font-weight: 500; color: #82435d; }
.badge { position: absolute; top: 16px; left: 16px; color: #5a4750; background: #fff6f8; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 750; border-radius: 7px; padding: 6px 9px; border: 1px solid #decbd3; }
[data-status="reserved"] .badge { color: #903b5c; background: #fce5ed; border-color: #e6b8c9; }
[data-status="listed"] .badge { color: #234e6d; background: #e9f3fd; border-color: #b7cfe1; }
[data-status="sold"] .badge { color: #315e49; background: #eaf5ed; border-color: #b5d2bd; }
.photo-total { position: absolute; bottom: 12px; right: 12px; padding: 4px 8px; border-radius: 6px; color: #fff; background: #302c2ee8; font-size: 11px; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; align-items: stretch; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 5px; }
.card .room { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: 1px; color: #8b4d65; margin: 5px 0 0; overflow-wrap: anywhere; }
.price { font-size: 22px; color: var(--ink); font-weight: 720; letter-spacing: -.6px; line-height: 1.2; text-align: right; white-space: nowrap; }
.price small { display: block; color: var(--muted); letter-spacing: 1px; font-size: 8px; font-weight: 650; margin-bottom: 5px; }
.card-title { display: block; font-size: 21px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; margin: 14px 0 5px; overflow-wrap: anywhere; }
.card .condition, .card .pickup-note, .card .attention { display: block; font-size: 12px; margin: 6px 0; overflow-wrap: anywhere; }
.card .condition { margin-bottom: 10px; }
.card .pickup-note { background: #fbeef2; padding: 10px 12px; border-radius: 8px; color: #7a435a; }
.pickup-note span { font-weight: 700; }
.card-action { display: flex; flex-direction: column; align-items: stretch; flex: 1; width: 100%; padding: 0; border: 0; border-radius: 17px; background: transparent; color: var(--ink); text-align: left; font: inherit; min-width: 0; }
.card-action:hover { background: #fcf1f5; }
.card-action:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.sample { color: #75511f; font-size: 10px; background: #f6ead6; border: 1px solid #e5d0ae; padding: 6px 8px; border-radius: 6px; margin: 0 0 12px; line-height: 1.5; }
.attention { color: #973e5a; }
.card .attention:empty { display: none; }
.empty { grid-column: 1/-1; text-align: center; background: var(--paper); border: 1px dashed #d3b7c3; border-radius: 18px; padding: 54px 20px; }
.empty h2 { font-size: 28px; font-weight: 600; letter-spacing: -1px; }
footer { font-size: 11px; color: var(--muted); padding: 30px 0 10px; }
dialog { border: 1px solid #e6d0da; border-radius: 22px; padding: 0; width: min(780px,calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 25px 100px #302c2e35; }
dialog[open] { display: flex; flex-direction: column; }
#editor { --editor-padding: 24px; }
#form { display: flex; flex-direction: column; min-height: 0; }
.editor-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--editor-padding) 20px; }
#editor input, #editor textarea, #editor select { margin: 6px 0 0; }
#editor .fields { gap: 16px 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
#editor label { min-width: 0; }
#editor .panel { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 20px 0 0; }
#editor .panel > h3, #editor .panel > p { margin: 0; }
#editor .panel .row .fields { margin-top: 12px; }
#editor .photos:empty, #offers:empty, .comparable-cache-meta:empty { display: none; }
#offers { display: grid; gap: 12px; }
#offers .row { margin: 0; }
#editor .panel > button { align-self: flex-start; }
#editor .sample { margin-bottom: 16px; }
dialog::backdrop { background: #302c2e99; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-shrink: 0; padding: 22px var(--editor-padding) 18px; }
.dialog-head h2 { font-size: 26px; font-weight: 650; letter-spacing: -.8px; margin: 4px 0 0; line-height: 1.2; overflow-wrap: anywhere; }
#close { padding: 6px; width: 40px; min-height: 40px; flex-shrink: 0; border-radius: 50%; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wide { grid-column: 1/-1; }
#form { counter-reset: section; }
.panel { border-top: 1px solid #ead8df; padding: 24px 0; }
.panel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
.panel h3::before { counter-increment: section; content: '0' counter(section); color: #8b4d65; background: #f8e4eb; border-radius: 7px; padding: 5px 7px; font-size: 11px; font-weight: 650; letter-spacing: .5px; }
.panel p { font-size: 12px; line-height: 1.7; margin: 0 0 17px; }
#photo-count { background: #f8e4eb; border-radius: 6px; color: var(--rose); font-size: 11px; padding: 1px 7px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--rose); flex-shrink: 0; }
.row { background: #fcf1f5; border: 1px solid #ead8e0; border-radius: 12px; padding: 16px; margin: 16px 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.row-head button { padding: 5px 10px; font-size: 11px; min-height: 34px; }
.row .fields { margin-top: 10px; }
.actions { flex-shrink: 0; background: var(--paper); display: flex; align-items: stretch; gap: 10px; padding: 16px var(--editor-padding); border-top: 1px solid var(--line); }
.actions #save { flex: 1; }
.photos { display: flex; gap: 12px; overflow: auto; margin: 0; padding-bottom: 4px; }
.photos a { flex-shrink: 0; font-size: 11px; text-align: center; text-underline-offset: 3px; }
.photos img { display: block; width: 140px; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; border: 1px solid #e0c6d2; }
.file input { font-size: 12px; padding: 8px; max-width: 100%; }
.file input::file-selector-button { background: var(--rose-soft); color: var(--rose); border: 0; border-radius: 6px; padding: 8px 10px; margin-right: 10px; font-weight: 600; cursor: pointer; }
small { font-size: 11px; color: var(--muted); }
#notice, #form-message { font-size: 12px; color: #973e5a; overflow-wrap: anywhere; }
#notice:empty { margin: 0 0 14px; }
#form-message { margin: 16px 0 0; }
#form-message:empty { display: none; }
[hidden] { display: none !important; }
@media(max-width:960px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  header { padding: 20px; }
  .local { display: none; }
  main { padding: 0 16px 20px; }
  nav { width: 100%; gap: 0; justify-content: space-between; }
  nav button { font-size: 12px; padding: 10px 9px; }
  nav span { margin-left: 3px; }
  .toolbar { gap: 12px; margin-top: 20px; }
  .navigation-row { flex-wrap: wrap; gap: 12px; }
  .navigation-row #new { width: 100%; }
  .toolbar label { min-width: 0; }
  .toolbar input, .toolbar select { font-size: 13px; padding: 12px 10px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .cover { aspect-ratio: 4 / 3; }
  .fields { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  #editor { --editor-padding: 18px; }
  #editor .fields { grid-template-columns: minmax(0,1fr); }
  .dialog-head { padding-top: 18px; padding-bottom: 16px; }
  .dialog-head h2 { font-size: 23px; }
  .actions { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .actions button { padding: 10px 12px; }
  input, textarea, select { font-size: 16px; }
  .panel { padding: 22px 0; }
}
@media(prefers-reduced-motion:reduce) { button { transition: none; } }

/* Layout preference shares the same inventory, filtering and editor actions. */
.toolbar label { min-width: 0; }
.layout-toggle { display: flex; align-items: stretch; gap: 3px; padding: 4px; border: 1px solid #dfc6d0; border-radius: 12px; background: #f5e9ed; }
.layout-toggle button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border-color: transparent; background: transparent; color: #65505a; border-radius: 8px; }
.layout-toggle button:hover { background: #eed7e0; }
.layout-toggle button[aria-pressed="true"] { background: var(--rose); color: var(--paper); }
.layout-toggle svg { width: 17px; height: 17px; }
.grid.list-view { grid-template-columns: 1fr; gap: 12px; }
.list-row { background: var(--paper); border: 1px solid #eadbe0; border-radius: 14px; min-width: 0; }
.list-row-action { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 20px; width: 100%; padding: 16px; border: 0; border-radius: 13px; background: transparent; color: var(--ink); text-align: left; font-weight: 400; min-width: 0; }
.list-row-action:hover { background: #fcf1f5; }
.list-row-action:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.list-photo { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f4e2e8; color: #82435d; font-size: 30px; }
.list-photo img { width: 100%; height: 100%; object-fit: cover; }
.list-main { min-width: 0; }
.list-title { display: block; font-size: 17px; line-height: 1.3; margin: 0 0 4px; font-weight: 650; letter-spacing: -.4px; overflow-wrap: anywhere; }
.list-room { display: block; margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.list-main .sample { display: inline-block; margin: 7px 0 0; font-size: 9px; padding: 3px 6px; }
.list-meta { display: flex; align-items: center; gap: 24px; }
.list-meta .price { font-size: 19px; min-width: 90px; }
.list-meta .badge { position: static; text-align: center; min-width: 100px; }
@media(max-width:760px) {

  .list-row-action { grid-template-columns: 64px minmax(0,1fr); gap: 10px 14px; padding: 14px; }
  .list-photo { width: 64px; height: 64px; grid-column: 1; grid-row: 1/3; align-self: start; }
  .list-main { grid-column: 2; }
  .list-meta { grid-column: 2; gap: 10px; flex-wrap: wrap; }
  .list-meta .price { min-width: 0; text-align: left; font-size: 18px; }
  .list-meta .badge { min-width: 0; font-size: 9px; padding: 5px 7px; }
}

.comparable-state { padding: 20px; border: 1px dashed #d3b7c3; border-radius: 12px; background: #fcf1f5; margin: 0; }
.comparable-state strong { display: block; font-size: 14px; color: var(--ink); }
.comparable-state p { margin: 6px 0 0; }
.comparable-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.comparable-toolbar button { min-width: 44px; min-height: 44px; padding: 8px 12px; }
.comparable-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; padding: 3px 3px 14px; margin: 0 0 14px; border-radius: 12px; }
.comparable-track:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.comparable-card { flex: 0 0 260px; min-width: 0; padding: 18px; scroll-snap-align: start; background: #fcf1f5; border: 1px solid #e4cbd6; border-radius: 12px; overflow-wrap: anywhere; }
.comparable-source { color: #8b4d65; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; font-weight: 700; }
.comparable-card h4 { margin: 8px 0 14px; font-size: 17px; font-weight: 650; line-height: 1.35; }
.comparable-card .comparable-price { font-size: 23px; font-weight: 700; color: var(--ink); margin: 0 0 14px; line-height: 1.4; }
.comparable-price small { display: block; font-size: 10px; font-weight: 500; }
.comparable-card dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 12px; margin: 0 0 18px; font-size: 11px; }
.comparable-card dt { color: var(--muted); }
.comparable-card dd { margin: 0; color: var(--ink); }
.comparable-card a { display: inline-block; font-size: 12px; font-weight: 650; text-underline-offset: 3px; padding: 6px 0; }
.asking-price { display: block; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; }
.asking-price input { margin-bottom: 0; }
@media(max-width:600px) { .comparable-card { flex-basis: 100%; } }


.comparable-card .sample { display: block; margin-bottom: 10px; }

.comparable-cache-meta { display: grid; gap: 10px; }
.comparable-cache-meta p { font-size: 11px; margin: 0; }
#comparable-content { display: grid; gap: 12px; }
.comparable-notice { color: #8b3a56; padding: 10px 12px; background: #f8e4eb; border-radius: 8px; }
#clear-comparables { margin: 0; }

.wizard-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; list-style: none; margin: 0 var(--editor-padding) 20px; padding: 0; flex-shrink: 0; counter-reset: wizard; }
.wizard-progress li { counter-increment: wizard; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.wizard-progress li::before { content: counter(wizard); display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--rose-soft); color: var(--rose); font-weight: 750; }
.wizard-progress li[aria-current="step"] { border-color: var(--rose); color: var(--rose); background: var(--rose-soft); font-weight: 750; }
.wizard-progress li[aria-current="step"]::before, .wizard-progress li.complete::before { background: var(--rose); color: var(--paper); }
.wizard-details-heading { font-size: 17px; margin: 0 0 16px; }
.wizard .panel h3::before { content: none; }
#editor.wizard .panel { margin: 0; padding: 0; border: 0; }
.wizard .actions #save { flex: 1; }
.wizard .actions #back { flex: 0; }
@media(max-width:600px) {
 .wizard-progress { gap: 5px; }
 .wizard-progress li { flex-direction: column; text-align: center; padding: 9px 4px; gap: 5px; font-size: 11px; }
 .wizard .actions { flex-wrap: wrap; }
 .wizard .actions #cancel { flex-basis: 100%; }
}

#delete-item { color: #9c273b; border-color: #d7a6ae; }
#delete-item:hover { background: #fce8eb; }
.deletion-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--rose-soft); font-size: 13px; }
.deletion-notice span { overflow-wrap: anywhere; min-width: 0; }
.deletion-notice button { flex-shrink: 0; }
@media(max-width:600px) { .deletion-notice { flex-wrap: wrap; } }

.item-actions { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.item-delete { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #9c273b; border-color: #d7a6ae; min-height: 44px; padding: 9px 12px; }
.item-delete:hover { background: #fce8eb; }
.item-delete svg { width: 16px; height: 16px; flex-shrink: 0; }
.list-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.list-row > .item-delete { margin-right: 16px; }
@media(max-width:760px) {
 .list-row { grid-template-columns: minmax(0,1fr); }
 .list-row > .item-delete { justify-self: end; margin: 0 14px 14px; }
}

@media(max-width:600px) {
 #editor:not(.wizard) .actions { flex-wrap: wrap; }
 #editor:not(.wizard) .actions #save { flex-basis: 100%; }
 #editor:not(.wizard) .actions #cancel { margin-left: auto; }
}

@media(max-width:1000px) {
 .toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
 .toolbar .search { grid-column: 1/-1; }
}
@media(max-width:600px) {
 .toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .layout-toggle { grid-column: 1/-1; justify-self: end; }
}

.header-account { display: flex; align-items: center; gap: 16px; }
#account-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; }
#signout { min-height: 40px; padding: 8px 12px; }
.signin { max-width: 420px; margin: 52px auto; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.signin h1 { margin: 8px 0; font-size: 30px; letter-spacing: -.7px; }
.signin > p { font-size: 14px; }
#signin-form { margin-top: 24px; }
#signin-form input { margin-bottom: 18px; }
#signin-message { font-size: 13px; color: var(--rose); }
#signin-message:empty { display: none; }
#signin-submit { width: 100%; }
@media(max-width:600px) {
 header { flex-wrap: wrap; }
 .header-account { margin-left: auto; }
 .signin { margin: 24px auto; padding: 22px; }
}

.pending-photo { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pending-photo img { margin: 0; }

/* Keep intrinsic text/carousel widths inside the household's viewport. */
.brand, .header-account, #account-bar, .dialog-head > div, .card-top > *,
#comparable-content, .comparable-carousel, .comparable-toolbar > * { min-width: 0; }
.brand-mark, .local::before { flex-shrink: 0; }
#account-name { overflow-wrap: anywhere; }
.header-account { max-width: 100%; }
.dialog-head > div { flex: 1; }
.dialog-head h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#editor .panel, #editor .row, .comparable-state { min-width: 0; overflow-wrap: anywhere; }
.comparable-toolbar { flex-wrap: wrap; }
.comparable-toolbar > div { display: flex; gap: 6px; }
.comparable-carousel, .comparable-track { max-width: 100%; }
.sample, footer { overflow-wrap: anywhere; }
@media(max-width:900px) {
 .navigation-row { flex-wrap: wrap; }
 .navigation-row nav { flex: 1; }
 .header-account { flex-wrap: wrap; justify-content: flex-end; }
}
@media(max-width:600px) {
 header { gap: 16px; padding: 18px 16px; }
 .brand { gap: 10px; }
 .brand-name { font-size: 19px; }
 .header-account { width: 100%; margin: 0; }
 #account-bar { width: 100%; justify-content: space-between; gap: 12px; }
 #account-name { flex: 1; }
 #signout { flex-shrink: 0; min-height: 44px; }
 nav { display: grid; grid-template-columns: 1fr 1.4fr 1fr; }
 nav button { min-width: 0; padding: 10px 5px; white-space: nowrap; min-height: 44px; }
 .toolbar input, .toolbar select { min-height: 48px; font-size: 16px; }
 .layout-toggle { width: 100%; display: grid; grid-template-columns: 1fr 1fr; justify-self: stretch; }
 .layout-toggle button { min-height: 44px; }
 .card-body { padding: 16px; }
 .card .room { flex: 1; }
 .card-top { gap: 10px; }
 .price { font-size: 20px; }
 .empty { padding: 32px 18px; }
 .empty h2 { font-size: 24px; }
 .dialog-head { gap: 12px; }
 #close { width: 44px; min-height: 44px; }
 .wizard-progress li { padding: 7px 4px; }
 .wizard .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .wizard .actions #save { grid-column: 1/-1; grid-row: 1; }
 .wizard .actions #back { grid-column: 1; grid-row: 2; }
 .wizard .actions #cancel { grid-column: 2; grid-row: 2; }
 .wizard .actions #back[hidden] ~ #cancel { grid-column: 1/-1; }
 #editor .panel > button { align-self: stretch; width: 100%; }
 .comparable-state { padding: 16px; }
 .comparable-card { padding: 14px; }
 .comparable-card .comparable-price { font-size: 21px; }
 .photos img { width: 124px; height: 100px; }
 .row { padding: 12px; }
 .row-head button { min-height: 44px; }
 .signin { margin: 20px auto; padding: 22px 18px; }
}
.card-top { flex-wrap: wrap; }
.card .room { flex: 1 1 90px; }
.card-top .price { flex: 0 0 auto; margin-left: auto; }
#account-name { min-width: 0; }
#signout { flex-shrink: 0; }
@media(min-width:601px) and (max-width:900px) {
 header { flex-wrap: wrap; }
 .brand { flex-shrink: 0; }
 .header-account { width: 100%; justify-content: space-between; }
 #account-bar { flex: 1; justify-content: flex-end; }
}
