:root { color-scheme: light; --navy: #18243b; --muted: #526176; --line: #dce4ec; --orange: #b84208; --sheet: #f2f5f8; --ink: #172338; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: var(--ink); background: var(--sheet); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button, .back, nav a { min-height: 44px; }
button, .button { border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; background: white; color: var(--navy); font-weight: 650; cursor: pointer; text-decoration: none; }
.button, .back { display: inline-flex; align-items: center; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #b84208; outline-offset: 3px; }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px clamp(12px, 4vw, 40px); border-bottom: 1px solid var(--line); background: white; }
.masthead img { display: block; max-width: 100%; height: auto; }
.masthead-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.masthead-links .studio-link { gap: 5px; color: #203c2c; background: #e6f0e7; border-color: #c6d8ca; }
.masthead-links .studio-link:hover { background: #d7e9d9; }
.nextleaf-brand { color: #21342e; font-size: 27px; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.nextleaf-brand img { display: block; width: clamp(150px,24vw,216px); height: auto; }
.industry-picker { display: grid; gap: 3px; justify-self: end; font-size: 12px; font-weight: 650; color: var(--muted); }
.industry-picker select { min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); padding: 5px 9px; }
.product-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 36px); border-radius: 12px; background: #e5eee3; padding: clamp(18px, 4vw, 40px); }
.product-intro h1 { color: #18362c; max-width: 17ch; font-size: clamp(25px, 4vw, 47px); }
.product-preview { display: grid; gap: 7px; text-decoration: none; color: #18362c; font-size: 13px; font-weight: 700; }
.product-preview img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #c3d7cd; }
.nav-count { margin-inline-start: auto; padding-inline: 6px; border-radius: 8px; background: #465b71; font-size: 12px; }
.inbox-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px; }
.inbox-tabs [aria-pressed=true], .record-choice[aria-pressed=true] { background: #e6f0e7; border-color: #92b09b; color: #203c2c; }
.inbox-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.7fr); gap: 12px; margin-block: 10px; }
.inbox-list { display: grid; align-content: start; gap: 6px; }
.record-choice { display: grid; align-items: start; gap: 6px; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.record-choice .badge { justify-self: start; }
.record-panel { min-width: 0; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); }
.fields input[type=email], .fields input[type=number], .stock-table input { min-height: 44px; max-width: 100%; padding: 6px 8px; border: 1px solid #b8c6d3; border-radius: 8px; }
.stock-table input { width: 6ch; }
.stock-table [data-low-stock=true] td:last-child { color: #923707; font-weight: 750; }
.series-list .mail-entry { display: block; }
.mail-entry summary { cursor: pointer; }
.calendar-surface { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 12px; align-items: start; }
.unscheduled-tray { padding: 12px; background: #ecf2ed; border: 1px solid #d5e1d7; border-radius: 9px; }
.unscheduled-tray p { font-size: 13px; }
.job-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; }
.job-overview div { background: var(--sheet); padding: 8px; border-radius: 8px; overflow-wrap: anywhere; }
.job-overview dt { color: var(--muted); }
.job-overview dd { margin: 0; font-weight: 700; }
@media (max-width: 1100px) { .calendar-surface { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) {
  .masthead .industry-picker { grid-column: 1 / -1; justify-self: stretch; }
  .masthead .nextleaf-brand { grid-column: 2; justify-self: end; }
  .product-intro, .inbox-layout { grid-template-columns: minmax(0, 1fr); }
}
.back { width: fit-content; color: var(--navy); font-weight: 650; }
.preview-label { justify-self: end; color: var(--muted); font-size: 13px; }
.shell { width: min(1600px, 100%); margin: 0 auto; padding: 24px clamp(12px, 3vw, 36px); display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 20px; align-items: start; }
aside { background: var(--navy); color: white; border-radius: 12px; padding: 16px; }
.workspace { margin: 0 0 12px; font-weight: 750; }
.demo-menu-toggle { display: none; }
nav { display: grid; gap: 4px; }
nav a { display: flex; align-items: center; padding: 9px 10px; color: white; border-radius: 8px; text-decoration: none; }
nav a:hover, nav a[aria-current] { background: #30425b; }
nav a[aria-current] { box-shadow: inset 3px 0 0 #ff9a64; font-weight: 700; }
.subtle { margin-top: 12px; background: transparent; color: white; border-color: #6d79ae; }
.page-head { margin-bottom: 16px; }
.page-head p, .footnote, .ref { color: var(--muted); }
h1, h2, h3, p { margin: 0 0 10px; }
h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: clamp(19px, 3vw, 23px); line-height: 1.2; }
.ref { font-size: 12px; font-weight: 650; margin-bottom: 5px; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 3vw, 25px); box-shadow: 0 2px 5px #1723380a; }
.card-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: start; }
.document-brand { min-width: 0; display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; color: #203c2c; }
.business-logo { display: block; max-width: min(116px, 38%); height: 44px; object-fit: contain; flex-shrink: 0; }
.business-logo-sample { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #e5eee3; color: #274534; font-size: 24px; font-weight: 800; }
.tech-action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-width: 560px; margin-block: 14px; }
.tech-action-bar a, .tech-action-bar button { margin: 0; justify-content: center; text-align: center; padding-inline: 8px; }
.tech-action-bar #onsite-toggle { color: #7e2f12; background: #fff2e8; border-color: #e6baaa; }
.site-report { background: var(--sheet); padding: 12px; border-radius: 8px; margin-block: 9px; overflow-wrap: anywhere; }
.site-report h3 { font-size: 17px; }
.office-tool-panel { margin-bottom: 14px; }
#business-logo-file { display: block; max-width: 100%; margin-top: 5px; }
#onsite-feedback:not(:empty) { margin: 12px 0; color: #254936; font-weight: 600; }
.badge { display: inline-flex; background: #e9edfb; color: var(--navy); border-radius: 20px; padding: 5px 9px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 4px; text-align: left; overflow-wrap: anywhere; }
th:last-child, td:last-child { text-align: right; white-space: nowrap; }
.total { display: flex; justify-content: space-between; gap: 12px; font-weight: 750; margin-bottom: 18px; }
.line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.muted { color: var(--muted); }
.office-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 10px; }
.office-summary div { background: var(--sheet); border-radius: 8px; padding: 12px; }
.office-summary dt { color: var(--muted); font-size: 13px; }
.office-summary dd { margin: 4px 0 0; font-size: 18px; font-weight: 750; }
.campaign { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.campaign summary { cursor: pointer; font-weight: 650; padding: 9px 0; }
.campaign label { display: block; margin: 8px 0; }
.campaign select { max-width: 100%; margin: 5px 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.tax-setting { margin: 14px 0; padding: 10px 12px; border-radius: 8px; background: var(--sheet); }
.tax-setting p { margin: 5px 0 0; }
.calendar-card { margin-bottom: 14px; }
.calendar-filter { display: grid; gap: 3px; color: var(--muted); }
.calendar-filter select { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 6px 9px; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 12px; margin-bottom: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-day { min-width: 0; min-height: 112px; background: var(--sheet); padding: 6px; border-radius: 8px; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--navy); }
.calendar-day h3 { margin: 0 0 8px; font-size: 13px; }
.calendar-event { display: block; margin: 5px 0; padding: 6px; min-height: 44px; border: 1px solid #c5d3fa; border-radius: 7px; background: #eaf0ff; color: var(--navy); overflow-wrap: anywhere; text-decoration: none; }
.calendar-event.active { background: #fff0da; border-color: #e7b373; color: #6f3400; }
.calendar-event.complete { background: #e7eee9; border-color: #becfc2; color: #365442; }
.calendar-event.paused { background: #f3ebf9; border-color: #d7c3e4; color: #543670; }
.calendar-event.overdue { background: #fff0ef; border-color: #c76b68; color: #781d1d; }
.calendar-team { width: fit-content; margin: 0 0 10px; }
#demo-admin .fields { max-width: 420px; }
.calendar-event span { display: block; font-size: 11px; }
.calendar-event strong { display: block; font-size: 12px; }
.calendar-event:hover { border-color: currentColor; }
.calendar-empty { color: var(--muted); font-size: 12px; }
.view-switch { display: inline-flex; align-self: end; padding: 3px; border-radius: 9px; background: var(--sheet); }
.view-switch button { border-color: transparent; background: transparent; padding-inline: 17px; min-height: 36px; }
.view-switch button[aria-pressed="true"] { background: white; border-color: var(--line); box-shadow: 0 1px 2px #1723381a; }
.calendar-toolbar[aria-label="Calendar filters"] { justify-content: start; align-items: end; gap: 10px 14px; }
.calendar-filter { font-size: 13px; font-weight: 650; }
.calendar-grid.dispatch-mode { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.mobile-dispatch { display: none; }
.dispatch-table { margin: 0; min-width: 760px; table-layout: fixed; }
.dispatch-table.single-crew { min-width: 0; }
.dispatch-table th, .dispatch-table td { padding: 6px 8px; vertical-align: top; border-right: 1px solid var(--line); text-align: left; white-space: normal; }
.dispatch-table th:last-child, .dispatch-table td:last-child { border-right: 0; }
.dispatch-table th:first-child { width: 64px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dispatch-table thead th { background: #e9eef4; font-size: 13px; }
.dispatch-table tbody th { background: #f5f7fa; color: var(--muted); font-size: 12px; font-weight: 600; }
.dispatch-table tr { height: 43px; }
.dispatch-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.dispatch-table .calendar-event { margin: 0 0 4px; border-left-width: 3px; }
.dispatch-table .calendar-event .event-status { font-weight: 650; }
.job-detail { margin-top: 14px; }
.job-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.job-fields input, #job-search { display: block; width: 100%; margin-top: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.jobs-table-wrap { overflow-x: auto; }
.jobs-table { min-width: 520px; }
.jobs-table th { font-size: 12px; color: var(--muted); background: var(--sheet); }
.jobs-table tbody a { font-weight: 700; color: var(--navy); text-underline-offset: 2px; }
.jobs-table th:last-child, .jobs-table td:last-child { text-align: left; }
.job-customer { display: block; color: var(--muted); font-size: 13px; }
.job-chip { background: #eaf0ff; color: #263d71; border-radius: 99px; padding: 4px 8px; font-size: 12px; font-weight: 650; }
.job-chip.active { background: #fff0da; color: #6f3400; }
.job-chip.complete { background: #e7eee9; color: #365442; }
.job-chip.paused { background: #f3ebf9; color: #543670; }
.job-chip.overdue, .deadline-warning { background: #ffe8e6; color: #781d1d; }
.job-chip.overdue { display: inline-block; margin: 4px 0 0 4px; }
.job-overdue-row { background: #fff8f7; }
.deadline-warning { padding: 9px 12px; border-left: 4px solid #b8403d; border-radius: 6px; font-weight: 700; }
.job-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); align-items: end; }
.job-filters input, .job-filters select { display: block; min-width: 0; min-height: 44px; width: 100%; margin: 3px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.job-list-caption { font-size: 13px; }
.job-address-field { grid-column: 1 / -1; }
.tour { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border: 1px solid #cddded; background: #eaf2fa; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.tour p, .tour .action-row { margin: 0; }
.calendar-event[data-job-id] { cursor: grab; }
.calendar-event.calendar-drag-source { opacity: .48; cursor: grabbing; }
.calendar-event-link { display: block; color: inherit; cursor: inherit; text-decoration: none; }
.calendar-event[data-job-id] .calendar-event-link { user-select: none; }
.calendar-drag-preview { position: fixed; inset: 0 auto auto 0; z-index: 30; max-width: 230px; padding: 8px 12px; border-radius: 7px; background: #264436; color: white; font-size: 13px; font-weight: 700; pointer-events: none; }
.dispatch-table td.drop-target, .calendar-day.drop-target { background: #deeee3; box-shadow: inset 0 0 0 2px #53846b; }
.calendar-help { margin: 10px 0 3px; font-size: 13px; }
.calendar-feedback:not(:empty) { background: #eaf2fa; color: #263d71; padding: 8px 10px; border-radius: 7px; }
.series-list { display: grid; gap: 8px; margin: 12px 0; }
.series-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.series-row p { margin: 3px 0 0; }
.series-row .action-row { margin: 0; }
.purchase-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.purchase-totals div { padding: 12px; background: var(--sheet); border-radius: 8px; }
.purchase-totals strong { display: block; font-size: 19px; }
.material-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .7fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; margin: 0 0 8px; }
.material-row input, .job-fields input[type="number"] { display: block; width: 100%; margin-top: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.reader-panel { padding: 14px; background: #eef4fa; border: 1px solid #cfdfed; border-radius: 9px; }
.reader-panel input[type="file"] { display: block; max-width: 100%; }
.reader-panel img { max-width: min(100%, 420px); max-height: 420px; object-fit: contain; margin: 8px 0; }
.receipt { max-width: 550px; padding: 14px; margin: 10px 0; background: white; border: 1px solid var(--line); border-radius: 4px; }
.receipt table { font-size: 13px; margin: 6px 0; }
.bill-summary { padding-inline-start: 20px; }
.walkthrough { margin: 12px 0 16px; }
.walkthrough video { display: block; width: 100%; border-radius: 10px; background: var(--navy); }
.walkthrough figcaption { margin-top: 6px; }
#help details { display: block; }
#help summary { cursor: pointer; font-weight: 700; }
@media (max-width: 1050px) {
  .calendar-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); }
}
.primary { background: var(--orange); border-color: var(--orange); color: white; }
.button { margin: 4px 0; }
.fields { border: 0; margin: 12px 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.fields label { display: block; }
.fields select, textarea, .fields input[type="text"] { display: block; width: 100%; margin-top: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.fields button { justify-self: start; }
.appointment { margin: 14px 0; padding: 12px; background: #eef3ff; border-radius: 8px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0; list-style: none; }
.steps li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.steps li[aria-current] { background: var(--navy); color: white; }
.footnote { margin-top: 16px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 800px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead img { max-width: 120px; }
  .preview-label { justify-self: start; grid-column: 1 / -1; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; }
  aside { padding: 12px; }
  .demo-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .demo-navigation .workspace, .demo-navigation .subtle { margin: 0; }
  .demo-menu-toggle { display: block; }
  .demo-navigation nav { display: none; grid-column: 1 / -1; }
  .demo-navigation nav[data-open=true] { display: flex; }
  .demo-navigation #reset { display: none; grid-column: 1 / -1; justify-self: start; }
  .demo-navigation nav[data-open=true] + #reset { display: inline-block; }
  .calendar-grid.dispatch-mode { border: 0; overflow: visible; }
  .dispatch-table { display: none; }
  .mobile-dispatch { display: grid; gap: 5px; }
  .mobile-dispatch .calendar-event { margin: 0; }
  .mobile-dispatch .calendar-event strong { font-size: 15px; }
  .mobile-dispatch .calendar-event span { font-size: 13px; }
  .jobs-table-wrap { overflow: visible; }
  .jobs-table { display: block; min-width: 0; }
  .jobs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .jobs-table tbody { display: grid; gap: 9px; }
  .jobs-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
  .jobs-table td { border: 0; padding: 3px 0; min-width: 0; }
  .jobs-table td:last-child { white-space: normal; }
  .jobs-table .job-main-cell, .jobs-table td[colspan], .jobs-table td[data-label="Status"] { grid-column: 1 / -1; }
  .jobs-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); font-weight: 650; }
  nav { display: flex; flex-wrap: wrap; }
  nav a { font-size: 13px; }
  .job-fields { grid-template-columns: minmax(0, 1fr); }
  .job-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .job-filters label:first-child { grid-column: 1 / -1; }
  .material-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-row label:first-child { grid-column: 1 / -1; }
}
