:root {
  color-scheme: light;
  --ink: #201d1a;
  --muted: #6e6862;
  --subtle: #746d67;
  --canvas: #f3f0eb;
  --surface: #ffffff;
  --surface-warm: #faf8f4;
  --line: #e4ded6;
  --line-strong: #d5ccc1;
  --brand: #3d1a13;
  --brand-2: #5b2a1e;
  --brand-soft: #f3e8e0;
  --accent: #d58a21;
  --accent-strong: #aa6411;
  --accent-soft: #fff1d8;
  --success: #217a55;
  --success-soft: #e7f5ed;
  --warning: #a55c08;
  --warning-soft: #fff0d5;
  --danger: #b33f3f;
  --danger-soft: #fae8e8;
  --info: #376e8b;
  --info-soft: #e8f2f7;
  --sidebar: 244px;
  --topbar: 72px;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-menu: 0 16px 40px rgba(38, 27, 21, .14);
  --shadow-modal: 0 24px 70px rgba(25, 18, 14, .22);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(213, 138, 33, .22);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.i { display: block; flex: 0 0 auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Authentication */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(460px, .95fr); background: var(--surface); }
.auth-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  min-height: 100vh;
  padding: 64px;
  color: #fff8ee;
  background: var(--brand);
  position: relative;
  overflow: hidden;
}
.auth-visual::before, .auth-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 204, 125, .15);
  border-radius: 50%;
}
.auth-visual::before { width: 520px; height: 520px; top: -210px; right: -210px; }
.auth-visual::after { width: 360px; height: 360px; bottom: -150px; left: -110px; }
.auth-visual img { width: min(260px, 50%); max-height: 300px; object-fit: contain; position: relative; z-index: 1; }
.auth-visual div { position: relative; z-index: 1; text-align: center; }
.auth-visual strong { display: block; font: 700 34px/1.1 Manrope, Inter, sans-serif; letter-spacing: -.04em; }
.auth-visual span { display: block; margin-top: 8px; color: #e5b76c; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.auth-panel { display: grid; place-items: center; align-content: center; gap: 30px; min-height: 100vh; padding: 48px; background: #fbfaf8; }
.auth-card { width: min(420px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px rgba(45, 31, 22, .08); }
.auth-logo { display: none; width: 110px; margin: 0 auto 22px; }
.auth-card h1 { margin: 0 0 8px; font: 700 28px/1.15 Manrope, Inter, sans-serif; letter-spacing: -.035em; }
.auth-card p { margin: 0 0 24px; color: var(--muted); }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 7px; color: #514b46; font-size: 12px; font-weight: 700; }
.auth-form input { height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.auth-form input:focus { border-color: var(--accent-strong); }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 46px; }
.password-toggle { position: absolute; top: 50%; right: 7px; width: 34px; height: 34px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.password-toggle:hover { background: var(--surface-warm); color: var(--ink); }
.auth-link { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--brand-2); font-weight: 700; }
.auth-message { padding: 11px 12px; border: 1px solid #cbe5d7; border-radius: 7px; background: var(--success-soft); color: #175b3f; font-size: 13px; }
.auth-footnote { margin: 0; color: var(--subtle); font-size: 12px; }

/* Application shell */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: #241814;
  color: #e9dfd7;
  border-right: 1px solid #38251e;
}
.brand { height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo { width: 35px; height: 35px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand strong { display: block; color: #fff; font-size: 14px; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 2px; color: #c4b3aa; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 18px 12px; overflow-y: auto; }
.nav-section { margin: 17px 10px 5px; color: #ae9b91; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.nav-section:first-of-type { margin-top: 16px; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cfc0b8;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: #3a2821; color: #fff4df; }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 20px; background: var(--accent); border-radius: 0 2px 2px 0; }
.nav-item.active .i { color: #efa93e; }
.nav-item small { margin-left: auto; color: #b6a49a; font-size: 11px; font-weight: 500; }
.version { padding: 15px 20px; border-top: 1px solid rgba(255,255,255,.07); color: #8e7c73; font-size: 10px; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}
.condo-switcher, .profile, .language, .icon-btn {
  border: 0;
  background: transparent;
}
.condo-switcher { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 8px; border-radius: 8px; font-weight: 700; color: #433e3a; }
.condo-switcher:hover, .profile:hover, .language:hover, .icon-btn:hover { background: var(--surface-warm); }
.mini-logo { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 800; }
.topbar-actions { height: 100%; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #5f5954; }
.badge-wrap i { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 10px; background: #d74834; color: #fff; font-style: normal; font-size: 9px; font-weight: 800; }
.language { min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 8px; color: #5f5954; font-size: 12px; font-weight: 700; }
.profile { min-width: 190px; height: 52px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-left: 8px; padding: 6px 8px 6px 10px; border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; text-align: left; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #eee9e2; color: var(--brand); font-size: 12px; font-weight: 800; }
.profile strong { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #443f3b; font-size: 13px; }
.profile small { display: block; margin-top: 1px; color: var(--subtle); font-size: 11px; }
[aria-expanded="true"] > [data-icon="chevronDown"] .i, [aria-expanded="true"] > .i:last-child { transform: rotate(180deg); }
[data-icon="chevronDown"] .i, .profile > .i:last-child { transition: transform .18s ease; }
.mobile-only { display: none; }

main { min-height: calc(100vh - var(--topbar)); padding: 30px clamp(24px, 3vw, 44px) 52px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.page-head h1 { margin: 0; font: 700 28px/1.15 Manrope, Inter, sans-serif; letter-spacing: -.035em; color: #292521; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.head-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.light { border-color: var(--line-strong); background: var(--surface); color: #443e39; }
.btn.light:hover { border-color: #bbaea2; background: var(--surface-warm); }
.btn.text { border-color: transparent; background: transparent; color: var(--brand); }
.btn.text:hover { background: var(--brand-soft); }
.btn.quick { min-height: 88px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px; border-color: var(--line); background: var(--surface-warm); color: var(--ink); }
.btn.quick:hover { border-color: #c9b8aa; background: #fff; }
.btn.small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.btn.dark { border-color: #514b46; background: #514b46; }

/* Dashboard */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 116px; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.stat-card:hover { border-color: #cbbfb4; background: #fffdfa; }
.stat-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 12px; color: #2b2723; font: 700 30px/1 Manrope, Inter, sans-serif; letter-spacing: -.03em; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.panel h2, .calendar-title h2 { margin: 0; font: 700 16px/1.25 Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-title button, .calendar-title button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.panel-title button:hover, .calendar-title button:hover { background: var(--surface-warm); color: var(--ink); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 8px 1fr; gap: 13px; padding: 13px 3px; border-top: 1px solid #eee9e4; }
.activity li:first-child { border-top: 0; }
.activity-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.activity b { display: block; font-size: 12px; font-weight: 650; }
.activity small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }

/* Filters and data tables */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); }
.search-box { min-width: 260px; min-height: 42px; display: flex; flex: 1 1 340px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--subtle); }
.search-box:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(213,138,33,.12); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder, input::placeholder, textarea::placeholder { color: #9c958e; }
.field { height: 42px; padding: 0 35px 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: #4d4742; }
.field.compact { min-width: 150px; }
.field.area-select { min-width: 260px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: #eeeae5; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.segmented button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(40,31,25,.09); }
.status-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.status-legend span { padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: 800; }
.status-legend .success { color: var(--success); background: var(--success-soft); }
.status-legend .warning { color: var(--warning); background: var(--warning-soft); }
.status-legend .info { color: var(--info); background: var(--info-soft); }
.status-legend .danger { color: var(--danger); background: var(--danger-soft); }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; }
th { padding: 12px 14px; border-bottom: 1px solid #d9dfe7; background: #eceff3; color: #4f5a69; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #eeeae5; color: #4b4540; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaf7; }
td b { color: #302c28; font-weight: 650; }
td small { display: block; margin-top: 3px; color: var(--subtle); font-size: 11px; }
.row-avatar, .media-cell, .thumb-placeholder { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #eceff3; color: #667183; font-size: 11px; font-weight: 800; }
.thumb-placeholder.with-photo { background: var(--brand-soft); color: var(--brand); }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-actions button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: #514b46; font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-actions button:hover { border-color: #b9aca1; background: var(--surface-warm); }
.tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tag.success { color: var(--success); background: var(--success-soft); }
.tag.warning { color: var(--warning); background: var(--warning-soft); }
.tag.danger { color: var(--danger); background: var(--danger-soft); }
.tag.info { color: var(--info); background: var(--info-soft); }
.code-copy { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-warm); color: var(--brand); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pager { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 14px; border-top: 1px solid var(--line); }
.pager button { min-width: 32px; height: 32px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.pager button:hover { background: var(--surface-warm); }
.pager button.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
.bulk-actions { display: none; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e4c88e; border-radius: var(--radius-sm); background: #fff8e8; }
.bulk-actions.visible { display: flex; }
.bulk-actions span { margin-right: auto; color: #77521a; font-size: 12px; font-weight: 700; }

/* Reservations */
.area-summary { display: flex; flex-direction: column; gap: 2px; }
.area-summary b { font-size: 12px; }
.area-summary span { color: var(--muted); font-size: 11px; }
.calendar-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.calendar-title { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px; border-bottom: 1px solid var(--line); text-transform: capitalize; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-week span { padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-warm); color: var(--muted); text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-height: 138px; display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 5px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #fdf9f3; }
.calendar-day.outside { background: #faf9f7; }
.calendar-day-head { display: flex; justify-content: flex-end; }
.calendar-day-create { min-width: 36px; min-height: 32px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 4px 6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: #4c4641; font-size: 12px; font-weight: 800; }
.calendar-day-create svg { opacity: 0; transition: opacity .16s ease; }
.calendar-day:hover .calendar-day-create { background: #f5ede3; color: var(--brand); }
.calendar-day:hover .calendar-day-create svg, .calendar-day-create:focus-visible svg { opacity: 1; }
.calendar-day.outside .calendar-day-create { color: #bbb4ae; }
.calendar-events { display: grid; min-width: 0; gap: 4px; }
.calendar-event { width: 100%; min-width: 0; display: grid; gap: 2px; overflow: hidden; padding: 8px; border: 0; border-radius: var(--radius-sm); color: var(--brand); background: var(--brand-soft); text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.calendar-event:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(61,26,19,.12); }
.calendar-event strong, .calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { font-size: 12px; line-height: 1.25; }
.calendar-event span { font-size: 11px; line-height: 1.25; opacity: .78; }
.calendar-event.success { color: var(--success); background: var(--success-soft); }
.calendar-event.warning { color: var(--warning); background: var(--warning-soft); }
.calendar-event.danger { color: var(--danger); background: var(--danger-soft); }
.calendar-event.info { color: var(--info); background: var(--info-soft); }
.calendar-more { color: var(--muted); font-size: 11px; }
.count { min-width: 18px; display: inline-grid; place-items: center; padding: 2px 5px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 9px; }

/* Empty, support and loading */
.empty { display: grid; place-items: center; padding: 42px 20px; text-align: center; }
.empty-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 12px; background: var(--surface-warm); color: var(--subtle); }
.empty h3 { margin: 0 0 5px; font-size: 15px; }
.empty p { max-width: 420px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.loading-state { min-height: 440px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }
.loading-state > span, .spinner { width: 30px; height: 30px; border: 3px solid #eadfce; border-top-color: var(--accent-strong); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-state h2 { margin: 0; color: var(--ink); font-size: 15px; }
.loading-state p { margin: 0; font-size: 12px; }
.loading-state.compact { min-height: 140px; }
@keyframes spin { to { transform: rotate(360deg); } }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-lead { grid-row: span 2; padding: 30px; border-radius: var(--radius); background: var(--brand); color: #fff; }
.support-lead > div { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 12px; background: rgba(255,255,255,.1); color: #f0b75b; }
.support-lead h2 { margin: 0 0 8px; font: 700 24px/1.15 Manrope, Inter, sans-serif; }
.support-lead p { margin: 0 0 24px; color: #d8c8bf; }
.support-lead .btn { border-color: #fff; background: #fff; color: var(--brand); }
.steps { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 800; }
.steps b, .steps span { display: block; }
.steps span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--brand); font-weight: 700; }

/* Modal and forms */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(28, 20, 16, .56); }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  width: min(720px, calc(100vw - 40px));
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-modal);
}
.modal.wide { width: min(1080px, calc(100vw - 40px)); }
.modal > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: #fff; }
.modal > header h2 { margin: 0; font: 700 19px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.modal > header button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); }
.modal > header button:hover { border-color: var(--line); background: var(--surface-warm); color: var(--ink); }
.modal-body { min-height: 0; overflow-y: auto; }
.modal-body form { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.form-group.full, .form-group.span-12 { grid-column: 1 / -1; }
.form-group.span-3 { grid-column: span 3; }
.form-group.span-4 { grid-column: span 4; }
.form-group > label:first-child { display: block; margin: 0 0 6px; color: #59534e; font-size: 11px; font-weight: 800; letter-spacing: .025em; }
.form-group > label em { color: #c33d32; font-style: normal; }
.form-group > label span { color: var(--subtle); font-weight: 600; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select { height: 44px; padding: 0 12px; }
.form-group select { padding-right: 34px; }
.form-group textarea { min-height: 90px; resize: vertical; padding: 11px 12px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-strong); outline: 0; box-shadow: 0 0 0 3px rgba(213,138,33,.12); }
.vehicle-photo-control { min-height: 74px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 20px; padding: 12px 13px; border: 1px dashed #ccbba9; border-radius: 9px; background: #fcfaf7; }
.vehicle-photo-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.vehicle-photo-control b { display: block; color: #403a35; font-size: 12px; }
.vehicle-photo-control small { display: block; max-width: 420px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.photo-actions { display: flex; gap: 7px; }
.photo-button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.choice-toggle { height: 44px; display: flex !important; align-items: center; gap: 9px; margin: 0 !important; padding: 0 3px; cursor: pointer; }
.choice-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.choice-toggle span { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border-radius: 12px; background: #cbc5bf; transition: background .18s ease; }
.choice-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.choice-toggle input:checked + span { background: var(--brand); }
.choice-toggle input:checked + span::after { transform: translateX(14px); }
.choice-toggle input:focus-visible + span { outline: 3px solid rgba(213,138,33,.22); outline-offset: 2px; }
.choice-toggle b { color: #5d5752; font-size: 11px; }
.modal-actions { position: sticky; bottom: -22px; display: flex; justify-content: flex-end; gap: 8px; margin: 22px -22px -22px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fff; }
.upload-zone { position: relative; min-height: 120px; display: grid; place-items: center; align-content: center; gap: 5px; margin-bottom: 20px; padding: 16px; border: 1px dashed #cdbba9; border-radius: 9px; background: var(--surface-warm); color: var(--brand); text-align: center; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; }
.upload-zone b { font-size: 12px; }
.upload-zone small { color: var(--muted); font-size: 11px; }
.check-row { display: flex !important; align-items: center; gap: 8px; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.input-action { display: flex; }
.input-action input { border-radius: 7px 0 0 7px !important; }
.input-action button { min-width: 120px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 7px 7px 0; background: var(--surface-warm); color: var(--brand); font-size: 11px; font-weight: 700; }
.wizard-line { display: flex; gap: 8px; margin-bottom: 20px; }
.wizard-line span { flex: 1; padding: 8px; border-bottom: 2px solid var(--line); color: var(--subtle); font-size: 11px; font-weight: 800; }
.wizard-line span.active { border-color: var(--accent); color: var(--brand); }
.detail-grid, .mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-warm); }
.detail-card small { color: var(--muted); }
.detail-card b { display: block; margin-top: 4px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tabs { display: flex; gap: 4px; margin: 0 0 18px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.tab.active { border-bottom-color: var(--accent-strong); color: var(--brand); }
.record-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.record-list li, .plain-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes, .prose { color: #56504b; font-size: 12px; line-height: 1.65; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Popover, toast */
.popover { position: fixed; top: 64px; right: 24px; z-index: 60; width: min(310px, calc(100vw - 28px)); padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-menu); }
.popover h4 { margin: 6px 7px 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.popover button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #453f3a; text-align: left; font-size: 12px; }
.popover button:hover { background: var(--surface-warm); }
.popover button b { display: block; font-size: 12px; }
.popover button small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.popover-note, .popover > p { margin: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 420px; padding: 12px 14px; border: 1px solid #c6dcca; border-radius: 8px; background: #f2fbf5; color: #1c5f41; box-shadow: var(--shadow-menu); font-size: 12px; font-weight: 700; transform: translateY(18px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: #e6c1c1; background: #fff3f3; color: #8f3030; }

/* Interaction system and operational detail drawer */
::selection { background: #efd3a3; color: var(--brand); }
html { scrollbar-color: #b9aea4 transparent; scrollbar-width: thin; }
button, .btn, .tab, .nav-item { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease; }
button:active:not(:disabled), .btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
button:disabled, .btn:disabled { cursor: wait; opacity: .66; }
.btn.danger { border-color: #e2b6b6; background: #fff; color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.spinner.compact { width: 15px; height: 15px; border-width: 2px; border-color: currentColor; border-top-color: transparent; }
.scrim:not([hidden]) { animation: scrim-in .22s ease-out both; }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
.modal:not([hidden]) { animation: modal-in .26s cubic-bezier(.16,1,.3,1) both; }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.detail-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 82;
  width: min(800px, calc(100vw - 280px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(61,26,19,.12);
  background: #fff;
  box-shadow: -24px 0 70px rgba(25,18,14,.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .18s ease;
  opacity: .9;
}
.detail-drawer.open { transform: translateX(0); opacity: 1; }
.detail-drawer.closing { transition-duration: .18s; }
.drawer-head { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head p { margin: 0 0 4px; color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.drawer-head h2 { margin: 0; font: 700 21px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.025em; }
.drawer-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.drawer-head > button { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); }
.drawer-head > button:hover { border-color: var(--line); background: var(--surface-warm); color: var(--ink); }
.drawer-actions { min-height: 66px; display: flex; align-items: center; gap: 7px; padding: 11px 22px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fff; scrollbar-width: thin; }
.drawer-actions .btn { min-height: 38px; padding: 0 12px; font-size: 11px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; background: #fbfaf8; }
.drawer-status { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 22px 0; padding: 22px; border-radius: var(--radius); }
.drawer-status.warning { background: var(--warning-soft); color: #5d3b11; }
.drawer-status.info { background: var(--info-soft); color: #244f66; }
.drawer-status.success { background: var(--success-soft); color: #17593e; }
.drawer-status.danger { background: var(--danger-soft); color: #813232; }
.drawer-status small { display: block; margin-bottom: 5px; color: currentColor; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.drawer-status h3 { margin: 0; font: 700 20px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.drawer-status p { max-width: 470px; margin: 6px 0 0; font-size: 12px; opacity: .84; }
.drawer-status .tag { flex: 0 0 auto; background: rgba(255,255,255,.66); }
.drawer-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .82fr); align-items: start; }
.drawer-main { min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.drawer-side { min-width: 0; padding: 22px; }
.detail-identity { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.detail-identity > span:not(.avatar) { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.detail-identity .avatar.large { width: 44px; height: 44px; }
.detail-identity b { display: block; font-size: 13px; }
.detail-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.data-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.data-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-heading h3 { margin: 0; font: 700 14px/1.25 Manrope, Inter, sans-serif; letter-spacing: -.015em; }
.section-heading > span { color: var(--subtle); font-size: 11px; }
.data-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.data-list > div { min-width: 0; padding: 12px 0; border-top: 1px solid #eee9e4; }
.data-list > div:nth-child(odd) { padding-right: 16px; }
.data-list > div:nth-child(even) { padding-left: 16px; border-left: 1px solid #eee9e4; }
.data-list dt { margin: 0 0 4px; color: var(--subtle); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.data-list dd { margin: 0; overflow-wrap: anywhere; color: #352f2a; font-size: 12px; font-weight: 650; }
.data-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.detail-note { margin-top: 14px; padding: 13px 14px; border-radius: 8px; background: var(--surface-warm); }
.detail-note b { font-size: 11px; }
.detail-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.activity-timeline { margin: 0; padding: 0; list-style: none; }
.activity-timeline li { position: relative; display: grid; grid-template-columns: 14px minmax(0,1fr) auto; gap: 9px; padding: 0 0 22px; }
.activity-timeline li:last-child { padding-bottom: 0; }
.activity-timeline li::before { content: ""; position: absolute; top: 11px; bottom: 0; left: 5px; width: 1px; background: #d8d1ca; }
.activity-timeline li:last-child::before { display: none; }
.activity-timeline li > span { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid #c9c2bc; border-radius: 50%; background: #fff; }
.activity-timeline li.complete > span { border-color: #7fbca2; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.activity-timeline b { display: block; font-size: 11px; }
.activity-timeline small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.activity-timeline time { color: var(--subtle); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.media-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 18px; border: 1px dashed #d5ccc1; border-radius: 9px; background: #fff; color: var(--subtle); text-align: center; }
.media-empty b { color: #5b544e; font-size: 11px; }
.media-empty span { max-width: 220px; font-size: 11px; line-height: 1.45; }
.drawer-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-gallery a { overflow: hidden; border-radius: 8px; background: #eeeae5; aspect-ratio: 4 / 3; }
.drawer-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.drawer-gallery a:hover img { transform: scale(1.025); }
.drawer-tabs { margin: 0; padding: 12px 22px 0; overflow-x: auto; background: #fff; }
#unitPanel { padding: 22px; }
.detail-drawer .detail-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; }
.detail-card dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.detail-card dt { color: var(--subtle); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.detail-card dd { margin: 3px 0 0; font-size: 12px; font-weight: 650; }
.record-list article { display: flex; align-items: center; gap: 11px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.record-list article b, .record-list article small { display: block; }
.record-list article small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.record-person { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 10px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.record-person > span:nth-child(2) { min-width: 0; flex: 1; }
.record-person b, .record-person small { display: block; }
.record-person small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.record-person:hover { transform: translateY(-1px); border-color: #e1d7cb; background: #fff; box-shadow: 0 8px 20px rgba(54,41,30,.07); }
.record-person:focus-visible { outline: 0; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(213,138,33,.16); }
.record-person:active { transform: translateY(0) scale(.995); }
.record-chevron { display: grid; flex: 0 0 auto; place-items: center; color: var(--subtle); transition: transform .16s ease, color .16s ease; }
.record-person:hover .record-chevron { transform: translateX(2px); color: var(--accent-strong); }
.profile-avatar { width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; background: rgba(255,255,255,.68); color: currentColor; font: 800 17px/1 Manrope, Inter, sans-serif; box-shadow: 0 8px 24px rgba(36,79,102,.12); }
.profile-summary { display: flex; align-items: center; gap: 13px; padding: 24px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.profile-large { width: 52px; height: 52px; font-size: 15px; }
.profile-summary b, .profile-summary small { display: block; }
.profile-summary small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.detail-drawer > .drawer-body > .data-section { margin: 0 22px; }
.confirmation-hero { display: flex; align-items: flex-start; gap: 13px; margin: 22px 22px 0; padding: 15px; border-radius: 9px; }
.confirmation-hero.danger { background: var(--danger-soft); color: #79302f; }
.confirmation-hero > span { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(255,255,255,.65); }
.confirmation-hero b { display: block; font-size: 12px; }
.confirmation-hero p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
.confirmation-hero + .form-grid { padding: 18px 22px 0; }

.popover:not([hidden]) { animation: popover-in .18s cubic-bezier(.16,1,.3,1) both; transform-origin: top right; }
@keyframes popover-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .table-wrap table { min-width: 900px; }
  .profile { min-width: 155px; }
  .profile strong { max-width: 90px; }
}

@media (max-width: 900px) {
  :root { --topbar: 64px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 40px rgba(27,20,16,.22); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-only { display: grid; }
  .topbar { padding: 0 14px; }
  .condo-switcher { margin-right: auto; }
  .topbar-actions > .icon-btn:first-child, .language .i, .profile > span:nth-child(2) { display: none; }
  .profile { min-width: 54px; grid-template-columns: 36px auto; margin-left: 0; padding-left: 7px; border-left: 0; }
  main { padding: 24px 18px 42px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .support-grid { grid-template-columns: 1fr; }
  .support-lead { grid-row: auto; }
  .modal.wide { width: calc(100vw - 24px); }
  .form-group.span-3, .form-group.span-4 { grid-column: span 6; }
  .detail-drawer { width: min(800px, calc(100vw - 48px)); }
}

@media (max-width: 640px) {
  .auth-screen { display: block; background: var(--surface-warm); }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 24px 16px; }
  .auth-card { padding: 28px 22px; }
  .auth-logo { display: block; }
  .condo-switcher > span:nth-child(2) { display: none; }
  .topbar-actions { gap: 0; }
  .topbar-actions > .icon-btn { width: 36px; }
  .language { padding: 0 7px; }
  .page-head h1 { font-size: 24px; }
  .summary-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; min-width: 0; flex: 0 0 auto; }
  .field, .field.compact, .field.area-select, .segmented { width: 100%; min-width: 0; }
  .segmented button { flex: 1; }
  .calendar-card { overflow-x: auto; }
  .calendar-title, .calendar-week, .calendar-grid { min-width: 760px; }
  .calendar-day { min-height: 122px; padding: 6px; }
  .modal, .modal.wide { top: 8px; left: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 16px); transform: none; border-radius: 10px; }
  .modal:not([hidden]) { animation-name: modal-mobile-in; }
  @keyframes modal-mobile-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
  .modal > header { min-height: 58px; padding: 0 16px; }
  .modal-body form { padding: 17px; }
  .form-grid, .form-grid-12 { grid-template-columns: 1fr; gap: 14px; }
  .form-group.span-3, .form-group.span-4, .form-group.span-12 { grid-column: 1; }
  .vehicle-photo-control { grid-template-columns: 38px 1fr; }
  .photo-actions { grid-column: 1 / -1; }
  .photo-actions .btn { flex: 1; }
  .modal-actions { bottom: -17px; margin: 18px -17px -17px; padding: 13px 17px; }
  .detail-grid, .mini-stats, .gallery { grid-template-columns: 1fr; }
  .detail-drawer { width: 100vw; border-left: 0; }
  .drawer-head { min-height: 78px; padding: 14px 16px; }
  .drawer-head h2 { font-size: 18px; }
  .drawer-actions { min-height: 62px; padding: 10px 16px; }
  .drawer-actions .btn { min-height: 42px; }
  .drawer-status { min-height: 0; align-items: flex-start; margin: 14px 16px 0; padding: 17px; }
  .drawer-status h3 { font-size: 17px; }
  .drawer-status .tag { margin-top: 2px; }
  .drawer-layout { grid-template-columns: 1fr; }
  .drawer-main, .drawer-side { padding: 16px; border-right: 0; }
  .drawer-side { border-top: 1px solid var(--line); }
  .data-list { grid-template-columns: 1fr; }
  .data-list > div:nth-child(odd), .data-list > div:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
  .drawer-tabs { padding-right: 16px; padding-left: 16px; }
  #unitPanel { padding: 16px; }
  .detail-drawer .detail-grid, .detail-card dl { grid-template-columns: 1fr; }
  .toast { right: 12px; bottom: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
