:root {
  --um-red: #C8102E;
  --um-red-dark: #A00D24;
  --um-blue: #3B75B4;
  --um-navy: #0B2C4A;
  --um-navy-2: #133A5C;
  --um-white: #FFFFFF;
  --um-surface: #F3F5F8;
  --um-surface-2: #EEF2F6;
  --um-muted: #6B7A8C;
  --um-border: #E2E8F0;
  --um-shadow: 0 10px 30px rgba(11, 44, 74, 0.08);
  --um-success: #176B3A;
  --um-success-bg: #E7F7EE;
  --um-danger: #8B1528;
  --um-danger-bg: #FDE8EC;
  --um-warn: #9A6700;
  --um-warn-bg: #FFF4D6;
  --sidebar-w: 220px;
  --radius: 14px;
  --touch-min: 44px;
  --font: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-size: 1rem;
  --font-size-sm: .875rem;
  --space-1: .35rem;
  --space-2: .65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --border: var(--um-border);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--um-navy);
  background: var(--um-surface);
  min-height: 100vh;
}
a { color: var(--um-blue); text-decoration: none; }
img { max-width: 100%; height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 10px; min-height: var(--touch-min);
  padding: .65rem 1.1rem; font-weight: 600; cursor: pointer; font: inherit;
  line-height: 1.2; transition: .15s ease; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--um-red); color: #fff; }
.btn-primary:hover { background: var(--um-red-dark); }
.btn-ghost {
  background: transparent; color: var(--um-navy);
  border: 1px solid var(--um-border); padding: .45rem .85rem;
}
.btn-ghost:hover { background: var(--um-surface); }
.btn-danger { background: var(--um-danger-bg); color: var(--um-danger); border: 1px solid #f0c4cb; }
.btn-block { width: 100%; }
.btn-sm { min-height: 2.25rem; padding: .4rem .75rem; font-size: var(--font-size-sm); }
.btn-icon {
  width: var(--touch-min); height: var(--touch-min); min-height: var(--touch-min);
  padding: 0; border-radius: 10px; border: 1px solid var(--um-border);
  background: #fff; color: var(--um-navy);
}
.btn-icon:hover { background: var(--um-surface); }
.btn-icon .icon-chevron { width: 1.1rem; height: 1.1rem; }

.icon-chevron {
  display: inline-block; width: 1rem; height: 1rem; color: var(--um-muted);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.3 6.3a1 1 0 0 1 1.4 0l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 1 1-1.4-1.4L13.6 12 9.3 7.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.3 6.3a1 1 0 0 1 1.4 0l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 1 1-1.4-1.4L13.6 12 9.3 7.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s ease;
}
.icon-chevron.is-open,
[aria-expanded="true"] .icon-chevron { transform: rotate(90deg); }
.icon-chevron-left { transform: rotate(180deg); }
.icon-chevron-right { transform: none; }

.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: var(--font-size-sm); font-weight: 600; margin-bottom: .4rem; color: var(--um-navy); }
.field .hint { display: block; margin-top: .35rem; font-size: .8rem; color: var(--um-muted); }
.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="search"],
.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%; border: 1px solid var(--um-border); border-radius: 10px;
  min-height: var(--touch-min); padding: .65rem .9rem; font: inherit;
  outline: none; background: #fff; color: var(--um-navy);
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7A8C' d='M7.4 9.3a1 1 0 0 1 1.4 0L12 12.5l3.2-3.2a1 1 0 1 1 1.4 1.4l-3.9 3.9a1 1 0 0 1-1.4 0l-3.9-3.9a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem;
  padding-right: 2.4rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--um-blue);
  box-shadow: 0 0 0 3px rgba(59, 117, 180, .15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.check, .radio {
  display: flex; align-items: center; gap: .55rem;
  min-height: var(--touch-min); font-size: .9rem; color: var(--um-navy);
}
.check input, .radio input { width: 1.15rem; height: 1.15rem; accent-color: var(--um-blue); }
.radio-group { display: grid; gap: .25rem; }

.switch {
  position: relative; display: inline-flex; align-items: center; gap: .65rem;
  min-height: var(--touch-min); cursor: pointer; user-select: none;
}
.switch input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.switch-track {
  width: 2.75rem; height: 1.55rem; border-radius: 999px;
  background: #CBD5E1; position: relative; flex-shrink: 0; transition: .15s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .15s ease;
}
.switch input:checked + .switch-track { background: var(--um-blue); }
.switch input:checked + .switch-track::after { transform: translateX(1.2rem); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(59, 117, 180, .25); }
.switch-label { font-size: .9rem; font-weight: 600; }

.alert {
  border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1rem; font-size: .92rem;
}
.alert-error { background: #FDE8EC; color: #8B1528; }
.alert-success { background: #E7F7EE; color: #176B3A; }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-brand {
  background: linear-gradient(160deg, var(--um-navy) 0%, var(--um-navy-2) 55%, #1A4A70 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem; position: relative; overflow: hidden;
}
.login-brand img { width: min(280px, 70%); position: relative; z-index: 1; }
.login-brand h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 .75rem; position: relative; z-index: 1; }
.login-brand p { margin: 0; opacity: .85; max-width: 28ch; line-height: 1.5; position: relative; z-index: 1; }
.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: #fff;
}
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { margin: 0 0 .35rem; font-size: 1.6rem; }
.login-card .subtitle { color: var(--um-muted); margin: 0 0 1.5rem; }

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--um-navy); color: #fff;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 1rem .65rem 1rem; gap: .2rem;
  overflow-y: auto;
}
.brand-mark {
  align-self: center; width: auto; max-width: 148px; max-height: 44px; height: auto; object-fit: contain;
  margin: 0 0 .85rem;
}
.nav-item {
  display: flex; flex-direction: row; align-items: center; gap: .7rem;
  width: 100%; margin: 0; padding: .65rem .75rem;
  border-radius: 10px; color: rgba(255,255,255,.82);
  text-decoration: none; text-align: left;
  min-height: var(--touch-min, 44px);
}
.nav-item-icon, .nav-item-icon {
  flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center;
}
.nav-item-icon svg, .nav-item-icon svg { width: 20px; height: 20px; fill: currentColor; }
.nav-item-label, .nav-item-label {
  flex: 1 1 auto; min-width: 0;
  font-size: .875rem; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.16); color: #fff;
  box-shadow: inset 3px 0 0 #fff;
}

/* Sidebar module accordion — profundidad + chevron derecha/abajo */
.sidebar .nav-item {
  border-radius: 4px; /* botones cuadrados */
}
.sidebar .nav-module-toggle,
.sidebar .nav-sub-toggle {
  border-radius: 4px;
}

.nav-module { width: 100%; }
.nav-module-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.nav-module-toggle .nav-module-chevron,
.nav-module-toggle .icon-chevron,
.nav-sub-toggle .icon-chevron {
  margin-left: auto;
  flex: 0 0 auto;
  color: rgba(255,255,255,.9);
  width: .7rem;
  height: .7rem;
  opacity: .95;
}

/* Flecha: derecha cerrada → abajo abierta (usa mask global + rotate 90deg) */
.sidebar .icon-chevron {
  transform: rotate(0deg);
}
.sidebar .nav-module.is-open > .nav-module-toggle .icon-chevron,
.sidebar .nav-sub.is-open > .nav-sub-toggle .icon-chevron,
.sidebar [aria-expanded="true"] .icon-chevron {
  transform: rotate(90deg);
}

.nav-module-panel {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: .2rem 0 .35rem;
  padding: .35rem;
  border-radius: 4px;
  background: rgba(255,255,255,.08); /* más claro = profundidad */
}
.nav-module-panel[hidden] { display: none !important; }

.nav-sub { width: 100%; }
.nav-sub-toggle {
  width: 100%;
  display: flex; align-items: center; gap: .5rem;
  min-height: 40px;
  padding: .5rem .65rem;
  border: 0; border-radius: 4px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; text-align: left;
}
.nav-sub-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-sub.is-open > .nav-sub-toggle {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav-sub-label { flex: 1; min-width: 0; }

.nav-sub-panel {
  display: flex; flex-direction: column; gap: .1rem;
  margin: .2rem 0 .15rem;
  padding: .3rem;
  border-radius: 4px;
  background: rgba(255,255,255,.1); /* aún más claro al anidar */
}
.nav-sub-panel[hidden] { display: none !important; }

.nav-link {
  display: flex; align-items: center;
  padding: .5rem .65rem;
  border-radius: 4px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .8rem; font-weight: 500;
  line-height: 1.25;
  min-height: 40px;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.active {
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #fff;
}
.nav-link.depth-2 { padding-left: .85rem; font-size: .78rem; }

.nav-module.is-active > .nav-module-toggle,
.nav-module.is-open > .nav-module-toggle {
  background: rgba(255,255,255,.1);
  color: #fff;
}

@media (max-width: 640px) {
  .nav-module-panel,
  .nav-sub-panel {
    position: absolute;
    left: .5rem; right: .5rem; bottom: calc(100% + .35rem);
    background: #133A5C;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    padding: .5rem;
    box-shadow: var(--um-shadow);
    max-height: 50vh;
    overflow-y: auto;
    z-index: 30;
  }
  .nav-sub-panel { background: #1a4668; }
  .sidebar { position: sticky; }
  .nav-module { position: relative; flex: 0 0 auto; }
  .nav-module-toggle .nav-item-label { max-width: 4.5rem; }
}


.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--um-border);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar h1 { margin: 0; font-size: 1.25rem; }
.user-chip { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.user-chip .meta { text-align: right; }
.user-chip .meta small { display: block; color: var(--um-muted); }
.content { padding: 1.25rem 1.5rem 2rem; }

.home-welcome {
  min-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.home-welcome-title {
  margin: 0 0 .5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--um-navy);
  letter-spacing: -.02em;
}
.home-welcome-date {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--um-muted);
  font-weight: 500;
}

.cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; margin-bottom: 1.25rem;
}
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--um-shadow); padding: 1.1rem 1.2rem;
}
.card .label { color: var(--um-muted); font-size: .85rem; }
.card .value { font-size: 1.7rem; font-weight: 700; margin: .25rem 0; }
.card .delta { font-size: .8rem; color: #1F8A4C; }

.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.panel {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--um-shadow); padding: 1.2rem;
}
.panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.empty { color: var(--um-muted); font-size: .92rem; padding: .25rem 0; }

.module-list { list-style: none; margin: 0; padding: 0; }
.module-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid var(--um-border);
}
.module-list li:last-child { border-bottom: 0; }
.badge {
  font-size: .72rem; font-weight: 700; padding: .2rem .5rem;
  border-radius: 999px; background: #E8F1FA; color: var(--um-blue);
}
.badge-off { background: #F1F3F5; color: var(--um-muted); }
.badge-on { background: #E6F4EE; color: #0d7a4a; }
.layout-status-cell { min-width: 9rem; white-space: nowrap; }
.layout-status-cell .badge { display: inline-block; margin-bottom: .35rem; }
.layout-status-cell .btn { display: block; width: 100%; max-width: 7rem; }

.install-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem;
}
.install-card {
  background: #fff; width: min(520px, 100%);
  border-radius: var(--radius); box-shadow: var(--um-shadow); padding: 2rem;
}
.error-card { text-align: center; }
.error-card h2 { color: var(--um-red); margin-bottom: .75rem; }

.auth-links { margin-top: 1.25rem; text-align: center; font-size: .9rem; }
.auth-links a { color: var(--um-blue); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

.password-checklist {
  list-style: none; margin: 0 0 1.25rem; padding: .75rem .9rem;
  border: 1px solid var(--um-border); border-radius: 10px;
  background: var(--um-surface); display: grid; gap: .45rem;
}
.password-checklist li {
  position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--um-muted);
}
.password-checklist li::before {
  content: ''; position: absolute; left: 0; top: .2rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid #C5CDD6; background: #fff;
}
.password-checklist li.is-ok { color: #1B6B3A; font-weight: 500; }
.password-checklist li.is-ok::before {
  border-color: #2F9E5F; background: #2F9E5F;
  box-shadow: inset 0 0 0 2px #fff;
}
.password-checklist li.is-fail { color: var(--um-muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.otp-input {
  letter-spacing: .45em;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}
.otp-resend { margin-top: .75rem; }

.panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--um-shadow);
  padding: 1.5rem;
}
.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--um-navy); }
.profile-grid { align-items: start; }
.hint { font-size: .85rem; color: var(--um-muted); margin: .5rem 0 1rem; }
.hint-ok { color: #0d7a4a; }
.hint-warn { color: #b45309; }
.btn-active { background: var(--um-primary-soft, rgba(59,117,180,.12)); border-color: var(--um-primary); }
.row-muted { opacity: .65; }
.layout-type-form { padding: .25rem 0; margin-top: .75rem; }
.layout-preview img { display: block; }
.layout-thumb { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border, #ddd); display: block; }
.layout-thumb-empty { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 52px; font-size: .7rem; color: var(--um-muted); background: var(--um-surface-2, #f4f4f4); border-radius: 6px; }
.layout-thumb-cell { width: 90px; }
.space-picker-list li.is-selected { background: var(--um-primary-soft, rgba(59,117,180,.1)); border-radius: 8px; }
.catalog-details summary { cursor: pointer; font-weight: 600; }
.catalog-spaces-grid { align-items: start; }
.catalog-space-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.catalog-space-header h2 { margin: 0 0 .35rem; }
.record-card.is-inactive { opacity: .65; }
.record-card.is-inactive .record-card-title { color: var(--um-muted); }

@media (max-width: 640px) {
  .catalog-space-header { flex-direction: column; align-items: stretch; }
  .catalog-space-header .switch { align-self: flex-start; }
}
.space-group-list li { gap: .75rem; }

.dropdown { position: relative; display: inline-flex; }
.dropdown-menu {
  position: absolute; top: calc(100% + .35rem); left: 0; z-index: 40;
  min-width: 12rem; padding: .35rem;
  background: #fff; border: 1px solid var(--um-border); border-radius: 10px;
  box-shadow: var(--um-shadow);
}
.dropdown-menu[hidden] { display: none !important; }
.dropdown-menu.is-floating {
  position: fixed;
  z-index: 10000;
}
.dropdown-menu a {
  display: block; padding: .65rem .85rem; border-radius: 8px;
  color: var(--um-navy); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--um-surface); }
.btn .icon-chevron { margin-left: .15rem; }

.computing-req-list { display: grid; gap: .5rem; margin-top: .5rem; }
.computing-req-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; min-height: var(--touch-min);
}
.computing-req-row .input-sm,
.computing-req-row input[type="number"] { width: 4.5rem; min-height: 2.25rem; }
.field-group {
  border: 1px solid var(--um-border); border-radius: 10px; padding: 1rem; margin: 1rem 0;
}
.field-group legend { font-weight: 600; color: var(--um-navy); padding: 0 .35rem; }

/* Zonas de contenido (espacios): sin cajas decorativas; separadas por línea */
.content-zone {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 1rem 0;
}
.content-zone + .content-zone {
  border-top: 1px solid var(--um-border);
  margin-top: .5rem;
  padding-top: 1.25rem;
}
.content-zone h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--um-navy);
}
.zones-split {
  display: grid;
  gap: 0;
}
@media (min-width: 900px) {
  .zones-split {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
  .zones-split > .content-zone + .content-zone {
    border-top: 0;
    border-left: 1px solid var(--um-border);
    margin-top: 0;
    padding-top: 1rem;
    padding-left: 2rem;
  }
}

/* Nueva reservación: formulario | disponibilidad */
.reserve-layout {
  display: grid;
  gap: 0;
  margin-top: .5rem;
}
@media (min-width: 960px) {
  .reserve-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 0 2rem;
    align-items: start;
  }
  .reserve-layout > .content-zone + .content-zone {
    border-top: 0;
    border-left: 1px solid var(--um-border);
    margin-top: 0;
    padding-top: 1rem;
    padding-left: 2rem;
  }
}
.optional { font-weight: 400; color: var(--um-muted); font-size: .9em; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-top: 1.25rem;
}

.layout-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: .65rem;
  margin-top: .35rem;
}
.layout-tile {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; margin: 0;
  border: 2px solid var(--um-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: hidden;
  min-height: 44px;
  transition: border-color .15s ease, background .15s ease;
}
.layout-tile:hover { border-color: var(--um-blue); }
.layout-tile.is-selected {
  border-color: var(--um-navy);
  background: #E8EEF5;
}
.layout-tile-media {
  display: block; aspect-ratio: 4 / 3; background: #F1F3F5; overflow: hidden;
}
.layout-tile-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.layout-tile-media.is-placeholder {
  display: grid; place-items: center;
}
.layout-tile-placeholder {
  width: 2.25rem; height: 2.25rem; border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg, #d8dee6, #d8dee6 4px, #e8ecf0 4px, #e8ecf0 8px
  );
  opacity: .85;
}
.layout-tile-meta {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .45rem .5rem .55rem;
}
.layout-tile-name { font-size: .82rem; font-weight: 600; color: var(--um-navy); line-height: 1.25; }
.layout-tile-cap { font-size: .72rem; color: var(--um-muted); }
.layout-tiles-empty { margin: .35rem 0 0; }

.availability-date-label {
  font-size: 1rem; font-weight: 600; color: var(--um-navy); margin: 0 0 .75rem;
}
.availability-panel { display: grid; gap: .5rem; }
.availability-block {
  width: 100%;
  padding: .85rem 1rem;
  border-left: 3px solid var(--um-blue);
  background: rgba(59, 117, 180, .06);
  border-radius: 0 8px 8px 0;
}
.availability-block-title { font-weight: 600; color: var(--um-navy); }
.availability-block-meta { font-size: .85rem; color: var(--um-muted); margin-top: .2rem; }
.availability-free {
  display: flex; align-items: center; gap: .85rem;
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(13, 122, 74, .08);
  border-radius: 10px;
}
.availability-check {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border-radius: 50%;
  background: #0d7a4a;
  color: #fff;
}
.availability-free-label { font-weight: 700; font-size: 1.05rem; color: #0d7a4a; }

.computing-add-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .5rem;
}
.computing-add-row select {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
}
.field .computing-add-row input[type="number"],
.field .computing-cart-qty {
  flex: 0 0 4.5rem;
  width: 4.5rem !important;
  max-width: 4.5rem !important;
  min-width: 4.5rem !important;
  min-height: 44px;
  padding: .5rem .45rem;
  box-sizing: border-box;
}
.computing-add-row .computing-item-add,
.computing-add-row #computing-item-add {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .computing-add-row { flex-wrap: wrap; }
  .computing-add-row select { flex: 1 1 100%; }
  .computing-add-row .computing-item-add,
  .computing-add-row #computing-item-add { flex: 1 1 auto; }
}

.computing-cart { display: grid; gap: .45rem; margin-top: .75rem; }
.computing-cart-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .35rem 0;
  border-bottom: 1px solid var(--um-border);
}
.computing-cart-name {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 500;
  color: var(--um-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.computing-cart-actions {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
}
.computing-cart-remove {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  white-space: nowrap;
  min-height: 44px;
}

.desktop-only { display: none !important; }
.mobile-only { display: block !important; }
@media (min-width: 768px) {
  .desktop-only { display: block !important; }
  .mobile-only { display: none !important; }
}

.upgrade-log {
  list-style: none; padding: 0; margin: 1rem 0;
  background: #F8FAFC; border-radius: 8px; padding: 1rem;
}
.upgrade-log li { padding: .35rem 0; font-size: .9rem; border-bottom: 1px solid #EEF2F6; }
.upgrade-log li:last-child { border-bottom: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field select {
  width: 100%; padding: .65rem .75rem; border: 1px solid #D1D9E0;
  border-radius: 8px; font: inherit; background: #fff;
}
.mail-log {
  margin-top: .75rem; padding: .75rem; background: #1e293b; color: #e2e8f0;
  border-radius: 8px; font-size: .75rem; max-height: 240px; overflow: auto; white-space: pre-wrap;
}
.pwa-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding: .85rem 1rem; margin-bottom: 1.25rem;
  background: #E8F1FA; border-radius: var(--radius); border: 1px solid #C5D9ED;
}
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }

.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
.data-table th, .data-table td {
  padding: .65rem .75rem; border-bottom: 1px solid #EEF2F6; text-align: left;
}
.data-table th { font-weight: 600; color: var(--um-navy); background: #F8FAFC; }
.data-table code { font-size: .8rem; }
.input-sm { width: 5rem; padding: .35rem .5rem; border: 1px solid #D1D9E0; border-radius: 6px; }
.block-muted { display: block; color: var(--um-muted); font-size: .8rem; margin-top: .15rem; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; }
.role-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.role-links .active-tab { background: #E8F1FA; color: var(--um-blue); }
.module-list a { color: var(--um-blue); text-decoration: none; font-weight: 500; }
.module-list a:hover { text-decoration: underline; }
.permissions-table input[type="checkbox"] { width: 1rem; height: 1rem; }

.permissions-categories {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 44rem;
}
.permission-category { margin: 0; }
.permission-category-header h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: var(--um-navy);
}
.permission-category-header .hint { margin: 0 0 .75rem; }
.permission-actions,
.permission-extras {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.permission-extras { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #E5EBF0; }
.permission-actions-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--um-muted);
}
.permission-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
}
.permission-extra-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.permission-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  cursor: pointer;
}
.permission-extra-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.permission-extra-text strong { font-size: .95rem; color: var(--um-navy); }
.placeholder-panel { text-align: left; }
.space-dot {
  display: inline-block; width: .65rem; height: .65rem; border-radius: 50%;
  margin-right: .35rem; vertical-align: middle;
}

.date-with-bar {
  display: inline-flex; align-items: stretch; gap: .55rem;
}
.date-color-bar {
  width: 4px; min-height: 1.1em; border-radius: 2px; flex-shrink: 0;
  align-self: stretch;
}
.date-stack {
  display: flex; flex-direction: column; gap: .1rem; line-height: 1.25;
}
.date-stack-day { font-weight: 600; color: var(--um-navy); }
.date-stack-time {
  font-size: .85rem; color: var(--um-muted, #5a6a7a); white-space: nowrap;
}
.record-card-title .date-color-bar {
  display: inline-block; width: 4px; height: 1.1em; margin-right: .45rem;
  vertical-align: middle; border-radius: 2px;
}

#reservations-table .col-date { width: 7.25rem; max-width: 7.25rem; }
#reservations-table .col-date .date-stack-time { font-size: .8rem; }
#reservations-table .col-space { width: 16%; min-width: 6.5rem; }
#reservations-table .col-event { width: 40%; min-width: 12rem; }
#reservations-table .col-event .link-btn {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
#reservations-table .col-requester { width: 12%; }
#reservations-table .col-status { width: 7rem; }
#reservations-table .col-actions,
#reservations-table .actions-cell {
  width: 2.25rem;
  max-width: 2.5rem;
  padding-left: .25rem;
  padding-right: .25rem;
  text-align: right;
}
#reservations-table .col-actions .btn-icon {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.list-toolbar h2 { margin: 0; flex: 1 1 auto; min-width: 10rem; }
.list-search-field {
  flex: 0 1 18rem;
  margin: 0;
  margin-left: auto;
  max-width: 22rem;
  width: 100%;
}
.list-search-field label.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.pagination {
  display: flex; flex-direction: column; align-items: center;
  gap: .65rem; margin-top: 1.25rem; text-align: center;
}
.pagination-meta { margin: 0; color: var(--um-muted, #5a6a7a); font-size: .9rem; }
.pagination-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem;
}
.pagination-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; min-height: 2.25rem; padding: .35rem .55rem;
  border-radius: 8px; color: var(--um-navy); text-decoration: none; font-weight: 600;
}
.pagination-page:hover { background: var(--um-surface); }
.pagination-page.is-current {
  background: var(--um-blue); color: #fff;
}
.pagination-ellipsis { padding: 0 .25rem; color: var(--um-muted, #5a6a7a); }
.pagination [aria-disabled="true"] { opacity: .45; pointer-events: none; }

.th-sort-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: inherit; text-decoration: none; font: inherit; font-weight: 700;
  white-space: nowrap;
}
.th-sort-link:hover { color: var(--um-blue); }
.th-sort-link.is-active { color: var(--um-blue); }
.th-sort-icon {
  font-size: .75rem; opacity: .55; font-weight: 600;
}
.th-sort-link.is-active .th-sort-icon { opacity: 1; }
.link-btn {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--um-blue); font: inherit; font-weight: 600;
  cursor: pointer; text-align: left;
}
.link-btn:hover { text-decoration: underline; }

.actions-cell { width: 3rem; text-align: right; }
.actions-cell .dropdown { display: inline-flex; justify-content: flex-end; }
.dropdown-menu-end {
  left: auto; right: 0;
}
.dropdown-item {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: .65rem .85rem;
  font: inherit; color: var(--um-navy); cursor: pointer; border-radius: 8px;
}
.dropdown-item:hover { background: var(--um-surface); }
.dropdown-menu form { margin: 0; }

.availability-inline { min-height: 1.25rem; margin: .25rem 0 .75rem; }
.modal-lg { width: min(640px, 100%); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.modal-header h2 { margin: 0; font-size: 1.1rem; color: var(--um-navy); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.field textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid #D1D9E0;
  border-radius: 8px; font: inherit; min-height: 5rem; resize: vertical;
}
.inline-form { display: inline; }
.actions-cell { white-space: nowrap; }
.reg-code {
  font-size: 2rem; font-weight: 700; letter-spacing: .15em; color: var(--um-red);
  margin: 1rem 0;
}
.field-group {
  border: 1px solid #EEF2F6; border-radius: 8px; padding: 1rem; margin: 1rem 0;
}
.field-group legend { font-weight: 600; color: var(--um-navy); padding: 0 .35rem; }
.field-group .check { display: block; margin: .35rem 0; }

.checkin-event-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.checkin-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.checkin-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem;
}
.checkin-stats .card {
  background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--um-shadow); border: 1px solid var(--um-border);
}
.qr-reader {
  min-height: 280px; border-radius: 12px; overflow: hidden;
  background: #0B2C4A; margin-bottom: .75rem;
}
.qr-reader video { border-radius: 12px; }
.checkin-result {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-weight: 600;
}
.checkin-result.success { background: #E7F7EE; color: #176B3A; }
.checkin-result.error { background: #FDE8EC; color: #8B1528; }
.recent-scans { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .85rem; }
.recent-scans li { padding: .35rem 0; border-bottom: 1px solid var(--um-border); }
.recent-scans li.ok { color: #176B3A; }
.recent-scans li.fail { color: #8B1528; }
.qr-display {
  display: inline-block; padding: .75rem; background: #fff;
  border-radius: 12px; border: 1px solid var(--um-border); margin: .5rem 0 1rem;
}
.qr-display img { display: block; }

.project-type-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0;
}
.project-type-card {
  display: block; padding: 1.25rem; border-radius: var(--radius); background: var(--card-color, var(--um-navy));
  color: #fff; text-decoration: none; min-height: 120px;
}
.project-type-card strong { display: block; font-size: 1.05rem; margin-bottom: .5rem; }
.project-type-card span { font-size: .88rem; opacity: .9; line-height: 1.4; }

/* —— SmartPanel UI kit —— */
.toast-host {
  position: fixed; z-index: 9999; right: 1rem; bottom: 1rem;
  display: flex; flex-direction: column; gap: .5rem; max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto; padding: .85rem 1rem; border-radius: 10px;
  background: var(--um-navy); color: #fff; box-shadow: var(--um-shadow);
  font-size: .9rem; line-height: 1.35; animation: toast-in .18s ease;
}
.toast-success { background: #0F5132; }
.toast-error { background: #842029; }
.toast-info { background: var(--um-navy); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(11, 44, 74, .45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  width: min(560px, 100%); max-height: min(90vh, 720px);
  background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: var(--um-shadow); display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--um-border);
}
.modal-header h2, .modal-header h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 1.15rem; overflow: auto; flex: 1; }
.modal-footer {
  display: flex; gap: .65rem; justify-content: flex-end; flex-wrap: wrap;
  padding: 1rem 1.15rem; border-top: 1px solid var(--um-border);
}
@media (min-width: 641px) {
  .modal-backdrop { align-items: center; padding: 1.5rem; }
  .modal { border-radius: 16px; }
}

.record-list { display: grid; gap: .75rem; }
.record-card {
  display: flex; align-items: center; justify-content: space-between; gap: .85rem;
  background: #fff; border: 1px solid var(--um-border); border-radius: var(--radius);
  padding: .9rem 1rem; min-height: var(--touch-min); box-shadow: 0 1px 2px rgba(11,44,74,.04);
  text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit;
}
.record-card:hover { border-color: #c5d4e4; }
.record-card-body { min-width: 0; flex: 1; }
.record-card-title { display: block; font-weight: 700; color: var(--um-navy); }
.record-card-meta { display: block; margin-top: .2rem; font-size: .82rem; color: var(--um-muted); }
.record-card.is-selected {
  border-color: var(--um-blue);
  box-shadow: 0 0 0 3px rgba(59, 117, 180, .15);
}
.record-card .icon-chevron { color: var(--um-muted); }
.space-dot {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  margin-right: .4rem; vertical-align: middle;
}

.desktop-only { display: none !important; }
.mobile-only { display: block !important; }
@media (min-width: 768px) {
  .desktop-only { display: block !important; }
  .desktop-only.table-wrap,
  .table-wrap.desktop-only { display: block !important; }
  .mobile-only { display: none !important; }
}

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--um-shadow); padding: 1.25rem; }
.panel h2 { font-size: 1.1rem; margin: 0 0 1rem; color: var(--um-navy); }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.empty { color: var(--um-muted); padding: 1rem 0; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .content { padding: 1rem 1rem 5.5rem; }
  .topbar { padding: .85rem 1rem; }
  .topbar h1 { font-size: 1.1rem; }
  .btn { font-size: .95rem; }
  .user-chip .meta { display: none; }
  .toast-host { left: 1rem; right: 1rem; bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); max-width: none; }
}

@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { min-height: 220px; padding: 2rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    flex-direction: row; justify-content: flex-start; align-items: stretch;
    padding: .4rem .35rem calc(.4rem + env(safe-area-inset-bottom, 0px));
    gap: .25rem;
    position: sticky; bottom: 0; z-index: 20; order: 2;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-item {
    flex: 0 0 auto; flex-direction: column; gap: .2rem;
    min-width: 4.5rem; max-width: 5.5rem;
    padding: .4rem .35rem; text-align: center;
    box-shadow: none;
  }
  .nav-item.active { box-shadow: inset 0 -3px 0 #fff; }
  .nav-item-label {
    font-size: .65rem; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.15;
  }
  .main { order: 1; }
  .cards { grid-template-columns: 1fr; }
  .brand-mark { display: none; }
}

/* Settings accordion */
.settings-accordion { display: flex; flex-direction: column; gap: .75rem; max-width: 44rem; }
.settings-section {
  background: #fff; border: 1px solid var(--um-border); border-radius: var(--radius);
  box-shadow: var(--um-shadow); overflow: hidden;
}
.settings-section-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%; min-height: var(--touch-min, 44px); padding: .85rem 1rem;
  border: 0; background: transparent; color: var(--um-navy); font: inherit; font-weight: 700;
  font-size: 1rem; text-align: left; cursor: pointer;
}
.settings-section-toggle:hover { background: var(--um-surface); }
.settings-section .icon-chevron { color: var(--um-muted); transition: transform .15s ease; }
.settings-section.is-open > .settings-section-toggle .icon-chevron { transform: rotate(90deg); }
.settings-section-body { padding: 0 1rem 1.15rem; border-top: 1px solid var(--um-border); }
.settings-divider { border: 0; border-top: 1px solid var(--um-border); margin: 1.25rem 0; }
.settings-subheading { margin: 0 0 .5rem; font-size: .95rem; color: var(--um-navy); }
.settings-colors { border: 0; margin: 0 0 1rem; padding: 0; }
.settings-colors legend { font-size: var(--font-size-sm); font-weight: 600; color: var(--um-navy); margin-bottom: .6rem; }
.settings-colors input[type="color"] {
  width: 100%; min-height: 44px; padding: .25rem; border: 1px solid var(--um-border);
  border-radius: 10px; background: #fff; cursor: pointer;
}
.branding-preview {
  margin-top: .65rem; padding: .75rem; border-radius: 10px; background: var(--um-navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.branding-preview img { max-height: 48px; max-width: 220px; object-fit: contain; display: block; }
.branding-preview-sm { background: var(--um-surface); border: 1px solid var(--um-border); }
.branding-preview-sm img { max-height: 32px; max-width: 32px; }
.branding-preview-light { background: #fff; border: 1px solid var(--um-border); }

/* Reservación en serie */
.series-weekdays { border: 0; margin: 0 0 1rem; padding: 0; }
.series-weekdays legend { font-size: var(--font-size-sm); font-weight: 600; color: var(--um-navy); margin-bottom: .5rem; }
.series-weekdays-row { display: flex; flex-wrap: wrap; gap: .5rem .75rem; }
.series-weekday { min-height: var(--touch-min, 44px); padding: .35rem .5rem; }
.series-preview-panel { display: flex; flex-direction: column; gap: .65rem; max-height: 70vh; overflow: auto; }
.series-slot { border: 1px solid var(--um-border); border-radius: 10px; padding: .75rem; background: #fff; }
.series-slot-ok { border-left: 3px solid var(--um-success); }
.series-slot-conflict { border-left: 3px solid var(--um-danger); background: var(--um-danger-bg); }
.series-slot-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.series-slot-date { font-weight: 600; color: var(--um-navy); }
.series-slot-time { font-size: .85rem; color: var(--um-muted); margin: .35rem 0 .5rem; }
.series-slot-conflicts-wrap { display: flex; flex-direction: column; gap: .45rem; margin-top: .35rem; }
.series-slot-conflicts-wrap .availability-block { margin: 0; border-left: 3px solid var(--um-danger); }
.series-slot-conflicts { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: #243447; }
.series-slot-conflicts li { margin: .25rem 0; }
.series-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: .4rem;
  border-radius: 50%;
  background: var(--um-blue, #3B75B4);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}
.link-btn .series-badge,
.record-card-title .series-badge { vertical-align: -0.15em; }

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}
.calendar-toolbar h2 { margin: 0; }
.calendar-space-field { min-width: min(100%, 16rem); margin: 0; }
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}
.calendar-month-label {
  margin: 0;
  font-size: 1.05rem;
  color: var(--um-navy);
  text-align: center;
  flex: 1;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .25rem;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--um-muted);
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .35rem;
}
.calendar-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--um-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  padding: .35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
}
.calendar-cell.is-empty {
  border: 0;
  background: transparent;
  cursor: default;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  padding: 0;
}
.calendar-cell.has-events { border-color: var(--um-blue); background: #E8F1FA; }
.calendar-cell.is-today { box-shadow: inset 0 0 0 2px var(--um-navy); }
.calendar-cell.is-selected { background: var(--um-blue); color: #fff; border-color: var(--um-blue); }
.calendar-cell.is-selected .calendar-dot { background: #fff; }
.calendar-day-num { font-weight: 600; font-size: .95rem; }
.calendar-dot {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--um-blue);
}
.cancel-series-actions { flex-wrap: wrap; }
@media (max-width: 900px) {
  .calendar-layout { grid-template-columns: 1fr; }
}
