@font-face {
  font-family: 'Residence Sans';
  src: url('../../home-assets/fonts/roboto-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Residence Sans';
  src: url('../../home-assets/fonts/roboto-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Residence Sans';
  src: url('../../home-assets/fonts/roboto-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --accent: #267064;
  --accent-ink: #15534b;
  --accent-soft: #e6f1eb;
  --ink: #142d30;
  --muted: #506463;
  --quiet: #5e716e;
  --paper: #f5f7f5;
  --surface: #fff;
  --line: #dce4de;
  --line-light: #e8ece8;
  --focus: #125f8b;
  --success: #216144;
  --success-surface: #e6f2e9;
  --warn: #825015;
  --warn-surface: #faf0da;
  --danger: #923b31;
  --danger-surface: #fbece9;
  --info: #2d5781;
  --info-surface: #e8f0f8;
  --neutral-surface: #edf0ed;
  --rail: 15.75rem;
  --radius: 1.12rem;
  --small-radius: 0.72rem;
  --shadow: 0 1px 2px #1e322509, 0 6px 22px -18px #18372930;
  --shadow-lift: 0 8px 30px -20px #17373055;
  --glass: #f7faf8;
  --heading-font: 'Residence Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hero-image: url('../../home-assets/residence-lounge-1280.webp');
  --banner-solid: #183e43;
  --banner-edge: #183e4300;
  font-family: var(--heading-font);
  font-size: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.48 var(--heading-font);
  -webkit-font-smoothing: antialiased;
}
body[data-residence='phumelela'] {
  --hero-image: url('../../phumelela/assets/residents-wide.webp');
  --banner-solid: #5b321e;
  --banner-edge: #5b321e00;
}
body[data-residence='ekaya'] {
  --hero-image: url('../../ekaya/assets/residents-wide.webp');
  --banner-solid: #124c61;
  --banner-edge: #124c6100;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: default;
  opacity: 0.65;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
}
a {
  color: var(--accent-ink);
  text-underline-offset: 0.17em;
}
a,
button,
label,
h1,
h2,
h3,
td,
th,
p,
dd {
  overflow-wrap: break-word;
}
img {
  display: block;
  max-inline-size: 100%;
}
figure,
dl,
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
p + p {
  margin-block-start: 0.65em;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.95rem, 2.7vw, 2.95rem);
  letter-spacing: -0.052em;
}
h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
  letter-spacing: -0.036em;
}
h3 {
  font-size: 1.06rem;
  letter-spacing: -0.022em;
}
small,
time {
  font-size: 0.875rem;
}
[hidden] {
  display: none !important;
}
.sr-only,
.sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link,
a.skip {
  position: fixed;
  z-index: 30;
  inset: 0.6rem auto auto 0.65rem;
  padding: 0.68rem 1rem;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus,
a.skip:focus {
  transform: none;
}
.icon,
svg:has(> use) {
  display: inline-block;
  width: 1.24rem;
  height: 1.24rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

.app-frame {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  z-index: 5;
  position: sticky;
  inset-block-start: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cad3cd transparent;
  padding: 1.35rem 0.9rem 1rem;
  border-inline-end: 1px solid var(--line);
  background: #fcfdfb;
}
.sidebar > .wordmark,
.sidebar .brand {
  align-self: flex-start;
  margin: 0.1rem 0.7rem 1.5rem;
}
.wordmark,
.wordmark img,
img.wordmark {
  width: 7.8rem;
  height: auto;
  object-fit: contain;
}
a.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
}
.tenant {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  margin: 0 0.12rem 1.15rem;
  padding: 0.77rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: linear-gradient(110deg, #fff, #f2f5f1);
  box-shadow: 0 2px 5px #15332306;
  color: var(--ink);
  text-decoration: none;
}
.tenant-mark {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 700;
}
.tenant-mark img,
img.tenant-mark {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  padding: 0.22rem;
}
.tenant-name {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}
.tenant small,
.tenant .muted,
.tenant-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.nav-label,
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.095em;
  color: var(--accent-ink);
  text-transform: uppercase;
}
.nav-label {
  margin: 0.5rem 0.77rem 0.42rem;
  color: var(--quiet);
}
.nav-list {
  display: grid;
  gap: 0.07rem;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.74rem;
  min-block-size: 2.78rem;
  padding: 0.52rem 0.77rem;
  border: 1px solid transparent;
  border-radius: 0.62rem;
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  color: #405653;
  transition:
    background-color 0.16s,
    color 0.16s,
    border-color 0.16s;
}
.nav-list a .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.nav-list a:hover {
  background: var(--neutral-surface);
  color: var(--ink);
}
.nav-list a[aria-current='page'],
.nav-list a.active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 19%, transparent);
  color: var(--accent-ink);
  font-weight: 700;
}
.sidebar-foot {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
  padding: 1.15rem 0.35rem 0.2rem;
  color: var(--quiet);
}
.sidebar-foot a,
.sidebar-foot button {
  font-size: 0.9rem;
}
.sidebar-foot > small {
  font-size: 0.76rem;
}
.workarea {
  min-width: 0;
}
.topbar {
  position: sticky;
  z-index: 4;
  top: 0;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem clamp(1.2rem, 3.2vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  background: var(--glass);
}
.crumb,
.breadcrumbs,
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.crumb,
.breadcrumbs {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
}
.crumb a,
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.crumb a:hover,
.breadcrumbs a:hover {
  text-decoration: underline;
}
.crumb svg {
  width: 0.92rem;
  height: 0.92rem;
}
.top-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 1.9rem;
  padding: 0.24rem 0.72rem;
  border: 1px solid #d9d5bc;
  border-radius: 100px;
  background: #f9f5e8;
  color: #6b5222;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.mode-pill .icon {
  width: 0.96rem;
  height: 0.96rem;
}
.mode-pill[data-mode='live'],
.mode-pill.live {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: var(--line);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.icon-button:hover {
  border-color: #bdc9c1;
  background: #f1f5f1;
}
#menu-toggle,
.scrim,
.bottom-nav {
  display: none;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .topbar,
  .bottom-nav {
    background: #f8fbf8e8;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.content {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding: clamp(1.4rem, 2.6vw, 2.55rem) clamp(1.2rem, 3.2vw, 3.25rem) 3rem;
}
.intro,
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.intro {
  margin-bottom: 1.45rem;
}
.intro > div,
.section-head > div {
  min-width: 0;
}
.intro h1,
.intro .subtitle {
  margin-top: 0.38rem;
}
.subtitle {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1rem;
}
.actions,
.dialog-actions,
.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
button,
.button {
  color: var(--ink);
}
.button,
.dialog-actions button,
.pagination button,
.auth-card button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  min-block-size: 2.7rem;
  padding: 0.6rem 0.98rem;
  border: 1px solid var(--line);
  border-radius: var(--small-radius);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.button .icon {
  width: 1.03rem;
  height: 1.03rem;
}
.button:hover,
.dialog-actions button:hover,
.pagination button:not(:disabled):hover {
  background: #f3f6f2;
  border-color: #b7c7bc;
}
.button.primary,
.dialog-actions .primary,
.auth-card button[type='submit'] {
  border-color: transparent;
  background: var(--accent-ink);
  color: #fff;
  box-shadow: 0 2px 6px #26342b14;
}
.button.primary:hover,
.dialog-actions .primary:hover,
.auth-card button[type='submit']:hover {
  filter: brightness(0.93);
}
.button.danger,
.dialog-actions .danger {
  color: var(--danger);
  border-color: #e5c7c2;
  background: var(--danger-surface);
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--accent-ink);
}
.button:active:not(:disabled),
.feature-card:active {
  transform: translateY(1px);
}
.overview-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(12.25rem, 16.3vw, 16.75rem);
  padding: clamp(1.45rem, 2.7vw, 2.7rem);
  border: 1px solid #2633271a;
  border-radius: 1.4rem;
  background: var(--banner-solid);
  color: #fff;
}
.overview-banner::before,
.overview-banner::after {
  content: '';
  pointer-events: none;
  z-index: -1;
  position: absolute;
  inset: 0;
}
.overview-banner::before {
  left: 34%;
  background: var(--hero-image) 80% 50% / cover no-repeat;
}
.overview-banner::after {
  background: linear-gradient(90deg, var(--banner-solid) 0%, var(--banner-solid) 38%, var(--banner-edge) 83%);
}
.banner-copy {
  position: relative;
  width: min(48%, 33rem);
}
.banner-copy .eyebrow {
  color: #f6f3e8;
}
.banner-copy :is(h1, h2) {
  color: white;
  font-size: clamp(1.8rem, 2.65vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.banner-copy :is(h1, h2) em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
.banner-copy > :is(h1, h2, h3) + p,
.banner-copy .eyebrow + :is(h1, h2, h3),
.banner-copy .actions {
  margin-top: 0.58rem;
}
.banner-copy p:not(.eyebrow) {
  max-width: 35ch;
  color: #f2f2e9;
  font-size: 0.96rem;
}
.banner-copy .button {
  min-height: 2.55rem;
  background: #fff;
  border-color: #ffffff73;
  color: #203936;
  box-shadow: none;
}
.banner-copy .button:hover {
  background: #eef3eb;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.15rem), 1fr));
  gap: 0.78rem;
  margin-block: 1rem 1.55rem;
}
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
  min-height: 7.3rem;
  padding: 0.98rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.metric a {
  color: inherit;
}
.metric > .icon,
.metric > .metric-icon {
  align-self: flex-end;
  position: absolute;
  right: 0.94rem;
  top: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent-ink);
}
.metric-value {
  order: 1;
  font-size: clamp(1.7rem, 2.3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  order: 2;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.25;
}
.metric small:not(.metric-label) {
  order: 3;
  color: var(--quiet);
  font-size: 0.78rem;
}
.metric-grid > a.metric:hover {
  border-color: var(--accent);
}
.section-head {
  margin-block: 1.5rem 0.77rem;
  align-items: center;
}
.section-head p:not(.eyebrow),
.panel header > p,
.panel .subtitle {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.91rem;
}
.section-head > a:not(.button),
.panel header a:not(.button) {
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 0.9rem;
}
.panel,
.auth-card,
.demo-card {
  min-width: 0;
  padding: clamp(1.05rem, 1.8vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel > header,
.panel > .section-head:first-child {
  margin: 0 0 0.85rem;
}
.panel > .section-head:first-child:only-child {
  margin-bottom: 0;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-block: 1rem;
}
.panel + .panel,
.filters + .panel {
  margin-top: 1rem;
}
.panel-grid > .panel + .panel {
  margin-top: 0;
}
.stack {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}
.stack > .panel + .panel {
  margin-top: 0;
}
.record-list {
  list-style: none;
  display: grid;
  margin: 0;
  padding: 0;
}
.record-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.76rem;
  padding: 0.82rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.record-row:last-child {
  border-bottom: 0;
}
a.record-row:hover,
button.record-row:hover {
  background: #f6f8f5;
}
.record-icon,
.feature-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.28rem;
  height: 2.28rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.record-icon .icon,
.feature-icon .icon {
  width: 1.12rem;
  height: 1.12rem;
}
.record-copy,
.record-meta {
  min-width: 0;
}
.record-copy {
  display: grid;
  gap: 0.12rem;
  flex: 1;
}
.record-copy strong {
  font-size: 0.94rem;
  line-height: 1.35;
}
.record-copy :is(small, p, span):not(.tag),
.record-meta small {
  color: var(--muted);
  font-size: 0.84rem;
}
.record-meta {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  text-align: right;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.22rem 0.53rem;
  border-radius: 0.45rem;
  background: var(--neutral-surface);
  color: #465953;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
}
.tag[data-tone='good'],
.tag[data-tone='success'],
.tag[data-tone='positive'] {
  background: var(--success-surface);
  color: var(--success);
}
.tag[data-tone='warn'],
.tag[data-tone='warning'],
.tag[data-tone='pending'] {
  background: var(--warn-surface);
  color: var(--warn);
}
.tag[data-tone='bad'],
.tag[data-tone='danger'],
.tag[data-tone='error'],
.tag[data-tone='urgent'] {
  background: var(--danger-surface);
  color: var(--danger);
}
.tag[data-tone='info'],
.tag[data-tone='active'] {
  background: var(--info-surface);
  color: var(--info);
}
.tag[data-tone='accent'] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.feature-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.75rem;
}
.feature-card,
.demo-grid > a {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.44rem;
  min-width: 0;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.88rem;
  background: #fff;
  box-shadow: var(--shadow);
  font: inherit;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.feature-card:hover,
.demo-grid > a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}
.feature-card > .icon,
.demo-grid > a > .icon {
  color: var(--accent-ink);
  width: 1.4rem;
  height: 1.4rem;
  margin-bottom: 0.25rem;
}
.feature-card p,
.feature-card small,
.demo-grid > a p {
  color: var(--muted);
  font-size: 0.9rem;
}
.feature-card strong {
  font-size: 1rem;
  line-height: 1.25;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
  margin-block: 1rem;
}
.filters .field,
.filters > label {
  flex: 1 1 8.75rem;
}
.filters .field:has(input[type='search']),
.filters > label:has(input[type='search']) {
  flex: 2 1 14rem;
}
.filters .button {
  flex-shrink: 0;
}
.field,
.form-grid > label,
.filters > label,
.auth-card label {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
}
.field small,
.form-help,
.muted {
  color: var(--muted);
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.form-grid > .full,
.form-grid > .wide,
.form-grid .field:has(textarea) {
  grid-column: 1 / -1;
}
input:not([type='checkbox'], [type='radio'], [type='hidden']),
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.74rem;
  border: 1px solid #becbc1;
  border-radius: 0.62rem;
  background-color: #fff;
  color: var(--ink);
  font-size: max(1rem, 16px);
  font-weight: 400;
  line-height: 1.4;
}
select {
  appearance: none;
  padding-inline-end: 2.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='none' stroke='%23465d54' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 2.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}
textarea {
  min-height: 6rem;
  resize: vertical;
}
:is(input, textarea)::placeholder {
  color: #6a7a73;
}
input[type='checkbox'],
input[type='radio'] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent-ink);
}
input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--danger);
}
input[type='file']::file-selector-button {
  margin-right: 0.5rem;
  border: 0;
  border-radius: 0.35rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 0.28rem 0.45rem;
  font: inherit;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #bdcbbf #f3f6f2;
}
table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.93rem;
  text-align: left;
}
caption {
  padding-bottom: 0.7rem;
  text-align: left;
  color: var(--muted);
}
th,
td {
  padding: 0.72rem 0.78rem;
  border-bottom: 1px solid var(--line-light);
  white-space: normal;
  vertical-align: middle;
}
th {
  background: #f1f5f0;
  color: #465a52;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.2;
}
thead th:first-child {
  border-start-start-radius: 0.45rem;
}
thead th:last-child {
  border-start-end-radius: 0.45rem;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:focus-within,
tbody tr:hover {
  background: #f8faf7;
}
td .button {
  min-height: 2.38rem;
  padding: 0.45rem 0.68rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.48rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.pagination span {
  margin-inline-end: auto;
}
.empty,
.notice,
.skeleton {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  background: #f7f9f6;
}
.empty {
  padding: 1.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.empty strong,
.notice strong {
  color: var(--ink);
}
.empty > .icon {
  color: var(--accent-ink);
  margin-bottom: 0.35rem;
}
.notice {
  padding: 0.72rem 0.95rem;
  margin-bottom: 1rem;
  color: #344e42;
}
.notice[data-tone='error'],
.notice[data-tone='danger'] {
  background: var(--danger-surface);
  border-color: #ebc9c3;
  color: var(--danger);
}
.notice[data-tone='warn'],
.notice[data-tone='warning'] {
  background: var(--warn-surface);
  border-color: #ead9ac;
  color: #725018;
}
.notice[data-tone='success'],
.notice[data-tone='good'] {
  background: var(--success-surface);
  border-color: #c6dfcb;
  color: var(--success);
}
#feedback:empty {
  display: none;
}
.skeleton {
  min-height: 3.2rem;
  background: linear-gradient(90deg, #e9eee8, #f5f7f4 46%, #e9eee8 83%);
  background-size: 220% 100%;
  animation: loading 1.5s ease-in-out infinite alternate;
}
@keyframes loading {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
dialog {
  width: min(33rem, calc(100% - 2rem));
  max-height: min(87vh, 54rem);
  max-height: min(87dvh, 54rem);
  padding: clamp(1.1rem, 2.7vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ccd7cf;
  border-radius: 1.17rem;
  background: #fff;
  box-shadow: 0 20px 80px #162e2240;
  color: var(--ink);
}
dialog::backdrop {
  background: #17372f6b;
}
dialog[open] {
  animation: dialog-in 0.16s ease-out;
}
dialog > :is(h1, h2, h3, header) {
  margin-bottom: 0.85rem;
}
dialog > form,
dialog form.stack {
  display: grid;
  gap: 0.85rem;
}
.dialog-actions {
  justify-content: flex-end;
  padding-top: 0.65rem;
}
dialog .notice {
  margin-bottom: 0.45rem;
}
dialog dl {
  display: grid;
  gap: 0.42rem;
}
dialog dt {
  color: var(--muted);
  font-size: 0.85rem;
}
dialog dd {
  margin: 0;
}
@keyframes dialog-in {
  from {
    opacity: 0.4;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-view {
  min-height: 100vh;
  background: radial-gradient(ellipse at 22% 12%, #e4ede5 0, #eef3ee 40%, #f4f6f3 79%);
}
.auth-layout {
  width: min(100% - 2rem, 70rem);
  min-height: 95vh;
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding-block: 2rem;
}
.auth-card {
  width: min(100%, 29rem);
  padding: clamp(1.35rem, 4vw, 2.5rem);
}
.auth-card .wordmark,
.auth-card img.wordmark {
  margin-bottom: 1.6rem;
}
.auth-card h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.auth-card h1 + p,
.auth-card header p {
  color: var(--muted);
}
.auth-card form,
.auth-card .stack {
  display: grid;
  gap: 0.9rem;
  margin-block: 1.2rem;
}
.auth-card .actions {
  margin-top: 1rem;
}
.auth-card a:not(.button) {
  font-weight: 500;
}
.auth-card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.auth-card .notice {
  margin-top: 0.8rem;
}
.auth-card nav.stack {
  justify-items: start;
  gap: 0.18rem;
  margin-bottom: 0;
}
.auth-card nav.stack a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
}
@media (min-width: 60rem) {
  .auth-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 53rem);
    min-height: 26rem;
    padding: 2.4rem 2.4rem 2.4rem min(25rem, 43%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 1.45rem;
    box-shadow:
      0 2px 3px #243b2909,
      0 18px 60px -37px #28463055;
  }
  .auth-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0.52rem;
    bottom: 0.52rem;
    left: 0.52rem;
    width: 41.5%;
    border-radius: 1rem;
    background: #294947 var(--hero-image) 77% 52% / cover no-repeat;
  }
}

@media (min-width: 90rem) {
  :root {
    --rail: 17rem;
  }
  .sidebar {
    padding-inline: 1.15rem;
  }
}
@media (max-width: 74rem) {
  :root {
    --rail: 13.7rem;
  }
  .sidebar {
    padding-inline: 0.63rem;
  }
  .content {
    padding-inline: 1.35rem;
  }
  .topbar {
    padding-inline: 1.35rem;
  }
}
@media (max-width: 61.99rem) {
  .app-frame {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(18.4rem, 87vw);
    z-index: 12;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      transform 0.2s ease,
      visibility 0.2s;
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }
  body.nav-open .scrim {
    display: block;
    z-index: 11;
    position: fixed;
    inset: 0;
    background: #132d2559;
    border: 0;
    padding: 0;
  }
  #menu-toggle {
    display: inline-grid;
  }
  .topbar {
    min-height: 3.85rem;
  }
  .topbar #menu-toggle {
    margin-inline-end: 0.15rem;
  }
  .topbar > .crumb {
    margin-right: auto;
  }
  .content {
    padding-block-start: 1.45rem;
  }
  .bottom-nav:not(:empty) {
    position: fixed;
    z-index: 7;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    min-height: 3.95rem;
    padding: 0.28rem max(0.55rem, env(safe-area-inset-right)) max(0.27rem, env(safe-area-inset-bottom))
      max(0.55rem, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px #18372c0c;
    background-color: #f8fbf8f5;
  }
  .bottom-nav :is(a, button) {
    flex: 1 1 0;
    max-width: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.18rem;
    min-height: 2.85rem;
    padding: 0.25rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: #51645b;
    line-height: 1.12;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
  }
  .bottom-nav [aria-current='page'] {
    color: var(--accent-ink);
    background: var(--accent-soft);
    font-weight: 700;
  }
  .bottom-nav .icon {
    width: 1.2rem;
    height: 1.2rem;
  }
  body:has(.bottom-nav:not(:empty)) .content {
    padding-bottom: calc(5.3rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 43.99rem) {
  .topbar {
    gap: 0.4rem;
    padding: 0.45rem 0.82rem;
    min-height: 3.6rem;
  }
  .crumb,
  .breadcrumbs {
    font-size: 0.86rem;
    gap: 0.36rem;
  }
  .top-actions {
    gap: 0.4rem;
  }
  .mode-pill {
    min-height: 1.7rem;
    padding: 0.22rem 0.5rem;
    font-size: 0.75rem;
  }
  .top-actions .icon-button,
  #menu-toggle {
    width: 2.74rem;
    height: 2.74rem;
  }
  .content {
    padding: 1.16rem 1rem 2rem;
  }
  .intro,
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  .intro {
    margin-bottom: 1rem;
  }
  .intro .subtitle {
    font-size: 0.95rem;
  }
  .overview-banner {
    min-height: 11.5rem;
    padding: 1.2rem;
    border-radius: 1rem;
  }
  .banner-copy {
    width: 57%;
  }
  .banner-copy p:not(.eyebrow) {
    font-size: 0.89rem;
  }
  .banner-copy :is(h1, h2) {
    font-size: clamp(1.55rem, 5.7vw, 2.3rem);
  }
  .overview-banner::before {
    left: 41%;
    background-position: 76% 49%;
  }
  .overview-banner::after {
    background: linear-gradient(
      90deg,
      var(--banner-solid) 0%,
      var(--banner-solid) 45%,
      var(--banner-edge) 84%
    );
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-block: 0.73rem 1.13rem;
  }
  .metric {
    min-height: 6.15rem;
    padding: 0.83rem;
    border-radius: 0.86rem;
  }
  .metric-value {
    font-size: 1.75rem;
  }
  .metric-label {
    font-size: 0.83rem;
  }
  .metric > .icon,
  .metric > .metric-icon {
    top: 0.64rem;
    right: 0.65rem;
    width: 1rem;
    height: 1rem;
  }
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
  .panel {
    border-radius: 0.92rem;
  }
  .section-head {
    margin-top: 1.2rem;
  }
  .feature-grid,
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }
  .feature-card,
  .demo-grid > a {
    padding: 0.83rem;
  }
  .filters {
    gap: 0.5rem;
  }
  .filters .field,
  .filters > label {
    flex-basis: 7.8rem;
  }
  .filters .field:has(input[type='search']),
  .filters > label:has(input[type='search']) {
    flex-basis: 100%;
  }
  .table-scroll table {
    min-width: 33rem;
  }
  .table-scroll table:has(th:nth-child(6)) {
    min-width: 48rem;
  }
  th,
  td {
    padding: 0.65rem;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .record-row {
    gap: 0.55rem;
  }
  .record-icon {
    width: 1.98rem;
    height: 1.98rem;
  }
}
@media (max-width: 28rem) {
  .content {
    padding-inline: 0.8rem;
  }
  .topbar {
    padding-inline: 0.6rem;
  }
  .overview-banner {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .overview-banner::before {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(6rem, 23vw, 7.2rem);
    background-position: 70% 49%;
  }
  .overview-banner::after {
    display: none;
  }
  .banner-copy {
    width: 100%;
    padding: 1rem 1.1rem 1.12rem;
  }
  .banner-copy :is(h1, h2) {
    max-width: 21ch;
  }
  .banner-copy p:not(.eyebrow) {
    max-width: 100%;
  }
  .feature-card,
  .demo-grid > a {
    gap: 0.4rem;
  }
  .record-meta {
    max-width: 34%;
  }
  .record-meta small {
    font-size: 0.76rem;
  }
  .tag {
    font-size: 0.76rem;
  }
  .pagination {
    justify-content: flex-start;
  }
}
@media (max-width: 22rem) {
  .top-actions {
    max-width: 54%;
  }
  .feature-grid,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .bottom-nav {
    background: #f8faf7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media print {
  body,
  .workarea,
  .content {
    background: #fff;
    color: #111;
  }
  .app-frame,
  .panel-grid {
    display: block;
  }
  .sidebar,
  .topbar,
  .scrim,
  .bottom-nav,
  .actions,
  .filters,
  .pagination,
  .icon-button,
  .button,
  .skip-link {
    display: none !important;
  }
  .content {
    padding: 0;
    width: 100%;
  }
  .overview-banner {
    color: #111;
    background: #fff;
    min-height: 0;
    padding: 0.7rem 0;
    border: 0;
  }
  .overview-banner::after,
  .overview-banner::before {
    display: none;
  }
  .banner-copy,
  .banner-copy :is(h1, h2),
  .banner-copy p:not(.eyebrow) {
    width: 100%;
    color: #111;
  }
  .panel,
  .metric {
    box-shadow: none;
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
}
/* Record detail, audit trail and directory refinements. */
[hidden] {
  display: none !important;
}
.record-link {
  border: 0;
  padding: 0.45rem 0;
  color: var(--accent-ink);
  text-align: left;
  background: transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.table-scroll td small,
.timeline small {
  display: block;
  color: var(--muted);
}
.scope-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.9rem 0;
}
.detail-meta,
.related {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.detail-meta {
  font-size: 0.87rem;
  color: var(--muted);
}
.record-detail {
  white-space: pre-wrap;
  margin: 1rem 0;
}
.record-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 1rem;
}
.record-fields > div {
  border-top: 1px solid var(--line);
  padding: 0.5rem 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.timeline {
  padding-left: 1.1rem;
  margin: 0.7rem 0;
}
.timeline li {
  padding: 0.4rem 0;
  overflow-wrap: anywhere;
}
.timeline strong {
  font-size: 0.94rem;
}
.dialog-inner h3 {
  margin: 1.2rem 0 0.5rem;
}
.dialog-inner > .section-head {
  margin-top: 0;
}
.dialog-inner > .section-head h2 {
  overflow-wrap: anywhere;
}
.report-bars {
  display: grid;
  gap: 0.45rem;
}
.report-bars > div {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(3rem, 3fr) 2rem;
  align-items: center;
  gap: 0.7rem;
}
.report-bars progress {
  width: 100%;
  height: 0.6rem;
  accent-color: var(--accent);
}
.banner-copy .button {
  margin-top: 0.8rem;
}
.directory-page .content {
  max-width: 75rem;
  margin-inline: auto;
}
.directory-page > .topbar {
  justify-content: space-between;
}
.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.record-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.directory-page .feature-card span:last-child:not(.feature-icon) {
  color: var(--muted);
}
.panel + .panel {
  margin-top: 1rem;
}
.dialog-inner .actions {
  margin: 0.9rem 0;
}
.scope-switch label {
  display: grid;
  gap: 0.35rem;
}
.sidebar-foot select {
  max-width: 100%;
  padding: 0.55rem;
}
.record-fields dd {
  font-size: 1rem;
}
.record-fields dd,
.register-panel td,
.record-copy strong {
  overflow-wrap: anywhere;
}

@media (max-width: 540px) {
  .topbar > .top-actions {
    flex-wrap: nowrap;
    gap: 0.38rem;
  }
  .topbar > .top-actions:first-child {
    justify-content: flex-start;
  }
  .topbar .crumb-role {
    display: none;
  }
  .topbar .crumb {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .topbar .mode-pill {
    padding-inline: 0.49rem;
  }
  .topbar .top-actions > .button {
    padding-inline: 0.68rem;
    white-space: nowrap;
  }
}
@media (max-width: 350px) {
  .topbar .crumb {
    display: none;
  }
}
