@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #09111a;
  --bg-deep: #050b12;
  --bg-soft: #101a24;
  --panel: rgba(14, 22, 34, 0.86);
  --panel-strong: rgba(17, 28, 43, 0.94);
  --panel-elevated: rgba(20, 32, 48, 0.98);
  --line: rgba(210, 223, 238, 0.1);
  --line-strong: rgba(132, 214, 255, 0.28);
  --text: #f3efe7;
  --ink: #f8f4ed;
  --muted: #9ca8b6;
  --accent: #84d6ff;
  --accent-strong: #dff3ff;
  --accent-warm: #ecd3ab;
  --danger: #ff8b98;
  --warning: #ffd178;
  --shadow: 0 28px 70px rgba(3, 6, 11, 0.42);
  --shadow-luxury: 0 40px 110px rgba(3, 6, 11, 0.54);
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-family: "Bricolage Grotesque", "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(132, 214, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(236, 211, 171, 0.14), transparent 22%),
    radial-gradient(circle at 78% 84%, rgba(100, 160, 219, 0.14), transparent 28%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.018), transparent 30%),
    linear-gradient(180deg, var(--bg-deep) 0%, #09111a 36%, #111c28 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.02), transparent 32%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.04), transparent 18%);
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 82%);
  opacity: 0.2;
}

body.intro-active {
  overflow: hidden;
}

body[data-tone="calm"] {
  --accent: #84d6ff;
  --accent-strong: #dff3ff;
  --accent-warm: #ecd3ab;
  --line-strong: rgba(132, 214, 255, 0.28);
}

body[data-tone="assured"] {
  --accent: #92ddff;
  --accent-strong: #f4fbff;
  --accent-warm: #f0d9b1;
  --line-strong: rgba(146, 221, 255, 0.34);
}

body[data-tone="executive"] {
  --accent: #a0e4ff;
  --accent-strong: #fffdf8;
  --accent-warm: #f5dfb6;
  --line-strong: rgba(245, 223, 182, 0.34);
}

body[data-motion="reduced"] *,
body[data-motion="reduced"] *::before,
body[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select {
  min-height: 44px;
}

textarea {
  min-height: 120px;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}

.auth-card {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 38%),
    rgba(10, 17, 27, 0.95);
  box-shadow: var(--shadow-luxury);
  backdrop-filter: blur(8px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.auth-card::before,
.auth-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.auth-card::before {
  top: -72px;
  right: -18px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(236, 211, 171, 0.26), transparent 68%);
}

.auth-card::after {
  bottom: -84px;
  left: -42px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(132, 214, 255, 0.2), transparent 70%);
}

.auth-copy,
.demo-card,
.install-callout {
  display: grid;
  gap: 16px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.auth-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-quick-unlock {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(132, 214, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 48%),
    rgba(11, 20, 31, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(4, 8, 15, 0.24);
}

.auth-quick-unlock strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.auth-quick-unlock .body-copy {
  margin-top: 6px;
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-button.auth-inline-button {
  padding-inline: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 131, 0.24);
  border-radius: 14px;
  background: rgba(255, 122, 131, 0.1);
  color: #ffd0d4;
}

.demo-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.install-callout {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
}

.sidebar {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    rgba(8, 14, 22, 0.95);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 78%);
  pointer-events: none;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(132, 214, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #213142 0%, #0d141c 100%);
  color: #fef9f0;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow:
    0 18px 30px rgba(7, 12, 19, 0.34),
    0 10px 34px rgba(132, 214, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.role-switcher,
.nav {
  display: grid;
  gap: 8px;
}

.account-panel {
  display: grid;
  gap: 6px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
}

.account-role {
  font-size: 0.76rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.account-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.account-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.account-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.account-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(132, 214, 255, 0.12);
  color: #dff3ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.property-switcher {
  margin: 22px 0;
  display: grid;
  gap: 8px;
}

.property-switcher label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.property-switcher select,
.feedback-input,
.feedback-select,
.command-search-form input,
.issue-filter-bar input,
.issue-filter-bar select,
.auth-form input,
.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.message-compose-form textarea,
.document-upload-form input,
.document-upload-form select,
.document-upload-form textarea,
.notice-compose-form input,
.notice-compose-form select,
.notice-compose-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.property-switcher select:focus,
.feedback-input:focus,
.feedback-select:focus,
.command-search-form input:focus,
.issue-filter-bar input:focus,
.issue-filter-bar select:focus,
.auth-form input:focus,
.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus,
.message-compose-form textarea:focus,
.document-upload-form input:focus,
.document-upload-form select:focus,
.document-upload-form textarea:focus,
.notice-compose-form input:focus,
.notice-compose-form select:focus,
.notice-compose-form textarea:focus {
  outline: none;
  border-color: rgba(111, 223, 156, 0.54);
  box-shadow:
    0 0 0 4px rgba(70, 201, 131, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.role-button,
.nav-button,
.reset-button,
.ghost-button,
.primary-button,
.status-button,
.small-button,
.modal-close,
.approve-button,
.decline-button {
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.role-button,
.nav-button,
.reset-button {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 14px;
  position: relative;
  overflow: hidden;
}

.role-button.is-active,
.nav-button.is-active {
  background:
    linear-gradient(90deg, rgba(132, 214, 255, 0.18), rgba(132, 214, 255, 0.08));
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: inset 3px 0 0 rgba(223, 243, 255, 0.82);
}

.role-button.is-active::after,
.nav-button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 42%);
  pointer-events: none;
}

.reset-button {
  margin-top: 18px;
  border-color: var(--line);
}

.role-button:hover,
.nav-button:hover,
.reset-button:hover,
.ghost-button:hover,
.primary-button:hover,
.small-button:hover,
.approve-button:hover,
.decline-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.role-button:focus-visible,
.nav-button:focus-visible,
.reset-button:focus-visible,
.ghost-button:focus-visible,
.primary-button:focus-visible,
.small-button:focus-visible,
.approve-button:focus-visible,
.decline-button:focus-visible,
.modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(70, 201, 131, 0.16);
  border-color: rgba(111, 223, 156, 0.54);
}

.main {
  padding: 28px;
  position: relative;
}

.topbar,
.summary-grid,
.card-grid,
.split-grid,
.messages-layout,
.notices-layout,
.workflow-grid,
.timeline,
.list,
.rent-grid,
.issue-board,
.ticket-form,
.screen,
.detail-stack,
.approval-list,
.compliance-list,
.inspection-list {
  display: grid;
  gap: 18px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-family: var(--display);
  font-weight: 600;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.shortcut-hint {
  opacity: 0.72;
  font-size: 0.78rem;
  font-weight: 700;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sync-indicator.is-saving {
  color: #f8e7c5;
  border-color: rgba(236, 211, 171, 0.28);
}

.sync-indicator.is-error {
  color: #ffd0d4;
  border-color: rgba(255, 122, 131, 0.28);
}

.sync-indicator.is-saved {
  color: #dff3ff;
  border-color: rgba(132, 214, 255, 0.22);
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric-card,
.panel,
.kanban-column,
.timeline-item,
.ticket-card,
.approval-card,
.rent-card,
.export-card,
.inspection-card,
.compliance-card,
.property-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  contain: layout paint;
}

.metric-card,
.panel,
.kanban-column,
.timeline-item,
.ticket-card,
.approval-card,
.rent-card,
.export-card,
.inspection-card,
.compliance-card,
.property-card {
  padding: 20px;
}

.metric-card {
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 46%),
    var(--panel-elevated);
}

.metric-card::before,
.panel::before,
.ticket-card::before,
.inspection-card::before,
.property-card::before,
.compliance-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 214, 255, 0.42), transparent 72%);
  pointer-events: none;
}

.metric-card span,
.muted,
.ticket-meta,
.empty-state,
.note,
.timeline-item small,
.rent-card small,
.compliance-card p,
.inspection-card p,
.export-card p {
  color: var(--muted);
}

.metric-card strong {
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.metric-card small {
  color: #c7d0d9;
  line-height: 1.5;
}

.quick-unlock-card {
  display: grid;
  gap: 14px;
}

.quick-unlock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.quick-unlock-row strong,
.quick-unlock-row small {
  display: block;
}

.metric-card-calm {
  border-color: rgba(132, 214, 255, 0.18);
}

.metric-card-active {
  border-color: rgba(132, 214, 255, 0.24);
}

.metric-card-attention {
  border-color: rgba(236, 211, 171, 0.24);
}

.metric-card-urgent {
  border-color: rgba(255, 122, 131, 0.28);
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.runtime-recovery-panel {
  display: grid;
  gap: 18px;
  border-color: rgba(255, 196, 98, 0.28);
  background:
    linear-gradient(155deg, rgba(255, 196, 98, 0.06), transparent 36%),
    var(--panel-strong);
}

.runtime-recovery-grid {
  align-items: start;
}

.split-grid,
.rent-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.messages-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.documents-layout,
.notices-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--panel-strong);
  position: relative;
  overflow: hidden;
}

body[data-motion="full"] .panel,
body[data-motion="full"] .property-card,
body[data-motion="full"] .ticket-card,
body[data-motion="full"] .metric-card,
body[data-motion="full"] .inspection-card,
body[data-motion="full"] .compliance-card,
body[data-motion="full"] .timeline-item {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

body[data-motion="full"] .panel:hover,
body[data-motion="full"] .property-card:hover,
body[data-motion="full"] .ticket-card:hover,
body[data-motion="full"] .metric-card:hover,
body[data-motion="full"] .inspection-card:hover,
body[data-motion="full"] .compliance-card:hover,
body[data-motion="full"] .timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.24);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ticket-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-form .full {
  grid-column: 1 / -1;
}

.ticket-form textarea {
  min-height: 110px;
  resize: vertical;
}

.notification-form-feedback {
  margin-top: -4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(132, 214, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.notification-form-feedback[data-tone="success"] {
  border-color: rgba(132, 214, 255, 0.28);
  color: #e8f7ff;
}

.inspection-template-manager-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.inspection-template-manager-feedback[data-tone="success"] {
  border-color: rgba(132, 214, 255, 0.28);
  color: #e8f7ff;
}

.inspection-template-manager-feedback[data-tone="warning"] {
  border-color: rgba(255, 196, 98, 0.28);
  color: #ffe2af;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  margin-right: 8px;
  margin-top: 8px;
}

.file-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-button,
.ghost-button,
.status-button,
.small-button,
.approve-button,
.decline-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.primary-button,
.approve-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #1f3143, #111a24);
  color: #f8f4ed;
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(8, 12, 20, 0.28),
    0 10px 34px rgba(132, 214, 255, 0.12);
}

.ghost-button,
.small-button,
.status-button,
.decline-button,
.modal-close {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line);
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
}

.status-row,
.approval-actions,
.ticket-actions,
.rent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.issue-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(160px, 1fr)) auto;
  gap: 12px;
}

.issue-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kanban-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.kanban-column h3 {
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}

.ticket-card,
.approval-card,
.inspection-card,
.compliance-card,
.property-card {
  display: grid;
  gap: 10px;
}

.launch-checklist {
  display: grid;
  gap: 14px;
}

.launch-check-item.is-done {
  border-color: rgba(132, 214, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(132, 214, 255, 0.08), transparent 40%),
    rgba(17, 29, 43, 0.96);
}

.launch-action-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
}

.property-card-grid,
.property-meta-grid {
  display: grid;
  gap: 14px;
}

.screen-guide-panel {
  border-color: rgba(236, 211, 171, 0.24);
  background:
    radial-gradient(circle at top right, rgba(236, 211, 171, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(14, 23, 34, 0.96);
}

.screen-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.screen-guide-card {
  gap: 8px;
  min-height: 100%;
}

.screen-guide-label {
  display: inline-block;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 800;
}

.property-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-card.is-selected {
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, rgba(132, 214, 255, 0.08), transparent 40%),
    rgba(17, 29, 43, 0.96);
  box-shadow: 0 24px 50px rgba(5, 8, 14, 0.28);
}

.property-meta-grid strong {
  display: block;
  margin-top: 4px;
}

.inspection-toolbar,
.inspection-checklist {
  display: grid;
  gap: 14px;
}

.inspection-workspace-modal,
.inspection-workspace-sections,
.inspection-section {
  display: grid;
  gap: 18px;
}

.inspection-workspace-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inspection-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 46%),
    rgba(255, 255, 255, 0.02);
}

.inspection-section-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.inspection-section-header h3 {
  margin: 0;
}

.inspection-summary-row,
.inspection-item-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.inspection-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.inspection-note {
  margin: 0;
  color: #b6c8ba;
  line-height: 1.6;
}

.inspection-template-strip,
.inspection-template-toolbar,
.inspection-template-item-grid,
.inspection-template-item-list,
.inspection-template-editor {
  display: grid;
  gap: 14px;
}

.inspection-template-strip {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.inspection-template-picker label {
  display: block;
  margin-bottom: 8px;
}

.inspection-template-item-list {
  gap: 16px;
}

.inspection-template-item-row {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.inspection-template-item-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inspection-template-item-grid .full {
  grid-column: 1 / -1;
}

.ticket-card h4,
.approval-card h4,
.inspection-card h4,
.compliance-card h4 {
  font-size: 1rem;
  margin: 0;
}

.ticket-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.urgent {
  background: rgba(255, 122, 131, 0.14);
  color: #ffc5ca;
}

.badge.routine {
  background: rgba(255, 196, 98, 0.14);
  color: #ffe2af;
}

.badge.important {
  background: rgba(118, 164, 255, 0.16);
  color: #d6e4ff;
}

.badge.ok {
  background: rgba(132, 214, 255, 0.14);
  color: #dff3ff;
}

.timeline-item {
  display: grid;
  gap: 6px;
}

.timeline-item.is-unread {
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, rgba(132, 214, 255, 0.08), transparent 40%),
    rgba(17, 29, 43, 0.96);
}

.timeline-item strong {
  color: var(--accent-strong);
}

.toggle-card {
  grid-column: span 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.toggle-card input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.toggle-card:focus-within,
.ticket-card:focus-within,
.export-card:focus-within,
.message-thread-card:focus-visible {
  border-color: rgba(132, 214, 255, 0.54);
  box-shadow: 0 0 0 4px rgba(132, 214, 255, 0.12);
}

.confidence-panel,
.experience-panel {
  display: grid;
  gap: 16px;
}

.confidence-meter {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}

.confidence-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(236, 211, 171, 0.7), rgba(132, 214, 255, 0.94));
}

.confidence-fill-ok {
  background: linear-gradient(90deg, rgba(132, 214, 255, 0.72), rgba(232, 247, 255, 0.96));
}

.confidence-fill-routine {
  background: linear-gradient(90deg, rgba(239, 194, 122, 0.78), rgba(132, 214, 255, 0.88));
}

.confidence-fill-urgent {
  background: linear-gradient(90deg, rgba(255, 122, 131, 0.88), rgba(239, 194, 122, 0.82));
}

.rent-card {
  display: grid;
  gap: 14px;
}

.rent-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rent-card-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 3, 2, 0.68);
  display: grid;
  place-items: center;
  z-index: 30;
}

.modal {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(8, 15, 10, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  padding: 24px;
  position: relative;
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.message-thread-list,
.message-stream,
.message-compose-form,
.document-list,
.document-upload-form,
.notice-list,
.notice-compose-form {
  display: grid;
  gap: 14px;
}

.message-thread-card {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.message-thread-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.message-thread-card.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, rgba(70, 201, 131, 0.08), transparent 42%),
    rgba(16, 30, 21, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.message-thread-card-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.message-thread-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.message-summary-grid {
  margin-bottom: 18px;
}

.command-palette {
  display: grid;
  gap: 18px;
}

.command-search-form {
  display: grid;
  gap: 12px;
}

.command-search-form input {
  min-height: 58px;
  font-size: 1rem;
}

.command-results,
.command-result-list {
  display: grid;
  gap: 10px;
}

.command-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(12, 23, 16, 0.96);
  color: var(--text);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.command-result:hover,
.command-result:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  outline: none;
}

.command-result-eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.command-result-copy {
  display: grid;
  gap: 4px;
}

.command-result-copy small {
  color: var(--muted);
  line-height: 1.55;
}

.message-thread-header,
.message-thread-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.message-thread-unread {
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(86, 215, 146, 0.18);
  color: #d9ffe7;
  font-size: 0.8rem;
  font-weight: 700;
}

.message-thread-badges {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.message-thread-eyebrow,
.message-thread-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.message-stream {
  min-height: 360px;
  max-height: 560px;
  overflow: auto;
  padding: 6px 2px 6px 0;
}

.message-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.message-row.is-own {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(140, 224, 174, 0.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(113, 231, 163, 0.16), transparent 58%),
    rgba(17, 30, 23, 0.96);
  color: #dcffea;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-avatar.is-own {
  border-color: rgba(132, 214, 255, 0.3);
  background:
    radial-gradient(circle at 30% 30%, rgba(132, 214, 255, 0.24), transparent 58%),
    rgba(16, 28, 42, 0.98);
}

.message-thread-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.message-bubble {
  max-width: min(720px, 92%);
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.message-bubble.is-own {
  margin-left: auto;
  background:
    linear-gradient(180deg, rgba(132, 214, 255, 0.16), rgba(132, 214, 255, 0.08)),
    rgba(16, 28, 42, 0.98);
  border-color: rgba(132, 214, 255, 0.32);
}

.message-bubble p {
  margin: 0;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message-bubble-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.message-compose-form textarea {
  min-height: 118px;
  resize: vertical;
}

.message-compose-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(132, 214, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 38%),
    rgba(12, 21, 31, 0.84);
}

.message-compose-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.message-quick-templates {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.message-compose-actions {
  align-items: center;
}

.message-toggle-card {
  min-height: auto;
}

.message-capture-panel {
  margin-bottom: 10px;
}

.message-capture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.message-capture-card {
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(14, 24, 36, 0.92);
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.message-capture-card:hover,
.message-capture-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  outline: none;
}

.message-capture-card small {
  color: var(--muted);
  line-height: 1.55;
}

.proof-card .panel-header {
  align-items: start;
}

.notice-compose-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-upload-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-compose-form textarea {
  min-height: 170px;
  resize: vertical;
}

.document-upload-form textarea {
  min-height: 150px;
  resize: vertical;
}

.role-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notice-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(12, 21, 31, 0.96);
  border: 1px solid var(--line);
}

.document-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(12, 21, 31, 0.96);
  border: 1px solid rgba(132, 214, 255, 0.16);
}

.document-card a.ghost-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.task-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 34%),
    rgba(11, 19, 29, 0.96);
  border: 1px solid rgba(132, 214, 255, 0.14);
}

.task-card-complete {
  opacity: 0.88;
  border-color: rgba(132, 214, 255, 0.22);
}

.vault-collections-panel {
  margin: 18px 0;
}

.inset-panel {
  margin-top: 18px;
}

.vault-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vault-collection-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(132, 214, 255, 0.14);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), transparent 34%),
    rgba(12, 21, 31, 0.88);
}

.property-meta-grid.compact {
  gap: 10px;
}

.notice-card-action {
  border-color: rgba(255, 196, 98, 0.36);
  box-shadow: 0 16px 34px rgba(255, 196, 98, 0.08);
}

.notice-card-acknowledged {
  border-color: rgba(132, 214, 255, 0.28);
}

.notice-acknowledged-copy {
  margin: 0;
  color: #dff3ff;
  font-size: 0.92rem;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.body-copy {
  color: var(--muted);
  line-height: 1.7;
}

.launch-intro {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
  background:
    radial-gradient(circle at 20% 18%, rgba(132, 214, 255, 0.14), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(236, 211, 171, 0.14), transparent 22%),
    radial-gradient(circle at 74% 82%, rgba(132, 214, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(3, 8, 12, 0.98), rgba(4, 9, 14, 0.98));
}

.launch-intro.is-visible,
.launch-intro.is-exiting {
  pointer-events: auto;
}

.launch-intro.is-visible {
  opacity: 1;
}

.launch-intro.is-exiting {
  opacity: 0;
}

.launch-intro-field,
.launch-intro-shell {
  position: absolute;
  inset: 0;
}

.launch-intro-shell {
  inset: auto;
  width: min(720px, calc(100vw - 40px));
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  z-index: 1;
}

.launch-orbit,
.launch-grid,
.launch-sweep {
  position: absolute;
  pointer-events: none;
}

.launch-orbit {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.025);
}

.launch-orbit-a {
  width: min(74vw, 860px);
  height: min(74vw, 860px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.launch-orbit-b {
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(12deg);
  border-color: rgba(236, 211, 171, 0.16);
}

.launch-orbit-c {
  width: min(34vw, 380px);
  height: min(34vw, 380px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(223, 243, 255, 0.18);
}

.launch-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 78%);
  opacity: 0.34;
}

.launch-sweep {
  left: -12%;
  top: 50%;
  width: 36%;
  height: 140%;
  transform: translateY(-50%) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  filter: blur(12px);
  opacity: 0;
}

.launch-crest {
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
  position: relative;
}

.launch-crest-ring,
.launch-crest-core,
.launch-crest-mark {
  position: absolute;
  border-radius: 50%;
}

.launch-crest-ring {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.015),
    0 0 80px rgba(132, 214, 255, 0.12);
}

.launch-crest-core {
  inset: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 24%),
    conic-gradient(from 220deg, rgba(236, 211, 171, 0.94), rgba(223, 243, 255, 0.96), rgba(132, 214, 255, 0.95), rgba(236, 211, 171, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 44px rgba(132, 214, 255, 0.22);
}

.launch-crest-mark {
  inset: 36px;
  display: grid;
  place-items: center;
  background: rgba(4, 11, 16, 0.9);
  color: var(--accent-strong);
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
}

.launch-kicker,
.launch-title,
.launch-copy,
.launch-signal-row {
  opacity: 0;
  transform: translateY(10px);
}

.launch-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(236, 211, 171, 0.84);
}

.launch-title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.launch-copy {
  margin: 0;
  max-width: 42ch;
  color: rgba(232, 239, 248, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.launch-signal-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.launch-signal-row span {
  padding: 0 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(223, 243, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-intro.is-visible .launch-orbit-a {
  animation: orbitFloatA 2400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.launch-intro.is-visible .launch-orbit-b {
  animation: orbitFloatB 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.launch-intro.is-visible .launch-orbit-c {
  animation: orbitFloatC 2200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.launch-intro.is-visible .launch-sweep {
  animation: introSweep 1800ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.launch-intro.is-visible .launch-crest {
  animation: crestArrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.launch-intro.is-visible .launch-kicker {
  animation: introLineIn 620ms ease 220ms both;
}

.launch-intro.is-visible .launch-title {
  animation: introLineIn 720ms ease 340ms both;
}

.launch-intro.is-visible .launch-copy {
  animation: introLineIn 720ms ease 520ms both;
}

.launch-intro.is-visible .launch-signal-row {
  animation: introLineIn 680ms ease 680ms both;
}

label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 760px) {
  .primary-button,
  .ghost-button,
  .small-button,
  .approve-button,
  .decline-button,
  .status-button {
    min-height: 48px;
  }

  .panel-actions,
  .ticket-actions,
  .rent-actions {
    flex-wrap: wrap;
  }

  .issue-filter-bar {
    grid-template-columns: 1fr;
  }

  .issue-filter-bar > * {
    min-width: 0;
  }

  .inspection-card .panel-header,
  .inspection-section-header,
  .inspection-item-head {
    flex-direction: column;
    align-items: stretch;
  }

  .inspection-template-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .inspection-workspace-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspection-workspace-summary .badge {
    justify-content: center;
  }

  .inspection-item,
  .inspection-template-item-row {
    padding: 18px;
  }

  .inspection-item .ticket-actions,
  .inspection-card .ticket-actions,
  .inspection-template-toolbar .ticket-actions,
  .inspection-template-item-row .ticket-actions,
  .inspection-workspace-modal .rent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inspection-item .ticket-actions button,
  .inspection-card .ticket-actions button,
  .inspection-template-toolbar .ticket-actions button,
  .inspection-template-item-row .ticket-actions button,
  .inspection-workspace-modal .rent-actions button {
    width: 100%;
    justify-content: center;
  }

  .inspection-workspace-modal .rent-actions {
    position: sticky;
    bottom: -24px;
    margin: 0 -24px -24px;
    padding: 18px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgba(8, 15, 10, 0.12), rgba(8, 15, 10, 0.96) 26%),
      rgba(8, 15, 10, 0.96);
    border-top: 1px solid var(--line);
  }

  .inspection-workspace-modal .property-meta-grid,
  .inspection-template-item-grid {
    grid-template-columns: 1fr;
  }

  .inspection-template-picker select,
  .inspection-template-toolbar .full,
  .inspection-template-editor .full {
    width: 100%;
  }

  .empty-state {
    padding: 22px;
  }
}

.auth-card,
.account-panel,
.metric-card,
.panel,
.ticket-card,
.inspection-card,
.property-card,
.timeline-item,
.modal {
  animation: rise-in 360ms ease;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitFloatA {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes orbitFloatB {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(12deg) scale(1);
  }
}

@keyframes orbitFloatC {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes crestArrive {
  from {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes introLineIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introSweep {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(0) rotate(18deg);
  }

  35% {
    opacity: 0.85;
  }

  to {
    opacity: 0;
    transform: translateY(-50%) translateX(330%) rotate(18deg);
  }
}

.location-panel {
  overflow: hidden;
}

.map-preview-shell {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(200, 232, 244, 0.28), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 249, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 20px 40px rgba(15, 32, 42, 0.1);
}

.map-preview-frame {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: linear-gradient(135deg, rgba(235, 243, 247, 0.92), rgba(225, 236, 241, 0.82));
}

@media (max-width: 1180px) {
  .auth-card,
  .trust-strip,
  .summary-grid,
  .card-grid,
  .workflow-grid,
  .issue-board,
  .ticket-form,
  .document-upload-form,
  .notice-compose-form,
  .feedback-grid,
  .issue-filter-bar,
  .split-grid,
  .message-compose-grid,
  .message-capture-grid,
  .documents-layout,
  .notices-layout,
  .vault-collection-grid,
  .role-toggle-grid,
  .rent-grid,
  .export-grid,
  .property-card-grid,
  .property-meta-grid,
  .screen-guide-grid,
  .inspection-template-strip,
  .inspection-template-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    padding: 18px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .command-result {
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .message-thread-header,
  .message-thread-footer {
    align-items: flex-start;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-header .panel-actions,
  .panel-header .ticket-actions,
  .panel-header .rent-actions {
    width: 100%;
  }

  .panel-header > * {
    min-width: 0;
  }

  .launch-intro-shell {
    width: min(92vw, 520px);
  }

  .launch-crest {
    width: 118px;
    height: 118px;
  }

  .launch-crest-mark {
    inset: 30px;
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  .modal {
    width: min(100vw - 18px, 920px);
    max-height: calc(100vh - 18px);
    padding: 18px;
    border-radius: 22px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .inspection-workspace-modal,
  .inspection-workspace-sections,
  .inspection-section,
  .inspection-template-editor {
    gap: 14px;
  }

  .inspection-workspace-summary {
    grid-template-columns: 1fr;
  }

  .rent-card-row {
    flex-direction: column;
  }

  .badge {
    min-height: 30px;
  }
}

/* 2026-05-09 visual system refresh */

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(132, 214, 255, 0.18), transparent 22%),
    radial-gradient(circle at 84% 8%, rgba(236, 211, 171, 0.14), transparent 18%),
    radial-gradient(circle at 78% 84%, rgba(132, 214, 255, 0.12), transparent 24%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.024), transparent 28%),
    linear-gradient(180deg, #050a11 0%, #09111a 32%, #101a24 100%);
}

.app-shell {
  min-height: 100dvh;
  height: 100dvh;
  grid-template-columns: 318px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 28px 22px 24px;
  background:
    radial-gradient(circle at 16% 10%, rgba(132, 214, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    rgba(5, 9, 15, 0.96);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 120px;
  border-radius: 32px;
  background: radial-gradient(circle at center, rgba(132, 214, 255, 0.08), transparent 72%);
  pointer-events: none;
}

.account-panel {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 50%),
    rgba(14, 22, 34, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 44px rgba(2, 6, 12, 0.26);
}

.account-stats span {
  min-height: 34px;
  padding-inline: 12px;
  background: rgba(132, 214, 255, 0.1);
}

.property-switcher {
  margin: 20px 0 26px;
}

.nav {
  flex: 1 1 auto;
  align-content: start;
  padding-bottom: 28px;
}

.property-switcher select,
.feedback-input,
.feedback-select,
.command-search-form input,
.issue-filter-bar input,
.issue-filter-bar select,
.auth-form input,
.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.message-compose-form textarea,
.document-upload-form input,
.document-upload-form select,
.document-upload-form textarea,
.notice-compose-form input,
.notice-compose-form select,
.notice-compose-form textarea {
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-button,
.role-button,
.reset-button,
.ghost-button,
.primary-button,
.status-button,
.small-button,
.approve-button,
.decline-button {
  border-radius: 18px;
}

.nav-button,
.role-button,
.reset-button {
  min-height: 52px;
}

.nav-button.is-active,
.role-button.is-active {
  background:
    linear-gradient(90deg, rgba(132, 214, 255, 0.18), rgba(132, 214, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 2px 0 0 rgba(223, 243, 255, 0.86),
    0 12px 28px rgba(3, 7, 13, 0.18);
}

.main {
  position: relative;
  min-width: 0;
  height: 100dvh;
  padding: 24px 28px 48px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable both-edges;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  background:
    radial-gradient(circle at 24% 22%, rgba(132, 214, 255, 0.12), transparent 28%),
    radial-gradient(circle at 72% 12%, rgba(236, 211, 171, 0.08), transparent 24%);
  pointer-events: none;
}

.main > * {
  position: relative;
  z-index: 1;
}

.topbar {
  position: relative;
  top: auto;
  z-index: 20;
  margin-bottom: 20px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 44%),
    rgba(10, 16, 24, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(2, 6, 12, 0.22);
}

.topbar h1 {
  max-width: 7.2ch;
}

.topbar-actions {
  gap: 12px;
}

.summary-grid {
  gap: 22px;
  margin-bottom: 24px;
}

.metric-card,
.panel,
.kanban-column,
.timeline-item,
.ticket-card,
.approval-card,
.rent-card,
.export-card,
.inspection-card,
.compliance-card,
.property-card {
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 30%),
    rgba(10, 17, 27, 0.88);
  box-shadow:
    0 26px 64px rgba(2, 6, 12, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 0.92;
}

.panel,
.ticket-card,
.approval-card,
.rent-card,
.export-card,
.inspection-card,
.compliance-card,
.property-card,
.timeline-item,
.kanban-column {
  padding: 22px;
}

.panel-header {
  margin-bottom: 18px;
}

.sync-indicator,
.ghost-button,
.primary-button,
.small-button,
.approve-button,
.decline-button,
.modal-close {
  min-height: 42px;
}

.sync-indicator {
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button,
.small-button {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.02));
}

.primary-button,
.approve-button {
  color: #07111b;
  border-color: transparent;
  background:
    linear-gradient(135deg, #f8f2e8 0%, #eddcb7 42%, #9fe2ff 100%);
  box-shadow:
    0 18px 36px rgba(236, 211, 171, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-shell {
  padding: 38px;
}

.auth-card {
  width: min(1100px, 100%);
  min-height: min(860px, 92vh);
  padding: 34px;
  gap: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(132, 214, 255, 0.12), transparent 18%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 38%),
    rgba(7, 11, 18, 0.95);
  backdrop-filter: blur(10px);
}

.auth-copy h1 {
  max-width: 11ch;
}

.trust-card,
.auth-quick-unlock,
.demo-card,
.install-callout {
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), transparent 50%),
    rgba(10, 18, 28, 0.88);
}

.trust-card {
  min-height: 132px;
}

.launch-title {
  max-width: 11ch;
}

.launch-signal-row span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.modal {
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 42%),
    rgba(8, 13, 20, 0.96);
}

.screen {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1600px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 292px minmax(0, 1fr);
  }

  .topbar {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    position: static;
    min-height: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .nav {
    padding-bottom: 0;
  }

  .topbar {
    position: static;
  }

  .main {
    height: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 22px;
  }

  .auth-card {
    padding: 24px;
    min-height: auto;
  }

  .main {
    padding-inline: 18px;
    padding-bottom: 32px;
  }

  .topbar {
    padding: 20px;
    border-radius: 24px;
  }
}
