:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f7f9f6;
  --ink: #17332c;
  --muted: #4f655c;
  --green: #154c40;
  --green-light: #e6f2e8;
  --border: #dce5dd;
  --white: #fff;
}

:root[data-view="storefront"] {
  --paper: #e8f3fb;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #377e65; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: var(--white); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--green); color: var(--white); }
#navigation, .actions, .tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
main { padding-block: 2.5rem 4rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -.055em; margin-bottom: .75rem; }
h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: .42rem; }
.hero { background: var(--green); color: var(--white); border-radius: 24px; padding: clamp(1.5rem, 5vw, 4rem); }
.hero p { color: #e0eee5; max-width: 44ch; font-size: 1.12rem; }
.hero .button { background: var(--white); color: var(--green); }
.section { margin-top: 2.5rem; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1rem; }
.stack { display: grid; gap: 1rem; }
.card, .panel { padding: 1.3rem; background: var(--white); border: 1px solid var(--border); border-radius: 15px; min-width: 0; }
.panel { max-width: 45rem; }
.card > :last-child, .panel > :last-child, .empty > :last-child { margin-bottom: 0; }
.card p { overflow-wrap: anywhere; }
.card .actions { margin-top: .9rem; }
.button, .tab {
  display: inline-flex; align-items: center; justify-content: center; padding: .55rem .9rem;
  border: 1px solid var(--border); border-radius: 9px; background: var(--white); color: var(--ink);
  text-decoration: none; font-weight: 650;
}
.button:hover, .tab:hover { border-color: var(--green); }
.button.primary, .tab[aria-current="page"] { background: var(--green); border-color: var(--green); color: var(--white); }
.button.danger { color: #9b352b; }
.tabs { margin-block: 1.25rem; }
.badge { padding: .18rem .55rem; border-radius: 20px; background: var(--green-light); color: var(--green); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem; margin-bottom: .45rem; }
.price { font-size: 1.13rem; font-weight: 750; }
.text-block { white-space: pre-line; }
.quote-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
label { display: grid; gap: .25rem; align-content: start; margin-bottom: .7rem; font-size: .9rem; font-weight: 650; }
input, select, textarea {
  display: block; width: 100%; padding: .58rem .65rem; border-radius: 8px; border: 1px solid #aebfb4;
  color: var(--ink); background: var(--white); font-weight: 400;
}
textarea { min-height: 84px; resize: vertical; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.inline-form label { flex: 1 1 15rem; margin-bottom: 0; }
.schedule-list { margin-top: .75rem; padding-left: 1.2rem; }
.empty { padding: 1.1rem; border-radius: 12px; background: var(--green-light); }
.notice {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 2; max-width: min(28rem, 100% - 2rem);
  padding: .8rem 1.1rem; border-radius: 10px; background: var(--green); color: var(--white); box-shadow: 0 4px 20px #17332c30;
}
.notice.error { background: #8b3028; }
.auth-switch { display: inline-block; margin: .9rem 0 0; }
.contact { margin-top: 2rem; }
@media (max-width: 540px) {
  .header-inner { min-height: 65px; }
  .fields { grid-template-columns: 1fr; gap: 0; }
  .button, .tab { padding: .45rem .65rem; }
  main { padding-top: 1.5rem; }
}
