:root {
  --bg: #f5f4f1;
  --surface: #fff;
  --surface-raised: #fff;
  --soft: #f0ede8;
  --subtle: #f8f7f4;
  --ink: #302c27;
  --muted: #80796f;
  --line: #e7e3dc;
  --accent: #76553e;
  --accent-hover: #61432f;
  --accent-soft: #ece3d9;
  --on-accent: #fff;
  --success: #427451;
  --success-bg: #eaf2e8;
  --warning: #9b7437;
  --warning-bg: #f8f0df;
  --danger: #b44f45;
  --danger-bg: #f9eae7;
  --resident: #e6edf2;
  --service: #f5ecd8;
  --guest: #e7efe3;
  --vacant: #f0eeeb;
  --ring: #dac9b8;
  --shadow: 0 8px 30px #3c2f1d08;
  --shadow-lift: 0 14px 40px #3c2f1d13;
  --radius: 16px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #191918;
  --surface: #222220;
  --surface-raised: #2b2926;
  --soft: #302d29;
  --subtle: #272623;
  --ink: #eee9e1;
  --muted: #aaa297;
  --line: #3a3630;
  --accent: #d2b191;
  --accent-hover: #e1c6aa;
  --accent-soft: #3d3128;
  --on-accent: #2c2118;
  --success: #a6c5a4;
  --success-bg: #2c3b2c;
  --warning: #dec18a;
  --warning-bg: #403523;
  --danger: #f0a49a;
  --danger-bg: #422c28;
  --resident: #2f3b45;
  --service: #443927;
  --guest: #303f2e;
  --vacant: #32302c;
  --ring: #64503e;
  --shadow: 0 8px 30px #0000000c;
  --shadow-lift: 0 14px 40px #0000002b;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overscroll-behavior-y: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  color: inherit;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
a {
  color: var(--accent);
}
small,
.text-muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-fields:disabled {
  opacity: 0.65;
  cursor: progress;
}
.form-fields:disabled .button.primary {
  position: relative;
  overflow: hidden;
}
.form-fields:disabled .button.primary:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff30, transparent);
  animation: shimmer 1s linear infinite;
}
.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;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.button svg {
  width: 17px;
  height: 17px;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 3px 7px #5f44281a;
}
.button.light {
  background: #fff7ee;
  color: #694a32;
  border-color: #fff7ee;
}
.button.whatsapp {
  color: #fff;
  background: #28774b;
  border-color: #28774b;
}
.button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button.ghost-danger {
  color: var(--danger);
  border-color: transparent;
  background: transparent;
}
.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 8px;
}
.full-width {
  width: 100%;
}
.button.icon-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  width: 38px;
  min-height: 38px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.spin {
  animation: spin 1s linear infinite;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.back-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 0 12px;
  font-size: 11px;
}
.back-link svg {
  width: 14px;
  height: 14px;
}
.back-link:hover {
  color: var(--accent);
}
.topbar {
  height: 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 25px;
  position: sticky;
  top: 0;
  z-index: 25;
}
.brand {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  width: 151px;
  max-height: 42px;
  object-fit: contain;
  filter: grayscale(1) sepia(0.2);
}
.topbar-context {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  color: var(--muted);
  font-size: 11px;
}
.topbar-context > span:last-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.topbar-context svg {
  width: 15px;
  height: 15px;
}
.context-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
}
.sync-state {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 12px;
}
.sync-state i {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
}
.sync-state i.offline {
  background: var(--warning);
}
.app-shell {
  min-height: calc(100dvh - 72px);
}
.sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  width: 222px;
  padding: 32px 17px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 15;
}
.sidebar-section {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 0 14px;
  margin: 0 0 13px;
}
.sidebar-section.secondary {
  margin-top: 32px;
}
.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin-bottom: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.sidebar-link svg {
  width: 18px;
  height: 18px;
}
.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.sidebar-link > i {
  position: absolute;
  right: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 14px 0;
  border-top: 1px solid var(--line);
  gap: 3px;
}
.condo-avatar {
  padding: 8px;
  background: var(--soft);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 9px;
  display: flex;
}
.sidebar-bottom > b {
  font-size: 12px;
  font-weight: 600;
}
.sidebar-bottom > small {
  font-size: 10px;
}
.sidebar-bottom > span {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  margin-top: 12px;
}
.sidebar-bottom > span svg {
  width: 11px;
  height: 11px;
}
.app-main {
  margin-left: 222px;
  padding: 34px 38px 50px;
  max-width: 1550px;
}
.page-view {
  min-width: 0;
}
.bottom-nav {
  display: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading > div:first-child {
  min-width: 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.eyebrow svg {
  width: 12px;
  height: 12px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 16px;
}
.section-heading .text-muted {
  font-size: 11px;
}
.count-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  margin-left: 5px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  min-width: 0;
}
.panel-heading h2 {
  font-size: 15px;
}
.panel-copy {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 540px;
}
.panel-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 18px;
  color: var(--ink);
}
.notice svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--accent);
}
.notice.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.notice.warning svg {
  color: var(--warning);
}
.notice.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.notice.danger svg {
  color: var(--danger);
}
.dashboard-hero {
  background: #73513a;
  background: linear-gradient(108deg, #5e4330, #88664b);
  color: #fff5e9;
  border-radius: 19px;
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 208px;
  margin-bottom: 20px;
  isolation: isolate;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 75%;
}
.hero-kicker {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #e6cdb2;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.live-dot {
  height: 5px;
  width: 5px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px #ffffff0a;
  animation: live-pulse 2.5s ease-in-out infinite;
}
.hero-copy h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 500;
}
.hero-copy p {
  font-size: 12px;
  color: #ddc9b5;
  margin-top: 9px;
  margin-bottom: 21px;
}
.hero-copy .button {
  min-height: 37px;
  font-size: 11px;
}
.hero-calendar {
  height: 136px;
  width: 123px;
  border: 1px solid #ffffff24;
  border-radius: 13px;
  position: relative;
  z-index: 2;
  background: #ffffff0b;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(6deg);
  margin-right: 22px;
  box-shadow: 0 15px 25px #39251517;
}
.hero-calendar > span {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #e0c9b1;
}
.hero-calendar > b {
  font-size: 47px;
  line-height: 1.2;
  font-weight: 350;
  letter-spacing: -2px;
}
.hero-calendar > small {
  font-size: 11px;
  color: #e6d1bb;
}
.calendar-ring {
  position: absolute;
  top: -7px;
  width: 5px;
  height: 15px;
  border-radius: 4px;
  background: #d9b794;
  box-shadow: 0 0 0 3px #6d503e;
}
.calendar-ring.left {
  left: 27px;
}
.calendar-ring.right {
  right: 27px;
}
.hero-orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  right: -30px;
  top: -40px;
  z-index: 0;
  box-shadow:
    0 0 0 48px #ffffff03,
    0 0 0 96px #ffffff03;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 31px;
}
.metric-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px 18px;
  position: relative;
  box-shadow: var(--shadow);
}
.metric-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 10px;
  color: var(--accent);
}
.metric-icon svg {
  width: 17px;
  height: 17px;
}
.metric-card > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.metric-card span {
  font-size: 11px;
  color: var(--muted);
  padding-top: 1px;
}
.metric-card b {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 550;
  line-height: 1.2;
  margin-top: 8px;
}
.metric-card small {
  font-size: 9px;
  margin-top: 5px;
}
.metric-arrow {
  position: absolute;
  right: 14px;
  top: 17px;
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.reservation-section {
  scroll-margin-top: 93px;
}
.filter-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.filter-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 16px;
  color: var(--muted);
  font-size: 12px;
  min-height: 43px;
}
.filter-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.filter-tabs button > span {
  font-size: 9px;
  border-radius: 4px;
  padding: 1px 4px;
  background: var(--accent-soft);
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin: 18px 0;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  min-height: 43px;
  max-width: 430px;
  width: 100%;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box > svg {
  height: 16px;
  width: 16px;
  color: var(--muted);
}
.search-box input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 10px 0 !important;
  min-width: 0;
  flex: 1;
  width: 100%;
  border-radius: 0;
}
.search-box > button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  flex-shrink: 0;
  padding: 7px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
}
.search-box > button svg {
  width: 15px;
  height: 15px;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}
.sort-control svg {
  width: 14px;
  height: 14px;
}
.sort-control select {
  border: 0;
  background: transparent;
  padding: 9px 3px;
  font-size: 12px;
  min-height: 38px;
  max-width: 160px;
}
.event-feed {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.event-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-width: 0;
  box-shadow: var(--shadow);
}
.event-card.is-today:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.date-tile {
  background: var(--soft);
  border-radius: 10px;
  width: 57px;
  min-width: 57px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  color: var(--muted);
}
.date-tile.today {
  background: var(--accent-soft);
  color: var(--accent);
}
.date-tile > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.date-tile > b {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1px;
}
.date-tile > small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: inherit;
  opacity: 0.8;
}
.event-main {
  display: block;
  min-width: 0;
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.event-topline {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 4px;
}
.apartment-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.apartment-pill svg {
  width: 12px;
  height: 12px;
}
.tiny-live {
  font-size: 9px;
  color: var(--success);
  display: flex;
  gap: 5px;
  align-items: center;
}
.event-main h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}
.event-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  font-size: 10px;
  color: var(--muted);
}
.event-inline-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.event-inline-meta svg {
  width: 12px;
  height: 12px;
}
.event-side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  background: var(--soft);
  white-space: nowrap;
  line-height: 1.4;
}
.badge svg {
  width: 11px;
  height: 11px;
}
.badge.success,
.badge.live {
  color: var(--success);
  background: var(--success-bg);
}
.badge.pending {
  color: var(--warning);
  background: var(--warning-bg);
}
.badge.live .live-dot {
  height: 4px;
  width: 4px;
  margin: 0 2px;
}
.mini-capacity {
  width: 85px;
  color: var(--muted);
  font-size: 9px;
}
.mini-capacity b {
  font-size: 12px;
  color: var(--ink);
}
.mini-capacity > div {
  height: 4px;
  margin-top: 7px;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
}
.mini-capacity i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.event-action {
  min-height: 36px;
  font-size: 11px;
  padding: 8px 12px;
}
.mobile-event-capacity {
  display: none;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination b {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}
.pagination b > span {
  color: var(--muted);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.detail-aside {
  min-width: 0;
}
.detail-main {
  min-width: 0;
}
.event-state-line {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.event-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}
.event-metadata > span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.event-metadata > span > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  margin-top: 3px;
}
.event-metadata > span > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.event-metadata small {
  font-size: 10px;
}
.event-metadata b {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.event-note {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.event-note svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.quiet-line {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 22px;
}
.quiet-line svg {
  width: 13px;
  height: 13px;
  color: var(--success);
}
.share-panel {
  position: relative;
  overflow: hidden;
}
.share-panel > p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 23px;
}
.share-symbol {
  height: 50px;
  width: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  position: relative;
  margin: 4px 0 16px;
}
.share-symbol > svg {
  width: 25px;
  height: 25px;
}
.share-symbol > span {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--success);
  color: white;
  border: 3px solid var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  height: 22px;
  width: 22px;
}
.share-symbol > span > svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
}
.credential-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
  gap: 10px;
  font-size: 11px;
}
.credential-line > span:first-child {
  color: var(--muted);
}
.credential-line b {
  font-size: 11px;
  font-weight: 550;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.secret-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.secret-inline .icon-button {
  width: 28px;
  min-width: 28px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
}
.share-panel > .button {
  width: 100%;
  margin-top: 10px;
  font-size: 11px;
}
.share-panel > .button.whatsapp {
  margin-top: 20px;
}
.event-log {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.event-log > span {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 4px 8px;
  font-size: 10px;
  color: var(--muted);
}
.event-log i {
  height: 5px;
  width: 5px;
  background: var(--muted);
  border-radius: 50%;
  align-self: center;
}
.event-log b {
  grid-column: 2;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}
.internal-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 15px;
}
.capacity-ring {
  position: relative;
  flex-shrink: 0;
}
.capacity-ring > svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.capacity-ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}
.ring-track {
  stroke: var(--line);
}
.ring-value {
  stroke: var(--accent);
}
.capacity-ring > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.capacity-ring b {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
}
.capacity-ring small {
  font-size: 11px;
  margin-top: 8px;
  color: var(--muted);
}
.occupancy-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.occupancy-caption b {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.occupancy-caption > div > span {
  font-size: 11px;
  color: var(--muted);
}
.free-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-size: 11px;
  font-weight: 500;
}
.free-count:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.free-count.full {
  color: var(--muted);
}
.occupancy-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 44px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
}
.seat svg {
  height: 17px;
  width: 17px;
  stroke-width: 1.5;
}
.resident {
  background: var(--resident);
}
.service {
  background: var(--service);
}
.guest {
  background: var(--guest);
}
.vacant {
  background: var(--vacant);
  opacity: 0.68;
}
.occupancy-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
}
.occupancy-legend > span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.occupancy-legend i {
  height: 7px;
  width: 7px;
  border-radius: 2px;
  display: inline-block;
}
.compact .occupancy-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.compact .seat {
  height: 42px;
}
.compact .occupancy-caption b {
  font-size: 20px;
}
.person-list {
  min-width: 0;
}
.person-row {
  display: flex;
  align-items: stretch;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  transition: background 0.16s;
}
.person-row:last-child {
  border-bottom: 0;
}
.person-row.selected {
  background: var(--soft);
  border-radius: 8px;
}
.person-identity {
  width: 34px;
  min-width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 3px;
  margin: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}
.person-identity svg {
  width: 15px;
  height: 15px;
}
.person-identity:has(input:not(:disabled)) {
  cursor: pointer;
}
.person-identity input {
  height: 17px;
  width: 17px;
  margin: 4px 0 0;
  min-height: 0;
}
.person-content {
  min-width: 0;
  flex: 1;
  padding: 1px 0;
}
.person-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.person-name-line > b {
  font-size: 11px;
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.person-document {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.55;
  display: block;
  margin-top: 1px;
}
.arrival-mark {
  display: flex;
  align-items: center;
  color: var(--success);
}
.arrival-mark svg {
  width: 14px;
  height: 14px;
}
.person-action-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.timeline {
  display: flex;
  gap: 4px 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 8px;
  color: var(--muted);
}
.timeline > span {
  white-space: nowrap;
  display: flex;
  gap: 4px;
  align-items: center;
}
.timeline > span:before {
  content: "";
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.65;
}
.person-edit-actions {
  display: flex;
  gap: 1px;
  align-items: flex-start;
}
.person-edit-actions .icon-button {
  width: 29px;
  min-width: 29px;
  min-height: 33px;
  padding: 7px;
}
.person-edit-actions svg {
  height: 14px;
  width: 14px;
}
.person-action-line .button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 10px;
}
.person-action-line .button svg {
  width: 12px;
  height: 12px;
}
.empty {
  text-align: center;
  padding: 34px 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-direction: column;
}
.empty-icon {
  height: 49px;
  width: 49px;
  background: var(--soft);
  border-radius: 15px;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.empty-icon svg {
  width: 23px;
  height: 23px;
}
.empty h3 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 550;
}
.empty p {
  font-size: 11px;
  line-height: 1.6;
  max-width: 280px;
  margin-top: 6px;
}
.empty .button {
  margin-top: 18px;
}
.operation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 20px;
}
.board-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.board-metrics > button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  text-align: left;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.board-metrics > button > svg {
  color: var(--muted);
  width: 21px;
  height: 21px;
}
.board-metrics > button > span {
  display: flex;
  flex-direction: column;
}
.board-metrics b {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.board-metrics small {
  font-size: 10px;
  margin-top: 3px;
}
.board-metrics > button.active {
  border-color: var(--ring);
  background: var(--accent-soft);
}
.board-metrics > button.active > svg {
  color: var(--accent);
}
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.board-aside {
  min-width: 0;
}
.board-guest-panel > .search-box {
  max-width: none;
}
.guest-tabs {
  margin-top: 17px;
}
.guest-tabs button {
  font-size: 11px;
  flex: 1;
  padding: 10px 6px;
}
.select-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 0 5px;
  font-size: 10px;
  color: var(--muted);
}
.select-all label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.select-all input {
  width: 15px;
  height: 15px;
  min-height: 0;
}
.select-all small {
  font-size: 9px;
}
.lock-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.lock-hint svg {
  width: 13px;
  height: 13px;
}
.batch-dock {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 111px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 22;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  border-radius: 15px;
  padding: 11px 12px 11px 20px;
  max-width: calc(100vw - 270px);
}
.batch-dock > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.batch-dock > span > b {
  color: var(--accent);
  font-size: 17px;
  margin-right: 3px;
}
.batch-dock > .button {
  min-height: 39px;
  font-size: 11px;
}
.batch-dock > .icon-button {
  margin-left: -10px;
}
.disclosure {
  padding: 0 !important;
  overflow: hidden;
}
.disclosure-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 17px 19px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 550;
}
.disclosure-trigger > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.disclosure-trigger > span > svg:first-child {
  height: 16px;
  width: 16px;
  color: var(--muted);
}
.disclosure-trigger > span:last-child {
  flex-shrink: 0;
}
.disclosure-trigger small {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.disclosure-chevron {
  height: 14px;
  width: 14px;
  transition: transform 0.2s;
  color: var(--muted);
}
.disclosure.expanded .disclosure-chevron {
  transform: rotate(180deg);
}
.disclosure-body {
  overflow: hidden;
}
.disclosure-body > div {
  padding: 0 19px 19px;
}
.disclosure .event-metadata {
  grid-template-columns: 1fr;
  gap: 16px;
}
.disclosure .event-note {
  font-size: 10px;
}
.event-form-panel .disclosure,
.submit-panel .disclosure {
  box-shadow: none;
}
.offline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 9px 16px;
  font-size: 12px;
}
.offline-banner svg {
  width: 15px;
  height: 15px;
}
.resident-container {
  max-width: 850px;
  margin: 0 auto;
}
.resident-event-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0 25px;
}
.resident-event-hero h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  max-width: 590px;
}
.resident-event-hero > div > p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.resident-date {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 17px;
  margin-top: 10px;
}
.resident-date > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.resident-date svg {
  width: 13px;
  height: 13px;
}
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 6px;
  margin-bottom: 23px;
  gap: 6px;
}
.wizard-progress > button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  padding: 10px 12px;
  min-width: 0;
}
.wizard-progress > button > span {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  flex-shrink: 0;
}
.wizard-progress svg {
  height: 15px;
  width: 15px;
}
.wizard-progress b {
  font-size: 11px;
  font-weight: 500;
  flex: 1;
}
.wizard-progress small {
  font-size: 9px;
  opacity: 0.7;
}
.wizard-progress > button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.wizard-progress > button.active > span {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.wizard-progress > button.complete > span {
  color: var(--success);
  background: var(--success-bg);
  border-color: transparent;
}
.wizard-progress > button:disabled {
  opacity: 0.6;
}
.step-title {
  display: flex;
  gap: 14px;
  margin-bottom: 25px;
  align-items: flex-start;
}
.step-title > span {
  height: 36px;
  width: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-title h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.step-title p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.event-form-panel {
  padding: 28px;
}
.event-form-panel .field > input {
  min-height: 49px;
  font-size: 16px;
}
.residents-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0 12px;
}
.residents-control > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resident-house {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--resident);
  color: var(--muted);
  flex-shrink: 0;
}
.resident-house svg {
  width: 21px;
  height: 21px;
}
.residents-control b {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.residents-control small {
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.number-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  background: var(--subtle);
}
.number-stepper input {
  border: 0;
  background: none;
  padding: 5px 0;
  width: 42px;
  text-align: center;
  font-size: 22px;
  min-height: 37px;
  appearance: textfield;
  font-weight: 500;
}
.number-stepper input::-webkit-inner-spin-button,
.number-stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.number-stepper .icon-button {
  min-width: 32px;
  width: 32px;
  min-height: 34px;
  height: 34px;
  padding: 8px;
}
.remaining-message {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  padding: 9px 0 19px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.remaining-message svg {
  width: 14px;
  height: 14px;
}
.remaining-message b {
  color: var(--accent);
  font-weight: 600;
}
.note-link {
  font-size: 11px;
}
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 24px;
}
.wizard-footer > span {
  font-size: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
}
.wizard-footer > span > svg {
  width: 13px;
  height: 13px;
}
.wizard-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  position: sticky;
  bottom: 20px;
  box-shadow: var(--shadow-lift);
  z-index: 18;
}
.wizard-bottom-bar > span {
  font-size: 10px;
  color: var(--muted);
}
.people-entry-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 19px;
}
.people-entry-options > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px 17px;
  gap: 15px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.people-entry-options > button:only-child {
  grid-column: 1/-1;
  flex-direction: row;
  align-items: center;
  padding: 18px 20px;
}
.entry-symbol {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.entry-symbol svg {
  width: 18px;
  height: 18px;
}
.whatsapp-symbol {
  background: var(--success-bg);
  color: var(--success);
}
.history-symbol {
  background: var(--resident);
  color: var(--muted);
}
.people-entry-options > button > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.people-entry-options b {
  font-size: 12px;
  font-weight: 550;
}
.people-entry-options small {
  font-size: 9px;
  line-height: 1.5;
}
.people-entry-options > button > svg {
  position: absolute;
  right: 14px;
  top: 21px;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.people-entry-options > button:only-child > svg {
  position: static;
  margin-left: auto;
}
.guest-editor-panel > .panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 5px;
}
.capacity-track {
  height: 4px;
  width: 100%;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 13px;
}
.capacity-track > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.editor-search {
  margin: 17px 0;
}
.editor-search > .search-box {
  max-width: none;
}
.guest-editor-panel .empty {
  padding: 30px 15px;
}
.submit-panel {
  border-color: var(--ring);
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
}
.consent-check input {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  min-height: 0;
  flex-shrink: 0;
}
.submit-panel > .text-button {
  font-size: 10px;
  margin: 7px 0 0 28px;
  color: var(--muted);
}
.submit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.send-rules {
  display: grid;
  gap: 12px;
  margin: 17px 0 10px;
}
.send-rules > span {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 3px 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--subtle);
  font-size: 12px;
}
.send-rules svg {
  grid-row: 1/3;
  width: 20px;
  height: 20px;
  align-self: center;
  color: var(--accent);
}
.send-rules small {
  font-size: 11px;
}
.sent-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sent-icon {
  height: 58px;
  width: 58px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 18px;
}
.sent-icon > svg {
  width: 28px;
  height: 28px;
}
.sent-icon.locked {
  color: var(--muted);
  background: var(--soft);
}
.sent-main h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 550;
  margin-top: 7px;
}
.sent-main p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.sent-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.add-mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.add-mode-head > .button {
  padding-left: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px;
  min-width: 0;
}
.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.field-heading > label,
.section-label {
  font-size: 12px;
  font-weight: 550;
}
.field-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.field > input,
.field > select,
.field > textarea {
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--subtle);
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 16px;
  min-height: 45px;
  max-width: 100%;
  min-width: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  min-height: 0;
  padding: 0;
}
input[type="file"] {
  font-size: 12px;
  padding: 11px;
  width: 100%;
}
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--soft);
  color: var(--muted);
  margin-right: 9px;
  font-size: 10px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 15px;
}
.document-fields {
  grid-template-columns: 100px minmax(0, 1fr);
}
.password-field {
  display: block;
  position: relative;
  width: 100%;
}
.password-field input {
  width: 100%;
  padding-right: 48px;
}
.password-field > .icon-button {
  position: absolute;
  right: 4px;
  top: 4px;
}
.field-footnote {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
  margin: 13px 0 20px;
}
.section-label {
  display: block;
  margin-bottom: 10px;
}
.space-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.space-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  cursor: pointer;
}
.space-option > input {
  position: absolute;
  opacity: 0;
  height: 1px;
  width: 1px;
  pointer-events: none;
}
.space-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.space-option > svg {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.space-option > span:nth-of-type(1) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.space-option b {
  font-size: 12px;
  font-weight: 500;
}
.space-option small {
  font-size: 10px;
}
.space-option.selected {
  border-color: var(--ring);
  background: var(--accent-soft);
}
.radio-circle {
  height: 17px;
  width: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.space-option.selected .radio-circle {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.radio-circle svg {
  height: 10px;
  width: 10px;
}
.segmented {
  display: flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--soft);
  gap: 4px;
}
.segmented > button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 7px;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  min-height: 39px;
}
.segmented > button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 5px #0000000a;
  font-weight: 600;
}
.segmented > button > svg {
  width: 15px;
  height: 15px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #1e191360;
  backdrop-filter: blur(6px);
  z-index: 80;
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 40px);
  max-width: 492px;
  max-height: calc(100dvh - 60px);
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 81;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 100px #1c150e40;
  padding: 25px;
  outline: none;
}
.modal.wide {
  max-width: 620px;
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.modal-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.modal-description {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
  max-width: 390px;
}
.close-button {
  margin: -6px -7px 0 0;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.modal-actions > .button {
  min-height: 41px;
}
.person-modal-actions {
  justify-content: space-between;
  gap: 7px;
}
.person-modal-actions > .button {
  padding: 10px 12px;
  font-size: 11px;
}
.confirm-illustration {
  height: 50px;
  width: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  margin: 4px 0 22px;
}
.confirm-illustration > svg {
  width: 24px;
  height: 24px;
}
.confirm-illustration.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.sheet-handle {
  display: none;
}
.import-textarea {
  min-height: 155px;
  font-size: 15px;
  background: var(--subtle);
  line-height: 1.7;
}
.import-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.import-stats > span,
.import-stats > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 5px;
  background: var(--subtle);
  color: var(--muted);
}
.import-stats svg {
  width: 13px;
  height: 13px;
}
.import-stats b {
  color: var(--ink);
  font-size: 13px;
}
.import-stats > button.active {
  color: var(--accent);
  border-color: var(--ring);
  background: var(--accent-soft);
}
.import-preview {
  max-height: 290px;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.import-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 3px;
  border-bottom: 1px solid var(--line);
}
.import-row:last-child {
  border-bottom: 0;
}
.import-row > svg {
  height: 15px;
  width: 15px;
  margin-top: 2px;
}
.import-row.valid > svg {
  color: var(--success);
}
.import-row.invalid > svg {
  color: var(--warning);
}
.import-row > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.import-row b {
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.import-row small {
  font-size: 10px;
  line-height: 1.6;
}
.import-row.invalid small {
  color: var(--warning);
}
.import-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 3px 0;
  font-size: 11px;
  color: var(--muted);
}
.import-hint svg {
  width: 17px;
  height: 17px;
}
.ignored-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  background: var(--warning-bg);
  padding: 14px;
  border-radius: 10px;
  margin-top: 15px;
}
.ignored-lines > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--warning);
}
.ignored-lines b {
  font-weight: 550;
}
.ignored-lines small {
  color: var(--warning);
  font-size: 10px;
  line-height: 1.6;
}
.history-lists .panel {
  margin-bottom: 10px;
  box-shadow: none;
}
.history-person {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.history-person > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.history-person b {
  font-size: 11px;
  font-weight: 500;
}
.history-person small {
  font-size: 10px;
}
.history-lists .button {
  margin-top: 14px;
}
.legal-text {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.settings-tabs > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}
.settings-tabs > button > svg:first-child {
  width: 16px;
  height: 16px;
}
.settings-tabs > button > svg:last-child {
  margin-left: auto;
  width: 13px;
  height: 13px;
}
.settings-tabs > button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 550;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.team-row:last-child {
  border: 0;
}
.team-avatar {
  height: 37px;
  width: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  font-size: 11px;
  color: var(--accent);
}
.team-row > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.team-row b {
  font-size: 12px;
  font-weight: 550;
}
.team-row small {
  font-size: 10px;
}
.switch {
  position: relative;
  background: var(--line);
  border: 0;
  height: 22px;
  width: 37px;
  border-radius: 15px;
  padding: 3px;
  transition: background 0.2s;
}
.switch > span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px #00000014;
  transition: transform 0.2s;
}
.switch.on {
  background: var(--accent);
}
.switch.on > span {
  transform: translateX(15px);
}
.help-container {
  max-width: 920px;
  margin: 0 auto;
}
.help-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0 7px;
}
.help-steps .panel {
  position: relative;
  padding: 22px 18px;
}
.help-steps .panel > svg {
  color: var(--accent);
  height: 26px;
  width: 26px;
  margin: 12px 0 18px;
}
.help-step-number {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.6;
}
.help-steps h2 {
  font-size: 14px;
}
.help-steps p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 7px;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 72px);
}
.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #684b35;
  color: #fff6eb;
  padding: 55px 13%;
  isolation: isolate;
}
.auth-story:before {
  content: "";
  position: absolute;
  right: -170px;
  top: 170px;
  width: 450px;
  height: 450px;
  border: 1px solid #ffffff10;
  border-radius: 50%;
  box-shadow:
    0 0 0 60px #ffffff03,
    0 0 0 120px #ffffff03;
  z-index: -1;
}
.story-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddc8ae;
  font-size: 10px;
  letter-spacing: 3px;
  margin-bottom: 25px;
}
.story-eyebrow svg {
  width: 18px;
  height: 18px;
}
.auth-story h1 {
  font-size: 55px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -2px;
}
.auth-story h1 > span {
  color: #d3b18d;
}
.auth-story > p {
  font-size: 13px;
  color: #dbc6b1;
  margin-top: 16px;
  white-space: nowrap;
}
.story-cards {
  position: relative;
  height: 240px;
  margin-top: 45px;
  max-width: 340px;
  width: 100%;
}
.story-card {
  width: 245px;
  padding: 22px;
  background: #fff7ed;
  border: 1px solid #ffffff66;
  border-radius: 17px;
  color: #624c39;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 30px 60px #2d1c1430;
}
.story-card > svg {
  height: 23px;
  width: 23px;
  margin-bottom: 19px;
}
.story-card > span {
  font-size: 14px;
  font-weight: 550;
}
.story-card > small {
  font-size: 10px;
  color: #93806e;
  margin-top: 4px;
}
.story-avatar-line {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}
.story-avatar-line > span {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ece1d2;
  color: #9c8368;
  border: 2px solid #fff7ed;
}
.story-avatar-line svg {
  height: 12px;
  width: 12px;
}
.story-check {
  position: absolute;
  left: 100px;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fffefb;
  border: 1px solid #fff;
  border-radius: 13px;
  padding: 15px 21px;
  color: #4e6348;
  box-shadow: 0 20px 40px #2a1b1620;
  white-space: nowrap;
}
.story-check > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf2e8;
}
.story-check > div svg {
  height: 18px;
  width: 18px;
}
.story-check > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.story-check b {
  font-size: 12px;
  font-weight: 550;
}
.story-check small {
  font-size: 10px;
  color: #8b9586;
}
.story-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 35px;
  font-size: 10px;
  color: #cfb99f;
}
.story-footer svg {
  width: 14px;
  height: 14px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px;
}
.auth-card {
  width: 100%;
  max-width: 365px;
}
.auth-card h2 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
}
.auth-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
  background: var(--soft);
  margin: 28px 0 24px;
}
.auth-tabs > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  min-height: 39px;
  border: 0;
  background: none;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}
.auth-tabs > button > svg {
  width: 15px;
  height: 15px;
}
.auth-tabs > button.active {
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 2px 5px #00000005;
  font-weight: 600;
}
.auth-card .button.primary {
  min-height: 46px;
}
.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 21px;
}
.auth-footnote svg {
  width: 12px;
  height: 12px;
}
.setup-container {
  max-width: 680px;
  margin: 38px auto;
  padding: 0 22px 40px;
}
.setup-container > h1 {
  font-size: 29px;
}
.setup-container > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 25px;
}
.setup-symbol {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 17px;
}
.setup-container .panel {
  padding: 25px;
}
.setup-container .disclosure {
  margin-top: 6px;
  box-shadow: none;
}
.setup-detail {
  font-size: 10px;
  color: var(--muted);
  line-height: 2.3;
  margin: 20px 0;
}
.setup-detail > svg {
  width: 11px;
  height: 11px;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--success);
}
.loading-shell {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 35px;
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--soft) 25%,
    var(--surface) 50%,
    var(--soft) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease infinite;
  border-radius: 12px;
}
.skeleton.heading {
  height: 40px;
  width: 290px;
  margin-bottom: 30px;
}
.skeleton.hero {
  height: 200px;
  margin-bottom: 20px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.skeleton.metric {
  height: 100px;
}
.skeleton.row {
  height: 100px;
  margin-top: 20px;
}
.boot-screen {
  max-width: 500px;
  margin: 90px auto;
  padding: 25px;
}
.boot-screen > .button {
  margin-top: 15px;
}
section[data-sonner-toaster] {
  font-family: inherit;
}
.evolve-toast {
  border-radius: 12px !important;
  box-shadow: var(--shadow-lift) !important;
  font-size: 12px !important;
}
.evolve-toast [data-icon] > svg {
  width: 18px;
  height: 18px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes live-pulse {
  50% {
    opacity: 0.4;
  }
}
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes skeleton-wave {
  to {
    background-position: -200% 0;
  }
}
@media (hover: hover) {
  .button:not(:disabled):hover {
    border-color: var(--ring);
    background: var(--soft);
  }
  .button.primary:not(:disabled):hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
  .button.light:hover {
    background: #fff;
  }
  .button.whatsapp:hover {
    background: #216d43;
  }
  .button.danger:hover {
    filter: brightness(0.95);
  }
  .button.ghost-danger:hover {
    background: var(--danger-bg);
    color: var(--danger);
  }
  .sidebar-link:hover {
    background: var(--soft);
    color: var(--accent);
  }
  .event-card:hover {
    border-color: var(--ring);
    box-shadow: var(--shadow-lift);
  }
  .event-main:hover h3 {
    color: var(--accent);
  }
  .people-entry-options > button:hover {
    border-color: var(--ring);
    box-shadow: var(--shadow-lift);
  }
  .person-edit-actions .icon-button:hover {
    background: var(--soft);
  }
  .person-edit-actions .icon-button:last-child:hover {
    color: var(--danger);
    background: var(--danger-bg);
  }
}
@media (min-width: 1600px) {
  .app-main {
    padding-left: 54px;
    padding-right: 54px;
  }
  .dashboard-hero {
    min-height: 222px;
  }
  .hero-copy h2 {
    font-size: 31px;
  }
}
@media (max-width: 1250px) {
  .app-main {
    padding: 30px 26px 45px;
  }
  .event-side {
    gap: 11px;
  }
  .mini-capacity {
    display: none;
  }
  .mobile-event-capacity {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 9px;
    margin-top: 5px;
  }
  .mobile-event-capacity svg {
    width: 11px;
    height: 11px;
  }
  .detail-layout,
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 17px;
  }
  .panel {
    padding: 20px;
  }
  .event-card {
    gap: 15px;
    padding: 16px;
  }
  .event-side {
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
  }
  .metric-card {
    padding: 16px 14px;
    gap: 10px;
  }
  .metric-card small {
    font-size: 8px;
  }
  .hero-calendar {
    margin-right: 0;
  }
  .hero-copy h2 {
    font-size: 25px;
  }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .sidebar {
    width: 185px;
    padding: 28px 10px;
  }
  .sidebar-link {
    gap: 9px;
    padding: 11px 12px;
    font-size: 11px;
  }
  .app-main {
    margin-left: 185px;
    padding: 27px 22px 45px;
  }
  .batch-dock {
    left: calc(50% + 92px);
  }
  .detail-layout,
  .board-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-aside,
  .board-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
  }
  .share-panel {
    grid-column: 1/-1;
  }
  .share-panel > .button {
    width: calc(50% - 6px);
    display: inline-flex;
  }
  .share-panel > .button:last-child {
    margin-left: 8px;
  }
  .share-panel .share-symbol {
    display: none;
  }
  .share-panel > p {
    margin-bottom: 15px;
  }
  .board-aside .compact .occupancy-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .hero-copy h2 {
    font-size: 23px;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .hero-calendar {
    height: 119px;
    width: 104px;
  }
  .metric-card > div:nth-child(2) {
    margin-left: 0;
  }
  .metric-icon {
    width: 29px;
    height: 29px;
  }
  .metric-card b {
    font-size: 25px;
  }
  .metric-card > svg {
    display: none;
  }
  .metric-card span {
    font-size: 10px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    flex-direction: row;
  }
  .settings-tabs > button {
    flex: 1;
    justify-content: center;
    padding: 11px 7px;
  }
  .settings-tabs > button > svg:last-child {
    display: none;
  }
  .help-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .topbar {
    height: 63px;
    padding: 0 20px;
    gap: 16px;
  }
  .sidebar {
    display: none;
  }
  .app-main {
    margin: 0;
    padding: 27px 25px calc(116px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .topbar-context {
    gap: 16px;
  }
  .sync-state {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
    gap: 6px;
    box-shadow: 0 -4px 25px #29201404;
  }
  .bottom-nav > button {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    border: 0;
    background: none;
    min-height: 51px;
    padding: 6px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    min-width: 0;
  }
  .bottom-nav > button > svg {
    width: 20px;
    height: 20px;
    z-index: 1;
  }
  .bottom-nav > button > span:last-child {
    z-index: 1;
  }
  .bottom-nav > button.active {
    color: var(--accent);
    font-weight: 600;
  }
  .bottom-active {
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: var(--accent-soft);
    z-index: 0;
  }
  .batch-dock {
    left: 50%;
    bottom: calc(87px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 36px);
  }
  .wizard-bottom-bar {
    bottom: calc(85px + env(safe-area-inset-bottom));
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .help-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resident-container {
    max-width: 790px;
  }
  .auth-shell {
    min-height: calc(100dvh - 63px);
  }
  .auth-story {
    padding: 50px 12%;
  }
  .auth-story h1 {
    font-size: 43px;
  }
  .auth-story > p {
    font-size: 11px;
    white-space: normal;
  }
  .story-cards {
    transform: scale(0.85);
    transform-origin: left center;
    height: 235px;
    width: 310px;
    margin-top: 20px;
  }
  .auth-form-wrap {
    padding: 40px 25px;
  }
  .auth-card h2 {
    font-size: 25px;
  }
  .settings-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .event-main h3 {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 79px;
    scroll-padding-bottom: 105px;
  }
  .topbar {
    height: 60px;
    padding: 0 14px;
    gap: 8px;
  }
  .brand img {
    width: 127px;
    max-height: 35px;
  }
  .topbar-context {
    display: none;
  }
  .topbar-actions {
    margin-left: auto;
    gap: 2px;
  }
  .topbar .icon-button {
    width: 36px;
    min-width: 36px;
    min-height: 40px;
  }
  .account-avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
    margin-left: 3px;
  }
  .topbar .topbar-actions > .icon-button:last-child {
    width: 33px;
    min-width: 33px;
  }
  .app-main {
    padding: 23px 15px calc(110px + env(safe-area-inset-bottom));
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.9px;
  }
  h2 {
    font-size: 16px;
  }
  .page-heading {
    margin-bottom: 21px;
    gap: 13px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.6;
    margin-top: 7px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
  }
  .page-actions {
    padding-top: 0;
    gap: 7px;
  }
  .page-actions .button {
    font-size: 11px;
    min-height: 39px;
    padding: 9px 12px;
  }
  .page-heading:has(.page-actions .button:only-child) .page-actions {
    margin-top: 2px;
  }
  .page-heading:has(.page-actions .button:only-child) > div:first-child {
    max-width: calc(100% - 125px);
  }
  .page-heading:has(.back-link) .page-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .back-link {
    font-size: 10px;
    padding-bottom: 11px;
  }
  .button {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 12px;
    border-radius: 10px;
  }
  .button.small {
    min-height: 34px;
    font-size: 11px;
  }
  .button.icon-button,
  .icon-button {
    min-width: 40px;
    width: 40px;
    min-height: 40px;
    padding: 10px;
  }
  .button.icon-button svg {
    width: 17px;
    height: 17px;
  }
  .dashboard-hero {
    min-height: 185px;
    padding: 23px 21px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
  .hero-copy {
    max-width: 76%;
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 1.25px;
    margin-bottom: 10px;
  }
  .hero-copy h2 {
    font-size: 23px;
    line-height: 1.2;
    max-width: 250px;
    letter-spacing: -0.5px;
  }
  .hero-copy p {
    font-size: 10px;
    line-height: 1.6;
    max-width: 220px;
    margin: 8px 0 17px;
  }
  .hero-copy .button {
    min-height: 35px;
    padding: 9px 11px;
    font-size: 10px;
    gap: 5px;
  }
  .hero-copy .button svg {
    width: 13px;
    height: 13px;
  }
  .hero-copy .button svg:last-child {
    width: 11px;
    height: 11px;
  }
  .hero-calendar {
    position: absolute;
    right: 14px;
    top: 49px;
    width: 73px;
    height: 95px;
    border-radius: 10px;
    transform: rotate(8deg);
    opacity: 0.85;
  }
  .hero-calendar > b {
    font-size: 33px;
  }
  .hero-calendar > span {
    font-size: 7px;
  }
  .hero-calendar > small {
    font-size: 8px;
  }
  .calendar-ring.left {
    left: 16px;
  }
  .calendar-ring.right {
    right: 16px;
  }
  .calendar-ring {
    width: 4px;
    height: 12px;
    top: -6px;
  }
  .hero-orbit {
    right: -200px;
    top: -30px;
  }
  .metric-grid {
    gap: 8px;
    margin-bottom: 25px;
  }
  .metric-card {
    padding: 12px 10px;
    display: block;
    border-radius: 11px;
  }
  .metric-icon {
    height: 25px;
    width: 25px;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .metric-icon svg {
    width: 13px;
    height: 13px;
  }
  .metric-card > div:nth-child(2) {
    display: flex;
    flex-direction: column;
  }
  .metric-card span {
    font-size: 9px;
    line-height: 1.5;
    white-space: normal;
    min-height: 27px;
    display: flex;
    align-items: flex-start;
  }
  .metric-card b {
    font-size: 26px;
    margin-top: 4px;
    line-height: 1.1;
    letter-spacing: -0.6px;
  }
  .metric-card small,
  .metric-arrow {
    display: none;
  }
  .metric-card > svg {
    display: none;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading .text-muted {
    font-size: 10px;
  }
  .filter-tabs button {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 11px;
  }
  .filter-tabs {
    gap: 0;
  }
  .list-toolbar {
    gap: 9px;
    margin: 14px 0;
    flex-wrap: wrap;
  }
  .search-box {
    min-height: 45px;
    max-width: none;
    padding: 0 11px;
  }
  .search-box > svg {
    width: 16px;
    height: 16px;
  }
  .search-box input {
    font-size: 16px !important;
    min-height: 43px;
    padding: 10px 0 !important;
  }
  .sort-control {
    margin-left: auto;
    font-size: 10px;
  }
  .sort-control select {
    font-size: 16px !important;
    max-width: 165px;
    min-height: 32px;
    padding: 4px 0;
  }
  .sort-control svg {
    height: 13px;
    width: 13px;
  }
  .event-feed {
    gap: 10px;
  }
  .event-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 13px;
    border-radius: 13px;
    align-items: start;
  }
  .event-card.is-today:before {
    top: 17px;
    bottom: 17px;
    width: 2px;
  }
  .date-tile {
    width: 48px;
    min-width: 48px;
    height: 69px;
    border-radius: 9px;
    gap: 2px;
  }
  .date-tile > b {
    font-size: 25px;
  }
  .date-tile > span {
    font-size: 8px;
  }
  .date-tile > small {
    font-size: 7px;
  }
  .event-main h3 {
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
  }
  .event-topline {
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
  }
  .apartment-pill {
    font-size: 9px;
  }
  .apartment-pill svg {
    width: 11px;
    height: 11px;
  }
  .tiny-live {
    font-size: 8px;
  }
  .event-inline-meta {
    font-size: 9px;
    gap: 4px 10px;
  }
  .event-inline-meta svg {
    width: 11px;
    height: 11px;
  }
  .mobile-event-capacity {
    display: none;
  }
  .event-side {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
  }
  .event-side .badge {
    font-size: 8px;
    padding: 4px 6px;
    white-space: normal;
  }
  .event-side .badge svg {
    width: 10px;
    height: 10px;
  }
  .event-action {
    min-height: 34px;
    font-size: 10px;
    padding: 8px 10px;
    gap: 5px;
  }
  .event-action svg {
    width: 12px;
    height: 12px;
  }
  .event-main:after {
    content: none;
  }
  .pagination {
    font-size: 10px;
  }
  .pagination > div {
    gap: 5px;
  }
  .pagination .icon-button {
    min-width: 35px;
    width: 35px;
    height: 35px;
    min-height: 35px;
  }
  .panel {
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .panel-heading {
    gap: 9px;
    margin-bottom: 16px;
    align-items: center;
  }
  .panel-heading h2 {
    font-size: 14px;
    line-height: 1.4;
  }
  .panel-heading .button {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 33px;
  }
  .panel-divider {
    margin: 20px 0;
  }
  .detail-layout,
  .board-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .detail-main,
  .detail-aside,
  .board-aside {
    width: 100%;
  }
  .detail-aside .share-panel {
    order: 0;
  }
  .share-panel .share-symbol {
    position: absolute;
    top: 18px;
    right: 19px;
    height: 39px;
    width: 39px;
    border-radius: 11px;
  }
  .share-symbol > svg {
    height: 20px;
    width: 20px;
  }
  .share-panel > p {
    max-width: 230px;
    font-size: 11px;
    margin-bottom: 20px;
  }
  .share-panel > .button {
    width: 100%;
    margin-left: 0 !important;
    min-height: 43px;
  }
  .share-panel > .button.whatsapp {
    margin-top: 18px;
  }
  .event-state-line {
    margin-bottom: 22px;
  }
  .event-metadata {
    gap: 18px 13px;
  }
  .event-metadata > span {
    gap: 8px;
  }
  .event-metadata > span > svg {
    height: 15px;
    width: 15px;
  }
  .event-metadata b {
    font-size: 12px;
  }
  .event-metadata small {
    font-size: 10px;
  }
  .event-note {
    font-size: 11px;
    line-height: 1.65;
  }
  .quiet-line {
    font-size: 9px;
    line-height: 1.6;
    margin-top: 19px;
  }
  .occupancy-caption {
    margin-bottom: 14px;
  }
  .occupancy-caption b {
    font-size: 22px;
  }
  .occupancy-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }
  .seat {
    height: 43px;
    border-radius: 6px;
    font-size: 9px;
    gap: 4px;
  }
  .seat svg {
    width: 17px;
    height: 17px;
  }
  .occupancy-legend {
    font-size: 9px;
    gap: 7px 10px;
    line-height: 1.6;
  }
  .compact .occupancy-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .free-count {
    font-size: 10px;
  }
  .person-row {
    padding: 11px 0;
    gap: 9px;
  }
  .person-identity {
    width: 32px;
    min-width: 32px;
    gap: 4px;
    padding: 5px 3px;
    font-size: 9px;
  }
  .person-identity svg {
    width: 15px;
    height: 15px;
  }
  .person-identity input {
    height: 18px;
    width: 18px;
    margin-top: 4px;
  }
  .person-name-line > b {
    font-size: 11px;
    line-height: 1.5;
  }
  .person-document {
    font-size: 10px;
    margin-top: 1px;
  }
  .timeline {
    font-size: 8px;
    gap: 4px 6px;
    line-height: 1.5;
  }
  .timeline > span {
    gap: 3px;
  }
  .person-edit-actions {
    flex-direction: column;
    gap: 1px;
  }
  .person-edit-actions .icon-button {
    min-width: 34px;
    width: 34px;
    min-height: 34px;
    padding: 8px;
  }
  .person-action-line {
    gap: 6px;
    margin-top: 6px;
  }
  .person-action-line .button {
    min-height: 34px;
    font-size: 10px;
    padding: 7px 9px;
  }
  .person-action-line .button svg {
    width: 13px;
    height: 13px;
  }
  .arrival-mark svg {
    width: 13px;
    height: 13px;
  }
  .empty {
    padding: 29px 12px;
  }
  .empty h3 {
    font-size: 13px;
  }
  .empty p {
    font-size: 11px;
  }
  .empty-icon {
    height: 45px;
    width: 45px;
    border-radius: 14px;
    margin-bottom: 13px;
  }
  .notice {
    font-size: 11px;
    padding: 11px 12px;
    gap: 8px;
    margin-bottom: 15px;
    border-radius: 10px;
  }
  .notice svg {
    width: 15px;
    height: 15px;
  }
  .board-metrics {
    gap: 8px;
    margin-bottom: 18px;
  }
  .board-metrics > button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 12px;
    border-radius: 11px;
  }
  .board-metrics > button > svg {
    width: 17px;
    height: 17px;
  }
  .board-metrics b {
    font-size: 26px;
    line-height: 1.15;
  }
  .board-metrics small {
    font-size: 10px;
    margin-top: 4px;
  }
  .board-layout .board-guest-panel {
    width: 100%;
  }
  .operation-bar {
    padding-bottom: 17px;
  }
  .operation-bar .button {
    min-height: 39px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .guest-tabs {
    margin-top: 14px;
  }
  .guest-tabs > button {
    font-size: 10px;
    min-height: 43px;
    padding: 10px 8px;
  }
  .select-all {
    padding: 13px 0 7px;
    font-size: 10px;
  }
  .select-all input {
    width: 17px;
    height: 17px;
  }
  .select-all small {
    font-size: 9px;
  }
  .disclosure-trigger {
    padding: 16px;
    font-size: 12px;
    min-height: 51px;
  }
  .disclosure-trigger > span {
    gap: 8px;
  }
  .disclosure-trigger > span:first-child > svg {
    width: 15px;
    height: 15px;
  }
  .disclosure-body > div {
    padding: 0 16px 16px;
  }
  .batch-dock {
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
    width: max-content;
    gap: 9px;
    border-radius: 13px;
    padding: 9px 9px 9px 13px;
  }
  .batch-dock > span {
    font-size: 9px;
  }
  .batch-dock > span > b {
    font-size: 15px;
  }
  .batch-dock > .button {
    font-size: 10px;
    min-height: 39px;
    padding: 9px 11px;
  }
  .batch-dock > .icon-button {
    min-width: 29px;
    width: 29px;
    height: 34px;
    min-height: 34px;
    margin-left: -3px;
    padding: 7px;
  }
  .bottom-nav {
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    gap: 3px;
  }
  .bottom-nav > button {
    font-size: 9px;
    min-height: 51px;
    gap: 5px;
  }
  .bottom-nav > button > svg {
    height: 20px;
    width: 20px;
  }
  .bottom-active {
    border-radius: 10px;
  }
  .resident-event-hero {
    gap: 12px;
    padding: 2px 0 23px;
    align-items: center;
  }
  .resident-event-hero h1 {
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.8px;
    max-width: 250px;
  }
  .resident-event-hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
    gap: 4px;
    margin-bottom: 8px;
  }
  .resident-event-hero .eyebrow svg {
    height: 11px;
    width: 11px;
  }
  .resident-event-hero > div > p {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 9px;
  }
  .resident-date {
    gap: 4px 12px;
    margin-top: 9px;
  }
  .resident-date > span {
    font-size: 9px;
    gap: 4px;
  }
  .resident-date svg {
    width: 11px;
    height: 11px;
  }
  .capacity-ring {
    width: 71px !important;
    height: 71px !important;
  }
  .capacity-ring b {
    font-size: 23px;
  }
  .capacity-ring small {
    font-size: 9px;
    margin-top: 7px;
  }
  .capacity-ring circle {
    stroke-width: 4.5;
  }
  .wizard-progress {
    margin-bottom: 18px;
    padding: 5px;
    gap: 4px;
    border-radius: 12px;
  }
  .wizard-progress > button {
    padding: 9px 6px;
    gap: 6px;
    min-height: 44px;
    justify-content: center;
    border-radius: 8px;
  }
  .wizard-progress > button > span {
    height: 24px;
    width: 24px;
    border-radius: 7px;
  }
  .wizard-progress svg {
    height: 13px;
    width: 13px;
  }
  .wizard-progress b {
    font-size: 10px;
    flex: 0;
    white-space: nowrap;
  }
  .wizard-progress small {
    display: none;
  }
  .step-title {
    gap: 11px;
    margin-bottom: 22px;
  }
  .step-title > span {
    height: 31px;
    width: 31px;
    border-radius: 10px;
    font-size: 10px;
  }
  .step-title h2 {
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.35px;
  }
  .step-title p {
    font-size: 10px;
    line-height: 1.65;
    margin-top: 5px;
  }
  .event-form-panel {
    padding: 20px 18px;
  }
  .residents-control {
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 0 9px;
  }
  .residents-control > div:first-child {
    gap: 10px;
  }
  .resident-house {
    height: 34px;
    width: 34px;
    border-radius: 11px;
  }
  .resident-house svg {
    width: 19px;
    height: 19px;
  }
  .residents-control b {
    font-size: 11px;
  }
  .residents-control small {
    font-size: 9px;
    line-height: 1.6;
  }
  .number-stepper {
    gap: 2px;
    padding: 2px;
    margin-left: auto;
  }
  .number-stepper input {
    width: 34px;
    font-size: 19px;
    min-height: 37px;
    padding: 3px 0;
  }
  .number-stepper .icon-button {
    width: 30px;
    min-width: 30px;
    height: 37px;
    min-height: 37px;
    padding: 8px;
  }
  .number-stepper .icon-button svg {
    width: 14px;
    height: 14px;
  }
  .remaining-message {
    font-size: 10px;
    padding: 12px 0 18px;
    line-height: 1.6;
    gap: 5px;
    flex-wrap: wrap;
  }
  .remaining-message svg {
    width: 13px;
    height: 13px;
  }
  .note-link {
    font-size: 10px;
    line-height: 1.5;
  }
  .note-link > svg {
    height: 13px;
    width: 13px;
  }
  .wizard-footer {
    padding-top: 19px;
    margin-top: 21px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .wizard-footer > span {
    font-size: 9px;
  }
  .wizard-footer > .button {
    font-size: 11px;
    min-height: 42px;
    padding: 10px 13px;
    gap: 6px;
  }
  .wizard-footer > .button > svg {
    width: 14px;
    height: 14px;
  }
  .people-entry-options {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .people-entry-options > button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 13px 15px;
    gap: 12px;
    border-radius: 12px;
  }
  .people-entry-options b {
    font-size: 12px;
  }
  .people-entry-options small {
    font-size: 9px;
  }
  .people-entry-options > button > span {
    gap: 3px;
    flex: 1;
  }
  .people-entry-options > button > svg {
    position: static;
    width: 14px;
    height: 14px;
    margin-left: 0;
  }
  .entry-symbol {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .entry-symbol > svg {
    width: 18px;
    height: 18px;
  }
  .people-entry-options > button:only-child {
    padding: 14px 16px;
  }
  .guest-editor-panel .panel-heading {
    margin-bottom: 15px;
  }
  .guest-editor-panel .capacity-track {
    height: 3px;
    margin-bottom: 11px;
  }
  .editor-search {
    margin: 16px 0 10px;
  }
  .wizard-bottom-bar {
    bottom: calc(83px + env(safe-area-inset-bottom));
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
  }
  .wizard-bottom-bar > .button {
    font-size: 11px;
    min-height: 42px;
    padding: 10px 12px;
    gap: 5px;
  }
  .wizard-bottom-bar > .button > svg {
    width: 14px;
    height: 14px;
  }
  .wizard-bottom-bar > span {
    display: none;
  }
  .wizard-bottom-bar > .button:last-child {
    margin-left: auto;
  }
  .submit-panel {
    padding: 18px;
  }
  .consent-check {
    font-size: 11px;
    line-height: 1.75;
    gap: 9px;
  }
  .consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  .submit-panel > .text-button {
    font-size: 9px;
    margin-left: 27px;
    gap: 5px;
  }
  .submit-panel > .text-button svg {
    width: 12px;
    height: 12px;
  }
  .submit-actions {
    gap: 8px;
    margin-top: 16px;
    padding-top: 17px;
    justify-content: space-between;
  }
  .submit-actions .button {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 43px;
    gap: 5px;
  }
  .submit-actions .button svg {
    width: 14px;
    height: 14px;
  }
  .send-rules > span {
    font-size: 11px;
    padding: 11px;
    gap: 2px 6px;
  }
  .send-rules small {
    font-size: 10px;
  }
  .sent-main {
    gap: 13px;
    align-items: flex-start;
  }
  .sent-icon {
    height: 45px;
    width: 45px;
    border-radius: 14px;
  }
  .sent-icon > svg {
    height: 24px;
    width: 24px;
  }
  .sent-main h2 {
    font-size: 19px;
    line-height: 1.3;
    margin-top: 8px;
    letter-spacing: -0.5px;
  }
  .sent-main p {
    font-size: 9px;
    line-height: 1.6;
  }
  .sent-actions {
    margin-top: 21px;
    gap: 8px;
  }
  .sent-actions .button {
    flex: 1;
    font-size: 11px;
    min-height: 42px;
    padding: 10px 12px;
  }
  .field {
    gap: 7px;
    margin-bottom: 18px;
  }
  .field-heading {
    gap: 7px;
  }
  .field-heading > label {
    font-size: 12px;
  }
  .field-hint {
    font-size: 9px;
    line-height: 1.5;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 9px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 0 !important;
  }
  input[type="file"] {
    font-size: 12px !important;
    padding: 10px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .password-field input {
    padding-right: 46px;
  }
  .password-field > .icon-button {
    top: 3px;
    right: 3px;
  }
  .space-option {
    gap: 10px;
    padding: 13px;
  }
  .space-option b {
    font-size: 12px;
  }
  .space-option small {
    font-size: 10px;
  }
  .segmented > button {
    font-size: 12px;
    min-height: 42px;
    padding: 10px;
  }
  .segmented > button > svg {
    width: 15px;
    height: 15px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    width: calc(100vw - 24px);
    border-radius: 18px;
    padding: 21px;
    top: auto;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
  }
  .modal-heading {
    gap: 10px;
    margin-bottom: 20px;
  }
  .modal-title {
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.5px;
  }
  .modal-description {
    font-size: 11px;
    line-height: 1.65;
    margin-top: 6px;
    max-width: 290px;
  }
  .close-button {
    width: 31px;
    min-width: 31px;
    height: 33px;
    min-height: 33px;
    margin: -4px -7px 0 0;
    padding: 7px;
  }
  .close-button > svg {
    height: 17px;
    width: 17px;
  }
  .sheet-handle {
    display: block;
    height: 4px;
    width: 32px;
    background: var(--line);
    border-radius: 3px;
    margin: -8px auto 18px;
  }
  .modal-actions {
    gap: 8px;
    margin-top: 23px;
  }
  .modal-actions .button {
    flex: 1;
    font-size: 11px;
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
  }
  .person-modal-actions {
    gap: 7px;
  }
  .person-modal-actions > .button {
    padding: 10px 9px;
    min-height: 45px;
    font-size: 10px;
    gap: 4px;
  }
  .person-modal-actions > .button svg {
    width: 13px;
    height: 13px;
  }
  .confirm-illustration {
    height: 45px;
    width: 45px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .confirm-illustration svg {
    width: 23px;
    height: 23px;
  }
  .import-textarea {
    min-height: 160px;
    line-height: 1.7;
  }
  .import-stats {
    gap: 7px;
    margin: 14px 0;
  }
  .import-stats > span,
  .import-stats > button {
    gap: 4px;
    font-size: 9px;
    padding: 9px 4px;
  }
  .import-stats svg {
    width: 12px;
    height: 12px;
  }
  .import-stats b {
    font-size: 12px;
  }
  .import-preview {
    max-height: 250px;
  }
  .import-row {
    padding: 10px 0;
    gap: 8px;
  }
  .import-row b {
    font-size: 10px;
  }
  .import-row small {
    font-size: 9px;
    line-height: 1.6;
  }
  .import-hint {
    font-size: 10px;
    line-height: 1.7;
    padding-top: 17px;
    align-items: flex-start;
  }
  .import-hint > svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }
  .ignored-lines {
    padding: 12px;
    gap: 12px;
  }
  .ignored-lines b {
    font-size: 10px;
    line-height: 1.6;
  }
  .ignored-lines small {
    font-size: 9px;
  }
  .history-lists .disclosure-trigger {
    font-size: 11px;
    gap: 6px;
  }
  .history-lists .disclosure-trigger > span:first-child {
    min-width: 0;
    flex: 1;
  }
  .history-lists .disclosure-trigger small {
    font-size: 8px;
  }
  .history-person b {
    font-size: 10px;
    line-height: 1.6;
  }
  .history-person small {
    font-size: 9px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .settings-tabs {
    display: flex;
    flex-direction: row;
    gap: 4px;
    background: var(--soft);
    padding: 4px;
    border-radius: 12px;
  }
  .settings-tabs > button {
    flex: 1;
    justify-content: center;
    padding: 10px 6px;
    gap: 5px;
    font-size: 10px;
    border-radius: 8px;
    min-height: 43px;
    line-height: 1.5;
  }
  .settings-tabs > button.active {
    background: var(--surface);
    box-shadow: 0 1px 4px #00000008;
  }
  .settings-tabs > button > svg:first-child {
    width: 14px;
    height: 14px;
  }
  .settings-tabs > button > svg:last-child {
    display: none;
  }
  .team-row {
    gap: 10px;
  }
  .team-row b {
    font-size: 11px;
  }
  .team-row small {
    font-size: 9px;
  }
  .team-avatar {
    width: 33px;
    height: 33px;
    font-size: 10px;
    border-radius: 10px;
  }
  .help-steps {
    gap: 9px;
    margin-top: 22px;
  }
  .help-steps .panel {
    padding: 17px 15px;
  }
  .help-steps .panel > svg {
    height: 23px;
    width: 23px;
    margin: 11px 0 14px;
  }
  .help-steps h2 {
    font-size: 13px;
  }
  .help-steps p {
    font-size: 10px;
    line-height: 1.8;
  }
  .help-step-number {
    font-size: 9px;
    top: 13px;
    right: 13px;
  }
  .help-container .page-heading p {
    font-size: 11px;
  }
  .auth-shell {
    display: block;
    min-height: calc(100dvh - 60px);
  }
  .auth-story {
    display: none;
  }
  .auth-form-wrap {
    min-height: calc(100dvh - 60px);
    padding: 36px 25px 50px;
    align-items: center;
  }
  .auth-card {
    max-width: 390px;
  }
  .auth-card .eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .auth-card h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .auth-card > p {
    font-size: 12px;
    margin-top: 9px;
  }
  .auth-tabs {
    margin: 26px 0 25px;
    padding: 4px;
    border-radius: 11px;
  }
  .auth-tabs > button {
    min-height: 42px;
    font-size: 12px;
  }
  .auth-card .button.primary {
    min-height: 47px;
  }
  .auth-footnote {
    font-size: 10px;
    margin-top: 22px;
  }
  .setup-container {
    margin: 27px auto;
    padding: 0 17px 40px;
  }
  .setup-container > h1 {
    font-size: 27px;
  }
  .setup-container > p {
    font-size: 11px;
    margin-top: 7px;
    margin-bottom: 22px;
  }
  .setup-container .panel {
    padding: 20px;
  }
  .setup-symbol {
    height: 41px;
    width: 41px;
    border-radius: 13px;
    margin-bottom: 17px;
  }
  .setup-detail {
    font-size: 9px;
    line-height: 2.2;
  }
  .setup-container .form-grid:has(input[name="username"]) {
    grid-template-columns: 1fr;
  }
  .setup-container .form-grid:has(input[type="file"]) {
    grid-template-columns: 1fr;
  }
  .loading-shell {
    padding: 0 20px;
    margin: 35px auto;
  }
  .skeleton.heading {
    height: 32px;
    width: 230px;
    margin-bottom: 25px;
  }
  .skeleton.hero {
    height: 180px;
  }
  .skeleton.metric {
    height: 110px;
  }
  .skeleton-grid {
    gap: 9px;
  }
  .skeleton.row {
    height: 130px;
    margin-top: 15px;
  }
  .legal-text {
    font-size: 12px;
    line-height: 1.9;
  }
  [data-sonner-toaster] {
    bottom: calc(91px + env(safe-area-inset-bottom)) !important;
    right: 14px !important;
    left: 14px !important;
    width: auto !important;
  }
  .evolve-toast {
    font-size: 11px !important;
  }
  .offline-banner {
    font-size: 10px;
    padding: 9px 14px;
  }
}
@media (max-width: 370px) {
  .resident-event-hero h1 {
    font-size: 23px;
  }
  .capacity-ring {
    height: 63px !important;
    width: 63px !important;
  }
  .resident-event-hero {
    gap: 6px;
  }
  .hero-calendar {
    right: 10px;
    width: 62px;
    height: 87px;
    top: 48px;
  }
  .hero-copy {
    max-width: 79%;
  }
  .hero-copy h2 {
    font-size: 21px;
  }
  .hero-copy p {
    max-width: 195px;
  }
  .hero-copy .button {
    font-size: 9px;
  }
  .residents-control {
    gap: 13px;
  }
  .residents-control > .number-stepper {
    margin-left: 0;
  }
  .residents-control > div:first-child {
    flex: 1;
    width: 100%;
  }
  .number-stepper {
    width: 100%;
    justify-content: space-between;
  }
  .number-stepper input {
    width: 64px;
  }
  .metric-card {
    padding: 11px 8px;
  }
  .metric-card span {
    font-size: 8px;
  }
  .metric-card b {
    font-size: 24px;
  }
  .event-side {
    gap: 5px;
  }
  .event-side .badge {
    font-size: 7px;
  }
  .person-action-line .button {
    font-size: 9px;
  }
  .wizard-progress b {
    font-size: 9px;
  }
  .wizard-progress > button {
    gap: 4px;
    padding: 8px 4px;
  }
  .wizard-progress > button > span {
    width: 21px;
    height: 21px;
  }
  .submit-actions {
    flex-wrap: wrap;
  }
  .submit-actions .button {
    flex: 1;
  }
  .modal {
    padding: 19px;
  }
  .person-modal-actions .button {
    font-size: 9px;
    padding: 10px 7px;
  }
  .help-steps {
    grid-template-columns: 1fr;
  }
  .bottom-nav > button {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .topbar,
  .sidebar,
  .bottom-nav,
  .page-actions,
  .operation-bar,
  .batch-dock,
  .button,
  .icon-button,
  [data-sonner-toaster],
  .modal,
  .modal-backdrop {
    display: none !important;
  }
  .app-main {
    margin: 0;
    padding: 0;
  }
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .person-row {
    break-inside: avoid;
  }
  body {
    background: white;
    color: #222;
  }
}

.keyboard-open .bottom-nav,
.keyboard-open .wizard-bottom-bar {
  display: none;
}
@media (max-width: 760px) {
  .keyboard-open [data-sonner-toaster] {
    bottom: 14px !important;
  }
  .keyboard-open .batch-dock {
    display: none;
  }
}
/* Shared event and inventory experience */
.event-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  margin-bottom: 16px;
  min-width: 0;
}
.event-status strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.event-status small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.event-status-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
}
.event-status-orb svg {
  width: 17px;
  height: 17px;
}
.event-status.compact {
  display: inline-flex;
  padding: 6px 10px;
  margin: 0;
  gap: 7px;
  border-radius: 9px;
}
.event-status.compact strong {
  font-size: 12px;
}
.event-status.compact .event-status-orb {
  width: 18px;
  height: 18px;
  background: transparent;
}
.event-status.is-live {
  background: var(--success-bg);
  color: var(--success);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--success) 18%, transparent);
}
.event-status.is-live small {
  color: var(--success);
}
.event-status-orb i {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  animation: eventPulse 2.2s ease-out infinite;
}
.live-equalizer {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  height: 20px;
  padding-left: 12px;
}
.live-equalizer i {
  width: 3px;
  height: 12px;
  background: var(--success);
  border-radius: 5px;
  animation: liveWave 1.2s ease-in-out infinite;
}
.live-equalizer i:nth-child(2) {
  animation-delay: 0.2s;
}
.live-equalizer i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes eventPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 30%, transparent);
  }
  80%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}
@keyframes liveWave {
  50% {
    transform: scaleY(0.4);
  }
}
.inspection-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.inspection-link {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  text-align: left;
  transition:
    background 0.2s,
    transform 0.2s;
  min-width: 0;
}
.inspection-link:hover {
  background: var(--subtle);
  transform: translateY(-2px);
}
.inspection-link > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.inspection-link b {
  font-size: 13px;
  display: block;
}
.inspection-link small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.inspection-link > svg {
  width: 18px;
  flex-shrink: 0;
}
.inspection-link-icon {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  flex-shrink: 0;
}
.inspection-link-icon svg {
  width: 21px;
}
.inspection-link.done .inspection-link-icon {
  background: var(--success-bg);
  color: var(--success);
}
.checklist-container {
  max-width: 960px;
  margin: auto;
}
.checklist-container .page-header {
  margin-bottom: 16px;
}
.inspection-phase-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0;
  background: var(--soft);
  border-radius: 12px;
  padding: 4px;
}
.inspection-phase-tabs button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.inspection-phase-tabs svg {
  width: 17px;
}
.inspection-phase-tabs button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.checklist-progress {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 16px 0;
}
.checklist-progress > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.checklist-progress strong {
  font-size: 15px;
  display: block;
}
.checklist-progress small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.checklist-progress > div > b {
  margin-left: auto;
  font-size: 21px;
  letter-spacing: -1px;
  color: var(--accent);
}
.checklist-track {
  height: 5px;
  background: var(--soft);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.checklist-track span {
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: 8px;
}
.checklist-progress.completed .checklist-track span {
  background: var(--success);
}
.checklist-room-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
}
.checklist-room-tabs button {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  text-align: left;
  font-weight: 650;
}
.checklist-room-tabs button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.checklist-room-tabs small {
  float: right;
  font-size: 12px;
  font-weight: 400;
}
.inspection-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
.inspection-search {
  min-width: 180px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 12px;
  border-radius: 11px;
}
.inspection-search > svg {
  width: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.inspection-search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0;
  width: 100%;
  padding: 11px 0;
  font-size: 16px;
}
.inspection-toolbar .segmented {
  display: flex;
  padding: 4px;
  background: var(--soft);
  border-radius: 10px;
  gap: 3px;
}
.inspection-toolbar .segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 7px;
}
.inspection-toolbar .segmented button.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 650;
}
.segmented small {
  font-size: 10px;
  margin-left: 5px;
  background: var(--soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.checklist-tip {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  padding: 0 3px;
  margin-bottom: 20px;
}
.inventory-group {
  margin: 0 0 20px;
}
.inventory-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 3px;
}
.inventory-group h2 {
  font-size: 14px;
  margin: 0;
}
.inventory-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.inventory-row {
  display: flex;
  gap: 14px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.inventory-row:last-child {
  border-bottom: 0;
}
.item-quantity {
  width: 43px;
  height: 48px;
  border-radius: 10px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.item-quantity b {
  font-size: 18px;
  line-height: 1.1;
}
.item-quantity small {
  font-size: 10px;
  color: var(--muted);
}
.inventory-row.ok .item-quantity {
  background: var(--success-bg);
  color: var(--success);
}
.inventory-row.issue .item-quantity {
  background: var(--warning-bg);
  color: var(--warning);
}
.inventory-content {
  min-width: 0;
  flex: 1;
}
.inventory-content h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 1px 0 3px;
}
.item-original summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
}
.item-original small {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: block;
  padding-top: 5px;
}
.inventory-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.inventory-actions .button {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}
.inventory-actions .button svg {
  width: 14px;
  height: 14px;
}
.inventory-actions .icon-button {
  width: 34px;
  height: 34px;
}
.inventory-actions .checked-button {
  color: var(--success);
  background: var(--success-bg);
  opacity: 1;
}
.inventory-actions .issue-button {
  color: var(--warning);
  background: var(--warning-bg);
}
.item-answer {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.item-answer > span {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.item-answer svg {
  width: 14px;
  height: 16px;
  flex-shrink: 0;
}
.item-answer.ok > span {
  color: var(--success);
}
.item-answer.issue > span {
  color: var(--warning);
}
.item-answer > small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.baseline {
  font-size: 11px;
  color: var(--muted);
  display: block;
  line-height: 1.6;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.baseline.has-issue {
  color: var(--warning);
}
.inspection-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.inspection-photos button {
  position: relative;
  width: 70px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}
.inspection-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inspection-photos svg {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  color: #fff;
  filter: drop-shadow(0 1px 2px #000);
}
.room-observations p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0;
}
.room-observations .room-note {
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inspection-comparison {
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 12px;
}
.inspection-comparison > summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.inspection-comparison > summary svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}
.inspection-comparison > div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.inspection-final {
  margin: 20px 0;
}
.checklist-declaration {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0;
}
.checklist-declaration input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0;
  accent-color: var(--accent);
}
.inspection-final .button {
  width: 100%;
}
.checklist-source {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 22px 0;
}
.inspection-photo-full {
  width: 100%;
  max-height: 60dvh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin-bottom: 16px;
}
.camera-stage {
  position: relative;
  aspect-ratio: 4/3;
  background: #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 16px;
}
.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.camera-stage > span {
  position: absolute;
  font-size: 12px;
}
.camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.camera-actions + .quiet-line {
  font-size: 11px;
  margin-bottom: 0;
}
.caretaker-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  padding: 18px;
  border-radius: 16px;
  margin: 16px 0;
}
.caretaker-intro strong {
  display: block;
  font-size: 16px;
}
.caretaker-intro small {
  color: var(--muted);
  font-size: 12px;
}
.caretaker-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.caretaker-events .panel {
  min-width: 0;
  margin: 0;
}
.caretaker-event-heading {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}
.caretaker-event-heading h2 {
  font-size: 16px;
  margin: 0;
}
.caretaker-event-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.apartment-tile {
  width: 49px;
  min-height: 53px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border-radius: 10px;
  flex-shrink: 0;
}
.apartment-tile svg {
  width: 17px;
}
.caretaker-events .inspection-links {
  grid-template-columns: 1fr;
  gap: 7px;
}
.caretaker-events .inspection-link {
  padding: 10px;
  border-radius: 10px;
}
.caretaker-events .inspection-link-icon {
  height: 32px;
  width: 32px;
}
.caretaker-events .inspection-link b {
  font-size: 12px;
}
.caretaker-events .inspection-link small {
  font-size: 10px;
}
.caretaker-events .panel > .button {
  width: 100%;
}
.checklist-loading {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.checklist-loading svg {
  width: 18px;
  animation: spin 1.5s linear infinite;
}
@media (max-width: 1000px) {
  .caretaker-events {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .resident-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .caretaker-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .inspection-links {
    gap: 8px;
  }
  .inspection-link {
    padding: 12px;
    gap: 8px;
  }
  .inspection-link-icon {
    width: 32px;
    height: 36px;
    border-radius: 9px;
  }
  .inspection-link b {
    font-size: 11px;
  }
  .inspection-link small {
    font-size: 10px;
  }
  .inspection-link > svg {
    width: 14px;
  }
  .inspection-toolbar {
    gap: 10px;
  }
  .inspection-search {
    flex-basis: 100%;
  }
  .inspection-toolbar .segmented {
    width: 100%;
  }
  .inspection-toolbar .segmented button {
    flex: 1;
  }
  .checklist-progress {
    padding: 14px;
  }
  .checklist-progress strong {
    font-size: 13px;
  }
  .checklist-progress small {
    font-size: 11px;
  }
  .checklist-progress > div > b {
    font-size: 18px;
  }
  .checklist-progress .inspection-link-icon {
    display: none;
  }
  .checklist-room-tabs button {
    padding: 11px;
    font-size: 12px;
  }
  .inventory-row {
    padding: 13px 12px;
    gap: 10px;
  }
  .inventory-content h3 {
    font-size: 13px;
  }
  .item-quantity {
    width: 36px;
    height: 43px;
  }
  .item-quantity b {
    font-size: 16px;
  }
  .inventory-group > header .button {
    font-size: 11px;
    padding: 5px 8px;
    min-height: 30px;
  }
  .inventory-group h2 {
    font-size: 13px;
  }
  .event-status {
    padding: 12px 14px;
    gap: 10px;
  }
  .event-status strong {
    font-size: 13px;
  }
  .event-status small {
    font-size: 11px;
  }
  .event-status.compact strong {
    font-size: 11px;
  }
  .event-status.compact {
    padding: 5px 8px;
  }
  .auth-tabs button {
    font-size: 12px;
    gap: 5px;
    padding: 10px 5px;
  }
  .auth-tabs svg {
    width: 16px;
  }
  .camera-actions .button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .camera-stage {
    max-height: 40dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .event-status-orb i,
  .live-equalizer i {
    animation: none;
  }
  .inspection-link {
    transition: none;
  }
}

/* Administrative revisions, keys and unit registry */
.event-status.is-ended {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent);
}
.event-status.is-ended .event-status-orb {
  background: var(--surface);
  color: var(--accent);
}
.ended-seal {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--accent);
  animation: endedReveal 2.8s ease-in-out infinite;
  flex-shrink: 0;
}
.ended-seal svg {
  width: 23px;
  height: 23px;
}
.event-status.compact .ended-seal {
  width: 20px;
  height: 20px;
}
.event-status.compact .ended-seal svg {
  width: 17px;
  height: 17px;
}
@keyframes endedReveal {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.94);
  }
}
.keys-state {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.5;
}
.keys-state svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.keys-state.returned {
  color: var(--success);
}
.keys-state.pending {
  color: var(--warning);
}
.event-status.compact .keys-state {
  font-size: 10px;
  margin-top: 2px;
}
.admin-inline,
.during-event {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent);
  margin-top: 5px;
}
.admin-inline svg,
.during-event svg {
  height: 12px;
  width: 12px;
  flex-shrink: 0;
}
.during-event {
  color: var(--warning);
}
.event-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.event-admin-actions .button {
  font-size: 12px;
}
.admin-history {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
  background: var(--surface);
  padding: 12px 15px;
}
.admin-history > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}
.admin-history summary svg {
  width: 16px;
  height: 16px;
}
.admin-history summary > span {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--soft);
}
.admin-history-row {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.admin-history-row b {
  font-size: 12px;
  display: block;
}
.admin-history-row small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.admin-history-row p {
  font-size: 12px;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.keys-question {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.keys-question legend {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 12px;
}
.keys-question label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 10px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 13px;
}
.keys-question label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.keys-question input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}
.catalog-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border-radius: 12px;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 600;
}
.catalog-mode input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.catalog-mode small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.unit-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.unit-block-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.unit-block-heading > svg {
  width: 19px;
  color: var(--accent);
  flex-shrink: 0;
}
.unit-block-heading > .field {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.unit-block-heading > span {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.unit-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.unit-chips button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--subtle);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.unit-chips button svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.unit-chips button small {
  font-size: 9px;
  color: var(--muted);
}
.unit-chips button.inactive {
  opacity: 0.65;
  background: var(--soft);
  text-decoration: line-through;
}
.unit-add-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin: 10px 0 15px;
}
.unit-add-row > .field {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.unit-add-row .button {
  flex-shrink: 0;
}
.unit-block .field input {
  font-size: 16px;
  min-width: 0;
}
.unit-block .field label {
  font-size: 11px;
}
@media (max-width: 600px) {
  .unit-add-row {
    flex-wrap: wrap;
  }
  .unit-add-row > .field {
    flex-basis: 100%;
  }
  .unit-add-row > .button {
    width: 100%;
  }
  .unit-block {
    padding: 14px 0;
  }
  .event-admin-actions > .button {
    font-size: 11px;
  }
  .admin-history {
    padding: 12px;
  }
  .keys-question label {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ended-seal {
    animation: none;
  }
}

/* One event status, native date fields contained within their grid cells. */
.event-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.event-state-badge svg {
  height: 12px;
  width: 12px;
}
.event-state-badge.live {
  background: var(--success-bg);
  color: var(--success);
}
.event-state-badge.ended {
  background: var(--accent-soft);
  color: var(--accent);
}
.event-state-badge.deleted {
  background: var(--danger-bg);
  color: var(--danger);
}
.event-state-badge.ready {
  background: var(--warning-bg);
  color: var(--warning);
}
.state-panel {
  margin: 16px 0;
}
.state-deleted {
  background: var(--danger-bg);
  color: var(--danger);
}
.state-panel .event-status-body {
  min-width: 0;
}
.state-panel .keys-state {
  overflow-wrap: anywhere;
}
.event-topline {
  flex-wrap: wrap;
}
.event-card .event-topline .event-state-badge {
  margin-left: auto;
}
.form-grid,
.reservation-date-grid,
.reservation-unit-grid,
.availability-fields {
  min-width: 0;
}
.form-grid > * {
  min-width: 0;
}
.reservation-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.reservation-date-grid .reservation-date {
  grid-column: 1/-1;
}
.reservation-date-grid .field,
.reservation-unit-grid .field,
.availability-fields .field {
  min-width: 0;
  margin-bottom: 0;
}
.reservation-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 14px;
  margin-top: 18px;
}
.modal input[type="date"],
.modal input[type="time"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  -webkit-min-logical-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  padding: 11px 9px;
  min-height: 44px;
}
.modal input::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
.modal select {
  min-width: 0;
  max-width: 100%;
}
.field input,
.field select,
.field textarea {
  max-width: 100%;
  min-width: 0;
}
.space-catalog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.space-catalog-row:last-child {
  border: 0;
}
.space-catalog-row > div {
  min-width: 0;
  flex: 1;
}
.space-catalog-row b {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.space-catalog-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.space-resources {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 16px 0;
}
.space-resources legend {
  font-size: 12px;
  font-weight: 600;
}
.space-resources label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 9px 0;
}
.space-resources input,
.day-enabled input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.day-window {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.day-window > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.day-window > summary svg {
  width: 15px;
  color: var(--accent);
}
.day-window > summary span {
  margin-left: auto;
  color: var(--muted);
}
.day-enabled {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 14px 0;
}
.availability-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.availability-fields label {
  font-size: 11px;
}
.day-window[open] {
  padding-bottom: 18px;
}
.unit-editor-list {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.unit-editor-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  min-width: 0;
}
.unit-editor-row > svg {
  height: 16px;
  width: 16px;
  margin-bottom: 13px;
  flex-shrink: 0;
  color: var(--accent);
}
.unit-editor-row > .field {
  flex: 1;
  max-width: 125px;
  min-width: 0;
  margin: 0;
}
.unit-editor-row input {
  min-width: 0;
  width: 100%;
  padding: 9px;
  font-size: 16px;
}
.unit-editor-row .button {
  font-size: 11px;
  padding: 8px;
  min-height: 40px;
  flex-shrink: 0;
}
.unit-editor-row.removed,
.unit-block.removed {
  opacity: 0.7;
}
.catalog-mode > label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.catalog-mode {
  flex-wrap: wrap;
  justify-content: space-between;
}
.catalog-mode .show-removed {
  font-size: 11px;
  font-weight: 400;
}
.unit-block-heading .button {
  font-size: 10px;
  padding: 6px 9px;
  min-height: 34px;
}
.deleted-events {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.deleted-events .panel {
  margin: 0;
}
.deleted-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.deleted-heading h2 {
  font-size: 15px;
  margin: 0;
}
.deleted-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.deleted-events small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.deleted-reason {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.deleted-events .button {
  margin-top: 14px;
}
.log-filters {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.log-filters > select {
  width: auto;
  font-size: 13px;
  min-width: 0;
  max-width: 160px;
}
.access-log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.access-log-row > div {
  min-width: 0;
  flex: 1;
}
.access-log-row b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.access-log-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.access-event {
  font-size: 10px;
  background: var(--soft);
  color: var(--muted);
  padding: 5px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  max-width: 100px;
}
.access-event.success {
  background: var(--success-bg);
  color: var(--success);
}
.access-event.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.access-log-row .access-network {
  text-align: right;
  flex: 0 1 190px;
}
.access-network code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.submission-history {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 15px;
  margin: 14px 0;
}
.submission-history > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}
.submission-history summary svg {
  width: 15px;
  height: 15px;
}
.submission-history summary > span {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--soft);
  border-radius: 5px;
}
.settings-tabs {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .access-log-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .access-log-row .access-network {
    flex-basis: 100%;
    text-align: left;
    padding-left: 0;
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }
  .log-filters {
    flex-wrap: wrap;
  }
  .log-filters > .inspection-search {
    flex-basis: 100%;
  }
  .log-filters > select {
    max-width: 100%;
    width: 100%;
  }
  .space-catalog-row .inspection-link-icon {
    display: none;
  }
  .space-catalog-row .button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .deleted-heading {
    flex-wrap: wrap;
  }
  .event-state-badge {
    font-size: 10px;
    padding: 4px 6px;
  }
  .state-panel small {
    line-height: 1.6;
  }
  .unit-editor-row > .field {
    max-width: none;
  }
  .unit-editor-row > svg {
    display: none;
  }
  .unit-editor-row .field label {
    font-size: 10px;
  }
  .event-admin-actions {
    gap: 7px;
  }
  .event-admin-actions .button {
    max-width: 100%;
  }
}
.state-panel.state-past {
  background: var(--danger-bg);
  color: var(--danger);
}
.state-panel.state-ended .event-status-orb {
  animation: endedReveal 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .state-panel.state-ended .event-status-orb {
    animation: none;
  }
}

/* All dialogs share the actual visible viewport. No second keyboard offset. */
.modal-viewport {
  position: fixed;
  top: var(--visual-top, 0px);
  left: 0;
  width: 100%;
  height: var(--app-height, 100dvh);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 81;
  pointer-events: none;
}
.modal-viewport .modal {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-height: 100%;
  transform: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
}
.modal-viewport .sheet-handle {
  flex-shrink: 0;
}
.modal-viewport .modal-heading {
  padding: 23px 24px 16px;
  margin: 0;
  flex-shrink: 0;
}
.modal-viewport .modal-body {
  padding: 0 24px 24px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 12px;
}
.modal-title:focus {
  outline: none;
}
.schedule-bulk {
  margin: 24px 0 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.schedule-bulk legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 600;
}
.schedule-day-picker {
  display: flex;
  gap: 5px;
  margin: 0 0 14px;
}
.schedule-day-picker button {
  flex: 1;
  min-width: 0;
  padding: 9px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.schedule-day-picker button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.schedule-bulk-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.weekly-schedule-heading,
.weekly-schedule-row {
  display: grid;
  grid-template-columns: minmax(92px, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.weekly-schedule-heading {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 8px;
}
.weekly-schedule-row {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.weekly-day {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.weekly-day input {
  width: 17px;
  height: 17px;
  padding: 0;
  flex-shrink: 0;
}
.weekly-schedule-row > input {
  min-width: 0;
  width: 100%;
  padding: 8px 5px;
}
@media (max-width: 760px) {
  .modal-viewport {
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    align-items: flex-end;
  }
  .keyboard-open .modal-viewport {
    padding: 8px;
  }
  .modal-viewport .modal-heading {
    padding: 16px 18px 12px;
  }
  .modal-viewport .modal-body {
    padding: 0 18px 18px;
  }
  .keyboard-open .modal-viewport .sheet-handle {
    display: none;
  }
  .keyboard-open .modal-title {
    font-size: 18px;
  }
  .keyboard-open .modal-description {
    display: none;
  }
  .weekly-schedule-heading,
  .weekly-schedule-row {
    gap: 7px;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media print {
  .modal-viewport {
    display: none !important;
  }
}

/* Operational palette and touch-first reception / inventory surfaces. */
:root {
  --bg: #f1f3f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --soft: #e9edf1;
  --subtle: #f7f8fa;
  --ink: #202a35;
  --muted: #536170;
  --line: #d4dbe2;
  --accent: #6d4935;
  --accent-hover: #533523;
  --accent-soft: #f0e6de;
  --success: #21603c;
  --success-bg: #e6f3eb;
  --warning: #80530b;
  --warning-bg: #fff2d6;
  --danger: #a72e30;
  --danger-bg: #fdebed;
  --ring: #8b644b;
  --resident: #e4edf7;
  --service: #fff0d2;
  --guest: #e7f2e9;
}
html[data-theme="dark"] {
  --bg: #171d24;
  --surface: #222b35;
  --surface-raised: #2c3743;
  --soft: #303c49;
  --subtle: #27313c;
  --ink: #f0f4f8;
  --muted: #bbc7d4;
  --line: #485563;
  --accent: #e1bc9c;
  --accent-hover: #f4d3b7;
  --accent-soft: #48372c;
  --on-accent: #291c14;
  --success: #a1e1b8;
  --success-bg: #203e30;
  --warning: #f4d28a;
  --warning-bg: #45371d;
  --danger: #ffb6b8;
  --danger-bg: #492a31;
  --resident: #293d52;
  --service: #493c24;
  --guest: #2a4234;
  --ring: #e1bc9c;
}
.button:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.reception-workspace {
  max-width: 1440px;
  margin: auto;
}
.day-event-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  align-items: stretch;
}
.day-event-switcher > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 8px 10px 0;
}
.day-event-switcher > span svg {
  width: 18px;
}
.day-event-switcher > button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 16px;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  min-height: 70px;
}
.day-event-switcher > button small {
  color: var(--muted);
  grid-column: 1;
}
.day-event-switcher .event-state-badge {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.day-event-switcher > button[aria-current] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}
.reception-workspace .board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 20px;
}
.reception-workspace .board-guest-panel {
  padding: 0;
  overflow: visible;
  min-width: 0;
}
.reception-tools {
  position: sticky;
  top: 74px;
  background: var(--surface);
  z-index: 5;
  padding: 18px 20px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 12px #17243508;
}
.reception-tools .panel-heading {
  margin-bottom: 12px;
}
.reception-tools .panel-heading h2 {
  font-size: 17px;
}
.reception-tools .search-box {
  min-height: 52px;
}
.reception-tools .guest-tabs {
  margin: 12px 0;
}
.reception-tools .filter-tabs button {
  min-height: 44px;
}
.reception-result {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}
.reception-workspace .person-list {
  padding: 10px;
}
.reception-workspace .person-row {
  min-height: 100px;
  border-radius: 10px;
  margin: 0 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.reception-workspace .person-row.selected {
  background: var(--accent-soft);
}
.reception-workspace .person-row.arrived {
  background: var(--subtle);
}
.reception-workspace .person-identity {
  width: 56px;
  flex-shrink: 0;
}
.reception-workspace .person-identity input {
  width: 22px;
  height: 22px;
}
.reception-workspace .person-name-line b {
  font-size: 16px;
  line-height: 1.4;
}
.reception-workspace .person-document {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.reception-workspace .person-action-line {
  align-items: center;
  gap: 12px;
}
.reception-workspace .person-action-line > .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  white-space: normal;
  flex-shrink: 0;
}
.reception-workspace .person-action-line > .button:enabled {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.reception-workspace .timeline {
  flex-wrap: wrap;
  gap: 5px 12px;
}
.reception-workspace .timeline span {
  font-size: 11px;
  color: var(--muted);
}
.reception-workspace .timeline b {
  font-weight: 600;
}
.reception-workspace .board-aside {
  position: sticky;
  top: 84px;
  min-width: 0;
}
.reception-workspace .board-aside .inspection-links {
  display: grid;
  grid-template-columns: 1fr;
}
.inventory-instruction {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0;
}
.checklist-container {
  max-width: 1180px;
  margin: auto;
}
.checklist-container .checklist-progress {
  position: sticky;
  top: 74px;
  z-index: 6;
  background: var(--surface);
  box-shadow: 0 4px 14px #17243510;
}
.checklist-container .inspection-toolbar {
  gap: 12px;
}
.checklist-container .inspection-search {
  min-height: 50px;
}
.checklist-container .segmented button {
  min-height: 44px;
  font-size: 14px;
}
.checklist-container .checklist-tip {
  font-size: 13px;
  padding: 12px;
  border-radius: 10px;
  background: var(--soft);
}
.checklist-container .checklist-tip summary {
  cursor: pointer;
  font-weight: 600;
}
.checklist-container .inventory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.checklist-container .inventory-row {
  padding: 18px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  align-items: flex-start;
  min-width: 0;
}
.checklist-container .inventory-row.ok {
  border-color: var(--success);
}
.checklist-container .inventory-row.issue {
  border-color: var(--warning);
  background: var(--warning-bg);
}
.checklist-container .item-quantity {
  width: 66px;
  height: 82px;
  gap: 3px;
  border-radius: 12px;
}
.checklist-container .item-quantity b {
  font-size: 26px;
}
.checklist-container .item-quantity small {
  color: inherit;
  font-size: 11px;
}
.checklist-container .inventory-content h3 {
  font-size: 16px;
  margin: 0 0 7px;
}
.checklist-container .item-original summary,
.checklist-container .item-original small {
  font-size: 12px;
}
.checklist-container .inventory-actions {
  gap: 8px;
  margin-top: 14px;
}
.checklist-container .inventory-actions .button {
  min-height: 46px;
  padding: 10px 13px;
  font-size: 14px;
  flex: 1;
}
.checklist-container .inventory-actions .button svg {
  width: 18px;
  height: 18px;
}
.checklist-container .inventory-actions .icon-button {
  width: 46px;
  height: 46px;
}
.checklist-container .inventory-actions .checked-button {
  opacity: 1;
}
.checklist-container .item-answer {
  font-size: 13px;
}
.checklist-container .item-answer > span {
  overflow-wrap: anywhere;
}
.checklist-container .inventory-group > header {
  margin: 24px 0 12px;
}
.checklist-container .inventory-group h2 {
  font-size: 17px;
}
.checklist-container .inventory-group > header .button {
  min-height: 44px;
}
@media (min-width: 1050px) {
  .reception-workspace .person-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 3px 16px;
    align-items: center;
  }
  .reception-workspace .person-name-line,
  .reception-workspace .person-document,
  .reception-workspace .during-event {
    grid-column: 1;
  }
  .reception-workspace .person-action-line {
    grid-column: 2;
    grid-row: 1/5;
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
@media (max-width: 1100px) {
  .reception-workspace .board-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .reception-workspace .board-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .checklist-container .inventory-list {
    grid-template-columns: 1fr;
  }
  .checklist-container .inventory-row {
    padding: 14px;
    gap: 12px;
  }
  .checklist-container .checklist-progress {
    top: 66px;
  }
  .reception-tools {
    top: 66px;
    padding: 14px 12px 10px;
  }
  .reception-workspace .board-aside {
    display: block;
  }
  .reception-workspace .person-name-line b {
    font-size: 15px;
  }
  .reception-workspace .person-action-line {
    flex-wrap: wrap;
  }
  .day-event-switcher > button {
    width: 100%;
  }
  .reception-workspace .board-metrics {
    gap: 6px;
  }
  .checklist-container .inventory-group > header {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.reception-workspace .page-heading {
  margin: 12px 0 16px;
}
.reception-workspace .page-heading h1 {
  font-size: 25px;
}
.reception-workspace .page-heading p {
  margin-top: 4px;
}
.reception-workspace .back-link {
  margin-bottom: 6px;
}
.reception-workspace .day-event-switcher {
  margin-bottom: 12px;
}
.reception-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.reception-state .event-status {
  flex: 1;
  margin: 0;
  min-width: 0;
  padding: 12px 16px;
}
.reception-state .event-admin-actions {
  margin: 0;
  flex-shrink: 0;
}
.reception-workspace .board-metrics {
  margin: 0 0 14px;
}
.reception-workspace .board-metrics > button {
  min-height: 64px;
  padding: 10px 16px;
}
.reception-workspace .board-metrics b {
  font-size: 24px;
}
.reception-tools .search-box {
  width: 100%;
  max-width: none;
}
@media (max-width: 700px) {
  .reception-state {
    flex-wrap: wrap;
  }
  .reception-state .event-status {
    flex-basis: 100%;
  }
  .reception-workspace .board-metrics > button {
    padding: 8px;
  }
  .reception-workspace .board-metrics small {
    font-size: 12px;
  }
}
.checklist-container .page-heading {
  margin-bottom: 10px;
}
.checklist-container .page-heading h1 {
  font-size: 24px;
}
.checklist-container .page-heading .back-link {
  margin-bottom: 6px;
}
.checklist-container .page-heading p {
  margin-top: 4px;
}
.inspection-event-state {
  margin: 0 0 12px;
}
.checklist-container .event-admin-actions {
  margin: 8px 0 12px;
}
.checklist-container .inspection-phase-tabs {
  margin: 12px 0;
}
.checklist-container .inspection-phase-tabs button {
  min-height: 44px;
}
.checklist-container .checklist-progress {
  padding: 13px 16px;
  margin: 12px 0;
}
.checklist-container .checklist-room-tabs {
  margin: 12px 0;
}
.inventory-category-select {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}
.inventory-category-select select {
  flex: 1;
  min-width: 0;
  min-height: 46px;
}
.checklist-container .inventory-group > header {
  margin-top: 14px;
}
@media (max-width: 700px) {
  .checklist-container .page-heading {
    gap: 8px;
  }
  .checklist-container .page-heading h1 {
    font-size: 21px;
  }
  .checklist-container .page-heading .button {
    min-height: 44px;
    padding: 8px 10px;
  }
  .checklist-container .checklist-progress > div:first-child {
    gap: 8px;
  }
  .checklist-container .checklist-progress small {
    font-size: 12px;
  }
  .checklist-container .inspection-toolbar {
    flex-direction: column;
  }
  .checklist-container .inspection-toolbar .segmented {
    width: 100%;
  }
}
