:root {
  color-scheme: light;
  --ink: #192e30;
  --muted: #526769;
  --navy: #12383c;
  --teal: #11635b;
  --teal-deep: #0b4d49;
  --line: #d6dfdc;
  --paper: #ffffff;
  --canvas: #f4f6f2;
  --accent-soft: #e0eee6;
  --amber: #efd497;
  --ring: #187ba0;
  --header-height: 66px;
  --side-width: clamp(13.75rem, 18vw, 17rem);
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.48;
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a, summary, select, input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }
button, summary, select, label[for], input[type="checkbox"] { cursor: pointer; }
button:disabled, input:disabled, select:disabled { opacity: .58; cursor: not-allowed; }
button, select, input, textarea { max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select {
  min-height: 42px;
  padding: .54rem .72rem;
  border: 1px solid #aabcb7;
  border-radius: 7px;
  background: #fff;
  font-size: .925rem;
  line-height: 1.35;
}
input::placeholder, textarea::placeholder { color: #667873; opacity: 1; }
textarea { min-height: 6.5rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1rem; height: 1rem; margin: 0; accent-color: var(--teal); flex: 0 0 auto; }
input[type="color"] { border: 1px solid var(--line); border-radius: 6px; height: 2.6rem; min-width: 3rem; padding: 3px; background: #fff; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: var(--teal-deep); text-underline-offset: .16em; }
a:hover { color: #09766a; }
svg { vertical-align: middle; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.18; text-wrap: balance; color: var(--ink); }
h1 { margin-bottom: .45rem; font-size: clamp(2rem, 3.1vw, 3.2rem); letter-spacing: -.055em; font-weight: 690; }
h2 { font-size: clamp(1.23rem, 1.75vw, 1.62rem); letter-spacing: -.035em; margin-bottom: .75rem; }
h3 { font-size: 1.07rem; letter-spacing: -.02em; margin-bottom: .48rem; }
h4 { font-size: .98rem; margin-bottom: .4rem; }
p { margin-bottom: .75rem; }
:where(p, h1, h2, h3, h4, ul, ol):last-child { margin-bottom: 0; }
.muted, small, .help { color: var(--muted); }
.eyebrow, .stat-label, .sidebar-heading {
  font-size: .705rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
}
.eyebrow { margin: 0 0 .5rem; }
.mono, time, .stat-value, .day-number, input[type="number"] { font-variant-numeric: tabular-nums; }
button { border: 0; }
.button, button.secondary, button[type="submit"], button.primary {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem;
  min-height: 40px; padding: .57rem .96rem;
  border: 1px solid transparent; border-radius: 7px;
  background: var(--teal); color: #fff; font-weight: 640;
  font-size: .9rem; line-height: 1.25; text-align: center; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button:hover, button[type="submit"]:hover, button.primary:hover { background: var(--teal-deep); color: #fff; }
.button.secondary, button.secondary, .button.ghost {
  background: white; color: var(--teal-deep); border-color: #afc2bc;
}
.button.secondary:hover, button.secondary:hover, .button.ghost:hover { background: #edf5ef; border-color: #73968a; color: var(--teal-deep); }
.button:active { box-shadow: inset 0 1px 3px #051d1a29; }
button:not([class]):not([type="submit"]) {
  background: #f0f5f1; color: var(--teal-deep); border: 1px solid #c1d0c9; border-radius: 6px; padding: .48rem .75rem;
}

.app-header {
  min-height: var(--header-height); padding: .65rem clamp(1rem, 2.1vw, 2.5rem);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  background: var(--navy); color: #f6f9f3; position: sticky; top: 0; z-index: 8;
  border-bottom: 1px solid #072e31;
}
.brand {
  display: inline-flex; align-items: center; gap: .72rem; min-width: 0;
  color: inherit; font-weight: 680; line-height: 1.12;
  font-size: 1.045rem; letter-spacing: -.025em; text-decoration: none;
}
.brand:hover { color: inherit; }
.brand :is(small, .muted) { display: block; margin-top: .15rem; color: #c7dcd1; font-size: .75rem; font-weight: 450; letter-spacing: .02em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 9px; background: var(--amber); color: #233d37; font-size: .98rem; font-weight: 800; letter-spacing: -.07em;
}
.brand-mark:empty::before {
  content: ""; width: 20px; height: 18px; background: currentColor;
  clip-path: polygon(0 23%,50% 0,100% 23%,100% 41%,50% 18%,17% 33%,50% 49%,100% 25%,100% 46%,50% 70%,0 45%,0 59%,50% 83%,100% 59%,100% 77%,50% 100%,0 77%);
}
.header-actions, .demo-toggle { display: flex; align-items: center; gap: .7rem; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; font-size: .85rem; }
.header-actions :is(input:not([type="checkbox"]), select), .app-header .button.secondary, .app-header button.secondary {
  min-height: 36px; background: #21494c; color: #f1f6f2; border-color: #557376;
}
.header-actions select option { background: #fff; color: var(--ink); }
.header-actions .muted, .header-actions small { color: #c9ddd3; }
.demo-toggle { gap: .42rem; cursor: pointer; }
.demo-toggle input { appearance: none; width: 31px; height: 18px; border-radius: 20px; background: #527174; border: 1px solid #89a3a3; position: relative; }
.demo-toggle input::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: transform .15s ease; }
.demo-toggle input:checked { background: #94d0b6; border-color: #94d0b6; }
.demo-toggle input:checked::after { background: #123b35; transform: translateX(13px); }
.mobile-menu { display: none; }
.app-layout { display: grid; grid-template-columns: var(--side-width) minmax(0,1fr); min-height: calc(100vh - var(--header-height)); align-items: start; }
.sidebar {
  position: sticky; top: var(--header-height); max-height: calc(100dvh - var(--header-height)); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #b8ccc2 transparent;
  min-height: calc(100vh - var(--header-height)); background: #fdfefa;
  border-right: 1px solid var(--line); padding: 1.3rem .86rem 2rem;
}
.main-nav { display: grid; gap: .22rem; }
.nav-link, .property-link {
  color: #374e4d; width: 100%; display: flex; align-items: center; gap: .7rem;
  background: transparent; border: 0; border-radius: 6px; text-align: left; text-decoration: none;
}
.nav-link { font-size: .91rem; font-weight: 580; padding: .62rem .8rem; min-height: 39px; }
.nav-link:hover, .property-link:hover { background: #edf3ed; }
.nav-link.active, .nav-link[aria-current="page"], .property-link.active, .property-link[aria-current="page"] {
  color: #0e554c; background: #dfede3; box-shadow: inset 3px 0 #277864;
}
.nav-link svg { width: 17px; height: 17px; }
.property-browser { margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.property-browser > :is(h2, h3) { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #546b63; }
.sidebar-search { width: 100%; }
.sidebar-search input, input.sidebar-search { width: 100%; font-size: .82rem !important; min-height: 37px !important; }
.company-list { display: grid; gap: .28rem; margin-top: .65rem; }
.company-group > summary { font-size: .82rem; font-weight: 680; padding: .5rem .2rem; color: #38584d; overflow-wrap: anywhere; }
.company-group > summary::marker { color: #66867a; }
.property-link { font-size: .805rem; line-height: 1.32; padding: .55rem .6rem .55rem .9rem; margin: .02rem 0; overflow-wrap: anywhere; }
.workspace, .content, .panel, .card { min-width: 0; }
.workspace { width: 100%; }
.content, .workspace:not(:has(.content)) {
  max-width: 110rem; padding: clamp(1.2rem, 2.3vw, 2.8rem) clamp(1rem, 2.4vw, 3rem) 4rem; margin-inline: auto;
}
.workspace.content { padding-block-start: clamp(1.2rem, 2.3vw, 2.8rem); }
.page-head, .section-head, .toolbar, .breadcrumbs, .tag-list {
  display: flex; align-items: center; flex-wrap: wrap;
}
.page-head, .section-head { justify-content: space-between; gap: .9rem 1rem; }
.page-head { margin-bottom: 1.35rem; align-items: flex-end; }
.page-head h1, .section-head h2 { margin-bottom: .25rem; }
.section-head { margin: 1.5rem 0 .9rem; }
.toolbar { gap: .65rem; }
.toolbar > .field { min-width: 8rem; }
.stack { display: grid; align-content: start; gap: 1rem; }
.stack :where(.section-head, .page-head) { margin-block: 0; }
.panel, .card, .empty-state, .empty { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.panel { padding: clamp(1rem, 1.6vw, 1.55rem); }
.card { padding: 1rem; }
.empty, .empty-state { padding: 1.6rem; border-style: dashed; color: var(--muted); }
.empty :where(h2, h3), .empty-state :where(h2, h3) { color: var(--ink); }
.empty .button, .empty-state .button { margin-top: .5rem; }
.breadcrumbs { gap: .4rem; margin: 0 0 1rem; font-size: .825rem; color: var(--muted); }
.breadcrumbs button { font: inherit; color: var(--teal-deep); text-decoration: underline; text-underline-offset: .15em; background: transparent; border: 0; padding: .16rem; }
.stat-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 0;
  background: #e2ede3; border: 1px solid #c9d9cc; border-radius: 12px; overflow: hidden; margin: 0 0 1.5rem;
}
.stat { min-width: 0; padding: clamp(.85rem, 1.5vw, 1.4rem); }
.stat + .stat { border-left: 1px solid #c2d7c8; }
.stat-label { color: #3d6257; }
.stat-value { display: block; margin: .22rem 0 0; color: #194e44; font-size: clamp(1.55rem, 2.35vw, 2.5rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.15; }
.property-grid, .project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, .95vw, 1rem); }
.property-card, .project-card {
  display: flex; flex-direction: column; align-items: stretch; gap: .52rem; color: var(--ink); width: 100%; min-width: 0;
  min-height: 13.5rem; height: 100%; text-align: left; padding: clamp(.85rem, 1.25vw, 1.2rem);
  background: #fff; border: 1px solid #cfdad4; border-radius: 10px; overflow-wrap: anywhere;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.property-card:hover, .project-card:hover { border-color: #79a494; transform: translateY(-2px); box-shadow: 0 5px 15px #183d3010; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.property-icon {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; color: #3b6556; background: #e8f1e8; font-weight: 680;
}
.property-icon svg { width: 18px; height: 18px; }
.card-arrow { color: #658077; font-size: 1.1rem; }
.property-card h3, .project-card h3 { font-size: clamp(.98rem, 1.2vw, 1.19rem); overflow-wrap: anywhere; margin: 0; }
.card-address, .card-meta { color: var(--muted); font-size: .81rem; line-height: 1.38; margin: 0; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem; padding-top: .6rem; border-top: 1px solid #e4ebe6; margin-top: auto; }
.tag-list { gap: .28rem; margin: .2rem 0 .35rem; }
.work-tag, .badge { display: inline-flex; align-items: center; gap: .32rem; max-width: 100%; border-radius: 5px; padding: .17rem .43rem; font-size: .71rem; line-height: 1.36; font-weight: 620; }
.badge { background: #edf1e9; color: #466151; }
.work-tag { --tag-color: #228978; background: color-mix(in srgb, var(--tag-color) 12%, white); color: #243b37; }
.work-tag::before { content: ""; display: block; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--tag-color); box-shadow: inset 0 0 0 1px #172b232a; }

form, fieldset { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .9rem 1rem; align-items: end; }
.field { min-width: 0; display: grid; gap: .34rem; align-content: start; }
label.field, .field > :is(label, span:first-child), legend { color: #324b44; font-size: .855rem; font-weight: 620; }
.field input, .field select, .field textarea { width: 100%; font-weight: 420; }
.field input[type="checkbox"], .field input[type="radio"] { width: 1rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem .85rem; margin: 0; }
legend { padding: 0 .3rem; }
.choice-list { display: flex; flex-wrap: wrap; gap: .48rem .8rem; }
.check-field { display: inline-flex; align-items: center; gap: .44rem; font-size: .875rem; }
dl { margin: 0; }
dt { font-size: .8rem; color: var(--muted); }
dd { font-weight: 610; margin: 0 0 .35rem; }
.inventory-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 1fr); gap: 1rem; align-items: start; }
.catalog-row, .order-line, .removal-row, .package-item {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem;
  padding: .65rem 0; border-bottom: 1px solid #e1e8e2; overflow-wrap: anywhere;
}
.catalog-row:last-child, .order-line:last-child, .package-item:last-child { border-bottom: none; }
.catalog-row > :first-child, .order-line > :first-child, .package-item > label { flex: 1 1 10rem; }
.order-line :is(label, select), .package-item label { font-size: .84rem; }
.order-line input[type="number"], .package-item input[type="number"] { width: 5rem; }
.removal-row { background: #f3f5ee; padding: .62rem .8rem; border-radius: 7px; }
.catalog-row > *, .order-line > * { min-width: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
th, td { padding: .65rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-size: .77rem; font-weight: 660; color: var(--muted); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.weekday { text-align: center; padding: .6rem .12rem; font-size: .76rem; color: #456253; background: #eaf1e9; font-weight: 660; }
.calendar-day { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-height: clamp(4.5rem, 7vw, 6.4rem); padding: .45rem; background: #fff; border: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--ink); text-align: left; }
.calendar-grid > :nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #edf4ee; }
.calendar-day.outside-month { color: #62736b; background: #f6f7f3; }
.calendar-day.is-selected { box-shadow: inset 0 0 0 2px var(--teal); background: #edf5ed; }
.calendar-day:focus-visible { z-index: 1; outline-offset: -3px; }
.day-number { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; font-size: .845rem; }
.is-today .day-number { background: var(--teal); border-radius: 50%; color: #fff; }
.delivery-count { background: #e9f0dd; color: #355239; border-radius: 4px; font-weight: 640; font-size: .69rem; line-height: 1.25; padding: .2rem .3rem; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 20; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); padding: .74rem 1rem; color: white; background: #1f4941; border: 1px solid #5b8271; border-radius: 8px; box-shadow: 0 3px 18px #0c33202b; }
.error, [role="alert"].error { border-left: 3px solid #ae4736; background: #fff1eb; padding: .65rem .85rem; color: #823222; border-radius: 4px; }
.toast.error { background: #7a3025; color: #fff; }
.login-layout {
  min-height: 100dvh; display: grid; grid-template-columns: minmax(19rem, .9fr) minmax(22rem, 1.1fr);
  align-items: stretch; background: #f7f8f2;
}
.login-card {
  width: min(100%, 30rem); margin: auto; padding: 2rem clamp(1.25rem, 3.5vw, 3rem);
  align-self: center; overflow-wrap: anywhere;
}
.login-card .brand { margin-bottom: 2.3rem; color: var(--navy); }
.login-card .brand small, .login-card .brand .muted { color: var(--muted); }
.login-card h1 { margin: .5rem 0 .75rem; }
.login-card form { display: grid; gap: .95rem; margin-top: 1.35rem; }
.login-card form > .button { justify-self: stretch; }
.login-art {
  background-color: #123c3e;
  background-image: linear-gradient(145deg, #21544bca, transparent 52%), repeating-linear-gradient(30deg, transparent 0 34px, #add5b517 35px, transparent 36px), repeating-linear-gradient(150deg, transparent 0 34px, #add5b519 35px, transparent 36px);
  position: relative; overflow: hidden; isolation: isolate;
  color: #f4f4dd; display: flex; flex-direction: column; justify-content: end; gap: .7rem;
  padding: clamp(1.5rem, 5vw, 5rem); min-height: 100%;
}
.login-art::before, .login-art::after {
  position: absolute; content: ""; pointer-events: none; z-index: -1;
  aspect-ratio: 1.18; width: 72%; top: 15%; left: 17%;
  clip-path: polygon(0 30%, 48% 5%, 100% 32%, 100% 73%, 52% 100%, 0 73%);
  background-color: #285950;
  background-image: linear-gradient(150deg, transparent 49.7%, #b6ce9d 49.9% 50.2%, transparent 50.4%), repeating-linear-gradient(30deg, transparent 0 20px, #acc79090 20.5px 21px, transparent 21.5px 36px), repeating-linear-gradient(150deg, transparent 0 37px, #a9cba0b0 38px, transparent 39px), linear-gradient(90deg, #397360 50%, #194d49 50%);
  box-shadow: inset 0 0 0 2px #a3bc92;
}
.login-art::after { width: 40%; top: 39%; left: 2%; opacity: .93; background-color: #466744; }
.login-art :is(h1,h2,h3,.eyebrow,.muted,small) { color: inherit; }
.login-art :is(h1,h2) { max-width: 15ch; letter-spacing: -.04em; font-size: clamp(1.55rem, 3vw, 3.15rem); }
.login-art > * { position: relative; }
.login-art p { max-width: 40ch; }
@media (min-width: 1680px) {
  .property-grid, .project-grid { grid-template-columns: repeat(auto-fill,minmax(14rem, 1fr)); }
}
@media (min-width: 1101px) and (max-width: 1199px) {
  :root { --side-width: 12.75rem; }
  .property-card, .project-card { padding: .85rem; }
}
@media (max-width: 1100px) {
  .inventory-grid { grid-template-columns: 1fr; }
}
@media (min-width: 881px) and (max-width: 999px) {
  :root { --side-width: 12.4rem; }
  .property-grid, .project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 880px) {
  .app-layout { display: block; min-height: calc(100dvh - var(--header-height)); }
  .app-header { position: relative; flex-wrap: wrap; }
  .app-header > .brand { margin-right: auto; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; min-width: 38px; background: #21494c; border: 1px solid #587d77; color: #fff; border-radius: 6px; }
  .sidebar { display: none; position: static; max-height: min(72vh,38rem); min-height: 0; padding: 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-layout.menu-open > .sidebar, .sidebar.is-open, .sidebar.open, .sidebar[data-open="true"] { display: block; }
  .property-grid, .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-layout { grid-template-columns: minmax(17rem, 1fr) minmax(16rem, .85fr); }
  .content, .workspace:not(:has(.content)) { padding-inline: 1.1rem; }
}
@media (max-width: 639px) {
  .app-header { gap: .65rem; padding: .65rem .85rem; }
  .header-actions { width: 100%; justify-content: flex-start; gap: .5rem .7rem; }
  .header-actions :is(select, input:not([type="checkbox"])) { max-width: min(100%, 13rem); }
  .page-head { align-items: start; }
  .page-head h1 { font-size: 2.1rem; }
  .toolbar { align-items: flex-end; }
  .property-grid, .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .property-card, .project-card { min-height: 12.5rem; }
  .content, .workspace:not(:has(.content)) { padding: 1.15rem .85rem 3rem; }
  .stat-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: #c2d7c8; }
  .stat { background: #e2ede3; }
  .stat + .stat { border: 0; }
  .stat-label { font-size: .65rem; }
  .calendar-day { padding: .2rem; min-height: 3.65rem; }
  .calendar-day .delivery-count { font-size: .65rem; padding: .08rem .2rem; }
  .weekday { font-size: .69rem; }
  .day-number { min-width: 1.34rem; height: 1.34rem; }
  .login-layout { min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .login-card { padding: 2.25rem 1.35rem; }
  .login-art { display: none; }
  .order-line > :first-child { flex-basis: 100%; }
}
@media (max-width: 389px) {
  .property-grid, .project-grid { grid-template-columns: 1fr; }
  .property-card, .project-card { min-height: auto; }
  .card-meta { margin-top: .4rem; }
  .work-tag { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Directory entries and calendar deliveries share a two-line reading order. */
.property-link { display: grid; gap: .15rem; }
.property-link > small { font-size: .72rem; line-height: 1.3; }
.company-count { display: inline-block; margin-left: .45rem; border-radius: 12px; background: #eaf0e8; color: #506455; padding: .05rem .38rem; font-size: .72rem; }
.delivery-list ul { padding: 0; list-style: none; display: grid; gap: .4rem; }
.delivery-link { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; width: 100%; padding: .65rem .8rem; border-radius: 6px; text-align: left; background: #f1f5ef; }
.delivery-link:hover { color: var(--teal-deep); background: #e7f1e6; }
.stack > div:empty { display: none; }
.property-grid > .empty-state, .project-grid > .empty-state { grid-column: 1/-1; }
.stack > .stat-grid { margin: 0; }
.stat-value { overflow-wrap: anywhere; }
.card-meta > span { flex-basis: 100%; }
.page-head > div > p.muted:first-child { margin-bottom: .32rem; font-size: .77rem; letter-spacing: .065em; font-weight: 650; color: #49715d; text-transform: uppercase; }
.form-error { color: #813626; background: #fff0e5; border-left: 3px solid #ae4736; padding: .55rem .7rem; border-radius: 4px; }
.order-line > form { align-items: flex-end; }
.order-line > form .field { min-width: 0; }
.order-line details summary, .catalog-package summary, article.panel > details > summary { color: var(--teal-deep); font-weight: 590; font-size: .875rem; }
.catalog-package summary::after { content: "+"; color: #365d4d; margin-left: .2rem; }
.catalog-package[open] summary::after { content: "−"; }
article.panel > details[open] > form, .catalog-package ul { margin-top: .65rem; }
@media (max-width: 639px) {
  .stat-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat { padding: .72rem .5rem; }
  .stat-grid .stat-value { font-size: 1.35rem; }
  section:not(.dashboard-view) > .stat-grid .stat-value { font-size: 1rem; }
}