:root {
  color-scheme: light;
  /* Navarasa palette, shared with the onboarding site */
  --ink: #2b1230;
  --ink-soft: #55465a;
  --plum: #6b1f4e;
  --plum-deep: #4e1438;
  --plum-wash: #f6edf3;
  --brass: #b8903c;
  --brass-wash: #fbf3e1;
  --canvas: #fcf9fb;
  --surface: #ffffff;
  --line: #eadfe6;
  --muted: #6f6170;
  --success: #2f6b45;
  --danger: #a3233a;
  --kumkum: #c3243f;
  --marigold: #f08a24;
  --haldi: #e2a91c;
  --leaf: #3d8b4a;
  --peacock: #0e7c86;
  --indigo: #2f3e8f;
  --rani: #d23c8e;
  --kohl: #2b1230;
  --zari: #b8903c;
  --threads: linear-gradient(90deg, var(--kumkum) 0 11.11%, var(--marigold) 0 22.22%, var(--haldi) 0 33.33%,
    var(--leaf) 0 44.44%, var(--peacock) 0 55.55%, var(--indigo) 0 66.66%, var(--rani) 0 77.77%,
    var(--kohl) 0 88.88%, var(--zari) 0 100%);
  --display: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "Noto Serif", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --shadow-sm: 0 4px 14px rgb(43 18 48 / 5%);
  --shadow-md: 0 16px 42px rgb(43 18 48 / 9%);
  font-family: var(--body);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--plum); text-underline-offset: .2em; }
a:hover { color: var(--plum-deep); }
button, input, select, textarea { font: inherit; }
button, .button-link { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
button:hover, .button-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgb(61 28 45 / 16%); }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 3px; }

.page-container { width: min(1240px, 100%); min-height: calc(100vh - 160px); margin: 0 auto; padding: 2.25rem 1.5rem 5rem; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink); }
h1 { margin: .25rem 0 .7rem; font-family: var(--display, var(--display, Georgia, serif)); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
h2 { margin: 0; font-family: var(--display, var(--display, Georgia, serif)); font-size: 1.65rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
h3 { margin: .45rem 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .85rem; color: var(--plum); font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 20px; height: 1px; background: var(--brass); content: ""; }
.muted, .help-text { color: var(--muted); font-size: .9rem; }
.text-link { font-weight: 650; }

.market-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 310px; margin: .1rem 0 1.5rem; padding: clamp(2rem, 6vw, 4.2rem); border: 1px solid #e6dae2; border-radius: 26px; background: var(--threads) left bottom / 100% 6px no-repeat, linear-gradient(112deg, #f6edf3 0%, #fbf3e1 60%, #f7e9ee 100%); box-shadow: var(--shadow-sm); }
.market-hero::before, .market-hero::after { position: absolute; z-index: -1; border: 1px solid rgb(107 31 78 / 12%); border-radius: 50%; content: ""; }
.market-hero::before { top: -150px; right: -55px; width: 420px; height: 420px; box-shadow: 0 0 0 34px rgb(255 255 255 / 23%), 0 0 0 70px rgb(255 255 255 / 15%); }
.market-hero::after { right: 8%; bottom: -245px; width: 330px; height: 330px; border-color: rgb(183 132 62 / 25%); }
.hero-copy { max-width: 650px; }
.hero-copy h1 { max-width: 620px; }
.hero-copy h1 em { color: var(--plum); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 530px; margin: 1rem 0 1.45rem; color: #625661; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.hero-note { color: var(--muted); font-size: .82rem; }
.join-intro { max-width: 760px; margin: 1rem auto 2rem; text-align: center; }
.join-intro .eyebrow { justify-content: center; }
.join-intro > p:last-child { max-width: 650px; margin: 1rem auto; color: var(--ink-soft); font-size: 1.03rem; }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 960px; margin: 0 auto; }
.join-card { position: relative; overflow: hidden; display: flex; min-height: 330px; flex-direction: column; align-items: flex-start; padding: clamp(1.35rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.join-card-owner { border-color: #e5d9c8; background: linear-gradient(145deg, #fffefd, #fbf6ed); }
.join-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 1.2rem; border-radius: 14px; background: var(--plum-wash); color: var(--plum); font-family: var(--display, Georgia, serif); font-size: .88rem; font-weight: 700; }
.join-card-owner .join-icon { background: var(--brass-wash); color: #7b5b2d; }
.join-card .eyebrow { margin-bottom: .5rem; }
.join-card h2 { margin-bottom: .7rem; }
.join-card > p:not(.eyebrow) { flex: 1; margin: 0 0 1.25rem; color: var(--ink-soft); }
.join-card .button-link { width: 100%; }
.join-signin, .join-footnote { margin: 1.5rem auto 0; text-align: center; }
.join-signin { color: var(--ink-soft); }
.join-footnote { margin-top: .5rem; color: var(--muted); font-size: .82rem; }

.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; gap: .85rem; align-items: end; margin: 0 0 2.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.filter-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 0 .3rem; }
.filter-heading h2 { font-family: inherit; font-size: .94rem; font-weight: 700; letter-spacing: 0; }
.filter-heading span { color: var(--muted); font-size: .78rem; }
label { display: grid; gap: .42rem; color: var(--ink-soft); font-size: .79rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: .7rem .78rem; border: 1px solid #dcd3dc; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: inset 0 1px 2px rgb(33 25 35 / 2%); }
input::placeholder, textarea::placeholder { color: #a198a1; }
input:hover, select:hover, textarea:hover { border-color: #b9a9b7; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: 3px solid rgb(107 31 78 / 10%); }
.filter-actions { display: flex; align-items: center; gap: .75rem; }
button, .button-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.1rem; border: 1px solid var(--plum); border-radius: 10px; background: var(--plum); color: #fff; cursor: pointer; font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
button:hover, .button-link:hover { border-color: var(--plum-deep); background: var(--plum-deep); color: #fff; }
.secondary-button { border-color: var(--line); background: #fff; color: var(--ink-soft); }
.secondary-button:hover { border-color: var(--plum); background: var(--plum-wash); color: var(--plum); }
.reset-link { padding: .65rem .25rem; color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.reset-link:hover { color: var(--plum); }

.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.2rem; }
.results-heading h2 { font-size: 1.8rem; }
.results-count { color: var(--muted); font-size: .84rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 5px 18px rgb(41 24 38 / 4%); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.listing-card:hover { transform: translateY(-4px); border-color: #d2c2cf; box-shadow: var(--shadow-md); }
.listing-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.listing-image, .image-placeholder { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; background: #eee6eb; }
.image-placeholder { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.listing-image-wrap { position: relative; overflow: hidden; background: #eee6eb; }
.listing-image-wrap .listing-image { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.listing-card:hover .listing-image { transform: scale(1.035); }
.photo-badge { position: absolute; right: .75rem; bottom: .75rem; padding: .4rem .65rem; border: 1px solid rgb(255 255 255 / 65%); border-radius: 999px; background: rgb(255 254 253 / 92%); color: var(--plum); font-size: .68rem; font-weight: 750; backdrop-filter: blur(10px); }
.listing-card-body { padding: 1rem 1.05rem 1.15rem; }
.card-meta { margin: 0 0 .45rem; color: var(--plum); font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.listing-card h3 { margin: 0 0 .4rem; font-family: var(--display, Georgia, serif); font-size: 1.2rem; font-weight: 600; }
.card-size { margin: .35rem 0; color: var(--muted); font-size: .84rem; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #f0ebef; }
.card-price { margin: 0; color: var(--ink); font-size: 1.04rem; font-weight: 750; }
.card-price span { color: var(--muted); font-size: .75rem; font-weight: 450; }
.card-action { color: var(--plum); font-size: .78rem; font-weight: 700; }
.empty-state { display: grid; justify-items: center; gap: .55rem; padding: 3.25rem 1.25rem; border: 1px dashed #d9cbd6; border-radius: 18px; background: linear-gradient(145deg, #fffefd, #f8f2f6); text-align: center; }
.empty-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: .35rem; border-radius: 17px; background: var(--plum-wash); color: var(--plum); font-family: var(--display, Georgia, serif); font-size: 1.5rem; }
.empty-state h2, .empty-state h3 { margin: 0; font-family: var(--display, Georgia, serif); font-size: 1.45rem; }
.empty-state p { max-width: 460px; margin: 0; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 1.2rem; padding: 2rem 0; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-content: start; }
.detail-gallery figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.detail-gallery figure:first-child { grid-column: 1 / -1; }
.detail-image { display: block; width: 100%; max-height: 610px; aspect-ratio: 4 / 4.4; object-fit: cover; }
.detail-gallery figure:not(:first-child) .detail-image { max-height: 280px; aspect-ratio: 1 / 1; }
figcaption { padding: .65rem .8rem; color: var(--plum); font-size: .79rem; font-weight: 650; }
.back-link { margin: 0 0 1.25rem; font-size: .88rem; }
.detail-info { position: sticky; top: 100px; }
.detail-info h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.detail-info .card-size { margin: .8rem 0; font-size: .96rem; }
.description { color: var(--ink-soft); }
.detail-info .card-price { margin: 1.1rem 0; font-size: 1.35rem; }
.notice { padding: .95rem 1rem; border: 1px solid #eee3d1; border-left: 3px solid var(--brass); border-radius: 0 10px 10px 0; background: var(--brass-wash); color: #5a4932; font-size: .9rem; }
.booking-callout { display: grid; justify-items: start; gap: .6rem; margin-top: 1rem; }

.form-page, .form-card { width: min(780px, 100%); margin: 0 auto; }
.narrow-form { max-width: 500px; }
.form-page, .form-card { padding: clamp(1.25rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-panel { position: relative; overflow: hidden; }
.auth-mark { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 0 1.1rem; border-radius: 15px; background: var(--plum); color: #fff; font-family: var(--display, Georgia, serif); font-size: 1.7rem; font-weight: 700; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin: 1.25rem 0; padding: .3rem; border-radius: 10px; background: var(--plum-wash); }
.auth-methods a { padding: .7rem; border-radius: 7px; color: var(--ink-soft); font-size: .9rem; font-weight: 700; text-align: center; text-decoration: none; }
.auth-methods a.is-active { background: var(--surface); color: var(--plum); box-shadow: 0 1px 4px rgb(45 25 38 / 12%); }
.listing-form, .stacked-form { display: grid; gap: 1rem; }
.listing-form p, .stacked-form p { display: grid; gap: .42rem; margin: 0; }
.listing-form label, .stacked-form label { display: grid; gap: .42rem; }
.listing-form textarea, .stacked-form textarea { min-height: 120px; resize: vertical; }
.listing-form input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--plum); }
.photo-fieldset { margin: .5rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.photo-fieldset legend { padding: 0 .35rem; color: var(--plum); font-weight: 700; }
.photo-form-row { padding: .8rem 0; border-bottom: 1px solid #f0ebef; }
.photo-form-row:last-child { border-bottom: 0; }
.form-messages { padding: .85rem 1rem; border: 1px solid #ecd9b9; border-left: 3px solid var(--brass); border-radius: 10px; background: #fff8eb; color: #624722; }
.site-messages { margin: 0 0 1rem; }
.errorlist { padding: .7rem .9rem; border-radius: 8px; background: #fff0f0; color: var(--danger); list-style: none; }

.owner-listings { display: grid; gap: .8rem; }
.operations-hero { margin: .15rem 0 2rem; padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid #eadce4; border-radius: 22px; background: linear-gradient(112deg, #f4eaf0 0%, #fbf7f1 100%); box-shadow: var(--shadow-sm); }
.operations-hero h1 { margin: .2rem 0 .6rem; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.operations-hero > p:not(.eyebrow) { max-width: 620px; margin: 0 0 1rem; color: var(--ink-soft); }
.operations-section { margin-top: 2rem; }
.operations-section .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.operations-section .section-heading h2 { margin: 0; }
.operations-section .section-heading .eyebrow { margin-bottom: .35rem; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.operations-card { display: flex; min-height: 205px; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.operations-card:hover { transform: translateY(-2px); border-color: #d2bdcc; box-shadow: var(--shadow-md); color: var(--ink); }
.operations-card-number { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: .8rem; border-radius: 10px; background: var(--plum-wash); color: var(--plum); font-family: var(--display, Georgia, serif); font-size: .78rem; font-weight: 700; }
.operations-card h3 { margin: 0 0 .4rem; font-family: var(--display, Georgia, serif); font-size: 1.2rem; }
.operations-card p { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.operations-card-link { margin-top: auto; color: var(--plum); font-size: .82rem; font-weight: 750; }
.operations-empty { grid-column: 1 / -1; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.operations-empty h2 { margin-bottom: .4rem; font-size: 1.3rem; }
.operations-empty p { margin: 0; color: var(--muted); }
.owner-listing-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 12px rgb(41 24 38 / 3%); }
.owner-listing-row h2 { font-family: inherit; font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; }
.owner-listing-row p { margin: .4rem 0; color: var(--ink-soft); font-size: .9rem; }
.rental-customer-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .65rem; }
.rental-handoffs { margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.rental-handoffs h3 { margin: 0 0 .5rem; font-size: .92rem; }
.rental-handoff { margin-top: .55rem; padding: .65rem .75rem; border-radius: 9px; background: #f8f5f7; }
.rental-handoff p { margin: .2rem 0; font-size: .82rem; }
.handoff-photo-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.handoff-photo-list a { display: block; width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.handoff-photo-list img { width: 100%; height: 100%; object-fit: cover; }
.rental-feedback-note { margin-top: .55rem !important; color: var(--muted) !important; font-size: .82rem !important; }
.partner-subscription { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; margin: -1rem 0 2rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-soft); font-size: .85rem; }
.partner-subscription strong { color: var(--plum); }
.partner-jobs { margin-top: 1.5rem; }
.partner-jobs .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.partner-jobs .section-heading h2 { margin: 0; }
.partner-task-list { display: grid; gap: .85rem; }
.partner-task-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.partner-task-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.partner-task-heading .eyebrow { margin-bottom: .35rem; }
.partner-task-heading h3 { margin: 0; font-family: var(--display, Georgia, serif); font-size: 1.15rem; }
.partner-task-card > p { margin: .65rem 0; color: var(--ink-soft); font-size: .88rem; }
.partner-task-card form { margin-top: .8rem; }
.partner-task-card button { min-height: 38px; padding: .5rem .8rem; font-size: .82rem; }
.partner-task-instructions { padding: .7rem .8rem; border-radius: 9px; background: #f7f3f6; }
.partner-task-completed { color: var(--success) !important; font-weight: 700; }
.partner-dashboard-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1.1rem; }
.partner-dashboard-actions .button { margin:0; }
.partner-pipeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin:1.1rem 0 2rem; }
.partner-pipeline article { display:grid; gap:.25rem; padding:1rem; border:1px solid var(--line); border-radius:13px; background:var(--surface); }
.partner-pipeline strong { color:var(--plum); font-size:1.5rem; }
.partner-pipeline span { color:var(--ink-soft); font-size:.78rem; }
.location-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem 1rem; margin:1rem 0 .65rem; color:var(--ink-soft); font-size:.82rem; }
.location-toolbar button { min-height:38px; }
.tailor-map { min-height:300px; margin:0 0 1rem; border:1px solid var(--line); border-radius:14px; background:#eee9e5; z-index:0; }
.live-location-tracker,.live-location-map { margin:1rem 0; padding:1rem; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.live-location-map .tailor-map { min-height:240px; margin:.5rem 0 0; }
.identity-badge { display:inline-flex; align-items:center; padding:.35rem .6rem; border-radius:999px; background:#e9f4ed; color:#27613a; font-size:.75rem; font-weight:700; }
.verified-member { display:flex; align-items:center; gap:.65rem; margin:.55rem 0; color:var(--success); font-size:.82rem; font-weight:700; }
.verified-member img, .identity-photo-preview img { width:54px; height:54px; object-fit:cover; border-radius:50%; border:2px solid #cfe6d6; }
.identity-photo-preview { display:flex; align-items:center; gap:1rem; margin:1rem 0; color:var(--ink-soft); font-size:.82rem; }
.identity-photo-preview img { width:88px; height:88px; }
.handoff-action { margin:.8rem 0; padding:.85rem; border:1px solid var(--line); border-radius:12px; background:#faf7f9; }
.handoff-action > p { margin:.2rem 0 .6rem; color:var(--ink-soft); font-size:.85rem; }
.handoff-form { margin-top:.5rem; }
.handoff-form input[type="file"], .handoff-form select { width:100%; padding:.55rem; border:1px solid var(--line); border-radius:8px; background:#fff; }
.stacked-form .field-help { margin:.1rem 0 .5rem; color:var(--ink-soft); font-size:.82rem; }
@media (max-width:700px) { .partner-pipeline { grid-template-columns:repeat(2,minmax(0,1fr)); } .tailor-map { min-height:260px; } }
.owner-alteration-request { margin-top: .9rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: #faf7f9; }
.owner-alteration-request > p { margin: .35rem 0; }
.alteration-decision-form { display: grid; gap: .7rem; margin-top: .75rem; }
.alteration-decision-form > label, .alteration-assignment-form > label { display: grid; gap: .4rem; color: var(--ink-soft); font-size: .82rem; font-weight: 650; }
.alteration-decision-form input, .alteration-assignment-form input, .alteration-assignment-form select, .alteration-assignment-form textarea, .partner-task-card textarea { width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.alteration-decision-form .decision-actions { margin-top: 0; }
.alteration-assignment-form { max-width: 620px; margin-top: 1rem; }
.alteration-assignment-form button { justify-self: start; }
.alteration-quote { margin-top: .8rem; padding: .85rem; border: 1px solid #eadce4; border-radius: 12px; background: #faf7f9; }
.alteration-quote h4 { margin: 0 0 .45rem; color: var(--plum); font-family: var(--display, Georgia, serif); }
.alteration-quote p { margin: .35rem 0; color: var(--ink-soft); font-size: .86rem; }
.status { align-self: center; padding: .38rem .72rem; border: 1px solid #e7dfe6; border-radius: 999px; background: #f5f1f4; color: var(--ink-soft); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.status-approved, .status-accepted, .status-completed, .status-published { border-color: #d2e3d9; background: #edf6f0; color: var(--success); }
.status-pending_review, .status-pending, .status-payment_pending, .status-open { border-color: #f0dfbf; background: #fff8e9; color: #8a652b; }
.status-rejected, .status-declined, .status-cancelled, .status-hidden { border-color: #eed7d9; background: #fff1f1; color: var(--danger); }
.decision-actions { display: flex; align-items: center; gap: .55rem; }
.decision-actions { margin-top: .75rem; }
.decision-actions form { margin: 0; }
.decision-actions button { min-height: 38px; padding: .5rem .8rem; font-size: .8rem; }
.availability-layout { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(260px, .85fr); gap: 1.3rem; align-items: start; }
.availability-tools { padding: 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.availability-tools h2 { margin: 0 0 .8rem; font-family: inherit; font-size: 1.05rem; }
.availability-tools h2:not(:first-child) { margin-top: 1.5rem; }
.block-list { display: grid; gap: .6rem; padding: 0; list-style: none; }
.block-list li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .75rem; border-radius: 9px; background: #f7f3f6; font-size: .85rem; }
.block-list form { margin: 0; }
.calendar-panel { margin: 1.2rem 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.calendar-heading h2 { font-family: inherit; font-size: 1rem; }
.calendar-heading a { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--plum); text-decoration: none; font-size: 1.3rem; }
.availability-calendar { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; text-align: center; }
.availability-calendar th { padding: .3rem; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.calendar-day { height: 3.5rem; padding: .25rem; border-radius: 9px; font-size: .88rem; }
.calendar-day > span { display: block; }
.calendar-day-label { font-size: .58rem; }
.calendar-available { background: #edf5ef; color: #315c48; }
.calendar-unavailable, .calendar-past { background: #f0edf0; color: #8c838c; }
.calendar-outside { color: #c5bdc5; }
.calendar-today { outline: 2px solid var(--brass); outline-offset: 1px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .76rem; }
.legend-available::before, .legend-unavailable::before { display: inline-block; width: .7rem; height: .7rem; margin-right: .35rem; border-radius: 2px; content: ""; }
.legend-available::before { background: #edf5ef; }
.legend-unavailable::before { background: #f0edf0; }

.chat-thread { display: grid; gap: .75rem; margin: 1.5rem 0; }
.chat-bubble { width: fit-content; max-width: min(80%, 560px); padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: #fff; }
.chat-bubble-mine { justify-self: end; border-color: #e4d5df; border-radius: 14px 14px 4px 14px; background: var(--plum-wash); }
.chat-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; }
.chat-bubble p { margin: .35rem 0 0; white-space: pre-wrap; }
.notification-unread { border-left: 3px solid var(--brass); background: #fffaf0; }

@media (max-width: 1000px) {
  .page-container { padding-inline: 1.2rem; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-heading { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .operations-section .section-heading { align-items: flex-start; flex-direction: column; }
  .operations-grid { grid-template-columns: 1fr; }
  .page-container { min-height: calc(100vh - 145px); padding: 1.2rem 1rem 3rem; }
  .market-hero { min-height: 285px; padding: 2rem 1.35rem; border-radius: 20px; }
  .market-hero::before { right: -230px; }
  .hero-copy > p:not(.eyebrow) { font-size: .95rem; }
  .filter-panel { margin-bottom: 2rem; padding: .9rem; border-radius: 14px; }
  .listing-grid { gap: .75rem; }
  .listing-card { border-radius: 14px; }
  .listing-card-body { padding: .8rem; }
  .listing-card h3 { font-size: 1.04rem; }
  .card-bottom { align-items: start; flex-direction: column; }
  .detail-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .join-grid { grid-template-columns: 1fr; }
  .join-card { min-height: 0; }
  .detail-info { position: static; }
  .detail-gallery { gap: .55rem; }
  .detail-gallery figure { border-radius: 12px; }
  .availability-layout { grid-template-columns: 1fr; }
  .owner-listing-row { flex-direction: column; }
  .status { align-self: flex-start; }
  .block-list li { align-items: start; flex-direction: column; }
  .calendar-day { height: 3rem; }
  .calendar-day-label { font-size: .54rem; }
}
@media (max-width: 460px) {
  .listing-grid { grid-template-columns: 1fr; }
  .listing-image, .image-placeholder { aspect-ratio: 5 / 4; }
  .card-bottom { flex-direction: row; align-items: end; }
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .detail-gallery figure:first-child { grid-column: 1 / -1; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-heading, .filter-actions { grid-column: auto; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
