@charset "UTF-8";

:root {
  color-scheme: light;
  --forest: #153e35;
  --forest-dark: #102f29;
  --forest-light: #eaf1ed;
  --ink: #243a34;
  --muted: #727e78;
  --line: #e5eae6;
  --canvas: #f5f7f5;
  --white: #fff;
  --gold: #b38e4a;
  font: 16px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; overflow-x: clip; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #86a996; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; font-weight: 650; letter-spacing: -.045em; }
h2 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
small { font-size: .875rem; color: var(--muted); }
.icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; background: white; border: 2px solid var(--forest); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: .875rem; font-weight: 600; white-space: nowrap; line-height: 1.4; transition: background .15s, border-color .15s; }
.button .icon { width: 19px; height: 19px; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: #235849; }
.secondary { background: white; border-color: #d9e2dc; color: var(--forest); }
.secondary:hover, .subtle:hover { background: var(--forest-light); }
.subtle { background: transparent; color: var(--muted); }
.small { min-height: 34px; padding: 7px 11px; font-size: .875rem; }
.icon-button { width: 42px; padding: 9px; }
.wide { width: 100%; }
.danger { background: #fff0ed; color: #aa4236; }
.danger:hover { background: #fbe0da; }
.text-button { border: 0; padding: 0; color: var(--ink); font-weight: 600; background: none; text-align: left; }
.text-button:hover { color: #37725b; text-decoration: underline; }
.text-link { color: var(--forest); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.section-kicker { color: #7a8c80; font-size: .75rem; letter-spacing: .12em; font-weight: 650; margin-bottom: 9px; }
.muted { color: var(--muted); font-size: .875rem; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 47px; border: 1px solid #70897b; border-radius: 13px 13px 5px 5px; color: #d6dfbd; }
.brand-mark .icon { width: 29px; height: 29px; stroke-width: 1.25; }
.brand-text { font-size: 1.45rem; letter-spacing: .17em; font-weight: 650; line-height: 1.15; }
.brand-text > span { display: block; font-size: .63rem; letter-spacing: .23em; font-weight: 400; margin-top: 7px; }
.app-shell { display: flex; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: var(--forest); color: #fff; display: flex; flex-direction: column; padding: 34px 18px 20px; z-index: 10; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar, .sidebar nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar > * { flex-shrink: 0; }
.sidebar nav { scrollbar-width: none; }
.sidebar .brand { margin: 0 10px 48px; }
.nav-label { color: #9fb8ab; font-size: .7rem; font-weight: 600; letter-spacing: .12em; padding: 0 14px; margin-bottom: 14px; }
.nav-link { width: 100%; display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 7px; color: #c5d4cb; font-size: .875rem; font-weight: 500; background: transparent; text-align: left; margin: 4px 0; }
.nav-link .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.nav-link:hover { background: #ffffff0b; color: white; }
.nav-link.active { background: #ffffff14; color: #f0f4e9; box-shadow: inset 3px 0 #c6d3a7; }
.nav-count { margin-left: auto; padding: 0 7px; border-radius: 5px; font-size: .75rem; background: #ffffff12; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.sidebar-note { margin: 0 10px 26px; padding: 22px 13px; border-top: 1px solid #ffffff18; border-bottom: 1px solid #ffffff18; }
.sidebar-note > .icon { color: #b8c6a2; display: block; width: 30px; height: 30px; margin-bottom: 12px; }
.sidebar-note strong { font-weight: 500; font-size: .95rem; }
.sidebar-note p { color: #9eb4a8; font-size: .8rem; margin-top: 7px; line-height: 1.6; }
.user-card { margin: 20px 9px 0; border-top: 1px solid #ffffff18; padding-top: 19px; display: flex; gap: 11px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #d2dcc6; color: var(--forest); font-size: .875rem; font-weight: 700; }
.user-card > div { min-width: 0; }
.user-card strong { display: block; font-size: .875rem; font-weight: 550; overflow-wrap: anywhere; }
.user-card .avatar { flex-shrink: 0; }
.user-card small { display: block; font-size: .75rem; color: #a2b9ab; }
.workspace { margin-left: 244px; min-width: 0; width: calc(100% - 244px); display: flex; flex-direction: column; }
.topbar { height: 78px; padding: 0 38px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--line); gap: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: #859088; font-size: .875rem; }
.breadcrumb span { color: #c0c8c2; }
.breadcrumb strong { color: #405349; font-weight: 500; }
.today-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.today-label .icon { width: 17px; height: 17px; }
.main-content { padding: 36px 38px; max-width: 1800px; width: 100%; margin: 0 auto; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.page-heading p { color: var(--muted); margin-top: 9px; font-size: .9375rem; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: white; margin-bottom: 24px; box-shadow: 0 2px 2px #173d2c02; overflow: hidden; }
.panel-heading { min-height: 90px; padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading p { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 19px; margin-bottom: 25px; }
.stats-grid-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stat-card { padding: 22px 23px; background: white; border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 13px; }
.stat-top > span:first-child { font-size: .875rem; color: #67786d; }
.stat-icon { width: 33px; height: 33px; border-radius: 8px; background: #f0f4f0; display: grid; place-items: center; color: #5c806b; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-card > strong { display: block; font-size: clamp(1.6rem,2.2vw,2rem); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card > small { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.5; }
.stat-card.warm .stat-icon { background: #f9f1e3; color: #a58446; }
.month-picker { display: flex; align-items: center; gap: 2px; }
.month-picker .icon-button { width: 30px; min-height: 34px; padding: 5px; }
.month-input-label input { width: 160px; min-height: 37px; padding: 6px 7px; border: none; color: var(--ink); font-size: .875rem; font-weight: 600; background: transparent; }
.month-picker > .small { margin-left: 10px; border: 1px solid var(--line); }
.calendar-panel { --calendar-empty: #f4e8c9; --calendar-busy: #244a70; --calendar-overlap: #000; --calendar-surface: #212121; background: var(--calendar-surface); color: #f0f0ed; border: 1px solid #414141; border-radius: 20px; padding-bottom: 4px; }
.calendar-panel .panel-heading { padding: 27px 28px 12px; }
.calendar-panel h2 { font-size: 1.35rem; }
.calendar-panel .panel-heading p { color: #b9b9b4; }
.calendar-panel .month-picker { color: #eee; }
.calendar-panel .month-input-label input { color: #eee; color-scheme: dark; }
.calendar-panel .subtle { color: #d0d0ca; }
.calendar-panel .subtle:hover { background: #ffffff12; }
.calendar-panel .month-picker > .small { border-color: #52524c; }
.calendar-period { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 26px 8px; color: #bdbdb7; font-size: .875rem; }
.calendar-pagination { display: flex; gap: 4px; }
.calendar-pagination .icon-button { width: 34px; min-height: 34px; padding: 6px; }
.calendar-pagination button:disabled { cursor: default; opacity: .25; }
.calendar-scroll { width: 100%; padding: 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; text-align: left; }
th { font-size: .8rem; font-weight: 500; color: #7a887f; background: #fafbf9; padding: 13px 22px; }
td { border-top: 1px solid #edf0ec; padding: 17px 22px; }
.calendar-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.calendar-table th, .calendar-table td { text-align: center; padding: 0; border: 0; }
.calendar-table thead th { height: 54px; font-size: .875rem; background: transparent; }
.calendar-table thead th span { display: inline-block; font-weight: 400; color: #e1e1da; padding-bottom: 4px; }
.calendar-table thead th small { display: block; font-size: .75rem; color: #92928b; margin-top: 0; font-weight: 400; }
.calendar-table th:first-child { width: 100px; text-align: left; }
.calendar-table tbody th { background: transparent; height: 76px; font-size: .9375rem; font-weight: 400; color: #e9e9e2; }
.calendar-table tbody td { height: 76px; position: relative; }
.calendar-table thead .is-today span { color: var(--calendar-empty); border-bottom: 2px solid var(--calendar-empty); }
.day-cell { display: grid; place-items: center; width: 100%; height: 68px; padding: 0; border: 0; background: transparent; position: relative; }
.day-cell > span { display: block; width: 76%; max-width: 44px; aspect-ratio: 1; border-radius: 50%; background: var(--calendar-empty); position: relative; z-index: 1; transition: box-shadow .12s; }
.day-cell:hover > span { box-shadow: 0 0 0 4px #ffffff20; }
.day-cell:focus-visible { outline: 2px solid var(--calendar-empty); outline-offset: -2px; border-radius: 8px; }
.day-cell.occupied > span { background: var(--calendar-busy); }
.day-cell.turnover > span { background: var(--calendar-overlap); }
.day-cell.connected::before { content: ''; position: absolute; background: var(--calendar-busy); height: 4px; width: 100%; right: 50%; z-index: 0; pointer-events: none; }
.calendar-footer { margin: 16px 28px 0; border-top: 1px solid #42423c; padding: 23px 0; display: flex; align-items: center; flex-direction: column; gap: 17px; }
.legend { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.legend > span { display: flex; align-items: center; gap: 9px; font-size: 1rem; color: #d4d4cc; }
.legend-dot { display: inline-block; width: 19px; height: 19px; border-radius: 50%; }
.legend-dot.available { background: var(--calendar-empty); }
.legend-dot.occupied { background: var(--calendar-busy); }
.legend-dot.turnover { background: var(--calendar-overlap); }
.calendar-footer > p { font-size: .875rem; color: #a5a59c; text-align: center; line-height: 1.6; }
.overview-lower { display: grid; grid-template-columns: minmax(0,2fr) minmax(270px,.8fr); gap: 24px; }
.overview-lower .panel { min-width: 0; }
.table-scroll { overflow-x: auto; }
.bookings-table { min-width: 780px; }
.booking-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.booking-attribution { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; margin-bottom: 20px; border-radius: 8px; background: #f0f5ed; color: #667c61; font-size: .875rem; }
.booking-attribution p { color: #986c41; }
.booking-payment-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.payment-value { display: block; margin: 12px 0 8px; font-size: 1.15rem; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; padding: 0 24px 24px; }
.role-card { padding: 23px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.role-card > p { font-size: .875rem; color: var(--muted); }
.role-card > .button, .role-card > small { margin-top: auto; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.permission-tags > span { display: inline-block; background: #f0f5ed; border-radius: 5px; color: #64785e; padding: 4px 8px; font-size: .8rem; }
.permission-options { padding: 15px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 12px; }
.permission-options legend { padding: 0 8px; font-size: .875rem; color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: .875rem; }
.checkbox-label input { display: inline-block; width: 19px; min-height: 19px; height: 19px; margin: 0; flex: 0 0 auto; accent-color: var(--forest); }
.compact-note { margin-top: 5px; font-size: .75rem; }
.wrap-cell { white-space: normal; min-width: 170px; max-width: 350px; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.audit-details { min-width: 130px; }
.audit-details summary { cursor: pointer; color: var(--forest); }
.audit-details pre { white-space: pre-wrap; min-width: 260px; max-width: 450px; overflow-wrap: anywhere; font-size: .8rem; background: #f3f6f0; padding: 12px; border-radius: 7px; }
.ledger-modal { max-width: 100%; }
.sidebar .brand { margin-bottom: 28px; }
.sidebar .nav-link { min-height: 43px; margin-top: 2px; margin-bottom: 2px; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 761px) and (max-height: 800px) {
  .sidebar .brand { margin-bottom: 17px; }
  .sidebar .nav-label { margin-bottom: 7px; }
  .sidebar .nav-link { min-height: 37px; padding-top: 7px; padding-bottom: 7px; }
  .sidebar .sidebar-bottom { padding-top: 8px; }
}
.bookings-table td { font-size: .8rem; }
.bookings-table td:first-child { max-width: 250px; }
.bookings-table small { display: block; margin-top: 4px; font-size: .75rem; }
.guest-name { font-size: .875rem; overflow-wrap: anywhere; }
.room-label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .8rem; }
.room-label .icon { width: 15px; height: 15px; color: #7d927e; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.amount small { font-weight: 400; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 5px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.badge.success { background: #eaf3e8; color: #54804e; }
.badge.warning { background: #faf1df; color: #a87e36; }
.badge.neutral { background: #f1f3ef; color: #7a8776; }
.empty-state { min-height: 215px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 24px; text-align: center; }
.empty-state > .icon { color: #7b9982; background: #f1f5ee; box-sizing: content-box; padding: 13px; border-radius: 15px; margin-bottom: 17px; }
.empty-state h3 { font-size: .95rem; font-weight: 600; }
.empty-state p { max-width: 330px; margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.empty-state .button { margin-top: 18px; }
.arrivals-panel .panel-heading > .icon { color: #869d87; }
.arrival-list { padding: 0 22px 12px; }
.arrival-item { display: flex; align-items: center; gap: 15px; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 17px 0; text-align: left; }
.arrival-item:hover { background: #fafbf9; }
.arrival-date { width: 44px; min-width: 44px; background: #f2f5ef; border-radius: 7px; padding: 7px 0; text-align: center; }
.arrival-date strong { display: block; font-size: 1.1rem; font-weight: 600; color: #51744d; line-height: 1.1; }
.arrival-date small { display: block; font-size: .65rem; margin-top: 3px; }
.arrival-guest { min-width: 0; }
.arrival-guest strong { display: block; color: var(--ink); font-size: .875rem; font-weight: 550; overflow-wrap: anywhere; }
.arrival-guest small { display: block; font-size: .75rem; margin-top: 4px; }
.filters { display: flex; gap: 13px; padding: 0 24px 20px; flex-wrap: wrap; }
.filters > label { flex: 1; min-width: 160px; }
.filters .search-field { flex: 2; position: relative; min-width: 220px; }
.search-field .icon { position: absolute; left: 12px; top: 12px; color: #8c9a8b; width: 18px; height: 18px; }
.search-field input { padding-left: 39px; }
.results-meta { border-top: 1px solid var(--line); padding: 10px 24px; font-size: .8rem; color: var(--muted); }
.align-right { text-align: right; }
.finance-summary .stats-grid { padding: 0 24px; margin: 0; }
.finance-summary .stat-card { background: #fafbf9; }
.info-note { margin: 20px 24px 24px; padding: 13px 16px; background: #f0f5f0; color: #6c7c6c; border-radius: 7px; font-size: .875rem; line-height: 1.6; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; max-width: 1040px; }
.settings-panel { padding: 28px; }
.settings-panel > p { margin: 10px 0 24px; color: var(--muted); font-size: .9375rem; }
.settings-icon { display: grid; place-items: center; background: #eef3eb; width: 46px; height: 46px; border-radius: 10px; color: #6c8e6d; margin-bottom: 20px; }
.block-note { display: block; margin-top: 18px; line-height: 1.6; }
.divider { border-top: 1px solid var(--line); margin: 23px 0; }
.room-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.room-chips > span { display: flex; align-items: center; gap: 6px; font-size: .875rem; padding: 7px 10px; background: #f2f5ef; border-radius: 7px; }
.room-chips .icon { width: 16px; height: 16px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
label { display: block; font-size: .875rem; font-weight: 500; color: #4a5e50; }
input, select, textarea { width: 100%; display: block; min-height: 44px; padding: 11px 12px; border: 1px solid #dce4db; border-radius: 7px; background: white; color: var(--ink); font-size: 1rem; font-weight: 400; }
label > input, label > select, label > textarea { margin-top: 7px; }
input::placeholder, textarea::placeholder { color: #9aa399; font-size: .875rem; }
input:focus, select:focus, textarea:focus { border-color: #72937a; }
input[readonly] { background: #f5f7f3; color: #82917f; }
input[type="date"], input[type="month"] { color-scheme: light; }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 35px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23758173' stroke-width='1.5'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); background-size: 20px; background-repeat: no-repeat; background-position: right 10px center; }
.filters input, .filters select { margin-top: 0; font-size: .875rem; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.optional { color: #8a9587; font-weight: 400; }
.form-error { background: #fff1ed; color: #a34435; padding: 12px 14px; border-radius: 7px; font-size: .875rem; }
.form-error[hidden] { display: none; }
.field-hint { margin-top: -9px; }
.app-footer { margin-top: auto; padding: 0 38px 24px; display: flex; justify-content: space-between; color: #94a08f; font-size: .75rem; }
dialog { width: min(600px,calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 29px; border: 1px solid #e3e9df; border-radius: 14px; box-shadow: 0 25px 100px #0c2f2c30; color: var(--ink); }
dialog::backdrop { background: #16362c66; backdrop-filter: blur(3px); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 25px; }
.modal-heading h2 { font-size: 1.4rem; }
.modal-heading p { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.modal-heading .icon-button { margin-top: -10px; margin-right: -10px; }
.stay-summary { margin-top: -8px; color: #759071; font-size: .875rem; }
.payment-section { padding: 20px; border-radius: 9px; background: #f5f7f2; }
.payment-section h3 { margin-bottom: 15px; font-size: .9375rem; }
.remaining-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #dfe6d9; font-size: .875rem; color: #6e8066; }
.remaining-row strong { color: var(--forest); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 7px; flex-wrap: wrap; }
.action-spacer { flex: 1; }
.day-bookings { display: grid; gap: 14px; margin-bottom: 23px; }
.day-booking { padding: 20px; border: 1px solid #e0e7dc; border-radius: 9px; background: #f9fbf7; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; }
.day-booking:hover { background: #f0f5ed; border-color: #adbea4; }
.day-booking strong { color: var(--ink); font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.day-booking > span { font-size: .875rem; color: #76866e; }
.day-booking small { font-size: .75rem; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 32px); border: 1px solid #315a42; background: #244c38; color: #fff; box-shadow: 0 8px 40px #18362322; padding: 14px 23px; border-radius: 9px; font-size: .875rem; }
.toast.error { background: #913e31; border-color: #913e31; }
.toast[hidden] { display: none; }
.loading-screen { display: flex; min-height: 100dvh; flex-direction: column; gap: 22px; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.loader { display: block; width: 35px; height: 35px; border: 3px solid #d5dfd0; border-top-color: var(--forest); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { position: relative; padding: 48px 64px 30px; background: var(--forest); color: #f3f5e8; display: flex; flex-direction: column; overflow: hidden; min-height: 760px; }
.auth-story .brand { margin-bottom: auto; z-index: 1; }
.auth-copy { margin: 95px 0 0; position: relative; z-index: 1; max-width: 560px; }
.eyebrow { font-size: .7rem; letter-spacing: .13em; color: #b3c4a5; font-weight: 600; }
.auth-copy h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.3rem,3.6vw,3.6rem); letter-spacing: -.04em; line-height: 1.2; margin: 23px 0; }
.auth-copy p { color: #b4c7b8; font-size: 1rem; line-height: 1.8; max-width: 390px; }
.forest-scene { margin: 25px -20px -5px; opacity: .9; }
.forest-scene svg { width: 100%; height: auto; max-height: 290px; }
.auth-foot { color: #a3b9a4; font-size: .8rem; letter-spacing: .04em; margin-top: auto; padding-top: 20px; z-index: 1; text-align: center; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 40px 30px; background: #fcfdfb; }
.auth-card { max-width: 380px; width: 100%; margin: auto; }
.auth-card h2 { font-size: 2rem; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); font-size: .9375rem; line-height: 1.7; margin: 13px 0 29px; }
.auth-card .button { margin-top: 3px; min-height: 49px; justify-content: space-between; padding: 14px 18px; }
.auth-card .button .icon { opacity: .7; }
.auth-note { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; color: #9aa58f; font-size: .8rem; }
.auth-note .icon { width: 18px; height: 18px; }
.auth-copyright { color: #9da896; font-size: .75rem; margin-top: 40px; text-align: center; }
@media (min-width: 1600px) { .main-content { padding-top: 45px; } }
@media (min-width: 761px) and (max-height: 900px) {
  .sidebar { padding-top: 24px; padding-bottom: 16px; }
  .sidebar .brand { margin-bottom: 30px; }
  .sidebar-bottom { padding-top: 18px; }
  .sidebar-note { margin-bottom: 16px; padding-top: 15px; padding-bottom: 15px; }
  .sidebar-note > .icon { margin-bottom: 8px; }
  .user-card { margin-top: 14px; padding-top: 14px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .sidebar-note { display: none; }
  .sidebar .brand { margin-bottom: 24px; }
}
@media (min-width: 761px) and (max-height: 540px) {
  .sidebar { padding-top: 14px; padding-bottom: 12px; }
  .sidebar .brand { margin-bottom: 15px; }
  .nav-label, .user-card { display: none; }
  .sidebar-bottom { padding-top: 8px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 216px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 216px; width: calc(100% - 216px); }
  .main-content { padding: 29px 24px; }
  .topbar { padding: 0 24px; }
  .app-footer { padding: 0 24px 24px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; }
  .overview-lower { grid-template-columns: minmax(0,1fr); }
  .arrivals-panel .arrival-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
  .auth-story { padding-left: 40px; padding-right: 40px; }
  .finance-summary .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .today-label { font-size: .75rem; }
  .page-heading { align-items: flex-start; }
  .page-heading .section-kicker { font-size: .65rem; }
  h1 { font-size: 1.7rem; }
  .panel-heading { flex-wrap: wrap; }
  .auth-story { padding: 35px 30px; }
  .auth-copy h1 { font-size: 2.5rem; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; padding: 18px 16px 10px; overflow: visible; }
  .sidebar .brand { margin: 0 2px 18px; }
  .brand-mark { width: 35px; height: 38px; }
  .brand-mark .icon { width: 23px; height: 23px; }
  .brand-text { font-size: 1.1rem; }
  .brand-text > span { font-size: .5rem; margin-top: 5px; }
  .nav-label, .sidebar-note, .user-card { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 3px; padding-bottom: 3px; }
  .nav-link { width: auto; padding: 9px 11px; min-height: 40px; white-space: nowrap; font-size: .875rem; gap: 7px; }
  .nav-link.active { box-shadow: inset 0 -2px #c6d3a7; }
  .nav-link .icon { width: 17px; height: 17px; }
  .nav-count { display: none; }
  .sidebar-bottom { margin: 0; padding: 0; position: absolute; top: 17px; right: 12px; display: flex; }
  .sidebar-bottom .nav-link { font-size: .8rem; padding-left: 8px; padding-right: 8px; }
  .workspace { width: 100%; margin: 0; min-height: calc(100dvh - 130px); }
  .topbar { height: 54px; padding: 0 20px; }
  .today-label .icon { display: none; }
  .main-content { padding: 26px 18px; }
  .page-heading { margin-bottom: 23px; gap: 12px; }
  .page-heading p { font-size: .875rem; max-width: 240px; }
  .heading-actions > .icon-button { display: none; }
  .heading-actions > .primary { font-size: .8rem; padding: 9px 11px; }
  .heading-actions .icon { width: 16px; height: 16px; }
  .panel-heading { padding: 20px; }
  .calendar-panel { border-radius: 16px; }
  .calendar-panel .panel-heading { padding: 22px 18px 10px; }
  .calendar-panel h2 { font-size: 1.15rem; }
  .calendar-panel .panel-heading p { font-size: .875rem; }
  .calendar-scroll { padding: 0 14px; }
  .calendar-period { padding: 0 16px 5px; font-size: .8rem; }
  .calendar-table th:first-child { width: 76px; padding-left: 0; }
  .calendar-table tbody th { font-size: .875rem; height: 64px; }
  .calendar-table tbody td { height: 64px; }
  .calendar-table thead th small { font-size: .65rem; }
  .day-cell { height: 58px; }
  .day-cell > span { width: 80%; max-width: 38px; }
  .day-cell.connected::before { height: 3px; }
  .calendar-footer { margin: 12px 18px 0; padding: 20px 0; }
  .legend { gap: 18px; }
  .legend > span { font-size: .875rem; gap: 7px; }
  .legend-dot { width: 16px; height: 16px; }
  .calendar-footer > p { font-size: .8rem; }
  .app-footer { padding: 0 20px 20px; }
  .app-footer > span:last-child { display: none; }
  .stat-card { padding: 16px; }
  .stat-card > strong { font-size: 1.75rem; }
  .stat-card > small { font-size: .75rem; }
  .stat-icon { width: 29px; height: 29px; }
  .stat-top > span:first-child { font-size: .8rem; }
  .filters { padding: 0 20px 20px; }
  .auth-layout { display: flex; flex-direction: column; }
  .auth-story { padding: 25px 28px 28px; min-height: 0; }
  .auth-story .brand { margin-bottom: 30px; }
  .auth-copy { margin: 0; }
  .auth-copy h1 { font-size: 2rem; margin: 15px 0 13px; }
  .auth-copy p { font-size: .875rem; max-width: 100%; }
  .eyebrow { font-size: .6rem; }
  .forest-scene, .auth-foot { display: none; }
  .auth-main { padding: 35px 28px 25px; flex: 1; }
  .auth-card { max-width: 440px; }
  .auth-card h2 { font-size: 1.7rem; }
}
@media (max-width: 430px) {
  .role-grid { grid-template-columns: minmax(0,1fr); padding: 0 16px 16px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .nav-link { font-size: .8rem; gap: 5px; padding: 9px; }
  .sidebar-bottom { right: 7px; }
  .sidebar-bottom .icon { display: none; }
  .today-label { max-width: 150px; text-align: right; }
  .main-content { padding: 23px 13px; }
  .page-heading .section-kicker { font-size: .6rem; letter-spacing: .08em; }
  h1 { font-size: 1.5rem; }
  .page-heading p { font-size: .8rem; max-width: 200px; }
  .heading-actions .primary { min-height: 38px; font-size: .75rem; gap: 4px; padding: 8px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 13px; }
  .stat-card > strong { font-size: 1.5rem; }
  .stat-top { gap: 3px; }
  .stat-top > span:first-child { font-size: .75rem; }
  .stat-icon { width: 25px; height: 25px; }
  .stat-icon .icon { width: 15px; height: 15px; }
  .arrivals-panel .arrival-list { grid-template-columns: 1fr; }
  .finance-summary .stats-grid { padding: 0 15px; }
  .info-note { margin: 15px; }
  dialog { padding: 22px 18px; width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
  .modal-heading h2 { font-size: 1.2rem; }
  .form-columns { gap: 10px; }
  .form-columns input { padding-left: 8px; padding-right: 5px; font-size: .875rem; }
  .payment-section { padding: 15px; }
  .modal-actions { gap: 7px; }
  .modal-actions .button { font-size: .8rem; padding: 9px 11px; }
  .modal-actions .danger { width: 100%; margin-bottom: 5px; }
  .settings-panel { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
