:root {
  color-scheme: light;
  --cream: #faf8f2;
  --paper: #fffdf8;
  --sage: #e7eae0;
  --green: #284337;
  --forest: #192e25;
  --ink: #252922;
  --muted: #60655c;
  --line: #dfdfd3;
  --clay: #8a522f;
  --danger: #963d38;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--clay); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: progress; }
:focus-visible { outline: 3px solid #ac7a4b; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { color: var(--forest); font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.85rem); }
h3 { line-height: 1.25; }
p + p { margin-top: .75rem; }
.wrap { width: min(100% - 5rem, 1300px); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 700px); }
.section { padding-block: clamp(2.4rem, 6vw, 5rem); }
.page { min-height: 55vh; }
.lede { color: var(--muted); font-size: clamp(1.025rem, 1.5vw, 1.22rem); max-width: 39rem; margin-top: 1rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .88rem; margin-block: .6rem; }
.loading, .empty { margin: 1rem 0; color: var(--muted); }
.loading { padding: 3rem 7vw; }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-150%); z-index: 20; background: var(--paper); padding: .75rem; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.demo-site-banner { background: var(--sage); color: var(--forest); padding: .45rem 0; font-size: .85rem; }
.demo-site-banner .wrap { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.demo-site-banner a { font-weight: 650; }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; font: 2.05rem/.85 var(--serif); color: var(--forest); letter-spacing: -.065em; }
.brand i { font-weight: 400; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--green); border-radius: 50%; font: 1.24rem/1 var(--sans); letter-spacing: 0; }
.word-space { letter-spacing: -.09em; }
.nav-wrap nav, .nav-actions, .footer-row nav { display: flex; gap: clamp(.8rem, 2.8vw, 2.1rem); align-items: center; }
.nav-wrap nav a, .footer-row nav a, .owner-link { text-decoration: none; font-size: .91rem; font-weight: 600; }
.nav-wrap a[aria-current="page"] { text-decoration: underline; }
.nav-actions { gap: 1rem; }
.bag-icon { width: .85rem; height: .8rem; display: inline-block; border: 1.4px solid currentColor; border-radius: 1px 1px 3px 3px; position: relative; margin-top: 3px; }
.bag-icon::before { content: ""; position: absolute; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 100% 100% 0 0; inset: -5px 3px auto; height: 5px; }
.cart-count { font-size: .78rem; min-width: 1.35rem; text-align: center; border-radius: 50%; background: var(--sage); }
.button { min-height: 44px; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: 5px; font-size: .91rem; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; line-height: 1.2; transition: background .15s, color .15s; }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
.button.primary:hover { background: var(--forest); }
.button.outline { color: var(--green); background: transparent; border-color: #a6b0a4; }
.button.outline:hover { background: var(--sage); }
.button.danger { color: white; background: var(--danger); }
.button.small { padding: .48rem .7rem; min-height: 36px; font-size: .85rem; }
.button.full { width: 100%; }
.button-row, .status-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 0; margin-top: 2rem; background: #eeeee4; }
.hero-content { align-self: center; padding: clamp(1.75rem, 5vw, 5.25rem); }
.hero-content h1 { font-size: clamp(3.3rem, 5.65vw, 5.15rem); line-height: .98; }
.hero-content em { color: #3e5d4e; font-weight: 400; }
.eyebrow { color: var(--green); font-size: .76rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .9rem; }
.eyebrow span { margin-right: .4rem; }
.hero-image { min-height: 440px; overflow: hidden; }
.hero-image img { object-position: 55% center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.3rem; margin-top: 1.7rem; }
.underlined { font-size: .92rem; font-weight: 650; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.45rem; }
.section-head p { margin-top: .4rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.product { min-width: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden; border-radius: 5px; }
.product-image { display: block; width: 100%; aspect-ratio: 1.13; background: var(--sage); overflow: hidden; }
.product-image img { transition: transform .25s ease; }
.product-image:hover img { transform: scale(1.035); }
.product-info { padding: 1rem; }
.product-info h3 { font: 1.4rem/1.2 var(--serif); font-weight: 400; color: var(--forest); }
.product-info h3 a { text-decoration: none; }
.eyebrow.category { margin-bottom: .32rem; font-size: .7rem; }
.product-bottom { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-top: .65rem; flex-wrap: wrap; }
.steps { background: #e7eae0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; margin-top: 1.6rem; }
.steps article { border-top: 1px solid #adb7a9; padding-top: 1.1rem; }
.steps article p { margin-top: .5rem; max-width: 28ch; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.footer-row nav { flex-wrap: wrap; }
.panel { border: 1px solid var(--line); border-radius: 7px; padding: clamp(1.05rem, 2.2vw, 1.55rem); background: var(--paper); margin-block: 1rem; }
.panel h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: .85rem; }
.panel h3, dialog h3 { margin: .85rem 0 .45rem; }
.panel .section-head { align-items: center; margin-bottom: .7rem; }
.panel .section-head h2 { margin: 0; }
.availability { margin: 1.6rem 0; }
.availability .form-grid { grid-template-columns: 1fr 1fr auto; align-items: end; }
.filters { display: flex; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.filters .search { flex: 1; }
label, .field { display: grid; gap: .35rem; font-size: .92rem; line-height: 1.35; font-weight: 625; min-width: 0; }
input:not([type=checkbox],[type=radio]), select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #acae9f; border-radius: 5px; padding: .58rem .72rem; background: #fffefa; font-weight: 400; }
input[type=datetime-local] { max-width: 100%; }
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 1.1rem; height: 1.1rem; margin: 0; }
input[type="file"] { font-size: .88rem; }
input[type="file"]::file-selector-button { padding: .38rem .55rem; margin-right: .45rem; border: 1px solid var(--line); background: var(--sage); color: var(--forest); cursor: pointer; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.8rem; }
label + label, label + .button { margin-top: .65rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.form-grid label + label, .filters label + label, .choice-grid label + label { margin-top: 0; }
.form-grid + label, .form-grid + .button, .table-wrap + label, .photo-grid + form { margin-top: .9rem; }
.stack { display: grid; gap: .9rem; align-content: start; }
.stack > .panel { margin-block: 0; }
.stack > .button { justify-self: start; }
.stack > .button.full { justify-self: stretch; }
.stack > label + label { margin-top: 0; }
.back-link { display: inline-block; margin-bottom: 1.1rem; font-size: .91rem; font-weight: 600; }
.item-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 4rem); }
.detail-image { aspect-ratio: 1.07; overflow: hidden; border-radius: 6px; background: var(--sage); }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--sage); color: #6d7d6b; font-size: 2rem; }
.gallery { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.image-button { padding: 0; border: 1px solid var(--line); width: 66px; height: 66px; border-radius: 4px; overflow: hidden; }
.item-description h1 { font-size: clamp(2.25rem, 5.4vw, 4.65rem); }
.price { margin: .9rem 0; color: var(--green); font-size: 1.2rem; }
.price strong { font-size: 1.55rem; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-block: 1rem; }
.details dt { font-weight: 700; font-size: .87rem; }
.details dd { margin: 0; color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.4rem; }
.checkout-layout .summary { margin: 0; }
.cart-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) 92px; gap: .8rem; align-items: center; border-top: 1px solid var(--line); padding: .8rem 0; }
.cart-item img, .cart-item .image-placeholder { height: 66px; border-radius: 4px; }
.cart-item h3 { margin: 0; }
.text-button { padding: .2rem 0; border: 0; background: none; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; font-size: .88rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.choice, .checkbox { display: flex; align-items: start; gap: .65rem; }
.choice { border: 1px solid var(--line); padding: .8rem; border-radius: 5px; cursor: pointer; }
.choice:has(:checked) { border-color: var(--green); background: var(--sage); }
.choice small { font-weight: 400; line-height: 1.4; margin-top: .16rem; }
.checkbox { font-weight: 500; margin-block: .55rem; }
.quote-lines { display: grid; gap: .5rem; margin: .7rem 0; }
.quote-lines > div { display: flex; justify-content: space-between; gap: .75rem; }
.quote-lines span + span { white-space: nowrap; }
.quote-total { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; font-size: 1.12rem; }
.message { border: 1px solid #d7a8a0; border-radius: 5px; color: #812f27; background: #fbefea; padding: .65rem .8rem; margin: .65rem 0; }
.message.success, .message.info { background: #edf2e6; color: var(--green); border-color: #b8c6a9; }
.status { display: inline-flex; padding: .14rem .52rem; border-radius: 4px; text-transform: capitalize; color: #3f4841; background: #eaece5; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.status.paid, .status.confirmed, .status.published, .status.repaired, .status.sent { color: #264839; background: #ddebdc; }
.status.held, .status.pending, .status.partial { color: #724c25; background: #f6e8d7; }
.status.canceled, .status.expired, .status.unavailable, .status.overdue, .status.open, .status.failed { color: #7e3b31; background: #f3e1d9; }
.status-row { margin: .65rem 0; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 0; width: min(100% - 1.5rem, 530px); max-height: min(88vh, 930px); box-shadow: 0 16px 70px #182d2733; }
dialog.wide { width: min(100% - 1.5rem, 820px); }
dialog::backdrop { background: #1c2a24a8; }
.dialog-heading { position: sticky; top: 0; z-index: 2; padding: 1.05rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dialog-heading h2 { font-size: 1.9rem; }
.dialog-body { padding: 1.2rem 1.25rem; }
.dialog-body > p, .dialog-body > .button-row { margin-block: .7rem; }
.icon-button { width: 38px; aspect-ratio: 1; flex-shrink: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--cream); font-size: 1.5rem; line-height: 1; }
.admin-body { background: #f5f6f0; }
.admin-layout { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 1.7rem; align-items: start; padding-block: 2.3rem 4rem; }
.admin-sidebar { position: sticky; top: 1rem; }
.admin-sidebar nav { display: grid; gap: .25rem; }
.admin-sidebar a { padding: .65rem .75rem; text-decoration: none; border-radius: 4px; font-weight: 575; font-size: .94rem; white-space: nowrap; }
.admin-sidebar a:hover, .admin-sidebar a[aria-current="page"] { background: var(--sage); color: var(--forest); }
.admin-main h1 { font-size: clamp(2.55rem, 4.6vw, 4rem); }
.admin-main > .section-head { align-items: center; }
.admin-main .section-head .button-row { justify-content: end; }
.preview-tag { display: inline-block; background: #f0e7d5; color: #694d2c; border-radius: 4px; padding: .22rem .65rem; font-size: .8rem; margin-bottom: .55rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.metric { display: grid; align-content: start; gap: .35rem; min-width: 0; padding: .85rem; }
.metric span { color: var(--muted); font-size: .89rem; }
.metric strong { font: 2.25rem var(--serif); color: var(--green); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
td, th { padding: .65rem .55rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--green); font-weight: 675; white-space: nowrap; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
tr:last-child td { border-bottom: 0; }
small, .table-item small { display: block; color: var(--muted); font-size: .82rem; }
.table-item { display: flex; align-items: center; min-width: 155px; gap: .7rem; }
.table-item img, .table-item .image-placeholder { width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0; font-size: 1.2rem; }
.admin-body .hours input[type=time] { min-width: 105px; }
.admin-body .filters label:first-child { flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: 5px; margin: .5rem 0; padding: .75rem; min-width: 0; }
legend { padding: 0 .35rem; font-weight: 650; color: var(--green); }
.owner-pick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.owner-pick-list label { margin: 0; }
.photo-edit { display: grid; grid-template-columns: 62px 1fr auto auto; gap: .5rem; align-items: end; margin-bottom: .45rem; }
.photo-edit img { height: 60px; border-radius: 4px; }
.photo-grid, .damage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.photo-grid img { aspect-ratio: 1; border-radius: 4px; }
.damage-card h2 { font-size: 1.55rem; }
.damage-card p { overflow-wrap: anywhere; }
.damage-card .button { margin-top: .8rem; }
.damage-cover { aspect-ratio: 1.35; overflow: hidden; border-radius: 5px; }
.notes { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.notes li { padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.packing-list { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.packing-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.calendar-heading { font-weight: 650; color: var(--green); font-size: .86rem; text-align: center; }
.calendar-day { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); min-height: 60px; text-align: left; padding: .32rem .42rem; display: flex; flex-direction: column; }
.calendar-day.other { color: #797d74; background: #f8f8f2; }
.calendar-day.selected, .calendar-day:hover { border-color: var(--green); background: var(--sage); }
.calendar-day small { color: var(--green); font-size: .72rem; }
.calendar-day .block-label { color: #854231; }
.calendar-view { max-width: 11rem; }
@media (max-width: 1080px) {
  .wrap { width: min(100% - 3rem, 1300px); }
  .narrow { width: min(100% - 2rem, 700px); }
  .hero-content { padding: 2.8rem 2rem; }
  .hero-content h1 { font-size: clamp(3rem, 7vw, 5.25rem); }
  .hero-image { min-height: 380px; }
}
@media (max-width: 800px) {
  .wrap { width: min(100% - 2rem, 1300px); }
  .nav-wrap { min-height: 68px; gap: .75rem; }
  .hero { grid-template-columns: .9fr 1fr; margin-top: 1rem; }
  .hero-content { padding: 1.5rem; }
  .hero-content h1 { font-size: clamp(2.65rem, 7.4vw, 4.4rem); }
  .hero-image { min-height: 350px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-layout { grid-template-columns: 1fr; gap: 1rem; }
  .admin-layout { grid-template-columns: 1fr; padding-block: 1.1rem 2rem; gap: 1.15rem; }
  .admin-sidebar { position: static; }
  .admin-sidebar .eyebrow { margin-bottom: .35rem; }
  .admin-sidebar nav { display: flex; overflow: auto; padding: .2rem; }
  .admin-sidebar a { padding: .52rem .62rem; }
}
@media (max-width: 620px) {
  .nav-wrap nav { display: none; }
  .brand { font-size: 1.75rem; gap: .45rem; }
  .brand-mark { width: 28px; height: 28px; font-size: 1rem; }
  .owner-link { display: none; }
  .cart-link { padding: .54rem .75rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 1.6rem; }
  .hero-content h1 { font-size: clamp(3.05rem, 12vw, 4.35rem); }
  .hero-content .lede { margin-top: .8rem; }
  .hero-image { min-height: 0; aspect-ratio: 1.35; }
  .hero-actions { margin-top: 1.15rem; }
  .product-grid { gap: .65rem; }
  .product-info { padding: .77rem; }
  .product-info h3 { font-size: 1.2rem; }
  .steps-grid, .item-layout, .damage-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .footer-row { align-items: start; flex-direction: column; }
  .availability .form-grid { grid-template-columns: 1fr 1fr; }
  .availability .button { grid-column: 1/-1; justify-self: start; }
  .filters { align-items: stretch; }
  .filters label:first-child { flex: 1; }
  .filters label:last-child { max-width: 46%; }
  .admin-main > .section-head { align-items: start; flex-direction: column; }
  .admin-main .section-head .button-row { justify-content: start; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-grid { gap: .16rem; }
  .calendar-heading { font-size: .68rem; }
  .calendar-day { min-height: 48px; padding: .2rem; font-size: .82rem; }
  .calendar-day small { font-size: .55rem; }
  .calendar-day small span { display: none; }
  .photo-edit { grid-template-columns: 50px 1fr; }
}
@media (max-width: 380px) {
  .wrap { width: min(100% - 1.25rem, 1300px); }
  .hero-content { padding: 1.2rem; }
  .form-grid, .availability .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .admin-body:has(dialog[open]) > :not(dialog) { display: none; }
  .admin-body dialog[open] { position: static; width: 100%; max-height: none; border: 0; box-shadow: none; }
  .admin-body dialog::backdrop { display: none; }
  .admin-body dialog .icon-button, .admin-body dialog #print-list { display: none; }
}

.demo-login { max-width: 980px; }
.demo-login-layout { display: grid; grid-template-columns: 1fr .86fr; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.demo-login-content { padding: clamp(1.45rem, 4.5vw, 3.5rem); }
.demo-login h1 { font-size: clamp(2.45rem, 5vw, 4rem); }
.demo-login .lede { font-size: 1rem; }
.demo-login form { margin-top: 1.45rem; }
.demo-login form [data-error]:empty { display: none; }
.demo-login-image { object-position: 57% center; }
.demo-account { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.1rem; }
.demo-account h2 { font-family: var(--sans); font-weight: 650; font-size: .92rem; letter-spacing: 0; }
.demo-account dl { display: grid; gap: .32rem; margin: .6rem 0 .8rem; }
.demo-account dl div { display: flex; flex-wrap: wrap; gap: .2rem .65rem; font-size: .88rem; }
.demo-account dt { color: var(--muted); min-width: 4.75rem; }
.demo-account dd { margin: 0; }
@media (max-width: 670px) {
  .demo-login-layout { grid-template-columns: 1fr; }
  .demo-login-image { display: none; }
  .admin-body .nav-wrap .button { min-height: 36px; font-size: .78rem; padding: .45rem .6rem; }
  .admin-body .nav-wrap .button-row { justify-content: flex-end; }
}
