:root {
  color-scheme: light;
  --ink: #202923;
  --muted: #69736e;
  --green: #173c30;
  --gold: #f0b400;
  --line: #dbe2dd;
  --paper: #ffffff;
  --background: #f4f6f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.8; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.2; margin-bottom: 0; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; font-weight: 600; line-height: 1.35; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #24533f; }
.secondary { background: white; border-color: var(--line); }
.secondary:hover { background: #f3f6f4; }
.danger { background: #fff4f3; border-color: #e6c6c2; color: #a0352c; }
.icon-button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 4px; background: transparent; }
.icon-button:hover { background: #edf1ed; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.muted { color: var(--muted); line-height: 1.6; margin-top: 12px; }
.portal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--green); color: white; min-height: 82px; padding: 15px 32px; }
.portal-brand { display: flex; gap: 24px; align-items: center; }
.portal-brand img { width: 180px; height: 42px; object-fit: contain; }
.portal-brand span { border-left: 1px solid #ffffff35; padding-left: 24px; font-size: 13px; color: #d8e5dd; }
.account { display: flex; align-items: center; gap: 7px; min-width: 0; }
.account > span { font-size: 13px; max-width: 220px; overflow-wrap: anywhere; margin-right: 9px; }
.account .icon-button:hover { background: #ffffff18; }
.account form { display: flex; }
.main-nav { display: flex; gap: 25px; padding: 0 32px; border-bottom: 1px solid var(--line); background: white; }
.main-nav a { display: flex; align-items: center; gap: 8px; padding: 17px 0; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); }
.main-nav .selected { color: var(--green); border-bottom-color: var(--gold); }
.workspace { max-width: 1440px; padding: 32px; margin: 0 auto; min-height: calc(100vh - 210px); }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 3px 0 28px; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.month-controls { display: flex; align-items: center; gap: 8px; }
.month-controls h2 { font-size: 19px; margin: 0; min-width: 155px; text-align: center; }
.today-link { padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; margin-left: 8px; background: white; }
.legend { display: flex; gap: 17px; font-size: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #409373; }
.legend .pending::before { background: #e4af35; }
.legend .confirmed::before { background: #755b88; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: white; }
.weekday { color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; padding: 12px 14px; background: #fafbfa; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-day { min-height: 155px; padding: 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.day-number { display: flex; justify-content: flex-end; align-items: center; height: 25px; margin-bottom: 9px; }
.day-number > span { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.day-number small { display: none; }
.is-today .day-number > span { background: var(--green); border-radius: 50%; color: white; }
.outside { background: #f8faf8; color: #aeb7b1; }
.day-slots { display: grid; gap: 6px; }
.slot { display: flex; flex-direction: column; gap: 5px; border-left: 3px solid #a2c6b2; background: #f2f8f4; padding: 7px 8px; min-height: 45px; border-radius: 3px; color: #34634d; }
.slot > span { font-size: 12px; font-weight: 650; }
.slot small { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.slot:hover { filter: brightness(.96); }
.slot.pending { background: #fff7e5; border-left-color: #dba43a; color: #88621d; }
.slot.confirmed { background: #f1edf5; border-left-color: #8d76a1; color: #68527d; }
.schedule { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 16px; }
.schedule span { display: inline-flex; align-items: center; gap: 8px; }
.schedule svg { width: 15px; height: 15px; }
.section { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.booking-list { border-top: 1px solid var(--line); }
.booking-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) 18px; gap: 20px; align-items: center; padding: 18px 12px; border-bottom: 1px solid var(--line); background: white; }
.booking-row:hover { background: #f8faf8; }
.booking-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.booking-row strong { font-size: 13px; font-weight: 600; }
.booking-row span:not(.badge) { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #ecefeb; color: #646e67; }
.badge.pending { background: #fff1cf; color: #88621d; }
.badge.confirmed { background: #ece6f3; color: #68527d; }
.badge.available { background: #e2f2e9; color: #34634d; }
.badge.rejected { background: #fae9e5; color: #a0352c; }
.empty { padding: 32px 0; color: var(--muted); }
.notice { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 15px 18px; border: 1px solid #bcd9c8; border-radius: 4px; background: #eaf5ee; color: #28573e; font-size: 13px; line-height: 1.6; margin-bottom: 24px; overflow-wrap: anywhere; }
.notice.error { background: #fff1ef; border-color: #edccc5; color: #9c3328; }
.notice.warning { background: #fff6e2; border-color: #e8d39a; color: #7a591b; }
.notice form { flex-shrink: 0; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.form-heading { margin-bottom: 26px; }
.booking-form { display: grid; gap: 22px; }
.narrow { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field legend { font-size: 12px; font-weight: 600; }
fieldset.field { padding: 0; border: 0; margin: 0; }
.field legend { margin-bottom: 8px; padding: 0; }
input:not([type=checkbox]):not([type=radio]), textarea, select { width: 100%; min-height: 44px; border: 1px solid #cbd5ce; background: white; border-radius: 4px; color: var(--ink); padding: 10px 12px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; }
.flags { display: flex; gap: 32px; flex-wrap: wrap; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; height: 44px; border: 1px solid #cbd5ce; border-radius: 4px; overflow: hidden; }
.segmented label { position: relative; }
.segmented label + label { border-left: 1px solid #cbd5ce; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: flex; height: 100%; align-items: center; justify-content: center; background: white; font-weight: 600; }
.segmented input:checked + span { background: var(--green); color: white; }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.time-caption { font-size: 12px; color: var(--muted); margin: -10px 0 0; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.booking-form > .button { justify-self: start; }
.record-meta { display: flex; flex-wrap: wrap; gap: 12px 25px; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.record-meta strong { color: var(--ink); }
.request-note { border-left: 3px solid var(--gold); padding: 10px 18px; margin-bottom: 28px; background: white; line-height: 1.6; overflow-wrap: anywhere; }
.request-note p { margin: 6px 0; }
.record-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; background: white; padding: 24px; border-top: 1px solid var(--line); }
.record-details dt { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.record-details dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.history { list-style: none; padding: 0; font-size: 12px; }
.history li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history time { color: var(--muted); flex-shrink: 0; }
.day-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.day-summary > span:not(.badge) { color: var(--muted); }
.filter-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.filter-tabs a { padding: 12px 0; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.filter-tabs .selected { color: var(--green); border-color: var(--green); }
.pagination { display: flex; gap: 12px; margin-top: 20px; }
.user-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 20px 0; }
.user-row > div:first-child { display: flex; flex: 1; min-width: 180px; flex-direction: column; gap: 7px; overflow-wrap: anywhere; }
.user-row span:not(.badge) { font-size: 12px; color: var(--muted); }
.reset-account { width: 100%; font-size: 12px; }
.reset-account form { display: flex; align-items: flex-end; gap: 15px; margin-top: 18px; max-width: 500px; }
.reset-account .field { flex: 1; }
.portal-footer { display: flex; justify-content: space-between; padding: 25px 32px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.login-body { color: white; background: #10281e; }
.login-layout { min-height: 100vh; padding: 32px 64px; background: linear-gradient(90deg, #08271eea, #10231db8 45%, #10231d30), url('../assets/img/ambiente-lounge.jpg') center / cover; display: flex; flex-direction: column; align-items: flex-start; }
.login-brand img { width: 240px; height: 50px; object-fit: contain; }
.login-content { width: 100%; max-width: 390px; margin-top: 75px; margin-bottom: 55px; }
.login-content h1 { font-family: Georgia, serif; font-size: 48px; font-weight: 400; line-height: 1.1; margin-bottom: 30px; }
.login-content .eyebrow { color: var(--gold); }
.login-form { display: grid; gap: 18px; }
.login-form .button { background: var(--gold); color: #202923; width: 100%; margin-top: 6px; }
.login-form .field > span { color: #e5ece7; }
.login-form input { background: #ffffffed; }
.login-help { display: inline-block; font-size: 12px; margin-top: 24px; color: #d0ddd5; text-decoration: underline; text-underline-offset: 4px; }
.login-address { margin-top: auto; font-size: 12px; color: #d0ddd5; }
.installation-content { max-width: 560px; margin: 0 auto; padding: 40px 24px; }
.install-logo { width: 220px; background: var(--green); padding: 18px; margin-bottom: 32px; }
.installation h1 { margin-bottom: 25px; }
@media (max-width: 1000px) {
  .portal-brand span { display: none; }
  .workspace { padding: 26px 20px; }
  .calendar-day { padding: 7px; }
  .slot { padding: 7px 5px; }
  .legend { gap: 10px; }
}
@media (max-width: 700px) {
  h1 { font-size: 24px; }
  .portal-header { padding: 14px 16px; gap: 10px; }
  .portal-brand img { width: 145px; height: 34px; }
  .account > span { display: none; }
  .main-nav { padding: 0 16px; gap: 20px; }
  .main-nav a { font-size: 12px; gap: 6px; }
  .main-nav svg { width: 16px; }
  .workspace { padding: 24px 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .calendar-toolbar { gap: 14px; }
  .month-controls { gap: 4px; }
  .month-controls h2 { min-width: 126px; font-size: 16px; }
  .today-link { margin-left: 4px; padding: 8px 10px; }
  .calendar { grid-template-columns: minmax(0, 1fr); }
  .weekday, .outside { display: none; }
  .calendar-day { min-height: 104px; padding: 12px; }
  .day-number { justify-content: flex-start; gap: 8px; height: 20px; margin-bottom: 10px; }
  .day-number small { display: inline; color: var(--muted); }
  .day-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .slot { padding: 8px 10px; }
  .booking-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 16px 10px; }
  .booking-row > svg { justify-self: end; }
  .form-grid, .record-details { grid-template-columns: minmax(0, 1fr); }
  .form-grid { gap: 20px; }
  .flags { gap: 4px; }
  .notice { align-items: flex-start; flex-direction: column; }
  .history li { flex-direction: column; gap: 6px; }
  .user-row { gap: 14px; }
  .reset-account form { align-items: stretch; flex-direction: column; }
  .filter-tabs { gap: 18px; }
  .portal-footer { padding: 20px 16px; }
  .login-layout { padding: 25px; }
  .login-content { margin-top: 55px; }
  .login-content h1 { font-size: 42px; }
  .login-brand img { width: 210px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .slot { transition: background-color 140ms ease; }
}
