:root {
  color-scheme: light;
  --ink: #22251d;
  --muted: #64685c;
  --paper: #f5f6f0;
  --surface: #fff;
  --line: #e3e6db;
  --header: #1c2119;
  --accent: #d9ee82;
  --accent-hover: #e6f5ab;
  --radius: 12px;
  font-family: Inter, Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #699235; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; font-weight: 750; letter-spacing: -.045em; }
h2 { font-size: 16px; font-weight: 720; letter-spacing: -.025em; }
h3 { font-size: 14px; }
small { color: var(--muted); }
.muted { color: var(--muted); }
.preline { white-space: pre-wrap; margin-top: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.app-header { position: sticky; top: 0; z-index: 1; background: var(--header); color: #e5e7db; }
.app-header-inner { max-width: 1550px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 42px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 54px; }
.brand { display: flex; gap: 8px; align-items: center; font-size: 17px; font-weight: 750; letter-spacing: -.045em; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; color: #b8c0a9; font: 650 9px/1.1 ui-monospace, monospace; letter-spacing: .15em; }
.brand-mark { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; color: #252d15; background: var(--accent); }
.brand-mark .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.accent { color: var(--accent); }
.app-header nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.app-header nav a { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 8px; color: #d4d9c9; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 580; white-space: nowrap; }
.app-header nav a:hover, .app-header nav a[aria-current] { color: #eef6dc; background: #30392a; }
.app-header nav a[aria-current] { color: var(--accent); border-color: #435136; }
.header-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.icon-button { display: grid; place-items: center; background: none; color: inherit; border: 0; border-radius: 6px; width: 34px; height: 34px; }
.icon-button:hover { background: #394033; }
.content { max-width: 1550px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 42px) 32px; }
.breadcrumb { margin-bottom: 11px; color: #505748; font-size: 12px; font-weight: 600; }
.breadcrumb span { margin: 0 5px; color: #68705f; font-weight: 400; }
.heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.heading .muted { margin-top: 5px; }
.heading .pill { margin-bottom: 6px; }
.eyebrow { margin-bottom: 5px; color: #53623f; text-transform: uppercase; font: 700 11px/1.3 ui-monospace, monospace; letter-spacing: .11em; }
.button { min-height: 36px; padding: 6px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 680; line-height: 1.2; text-align: center; }
.button .icon { width: 16px; height: 16px; }
.button.compact { min-height: 32px; padding: 5px 9px; }
.primary { background: var(--accent); border-color: #c6dc71; color: #232919; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: #fff; border-color: #dce1d3; color: var(--ink); }
.secondary:hover { background: #eff3e7; }
.button-group, .form-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0 0 12px; }
.stats-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; align-items: center; gap: 9px; min-height: 63px; padding: 9px 11px; font-size: 12px; color: var(--muted); font-weight: 600; }
.stat:hover { border-color: #a1af88; }
.stat-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 7px; }
.stat-icon .icon { width: 16px; height: 16px; }
.olive { background: #edf2db; color: #506333; }
.sky { background: #e6edf5; color: #415e7d; }
.peach { background: #faebdd; color: #815229; }
.lilac { background: #f0e9f5; color: #674778; }
.stat strong { display: block; margin-top: 2px; font-size: 21px; line-height: 1.12; letter-spacing: -.035em; color: var(--ink); overflow-wrap: anywhere; }
.stat .money { font-size: clamp(15px, 1.5vw, 19px); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dashboard-panels { grid-template-areas: "recent upcoming"; }
.dashboard-upcoming { grid-area: upcoming; }
.dashboard-recent { grid-area: recent; }
.panel { min-width: 0; }
.panel-title { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 7px; padding: 11px 12px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 12px; color: #4f6239; }
.text-link:hover, .back-link:hover, .record:hover { text-decoration: underline; }
.text-link .icon { width: 14px; height: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f6f7f1; color: #565d4c; }
th, td { padding: 7px 12px; border-bottom: 1px solid var(--line); }
thead th { font-size: 11px; font-weight: 700; white-space: nowrap; border-top: 1px solid var(--line); }
tbody td { font-size: 13px; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #fcfdf9; }
td small, .event small, .payment-list small, .location-list small { display: block; margin-top: 2px; }
.record { font-weight: 680; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 20px; background: #eef0eb; color: #4e5847; font-size: 11px; font-weight: 660; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.confirmed, .accepted { background: #e9f1da; color: #3e5c24; }
.editing, .sent { background: #faeddc; color: #7b4d24; }
.inquiry { background: #e9eef8; color: #425c85; }
.delivered { background: #efe9f7; color: #62437d; }
.cancelled, .rejected { background: #f8e8e5; color: #86423b; }
.empty { padding: 12px; color: var(--muted); }
.upcoming { padding: 0 12px 3px; }
.upcoming .empty { padding-inline: 0; border-top: 1px solid var(--line); }
.event { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.event-job { display: flex; align-items: center; gap: 8px; min-width: 0; }
.event-job:hover > span > strong { text-decoration: underline; }
.event time { display: grid; place-content: center; flex: 0 0 35px; min-height: 36px; text-align: center; color: #4c5e3a; background: #f0f3e9; border: 1px solid #e6ebdc; border-radius: 7px; font: 650 9px/1.15 ui-monospace, monospace; text-transform: uppercase; }
.event time strong { font: 740 16px/1.1 Inter, system-ui, sans-serif; }
.event-job > span { min-width: 0; overflow-wrap: anywhere; }
.event .button { flex: 0 0 auto; }
.event small { font-size: 12px; }
.notice { margin-bottom: 12px; padding: 8px 11px; background: #eff3e5; border: 1px solid #dbe3cf; border-radius: 8px; }
.collection-alert { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 12px; padding: 9px 12px; background: #fff8ed; border-color: #eed8b9; color: #624322; font-size: 12px; }
.collection-alert a { color: #624322; text-decoration: underline; text-underline-offset: 2px; }
.finance-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.finance-currency { padding: 13px 15px; }
.finance-currency h2 { margin-bottom: 10px; }
.finance-currency dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.finance-currency dt { font-size: 12px; }
.finance-currency dd { margin-top: 3px; font-size: clamp(15px, 1.6vw, 21px); font-weight: 720; letter-spacing: -.03em; }
.finance-balance dd { color: #775127; }
.finance-counts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.finance-counts a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12px; font-weight: 620; }
.finance-counts a:hover { border-color: #a1af88; }
.finance-payments { margin-bottom: 11px; }
.finance-future { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
input:not([type="hidden"]), select, textarea { background: #fff; border: 1px solid #dce0d5; border-radius: 8px; color: var(--ink); min-height: 36px; padding: 6px 9px; min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
input:disabled, select:disabled { background: #eef0e9; color: #555d4f; }
.search { position: relative; width: min(100%, 335px); }
.search .icon { position: absolute; left: 10px; top: 9px; color: #6a725f; pointer-events: none; }
.search input { width: 100%; padding-left: 36px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 10px; font-size: 12px; }
.back-link { display: inline-block; margin-bottom: 9px; color: #50613d; font-weight: 650; }
.detail, .form-card { padding: 15px; }
.detail h2 { margin-bottom: 9px; }
.detail .action-list { display: grid; gap: 6px; justify-items: start; }
.detail dl, .print-sheet dl { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.form-card { max-width: 820px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.field label { font-weight: 650; }
.wide, .form-grid > .errorlist { grid-column: 1 / -1; }
.errorlist { color: #9b3128; padding-left: 17px; margin: 0; }
.payment-list, .location-list { list-style: none; padding: 0; margin: 12px 0 0; }
.payment-list li, .location-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.location-list { margin: 0 16px; }
.location-list a { padding: 10px 0; }
.location-list a:hover { color: #4f6239; text-decoration: underline; }
.forecast-days { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.forecast-days a[aria-current] { color: #293815; background: var(--accent); border-color: #c6dc71; }
.source-note { padding: 9px 12px; color: var(--muted); font-size: 12px; }
.source-note a { text-decoration: underline; }
.month-title { text-transform: capitalize; }
.calendar { min-width: 680px; table-layout: fixed; }
.calendar td { height: 75px; vertical-align: top; border-right: 1px solid var(--line); padding: 5px; }
.calendar td:last-child { border-right: 0; }
.day { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; }
.day.today { color: #293815; background: var(--accent); font-weight: 750; }
.other-month { background: #f9faf6; color: #737a6b; }
.calendar-event { display: block; padding: 3px 5px; margin-top: 3px; border-radius: 5px; font-size: 11px; overflow-wrap: anywhere; }
.calendar-event:hover { text-decoration: underline; }
.login-shell { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
.login-image { display: flex; align-items: end; padding: 25px; background: linear-gradient(0deg, #172015d9, #17201500 65%), #283321 url("sierra-aerea.jpg") center / cover; color: white; }
.login-image .eyebrow { color: var(--accent); }
.login-image p { font-size: clamp(22px, 4vw, 40px); line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
.login-form { width: min(100%, 440px); align-self: center; justify-self: center; padding: 25px; }
.login-form h1 { margin-top: 10px; }
.login-form .muted { margin: 6px 0 15px; }
.print-controls, .print-sheet { width: min(740px, calc(100% - 30px)); margin: 18px auto; }
.print-controls { display: flex; justify-content: space-between; gap: 8px; }
.print-sheet { background: white; padding: clamp(20px, 6vw, 50px); }
.print-sheet header { padding-bottom: 16px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.print-sheet header strong { font-size: 23px; letter-spacing: -.05em; }
.print-sheet dl { margin: 20px 0 30px; }
.print-sheet footer { display: flex; gap: 15px; justify-content: space-between; padding: 16px 0; margin-top: 25px; border-top: 1px solid var(--line); }
.print-sheet footer strong { font-size: 22px; }
@media (max-width: 1000px) {
  .app-header { position: static; }
  .app-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .app-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-header-inner { padding: 8px 12px; }
  .app-header nav a { min-height: 32px; padding: 4px 7px; gap: 5px; font-size: 12px; }
  .app-header nav .icon { width: 14px; height: 14px; }
  .content { padding-top: 14px; }
  .breadcrumb { margin-bottom: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-panels { grid-template-areas: "upcoming" "recent"; }
  .finance-summary { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .app-header-inner { column-gap: 6px; }
  .app-header .brand { gap: 6px; font-size: 16px; }
  .app-header .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .header-actions { gap: 3px; }
  .stats { gap: 7px; }
  .stat { padding: 8px; gap: 6px; }
  .stat-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .stat-icon .icon { width: 14px; height: 14px; }
  .detail, .form-card { padding: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; grid-template-rows: 115px 1fr; }
  .login-image { padding: 14px 18px; }
  .login-form { padding: 18px; align-self: start; }
}
@media print {
  .print-controls { display: none; }
  .print-body, .print-sheet { background: white; margin: 0; padding: 0; width: 100%; }
  .print-sheet header, .print-sheet footer { break-inside: avoid; }
}
