@import url("./design-tokens.css?v=20260625-statusicons1");

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/roboto/Roboto-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/roboto/Roboto-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/roboto/Roboto-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/roboto/Roboto-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/static/fonts/material-icons/MaterialIcons-Regular.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page-bg: var(--color-page-bg);
  --page-bg-accent: var(--color-page-bg-accent);
  --surface: var(--color-surface);
  --surface-strong: var(--color-surface-strong);
  --surface-muted: var(--color-surface-muted);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --accent: var(--color-primary);
  --accent-strong: var(--color-primary-strong);
  --accent-soft: var(--color-primary-soft);
  --accent-soft-strong: var(--color-primary-soft-strong);
  --warm: var(--color-warning);
  --warm-soft: var(--color-warning-soft);
  --shadow-soft: 0 1px 4px var(--color-black-alpha-14);
  --shadow-card: 0 1px 4px var(--color-black-alpha-14);
  --shadow-elevated:
    0 10px 30px -12px var(--color-black-alpha-42),
    0 4px 25px 0 var(--color-black-alpha-12),
    0 8px 10px -5px var(--color-black-alpha-20);
  --shadow-button:
    0 2px 2px 0 var(--color-admin-purple-alpha-14),
    0 3px 1px -2px var(--color-admin-purple-alpha-20),
    0 1px 5px 0 var(--color-admin-purple-alpha-12);
  --radius-xs: 3px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --font-size-body: 14px;
  --font-size-meta: 12px;
  --font-size-title: 18px;
  --shell-header-height: 48px;
  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-5: 30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: var(--font-size-body);
  line-height: 1.428571429;
  background: var(--page-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: none;
  display: none;
}

a {
  color: inherit;
}

body,
button,
input,
textarea,
select {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

.material-icons {
  font-family: "Material Icons";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  font-size: var(--font-size-title);
  line-height: 1.3333333;
}

h4 {
  font-size: 16px;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-4) 0;
}

.topbar {
  display: none;
}

.auth-bar {
  width: min(1320px, calc(100% - 30px));
  margin: 30px auto 0;
}

.app-shell {
  --shell-sidebar-width: 260px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-left: var(--shell-sidebar-width);
  transition: padding-left 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
}

body.shell-sidebar-collapsed .app-shell {
  --shell-sidebar-width: 74px;
}

.app-shell__scrim {
  position: fixed;
  inset: 0;
  z-index: 1031;
  background: var(--color-black-alpha-35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--shell-sidebar-width);
  min-height: 100vh;
  z-index: 1032;
  transition:
    width 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1),
    transform 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
}

.app-sidebar__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  width: 100%;
  padding: 0;
  border: 0;
  border-right: 0;
  border-radius: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.app-sidebar__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 75px;
  padding: 15px;
}

.app-sidebar__head::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 1px;
  background: var(--color-neutral-alpha-30);
}

.app-sidebar__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 5px 0;
  color: var(--text);
  text-decoration: none;
}

.app-brand:hover {
  background: transparent;
}

.app-brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  box-shadow: none;
}

.app-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.app-brand__title {
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-brand__subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__close,
.app-sidebar__collapse,
.app-header__menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-admin-muted-light);
}

.app-sidebar__close,
.app-sidebar__collapse,
.app-header__menu-button {
  width: 36px;
  height: 36px;
}

.app-sidebar__close:hover,
.app-sidebar__collapse:hover,
.app-header__menu-button:hover {
  transform: none;
  background: var(--color-neutral-light-alpha-20);
  color: var(--text);
}

.app-sidebar__collapse {
  position: relative;
}

.app-sidebar__close {
  display: none;
  flex: 0 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-sidebar__close .material-icons,
.app-sidebar__collapse .material-icons,
.app-header__menu-button .material-icons {
  font-size: 24px;
}

.shell-nav {
  flex: 1 1 auto;
  padding: 15px 0 30px;
  overflow: auto;
}

.shell-nav__divider {
  display: block;
  width: calc(100% - 30px);
  height: 1px;
  margin: 15px 15px;
  background: var(--color-neutral-alpha-30);
}

.shell-nav__link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 50px;
  margin: 10px 15px 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.shell-nav__form {
  margin: 0;
}

.shell-nav__button {
  width: calc(100% - 30px);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 50px;
  margin: 10px 15px 0;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.shell-nav__link:first-of-type {
  margin-top: 0;
}

.shell-nav__link:hover,
.shell-nav__button:hover {
  transform: none;
  background: var(--color-neutral-light-alpha-20);
  color: var(--text);
}

.shell-nav__link.is-active {
  background: var(--accent);
  color: var(--color-surface);
  box-shadow: 0 4px 20px 0 var(--color-black-alpha-14), 0 7px 10px -5px var(--color-admin-purple-alpha-40);
}

.shell-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--color-admin-muted-light);
  font-size: 24px;
  line-height: 30px;
}

.shell-nav__link.is-active .shell-nav__icon {
  color: var(--color-surface);
}

.shell-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}

.auth-bar .app-brand {
  width: fit-content;
}

body.shell-sidebar-collapsed .app-brand {
  justify-content: center;
  width: 30px;
  overflow: hidden;
}

body.shell-sidebar-collapsed .app-sidebar__frame {
  overflow: hidden;
}

body.shell-sidebar-collapsed .app-sidebar__controls {
  margin-left: auto;
}

body.shell-sidebar-collapsed .app-brand__copy,
body.shell-sidebar-collapsed .shell-nav__label {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  transform: translateX(-4px);
}

body.shell-sidebar-collapsed .shell-nav__link {
  grid-template-columns: 1fr;
  justify-items: center;
  margin-inline: 15px;
  padding: 10px 0;
}

body.shell-sidebar-collapsed .shell-nav__button {
  width: 50px;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-inline: 15px;
  padding: 10px 0;
}

body.shell-sidebar-collapsed .shell-nav__divider {
  width: 30px;
  margin-inline: 25px;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  background: var(--page-bg);
}

body.route-inbox .app-main {
  gap: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 70px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 1px solid var(--color-border-muted-solid);
  border-radius: 0;
  background: var(--color-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.app-header__lead,
.app-header__actions,
.nav-cluster,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex-wrap: nowrap;
}

.app-header__lead {
  flex: 1 1 auto;
  gap: 15px;
  min-height: 42px;
}

.app-header__context {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__actions {
  justify-content: flex-end;
  gap: 15px;
  min-height: 42px;
}

.app-header__menu-button {
  display: none;
}

.app-header__language-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: nowrap;
}

.app-header__logout-form {
  display: inline-flex;
  margin: 0;
}

.app-header__account {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.app-header__account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(300px, 34vw);
  height: 32px;
  padding: 0 8px 0 7px;
  margin: 0;
  gap: 6px;
  border: 1px solid var(--color-border-muted-solid);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: none;
  color: var(--color-text-muted-strong);
  cursor: pointer;
}

.app-header__account-toggle .material-icons {
  flex: 0 0 18px;
  font-size: 18px;
}

.app-header__account-name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  color: var(--color-text-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header__account-chevron {
  margin-left: 1px;
  font-size: 16px !important;
  transition: transform 0.18s ease;
}

.app-header__account.is-open .app-header__account-chevron {
  transform: rotate(180deg);
}

.app-header__account-toggle:hover,
.app-header__account.is-open .app-header__account-toggle,
.app-header__account.is-current .app-header__account-toggle {
  border-color: var(--color-neutral-border-alpha-70);
  background: var(--color-surface);
  color: var(--color-text-muted-strong);
  box-shadow: none;
}

.app-header__account-toggle:focus-visible {
  border-color: var(--color-neutral-border-alpha-70);
  background: var(--color-surface);
  outline: 2px solid var(--color-border-muted-solid);
  outline-offset: 1px;
  box-shadow: none;
}

.app-header__account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 130;
  width: 224px;
  padding: 6px;
  border: 1px solid var(--color-border-muted-solid);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-elevated);
}

.app-header__account.is-open .app-header__account-menu {
  display: grid;
  gap: 2px;
}

.app-header__account-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 8px 10px 7px;
}

.app-header__account-identity strong,
.app-header__account-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header__account-identity strong {
  color: var(--color-text-strong);
  font-size: 13px;
  line-height: 1.25;
}

.app-header__account-identity span {
  color: var(--color-text-muted-strong);
  font-size: 11px;
  line-height: 1.25;
}

.app-header__account-item,
.app-header__account-menu .app-header__logout-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  margin: 0;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--color-text-strong);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

.app-header__account-item .material-icons,
.app-header__account-menu .app-header__logout-button .material-icons {
  flex: 0 0 18px;
  font-size: 18px;
}

.app-header__account-item:hover,
.app-header__account-item:focus-visible,
.app-header__account-menu .app-header__logout-button:hover,
.app-header__account-menu .app-header__logout-button:focus-visible {
  background: var(--color-black-alpha-04);
  color: var(--accent);
  outline: 0;
}

.app-header__account-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.app-header__account-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--color-border-muted-solid);
}

.app-header__account-menu .app-header__logout-form {
  width: 100%;
}

.app-header__language-form label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 400;
  text-transform: none;
}

.app-header__language-form select {
  width: auto;
  min-width: 0;
  min-height: 28px;
  padding: 3px 9px;
  margin-bottom: 0;
  font-size: 11px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.app-header__logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text-muted-strong);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
  cursor: pointer;
}

.app-header__logout-button:hover,
.app-header__logout-button:focus-visible {
  color: var(--text);
  outline: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.3;
}

.user-chip--shell {
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  font-size: var(--font-size-meta);
  font-weight: 400;
}

.page {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

body.has-app-shell .page {
  width: 100%;
  margin: 0;
  padding: 30px 15px 48px;
}

body.has-app-shell .page.page--inbox {
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: calc(100vh - var(--shell-header-height));
}

.page.page--auth {
  width: min(720px, calc(100% - 28px));
  padding-top: 24px;
}

.page > :first-child {
  margin-top: 0;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 0;
  border-left: 4px solid var(--color-success);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.flash.success {
  border-left-color: var(--color-success);
}

.flash.warning {
  border-left-color: var(--color-warning);
}

.flash.error {
  border-left-color: var(--color-danger);
}

.hero-card,
.auth-card,
.page > .section-head {
  position: relative;
  overflow: visible;
  margin: 25px 0;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.hero-card::before,
.auth-card::before,
.page > .section-head::before {
  content: none;
}

.hero-card > *,
.auth-card > *,
.page > .section-head > * {
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.card > .section-head {
  margin: -20px -20px 15px;
  padding: 15px 20px 0;
  border-bottom: 0;
}

.page > .section-head {
  padding: 20px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 25px;
}

.metric-card {
  padding: 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.metric-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.2;
}

.card {
  overflow: auto;
  margin: 25px 0;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-bottom: 10px;
}

.card p strong {
  color: var(--color-admin-ink-dark);
}

.card.narrow,
.auth-card,
.narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
}

.auth-card {
  width: min(560px, 100%);
}

.auth-card form:not(.auth-login-form) {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stack {
  display: grid;
  gap: 14px;
}

table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
}

thead th {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border-solid);
}

tbody td {
  padding: 10px 8px;
  border-top: 1px solid var(--color-surface-section);
  vertical-align: middle;
}

tbody tr {
  transition: background-color 0.18s ease;
}

tbody tr:hover {
  background: var(--color-black-alpha-015);
}

tbody tr:hover td {
  border-top-color: var(--color-surface-section);
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--text);
  font: inherit;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-admin-purple-alpha-12);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

table input,
table textarea,
table select {
  margin-bottom: 0;
  padding: 10px 12px;
  min-width: 140px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.checkbox input {
  width: auto;
  margin: 0;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(60deg, var(--accent), var(--accent-strong));
  color: var(--color-surface);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover,
.button:hover {
  transform: none;
  filter: none;
  box-shadow: var(--shadow-elevated);
}

button.secondary,
.button.secondary {
  border-color: var(--color-border-control);
  background: var(--color-surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--color-surface);
}

button.button-rose,
.button.button-rose {
  background: var(--color-primary-gradient);
  color: var(--color-surface);
  box-shadow: var(--color-primary-shadow-elevated);
}

.app-header button.secondary,
.app-header .button.secondary {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: var(--font-size-meta);
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: none;
}

.app-header button.secondary:hover,
.app-header .button.secondary:hover {
  background: var(--color-neutral-light-alpha-20);
  color: var(--text);
  filter: none;
}

.app-sidebar__close,
.app-sidebar__collapse,
.app-header__menu-button {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-admin-muted-light);
  box-shadow: none;
}

.app-sidebar__close:hover,
.app-sidebar__collapse:hover,
.app-header__menu-button:hover {
  filter: none;
}

.app-header__language-form select {
  width: auto;
  min-width: 0;
  min-height: 28px;
  margin-bottom: 0;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-neutral-border-alpha-70);
  background: var(--color-surface);
  box-shadow: none;
  font-size: 11px;
}

.app-header__language-form select:focus {
  box-shadow: none;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.note,
.message {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border-solid);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.note p:last-child,
.message p:last-child {
  margin-bottom: 0;
}

.message.patient {
  border-left: 5px solid var(--accent-strong);
  background: var(--color-surface);
}

.message.bot {
  border-left: 5px solid var(--color-admin-sidebar-accent);
  background: var(--color-surface);
}

.message.human {
  border-left: 5px solid var(--warm);
  background: var(--color-surface);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fact {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--color-white-alpha-58);
}

.fact-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-value {
  font-size: 1rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--accent-soft-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge.warm {
  border-color: var(--color-admin-earth-alpha-20);
  background: var(--warm-soft);
  color: var(--color-admin-earth);
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.section-head .inline-actions,
.hero-card .inline-actions {
  justify-content: flex-end;
}

body:not(.route-inbox) .page .muted,
body:not(.route-inbox) .page .app-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body:not(.route-inbox) .page .flash {
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px 20px;
  border: 0;
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

body:not(.route-inbox) .page .flash.success {
  border-left-color: var(--color-success);
  background: var(--color-surface);
}

body:not(.route-inbox) .page .flash.warning {
  border-left-color: var(--color-warning);
  background: var(--color-surface);
}

body:not(.route-inbox) .page .flash.error {
  border-left-color: var(--color-danger);
  background: var(--color-surface);
}

body:not(.route-inbox) .page .hero-card,
body:not(.route-inbox) .page .auth-card,
body:not(.route-inbox) .page > .section-head,
body:not(.route-inbox) .page .card {
  position: relative;
  overflow: visible;
  margin-bottom: 25px;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

body:not(.route-inbox) .page a:not(.button) {
  color: var(--accent);
  text-decoration: none;
}

body:not(.route-inbox) .page a:not(.button):hover {
  text-decoration: underline;
}

body:not(.route-inbox) .page td a:not(.button) > .material-icons:only-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 3px;
  color: var(--color-success);
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

body:not(.route-inbox) .page td a:not(.button):hover > .material-icons:only-child,
body:not(.route-inbox) .page td a:not(.button):focus > .material-icons:only-child {
  color: var(--color-success);
  background: transparent;
  opacity: 0.78;
}

body:not(.route-inbox) .page .hero-card::before,
body:not(.route-inbox) .page .auth-card::before,
body:not(.route-inbox) .page > .section-head::before {
  content: none;
}

body:not(.route-inbox) .page .hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 0;
}

body:not(.route-inbox) .page .hero-card > :first-child {
  flex: 1 1 320px;
}

body:not(.route-inbox) .page .hero-actions,
body:not(.route-inbox) .page .inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body:not(.route-inbox) .page .section-head,
body:not(.route-inbox) .page .split {
  gap: 15px;
  margin-bottom: 20px;
}

body:not(.route-inbox) .page .card > .section-head {
  margin: -20px -20px 15px;
  padding: 15px 20px 0;
  border-bottom: 0;
}

body:not(.route-inbox) .page .card > h1,
body:not(.route-inbox) .page .card > h2,
body:not(.route-inbox) .page .card > h3,
body:not(.route-inbox) .page .auth-card > h1,
body:not(.route-inbox) .page .auth-card > h2 {
  margin-bottom: 12px;
}

body:not(.route-inbox) .page .eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.route-inbox) .page .metric-strip {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

body:not(.route-inbox) .page .metric-strip.metric-strip--three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.route-inbox) .page .metric-card.metric-card--stats {
  position: relative;
  display: grid;
  min-height: 116px;
  padding: 0;
  overflow: visible;
}

body:not(.route-inbox) .page .metric-card.metric-card--stats::before {
  content: none;
}

body:not(.route-inbox) .page .metric-card--stats .metric-card__header {
  position: absolute;
  left: 18px;
  top: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  color: var(--color-surface);
  background: var(--color-info-cyan-gradient);
  box-shadow: 0 12px 20px -10px var(--color-info-cyan-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-info-cyan-alpha-20);
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--rose .metric-card__header {
  background: var(--color-primary-gradient);
  box-shadow: var(--color-primary-shadow-elevated);
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--green .metric-card__header {
  background: var(--color-success-gradient);
  box-shadow: 0 12px 20px -10px var(--color-success-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-success-alpha-20);
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--orange .metric-card__header {
  background: var(--color-warning-gradient);
  box-shadow: 0 12px 20px -10px var(--color-warning-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-warning-alpha-20);
}

body:not(.route-inbox) .page .metric-card--stats .metric-card__header .material-icons {
  font-size: 18px;
}

body:not(.route-inbox) .page .metric-card--stats .metric-card__content {
  padding: 16px 20px 16px 74px;
  text-align: right;
}

body:not(.route-inbox) .page .metric-card--stats .metric-card__category {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

body:not(.route-inbox) .page .metric-card--stats .metric-card__title {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.2;
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--textual .metric-card__title {
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}


body:not(.route-inbox) .page .metric-card {
  padding: 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

body:not(.route-inbox) .page .metric-label,
body:not(.route-inbox) .page .fact-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.route-inbox) .page .metric-value {
  color: var(--text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.2;
}

body:not(.route-inbox) .page .fact-grid {
  gap: 15px;
  margin-top: 0;
}

body:not(.route-inbox) .page .fact {
  padding: 15px;
  border: 1px solid var(--color-border-solid);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

body:not(.route-inbox) .page .fact-value {
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}

body:not(.route-inbox) .page .badge {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--color-admin-text-alpha-12);
  border-radius: 12px;
  background: var(--color-neutral-light-alpha-15);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:not(.route-inbox) .page .badge.warm {
  border-color: var(--color-warning-alpha-16);
  background: var(--color-warning-alpha-12);
  color: var(--color-admin-warning-text);
}

body:not(.route-inbox) .page table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--color-surface);
  font-size: 14px;
}

body:not(.route-inbox) .page thead th {
  padding: 12px 8px;
  color: var(--color-text-subtle);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  vertical-align: bottom;
  border-bottom: 1px solid var(--color-border-light-solid);
}

body:not(.route-inbox) .page tbody td {
  padding: 12px 8px;
  border-top: 0;
  border-bottom: 0;
  line-height: 1.35;
  vertical-align: middle;
}

body:not(.route-inbox) .page table td strong,
body:not(.route-inbox) .page table td b,
body:not(.route-inbox) .page table td a {
  font-weight: 400;
}

body:not(.route-inbox) .page tbody tr {
  transition: background-color 0.18s ease;
}

body:not(.route-inbox) .page tbody tr:nth-child(odd) {
  background: var(--color-surface-subtle);
}

body:not(.route-inbox) .page tbody tr:nth-child(even) {
  background: var(--color-surface);
}

body:not(.route-inbox) .page tbody tr:hover {
  background: var(--color-surface-hover);
}

body:not(.route-inbox) .page tbody tr:hover td {
  border-top-color: transparent;
}

body:not(.route-inbox) .page .card > form:not(.inline-actions),
body:not(.route-inbox) .page .auth-card form:not(.auth-login-form) {
  display: grid;
  gap: 15px;
}

body:not(.route-inbox) .page .card > form.inline-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  align-items: end;
}

body:not(.route-inbox) .page .card > form.inline-actions > div {
  min-width: 0;
}

body:not(.route-inbox) .page .card > form.inline-actions > .inline-actions {
  justify-content: flex-start;
  align-items: flex-end;
}

body:not(.route-inbox) .page label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.route-inbox) .page input,
body:not(.route-inbox) .page textarea,
body:not(.route-inbox) .page select {
  min-width: 0;
  min-height: 36px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--text);
  box-shadow: none;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body:not(.route-inbox) .page .card > form input,
body:not(.route-inbox) .page .card > form textarea,
body:not(.route-inbox) .page .card > form select,
body:not(.route-inbox) .page .auth-card form:not(.auth-login-form) input,
body:not(.route-inbox) .page .auth-card form:not(.auth-login-form) textarea,
body:not(.route-inbox) .page .auth-card form:not(.auth-login-form) select {
  margin-bottom: 0;
}

body:not(.route-inbox) .page input:focus,
body:not(.route-inbox) .page textarea:focus,
body:not(.route-inbox) .page select:focus {
  border-color: var(--accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-admin-purple-alpha-12);
}

body:not(.route-inbox) .page textarea {
  min-height: 96px;
  resize: vertical;
}

body:not(.route-inbox) .page .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.route-inbox) .page .checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

body:not(.route-inbox) .page .checkbox span {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.route-inbox) .page button,
body:not(.route-inbox) .page .button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(60deg, var(--accent), var(--accent-strong));
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-button);
}

body:not(.route-inbox) .page button:hover,
body:not(.route-inbox) .page .button:hover {
  transform: none;
  filter: none;
  box-shadow: var(--shadow-elevated);
}

body:not(.route-inbox) .page button.secondary,
body:not(.route-inbox) .page .button.secondary {
  border: 1px solid var(--color-border-control);
  background: var(--color-surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

body:not(.route-inbox) .page button.button-rose,
body:not(.route-inbox) .page .button.button-rose {
  background: var(--color-primary-gradient);
  color: var(--color-surface);
  box-shadow: var(--color-primary-shadow-elevated);
}

body:not(.route-inbox) .page td button,
body:not(.route-inbox) .page td .button {
  min-height: 32px;
  padding: 0 12px;
}

body:not(.route-inbox) .page td .inline-actions,
body:not(.route-inbox) .page td form {
  margin: 0;
}

body:not(.route-inbox) .page .auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 190px);
  padding-top: 15px;
}

body:not(.route-inbox) .page.page--auth,
body:not(.route-inbox) .page .auth-card,
body:not(.route-inbox) .page .card.narrow,
body:not(.route-inbox) .page .narrow {
  max-width: 440px;
}

body:not(.route-inbox) .page .auth-card {
  width: min(440px, 100%);
}

body:not(.route-inbox) .page .note,
body:not(.route-inbox) .page .message {
  border: 1px solid var(--color-border-solid);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

@media (max-width: 1024px) {
  .auth-bar,
  .page.page--auth {
    width: calc(100% - 20px);
  }

  .app-main {
    padding: 0;
  }

  .app-header {
    top: 0;
    padding: 10px 15px;
  }

  .page {
    width: calc(100% - 20px);
    padding-top: 22px;
  }

  body.has-app-shell .page {
    width: 100%;
    padding: 20px 15px 40px;
  }

  .hero-card,
  .auth-card,
  .page > .section-head,
  .card {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  body::before,
  body::after {
    display: none;
  }

  .auth-bar,
  .page.page--auth {
    width: calc(100% - 16px);
  }

  .app-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    padding-left: 0;
  }

  .app-shell__scrim {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1032;
    width: 260px;
    max-width: calc(100vw - 48px);
    min-height: 100vh;
    transform: translate3d(-260px, 0, 0);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
  }

  .app-sidebar__frame {
    min-height: 100vh;
    border-right: 1px solid var(--color-neutral-alpha-30);
    border-radius: 0;
    box-shadow: var(--shadow-elevated);
  }

  .app-sidebar__close,
  .app-header__menu-button {
    display: inline-flex;
  }

  .app-sidebar__collapse {
    display: none;
  }

  body.shell-drawer-open .app-shell__scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.shell-drawer-open .app-sidebar {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .app-header,
  .section-head,
  .split {
    flex-direction: column;
    align-items: stretch;
  }

  .app-header {
    position: sticky;
    gap: 10px;
    padding: 10px 15px;
  }

  .app-header__actions,
  .app-header__language-form,
  .nav-cluster,
  .inline-actions {
    width: 100%;
  }

  .app-header__context {
    white-space: normal;
  }

  .app-header__actions > *,
  .nav-cluster > *,
  .inline-actions > * {
    flex: 1 1 auto;
  }

  .app-header__language-form,
  .app-header__language-form select,
  .app-header__language-form label,
  .app-header__logout-form,
  .app-header__logout-button,
  .user-chip--shell,
  .app-header__actions button,
  .app-header__actions .button {
    width: 100%;
  }

  .tenant-detail__card-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .tenant-detail__card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page {
    width: calc(100% - 16px);
    padding-bottom: 40px;
  }

  .app-main {
    min-height: auto;
    padding: 0;
  }

  body.has-app-shell .page {
    padding: 20px 15px 40px;
  }

  body.has-app-shell .page.page--inbox {
    padding: 0;
  }

  .hero-card,
  .auth-card,
  .page > .section-head,
  .card {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .metric-strip,
  .fact-grid,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 640px;
  }
}

@media (min-width: 721px) and (max-width: 1099px) {
  .app-shell {
    padding-left: 0;
  }

  .app-shell__scrim {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1032;
    width: 260px;
    min-height: 100vh;
    transform: translate3d(-260px, 0, 0);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
  }

  .app-sidebar__frame {
    min-height: 100vh;
    border-right: 1px solid var(--color-neutral-alpha-30);
    border-radius: 0;
    box-shadow: var(--shadow-elevated);
  }

  .app-sidebar__close,
  .app-header__menu-button {
    display: inline-flex;
  }

  .app-sidebar__collapse {
    display: none;
  }

  body.shell-drawer-open .app-shell__scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.shell-drawer-open .app-sidebar {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .app-main {
    min-height: auto;
    padding: 0;
  }

  .app-header {
    padding: 0 15px;
  }

  body.has-app-shell .page {
    padding: 20px 15px 40px;
  }

  body.has-app-shell .page.page--inbox {
    padding: 0;
  }
}

/* Rebase against template_pro/examples */

body {
  background: var(--color-border-solid);
}

.app-shell {
  --shell-sidebar-width: 260px;
  padding-left: var(--shell-sidebar-width);
}

body.shell-sidebar-collapsed .app-shell {
  --shell-sidebar-width: 74px;
}

.app-sidebar {
  width: var(--shell-sidebar-width);
}

.app-sidebar__frame {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  background:
    url("/static/images/sidebar/coel-sidebar-3.jpg") center center / cover no-repeat;
  color: var(--color-surface);
  box-shadow: 0 16px 38px -12px var(--color-black-alpha-56), 0 4px 25px 0 var(--color-black-alpha-24), 0 8px 10px -5px var(--color-black-alpha-32);
}

.app-sidebar__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--color-black-alpha-72), var(--color-black-alpha-82)),
    linear-gradient(180deg, var(--color-white-alpha-04), var(--color-black-alpha-08));
  pointer-events: none;
}

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

.app-sidebar__logo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 16px 0 28px;
  transition: padding 0.22s ease, justify-content 0.22s ease;
}

.app-sidebar__logo::after,
.app-sidebar__tenant::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 1px;
  background: var(--color-white-alpha-14);
}

.app-sidebar__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.app-brand {
  position: relative;
  width: 168px;
  height: 36px;
  flex: 0 0 168px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  color: var(--color-white-alpha-92);
}

body.shell-sidebar-collapsed .app-brand {
  justify-content: flex-start;
  width: 168px;
  overflow: hidden;
}

.app-brand__mark,
.app-brand__wordmark {
  position: absolute;
  left: 0;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.16s ease, transform 0.22s ease;
}

.app-brand__mark {
  top: 3px;
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.app-brand__wordmark {
  top: 0;
  width: 168px;
  height: 36px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.app-sidebar__tenant {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 14px 22px 15px 28px;
  transition: padding 0.22s ease, justify-content 0.22s ease;
}

.app-sidebar__tenant-name {
  min-width: 0;
  width: 205px;
  max-width: 205px;
  overflow: hidden;
  color: var(--color-surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  transition: max-width 0.22s ease, opacity 0.16s ease, transform 0.22s ease;
}

.shell-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 0 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  /* Slim translucent scrollbar over the dark sidebar (Firefox). */
  scrollbar-width: thin;
  scrollbar-color: var(--color-white-alpha-28) transparent;
}

/* WebKit/Blink: transparent track, thin translucent pill thumb (matches the
   inbox lists). */
.shell-nav::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

.shell-nav::-webkit-scrollbar-track,
.shell-nav::-webkit-scrollbar-corner {
  background: transparent;
}

.shell-nav::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--color-white-alpha-28);
  background-clip: padding-box;
}

.shell-nav:hover::-webkit-scrollbar-thumb {
  background: var(--color-white-alpha-45);
  background-clip: padding-box;
}

.shell-nav__divider {
  background: var(--color-white-alpha-12);
}

.shell-nav__link {
  margin: 0 15px 8px;
  padding: 10px 13px;
  color: var(--color-white-alpha-78);
  border-radius: 3px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    padding 0.22s ease;
}

.shell-nav__button {
  width: calc(100% - 30px);
  margin: 0 15px 8px;
  padding: 10px 13px;
  color: var(--color-white-alpha-78);
  border-radius: 3px;
}

.shell-nav__link:hover,
.shell-nav__button:hover {
  background: var(--color-white-alpha-08);
  color: var(--color-surface);
}

.shell-nav__link.is-active {
  background: var(--color-primary-gradient);
  box-shadow: var(--color-primary-shadow-elevated);
}

.shell-nav__icon,
.shell-nav__link.is-active .shell-nav__icon {
  color: inherit;
}

.shell-nav__label {
  display: block;
  justify-self: start;
  color: inherit;
  transition: max-width 0.22s ease, opacity 0.16s ease, transform 0.22s ease;
}

.shell-nav__form {
  margin: 0 15px 8px;
}

.shell-nav__hidden-form {
  display: none;
}

.shell-nav__button {
  width: 100%;
  margin: 0;
  padding: 10px 13px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--color-white-alpha-78);
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.428571429;
  text-transform: none;
  appearance: none;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    padding 0.22s ease,
    width 0.22s ease;
}

.shell-nav__button:hover,
.shell-nav__button:focus-visible {
  background: var(--color-white-alpha-08);
  color: var(--color-surface);
  box-shadow: none;
  filter: none;
  outline: none;
}

.app-sidebar__close {
  display: none;
  position: absolute;
  top: 18px;
  right: 12px;
  color: var(--color-white-alpha-78);
}

body.shell-sidebar-collapsed .app-sidebar__tenant-name,
body.shell-sidebar-collapsed .shell-nav__label {
  display: block;
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  transform: translate3d(-25px, 0, 0);
  pointer-events: none;
}

body.shell-sidebar-collapsed .app-brand__mark {
  opacity: 1;
}

body.shell-sidebar-collapsed .app-brand__wordmark {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
}

body.shell-sidebar-collapsed .app-sidebar__logo {
  justify-content: flex-start;
  padding: 0 16px 0 28px;
}

body.shell-sidebar-collapsed .app-sidebar__tenant {
  justify-content: flex-start;
  min-height: 66px;
  padding: 14px 22px 15px 28px;
}

body.shell-sidebar-collapsed .shell-nav__link {
  grid-template-columns: 30px minmax(0, 1fr);
  justify-items: stretch;
  margin: 0 15px 8px;
  padding: 10px 13px;
}

body.shell-sidebar-collapsed .shell-nav__form {
  margin: 0 15px 8px;
}

body.shell-sidebar-collapsed .shell-nav__button {
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr);
  justify-items: stretch;
  margin: 0;
  padding: 10px 13px;
}

body.shell-sidebar-collapsed .shell-nav__divider {
  width: calc(100% - 30px);
  margin: 15px 15px;
}

@media (min-width: 1100px) {
  body.shell-sidebar-collapsed .app-sidebar:hover {
    width: 260px;
    z-index: 1040;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-sidebar__frame {
    overflow: hidden;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-brand {
    justify-content: flex-start;
    width: 168px;
    overflow: hidden;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-brand__mark {
    opacity: 0;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-brand__wordmark {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-sidebar__tenant-name,
  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__label {
    opacity: 1;
    visibility: visible;
    max-width: 220px;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    transition-delay: 0.05s;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-sidebar__logo {
    justify-content: flex-start;
    padding: 0 16px 0 28px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-sidebar__tenant {
    justify-content: flex-start;
    min-height: 66px;
    padding: 14px 22px 15px 28px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__link {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-items: stretch;
    padding-inline: 13px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__form {
    margin-inline: 15px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__button {
    width: 100%;
    grid-template-columns: 30px minmax(0, 1fr);
    justify-items: stretch;
    padding: 10px 13px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__divider {
    width: calc(100% - 30px);
    margin: 15px 15px;
  }
}

.app-main {
  position: relative;
  min-height: 100vh;
  padding-top: 0;
  background: var(--page-bg);
}

.app-header {
  position: sticky;
  top: 0;
  inset: auto;
  z-index: 60;
  min-height: var(--shell-header-height);
  padding: 2px 15px;
  background: var(--color-surface);
  border: 0;
  border-bottom: 1px solid var(--color-border-muted-solid);
  box-shadow: none;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  min-height: 36px;
}

.app-header__lead {
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
  min-height: 36px;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.app-breadcrumb-nav {
  min-width: 0;
  overflow: visible;
}

/* Inbox only: the brand wordmark takes the breadcrumb slot. */
.app-header__wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 36px;
  margin-left: 6px;
}

.app-header__wordmark img {
  display: block;
  width: auto;
  height: 26px;
}

.app-header .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  margin: 0 0 0 6px;
  min-height: 36px;
  padding: 0;
  list-style: none;
  background-color: transparent;
  border-radius: 0.125rem;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-muted-strong);
}

.app-header .breadcrumb::after {
  content: none;
  display: none;
}

.app-header .breadcrumb > li {
  display: inline-flex;
  align-items: center;
  float: none;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  color: var(--color-text-muted-strong);
  letter-spacing: 0;
  white-space: nowrap;
}

.app-header .breadcrumb > li + li::before {
  display: inline-flex;
  align-items: center;
  padding-right: 0.38rem;
  padding-left: 0.38rem;
  color: var(--color-black-alpha-26);
  content: "/";
}

.app-header .breadcrumb > li > a,
.app-header .breadcrumb > li > span {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted-strong);
  text-decoration: none;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.app-header .breadcrumb > li.active,
.app-header .breadcrumb > li.active > a,
.app-header .breadcrumb > li.active > span {
  color: var(--color-text-muted-strong);
}

.app-header .breadcrumb > li > a:hover {
  color: var(--color-text-muted-strong);
  text-decoration: none;
}

.app-header__minimize {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-top: 0;
}

.app-header__minimize-button,
.app-header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted-strong);
  box-shadow: var(--shadow-card);
}

.app-header__minimize-button .material-icons,
.app-header__icon-button .material-icons {
  font-size: 20px;
}

.app-header__minimize-button:hover,
.app-header__icon-button:hover {
  background: var(--color-surface);
  color: var(--color-text-strong);
  box-shadow: var(--shadow-elevated);
}

.visible-on-sidebar-mini {
  display: none;
}

body.shell-sidebar-collapsed .visible-on-sidebar-regular {
  display: none;
}

body.shell-sidebar-collapsed .visible-on-sidebar-mini {
  display: inline-block;
}

.app-header__menu-button {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.app-header__menu-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  background: var(--color-text-muted-strong);
  border-radius: 999px;
}

.app-header__context {
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
}

.app-header__actions {
  flex: 0 0 auto;
  margin-left: auto;
  gap: 8px;
  min-height: 36px;
  justify-content: flex-end;
}

.app-header__language-form {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 6px;
}

.app-header__language-form label {
  text-align: right;
  font-size: 10.5px;
  line-height: 1.15;
}

.app-header__language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.app-header__language-form select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 32px;
  height: 32px;
  padding: 0 30px;
  border: 1px solid var(--color-border-muted-solid);
  border-radius: 16px;
  background: var(--color-surface);
  background-image: none;
  box-shadow: none;
  color: var(--color-text-strong);
  font-size: 11px;
  line-height: 30px;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.app-header__language-form option {
  text-align: left;
}

.app-header__language-chevron {
  position: absolute;
  top: 50%;
  right: 9px;
  color: var(--color-text-muted-strong);
  font-size: 16px !important;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.app-header__language-form select:hover {
  border-color: var(--color-neutral-border-alpha-70);
  background-color: var(--color-surface);
  box-shadow: none;
}

.app-header__language-form select:focus-visible {
  border-color: var(--color-neutral-border-alpha-70);
  background-color: var(--color-surface);
  outline: 0;
  box-shadow: none;
}

.auth-navbar__language-form select {
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 30px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  font-size: 12px;
}

.app-header__language-form label {
  color: var(--muted);
}

body.has-app-shell .page {
  padding: 30px 15px 30px;
}

.page {
  width: 100%;
}

.md-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.md-page-heading .inline-actions {
  justify-content: flex-end;
}

.auth-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-page-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100vh;
  background:
    linear-gradient(var(--color-black-alpha-48), var(--color-black-alpha-72)),
    url("/static/images/auth/login.jpeg") center center / cover no-repeat;
}

.auth-page-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-black-alpha-22), var(--color-black-alpha-48));
  pointer-events: none;
}

.auth-page-panel > .content,
.auth-page-panel > .footer,
.auth-navbar {
  position: relative;
  z-index: 2;
}

.auth-navbar {
  padding-top: 18px;
}

.auth-navbar__inner {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-white-alpha-94);
  text-decoration: none;
  text-transform: uppercase;
}

.auth-navbar__mini {
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
}

.auth-navbar__normal {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.auth-page-panel > .content {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 32px 0 24px;
}

.page.page--auth {
  width: 100%;
  min-height: 0;
  padding: 0 15px 24px;
}

.auth-shell {
  width: min(420px, calc(100% - 30px));
  margin: 0 auto;
}

.auth-login-card {
  margin: 0;
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.auth-login-card--compact {
  width: min(360px, 100%);
  margin-inline: auto;
}

.auth-login-card__content {
  padding: 24px 24px 18px;
}

.auth-login-card__copy {
  margin-bottom: 18px;
  text-align: center;
}

.auth-login-card__copy h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 23px;
  font-weight: 300;
}

.auth-login-card__copy .muted {
  margin: 0;
  font-size: 14px;
}

.auth-login-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border-bottom: 1px solid var(--color-border-control);
}

.auth-input-group__icon {
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: 22px;
}

.auth-input-group input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 10px 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.auth-input-group input:focus {
  border: 0;
  box-shadow: none;
  outline: 0;
}

.auth-input-group:focus-within {
  border-bottom-color: var(--accent);
}

.auth-login-card .flash {
  margin: 0 0 14px;
}

.auth-login-card__footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 6px;
}

.auth-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  background: var(--color-success-gradient);
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 20px -10px var(--color-success-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-success-alpha-20);
}

.auth-login-submit:hover {
  filter: brightness(1.03);
}

.auth-login-card__link {
  margin: 16px 0 0;
  font-size: 13px;
  text-align: center;
}

.auth-card__panel,
.md-card,
.hero-card,
.card,
.page > .section-head {
  position: relative;
  margin: 30px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.page > .section-head,
.hero-card {
  padding: 25px 20px;
}

.md-card__header,
.card > .section-head {
  position: relative;
  margin: -20px 15px 0;
  padding: 15px 20px;
  border-radius: 3px;
  color: var(--color-surface);
  background: var(--color-primary-gradient);
  box-shadow: var(--color-primary-shadow-elevated);
}

.md-card__header--text,
.card > .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.md-card__header--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
}

.md-card > .md-card__header--icon {
  float: left;
  margin-right: 15px;
}

.md-card > .md-card__header--icon + .md-card__content {
  padding-top: 14px;
}

.md-card > .md-card__header--icon + .md-card__content > .md-card__title,
.md-card > .md-card__header--icon + .md-card__content > .agenda-card-heading {
  min-height: 44px;
  padding-top: 0;
}

.md-card__header--green {
  background: var(--color-success-gradient);
  box-shadow: 0 12px 20px -10px var(--color-success-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-success-alpha-20);
}

.md-card__header--orange {
  background: var(--color-warning-gradient);
  box-shadow: 0 12px 20px -10px var(--color-warning-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-warning-alpha-20);
}

.md-card__header--blue {
  background: var(--color-info-cyan-gradient);
  box-shadow: 0 12px 20px -10px var(--color-info-cyan-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-info-cyan-alpha-20);
}

.md-card__header-icon {
  font-size: 30px;
}

.md-card__title,
.card > .section-head h2,
.card > .section-head h3 {
  margin: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}

.md-card__category,
.card > .section-head .muted {
  margin: 4px 0 0;
  color: var(--color-white-alpha-74);
  font-size: 13px;
  font-weight: 400;
}

.md-card__content,
.card__content {
  padding: 20px;
}

.md-card__stack {
  display: grid;
  gap: 20px;
}

.grid > .md-card,
.grid > .card,
.md-card__stack > .md-card,
.md-card__stack > .card {
  margin: 0;
}

.md-card__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.md-card__toolbar .inline-actions {
  justify-content: flex-end;
}

.md-card__split {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.md-card__split > * {
  min-width: 0;
}

.md-card__divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--color-border-solid);
}

.md-card__content > .md-card__title {
  margin: 0 0 12px;
  color: var(--text);
}

.metric-strip {
  gap: 30px;
}

.metric-card {
  position: relative;
  padding: 20px 20px 16px 74px;
}

.metric-card::before {
  content: attr(data-icon);
  position: absolute;
  left: 18px;
  top: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  color: var(--color-surface);
  font-family: "Material Icons";
  font-size: 18px;
  background: var(--color-info-cyan-gradient);
  box-shadow: 0 12px 20px -10px var(--color-info-cyan-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-info-cyan-alpha-20);
}

.metric-card--rose::before {
  background: var(--color-primary-gradient);
  box-shadow: var(--color-primary-shadow-elevated);
}

.metric-card--green::before {
  background: var(--color-success-gradient);
  box-shadow: 0 12px 20px -10px var(--color-success-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-success-alpha-20);
}

.metric-card--orange::before {
  background: var(--color-warning-gradient);
  box-shadow: 0 12px 20px -10px var(--color-warning-alpha-42), 0 4px 20px 0 var(--color-black-alpha-12), 0 7px 8px -5px var(--color-warning-alpha-20);
}

.md-table-responsive,
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.agenda-table-card {
  margin: 28px 0;
}

.agenda-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: -6px 0 22px;
}

.agenda-list-actions form {
  margin: 0;
}

.agenda-table-card__icon {
  margin-left: 15px;
  margin-bottom: 0;
}

.agenda-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-left: 0;
}

.agenda-card-heading .md-card__title {
  color: var(--text);
}

.agenda-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--color-text-muted-ui);
  font-size: 13px;
  font-weight: 600;
  background: var(--color-border-solid);
}

.agenda-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.page .agenda-data-table {
  border-spacing: 0;
  font-size: 14px;
}

.agenda-data-table thead th {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border-light-solid);
  color: var(--color-text-subtle);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  vertical-align: bottom;
}

body:not(.route-inbox) .page .agenda-data-table thead th {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border-light-solid);
  color: var(--color-text-subtle);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  vertical-align: bottom;
}

.agenda-data-table tbody td {
  padding: 12px 8px;
  border-bottom: 0;
  color: var(--text);
  line-height: 1.35;
  vertical-align: middle;
}

body:not(.route-inbox) .page .agenda-data-table tbody td {
  padding: 12px 8px;
  border-top: 0;
  border-bottom: 0;
  color: var(--text);
  line-height: 1.35;
  vertical-align: middle;
}

.agenda-data-table tbody tr:nth-child(odd) {
  background: var(--color-surface-subtle);
}

body:not(.route-inbox) .page .agenda-data-table tbody tr:nth-child(odd) {
  background: var(--color-surface-subtle);
}

.agenda-data-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

body:not(.route-inbox) .page .agenda-data-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.agenda-data-table tbody tr:hover {
  background: var(--color-surface-hover);
}

body:not(.route-inbox) .page .agenda-data-table tbody tr:hover {
  background: var(--color-surface-hover);
}

.agenda-action-col {
  width: 54px;
}

.agenda-row-actions {
  text-align: right;
  white-space: nowrap;
}

.agenda-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 3px;
  color: var(--color-success);
  background: transparent;
  text-decoration: none;
}

body:not(.route-inbox) .page a.agenda-icon-action:not(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--color-success);
  box-shadow: none;
  text-decoration: none;
}

.agenda-icon-action:hover,
.agenda-icon-action:focus {
  color: var(--color-success);
  background: transparent;
  opacity: 0.78;
  text-decoration: none;
}

body:not(.route-inbox) .page a.agenda-icon-action:not(.button):hover,
body:not(.route-inbox) .page a.agenda-icon-action:not(.button):focus {
  background: transparent;
  color: var(--color-success);
  opacity: 0.78;
  text-decoration: none;
}

.agenda-icon-action .material-icons {
  font-size: 20px;
}

body:not(.route-inbox) .page a.agenda-icon-action:not(.button) .material-icons {
  color: inherit;
  font-size: 20px;
  line-height: 1;
}

body:not(.route-inbox) .page td button.agenda-icon-action,
body:not(.route-inbox) .page button.agenda-icon-action {
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 5px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--color-success);
  cursor: pointer;
}

body:not(.route-inbox) .page td button.agenda-icon-action:hover,
body:not(.route-inbox) .page td button.agenda-icon-action:focus-visible {
  background: transparent;
  color: var(--color-success);
  opacity: 0.78;
  box-shadow: none;
  outline: 0;
}

body:not(.route-inbox) .page td button.agenda-icon-action .material-icons {
  color: inherit;
  font-size: 20px;
  line-height: 1;
}

body:not(.route-inbox) .page a.agenda-icon-action.agenda-icon-action--view:not(.button),
body:not(.route-inbox) .page a.agenda-icon-action.agenda-icon-action--view:not(.button):hover,
body:not(.route-inbox) .page a.agenda-icon-action.agenda-icon-action--view:not(.button):focus,
.agenda-icon-action--view {
  color: var(--color-link);
}

body:not(.route-inbox) .page td a.agenda-icon-action--view:not(.button) > .material-icons,
body:not(.route-inbox) .page td a.agenda-icon-action--view:not(.button) > .material-icons:only-child,
body:not(.route-inbox) .page td a.agenda-icon-action--view:not(.button):hover > .material-icons:only-child,
body:not(.route-inbox) .page td a.agenda-icon-action--view:not(.button):focus > .material-icons:only-child {
  color: var(--color-link);
}

.agenda-table-card--status-switch .agenda-action-col {
  width: 96px;
}

.agenda-status-action-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

body:not(.route-inbox) .page td button.agenda-status-switch {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 28px;
  min-height: 28px;
  padding: 3px;
  border: 1px solid var(--color-border-control);
  border-radius: 999px;
  background: var(--color-border-control);
  box-shadow: inset 0 1px 2px var(--color-black-alpha-12);
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body:not(.route-inbox) .page td button.agenda-status-switch[aria-checked="true"] {
  border-color: var(--color-success);
  background: var(--color-success);
  box-shadow: 0 1px 4px var(--color-success-alpha-20);
}

.agenda-status-switch__thumb {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 1px 3px var(--color-black-alpha-20);
  transition: transform 160ms ease;
}

.agenda-status-switch[aria-checked="true"] .agenda-status-switch__thumb {
  transform: translateX(20px);
}

body:not(.route-inbox) .page td button.agenda-status-switch:hover {
  filter: brightness(1.05);
}

body:not(.route-inbox) .page td button.agenda-status-switch:focus-visible {
  outline: 2px solid var(--color-success-strong);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.route-inbox) .page td button.agenda-status-switch,
  .agenda-status-switch__thumb {
    transition: none;
  }
}

.agenda-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--color-surface);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: var(--color-success-strong);
  text-transform: uppercase;
}

.agenda-pill--muted {
  color: var(--color-text-muted-ui);
  background: var(--color-border-solid);
}

.agenda-pill--mode {
  background: var(--color-admin-teal);
}

.agenda-pill--capacity-human_handoff {
  color: var(--color-text-muted-ui);
  background: var(--color-border-solid);
}

.agenda-pill--capacity-informational {
  color: var(--color-surface);
  background: var(--color-success-strong);
}

.agenda-pill--capacity-ai_booking {
  color: var(--color-surface);
  background: var(--color-info);
}

.agenda-pill--result-blocked {
  color: var(--color-surface);
  background: var(--color-danger-strong);
}

.agenda-pill--result-human_handoff {
  color: var(--color-text-muted-ui);
  background: var(--color-border-solid);
}

.agenda-pill--result-informational {
  color: var(--color-surface);
  background: var(--color-success-strong);
}

.agenda-pill--result-ai_booking {
  color: var(--color-surface);
  background: var(--color-info);
}

.agenda-detail-form {
  margin-top: 18px;
}

.agenda-detail-card__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.agenda-detail-card__intro .md-card__header--icon {
  flex: 0 0 auto;
  margin: -40px 0 0;
}

.agenda-detail-card__copy {
  min-width: 0;
  margin-top: -6px;
}

.agenda-detail-card__copy .md-card__title {
  margin: 0;
}

.agenda-technical-panel {
  display: grid;
  gap: 8px;
}

.agenda-technical-panel p {
  margin: 0;
}

.agenda-field-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px 18px;
  margin-bottom: 18px;
}

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

.agenda-field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.agenda-field {
  min-width: 0;
}

.agenda-field > label {
  margin-bottom: 5px;
}

.agenda-field > input,
.agenda-field > textarea,
.agenda-field > select {
  margin-bottom: 0;
}

.agenda-color-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agenda-color-field input[type="color"] {
  width: 46px;
  height: 38px;
  padding: 2px;
  margin-bottom: 0;
  cursor: pointer;
}

.agenda-color-field input[type="text"] {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}

.agenda-field--icon-picker {
  grid-column: 1 / -1;
}

.agenda-visit-icon-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.agenda-visit-icon-picker legend {
  margin-bottom: 4px;
  padding: 0;
  font-weight: 500;
}

.agenda-visit-icon-picker > .muted {
  margin: 0 0 12px;
}

.agenda-visit-icon-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
}

body:not(.route-inbox) .page .agenda-visit-icon-option {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

body:not(.route-inbox) .page .agenda-visit-icon-option input[type="radio"] {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  border: 0;
}

.agenda-visit-icon-option__content {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-heading);
  text-align: center;
  line-height: 1.25;
}

.agenda-visit-icon-option__content .material-icons {
  font-size: 28px;
}

.agenda-visit-icon-option:hover .agenda-visit-icon-option__content {
  border-color: var(--color-primary);
}

.agenda-visit-icon-option input:checked + .agenda-visit-icon-option__content {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.agenda-visit-icon-option input:focus-visible + .agenda-visit-icon-option__content {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.agenda-field--checkbox {
  display: flex;
  align-items: flex-end;
  min-height: 63px;
}

.agenda-field--checkbox .checkbox {
  margin: 0 0 8px;
}

.agenda-provider-readonly {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--color-border-light-solid);
  border-radius: 4px;
  background: var(--color-surface-soft);
}

.agenda-detail-form > .agenda-provider-readonly {
  grid-column: 1 / -1;
}

.agenda-detail-form > .inline-actions {
  justify-content: flex-end;
  padding-left: 0;
}

.agenda-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 12px 0 24px;
}

.agenda-detail-actions .button,
.agenda-detail-actions button {
  margin-bottom: 0;
}

.agenda-provider-readonly h5 {
  margin: 0 0 10px;
  color: var(--color-text-muted-strong);
  font-size: 14px;
  font-weight: 500;
}

.agenda-provider-readonly dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.agenda-provider-readonly dt {
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.agenda-provider-readonly dd {
  margin: 2px 0 0;
  color: var(--color-text-heading);
}

.agenda-readonly-input,
.agenda-detail-form input.agenda-readonly-input,
.agenda-detail-form textarea.agenda-readonly-input,
.agenda-detail-form select.agenda-readonly-input {
  color: var(--color-text-muted-strong);
  border-color: var(--color-border-control-muted);
  background: var(--color-border-solid);
  cursor: not-allowed;
}

body:not(.route-inbox) .page .agenda-detail-form input.agenda-readonly-input[readonly],
body:not(.route-inbox) .page .agenda-detail-form textarea.agenda-readonly-input[readonly],
body:not(.route-inbox) .page .agenda-detail-form select.agenda-readonly-input:disabled {
  color: var(--color-text-muted-strong) !important;
  border-color: var(--color-border-control-strong) !important;
  background: var(--color-border-solid) !important;
  background-color: var(--color-border-solid) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

.agenda-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.agenda-inline-form input,
.agenda-inline-form select,
.agenda-inline-form textarea {
  max-width: 220px;
  margin: 0;
}

.agenda-association-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.agenda-associations-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
}

.agenda-associations-heading h5 {
  margin-bottom: 4px;
}

.agenda-association-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--color-border-solid);
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: 0 2px 10px var(--color-black-alpha-06);
  overflow: hidden;
}

.agenda-association-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 8px;
}

.agenda-association-card__header h6 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
}

.agenda-association-card__header .muted {
  margin: 0;
}

.agenda-association-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--color-surface);
  background: var(--color-success);
  box-shadow: 0 3px 8px var(--color-success-alpha-35);
}

.agenda-association-table thead th {
  padding-top: 12px;
}

.agenda-association-table tbody td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.agenda-association-control-form,
.agenda-association-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.agenda-association-control-form select,
.agenda-association-add-form select,
.agenda-association-table td > select {
  width: auto;
  min-width: 170px;
  max-width: 240px;
  margin: 0;
}

.agenda-association-control-form .checkbox,
.agenda-association-add-form .checkbox,
.agenda-checkbox-only {
  margin: 0;
  white-space: nowrap;
}

.agenda-checkbox-only {
  display: inline-flex;
  align-items: center;
}

.agenda-association-add-row td {
  background: var(--color-surface-faint);
}

.agenda-association-add-form > span {
  color: var(--color-text-muted-ui);
  font-weight: 500;
}

.agenda-weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 6px 0 12px;
}

.agenda-weekday-grid .checkbox {
  margin: 0;
  white-space: nowrap;
}

.agenda-association-row {
  padding-top: 10px;
  border-top: 1px solid var(--color-border-solid);
}

thead th {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.md-form,
.card > form:not(.inline-actions),
.auth-card form:not(.auth-login-form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.md-form > h2,
.md-form > hr,
.md-form > .flash,
.md-form > .md-form__section-title,
.md-form > .inline-actions,
.md-form > .checkbox,
.card > form:not(.inline-actions) > h2,
.card > form:not(.inline-actions) > hr,
.card > form:not(.inline-actions) > .flash,
.card > form:not(.inline-actions) > .inline-actions,
.card > form:not(.inline-actions) > .checkbox,
.auth-card form > .flash {
  grid-column: 1 / -1;
}

.md-form > label,
.card > form:not(.inline-actions) > label,
.auth-card form:not(.auth-login-form) > label {
  padding-top: 0;
  margin-bottom: 5px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.md-form > input,
.md-form > textarea,
.md-form > select,
.card > form:not(.inline-actions) > input,
.card > form:not(.inline-actions) > textarea,
.card > form:not(.inline-actions) > select,
.auth-card form:not(.auth-login-form) > input,
.auth-card form:not(.auth-login-form) > textarea,
.auth-card form:not(.auth-login-form) > select {
  margin-bottom: 18px;
}

.md-form > p.muted,
.md-form > .form-hint,
.card > form:not(.inline-actions) > p.muted,
.auth-card form:not(.auth-login-form) > p.muted {
  grid-column: 1 / -1;
  margin: -10px 0 16px;
}

.md-form > .checkbox,
.card > form:not(.inline-actions) > .checkbox {
  grid-column: 1 / -1;
  justify-self: start;
  margin-left: 0;
  padding-top: 0;
  text-align: left;
}

.md-form > .inline-actions,
.card > form:not(.inline-actions) > .inline-actions {
  padding-left: 0;
}

.assistant-config-panel .md-form > .inline-actions {
  justify-content: flex-end;
}

.md-form > .assistant-profile-section {
  grid-column: 1 / -1;
}

.assistant-profile-section {
  display: grid;
  min-width: 0;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--color-border-solid);
  border-radius: 12px;
  background: var(--surface);
}

.assistant-profile-section > .md-form__section-title {
  margin-top: 0;
}

.assistant-profile-section > label,
.assistant-language-panel > label,
.assistant-profile-section__label {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 400;
}

.assistant-profile-section > input,
.assistant-profile-section > textarea,
.assistant-profile-section > select,
.assistant-language-panel > textarea {
  width: 100%;
  margin-bottom: 18px;
}

.assistant-profile-section > p.muted {
  margin: -8px 0 16px;
}

.assistant-language-options {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.assistant-language-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.assistant-language-panel {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--color-border-solid);
  border-radius: 10px;
}

.assistant-language-panel legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 600;
}

.assistant-config-panel td .assistant-table-actions {
  justify-content: flex-end;
}

.md-form__checkboxes {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.md-form__checkboxes .checkbox {
  margin: 0;
}

.md-form__checkboxes .muted {
  margin: -4px 0 0;
  font-size: 12px;
}

.md-form__section-title {
  margin: 4px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-solid);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.md-detail-list {
  display: grid;
  gap: 12px;
}

.md-detail-list p {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--color-border-solid);
  color: var(--text);
}

.md-detail-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.md-detail-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-detail-list code {
  font-size: 13px;
}

.md-detail-list + .inline-actions {
  margin-top: 18px;
}

.tenants-list__actions {
  justify-content: flex-end;
}

.tenants-list__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.tenants-list__intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.tenants-list__intro-copy {
  min-width: 0;
  margin-top: -6px;
}

.tenants-list__intro-copy .md-card__title {
  margin: 0;
}

.tenants-list__intro-copy .muted {
  margin: 4px 0 0;
}

.support-access__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.support-access__intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.support-access__intro-copy {
  min-width: 0;
  margin-top: -6px;
}

.support-access__intro-copy .md-card__title {
  margin: 0;
}

.support-access__intro-copy .muted {
  margin: 4px 0 0;
}

.support-access__actions {
  justify-content: flex-end;
}

.users-list__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.users-list__intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.users-list__intro-copy {
  min-width: 0;
  margin-top: -6px;
}

.users-list__intro-copy .md-card__title {
  margin: 0;
}

.users-list__intro-copy .muted {
  margin: 4px 0 0;
}

.users-list__actions {
  justify-content: flex-end;
}

.contacts-nav-tabs--standalone {
  justify-content: center;
  margin: -4px auto 10px;
}

.contacts-table-search-form {
  display: none;
}

.contacts-table__intro {
  margin-bottom: 12px;
}

.contacts-table-filter-row th {
  padding-top: 10px;
  padding-bottom: 12px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-solid);
  border-bottom: 1px solid var(--color-border-solid);
}

.contacts-table-filter-input {
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 7px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--color-border-control);
  border-radius: 0;
  outline: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted-strong);
  background: transparent;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contacts-table-filter-input:focus {
  border-bottom-color: var(--color-success);
  box-shadow: 0 1px 0 var(--color-success);
}

.contacts-table-filter-input::-webkit-search-cancel-button {
  display: none;
}

.contacts-table-filter-with-action {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.contacts-table-search__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.contacts-table-search__icon,
body:not(.route-inbox) .page a.contacts-table-search__icon:not(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  color: var(--color-admin-slate);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

.contacts-table-search__icon:hover,
body:not(.route-inbox) .page a.contacts-table-search__icon:not(.button):hover {
  color: var(--color-link);
  background: var(--color-link-alpha-08);
  box-shadow: none;
}

.contacts-table-search__icon--clear,
body:not(.route-inbox) .page a.contacts-table-search__icon--clear:not(.button) {
  color: var(--color-danger);
}

.contacts-table-search__icon .material-icons {
  font-size: 18px;
  line-height: 1;
}

.contacts-search-actions {
  justify-content: flex-end;
  align-self: end;
  margin-bottom: 0;
}

.contacts-batch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}

.contacts-batch-summary > div {
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contacts-import-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.contacts-import-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-info-border, #90caf9);
  border-radius: 6px;
  background: var(--color-info-soft, #e3f2fd);
}

.contacts-import-status[hidden] {
  display: none;
}

.contacts-import-status__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(25, 118, 210, 0.25);
  border-top-color: #1976d2;
  border-radius: 50%;
  animation: contacts-import-spin 0.8s linear infinite;
}

@keyframes contacts-import-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contacts-import-status__spinner {
    animation: none;
  }
}

.contacts-import-upload-form {
  flex: 1 1 auto;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 6px 12px;
  margin: 0;
}

.contacts-import-upload-form > label {
  grid-column: 1 / -1;
  padding-top: 0;
  margin-bottom: 0;
  text-align: left;
}

.contacts-import-upload-form > input[type="file"] {
  margin-bottom: 0;
}

.contacts-import-clear-form {
  flex: 0 0 auto;
  margin: 0;
}

.contacts-imported-phone-list {
  display: grid;
  gap: 4px;
}

.contacts-table__actions-cell {
  text-align: right;
  white-space: nowrap;
}

.contacts-table__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.contacts-table__actions form {
  display: inline-flex;
  margin: 0;
}

.contacts-table__actions .agenda-icon-action,
body:not(.route-inbox) .page .contacts-table__actions a.agenda-icon-action:not(.button) {
  width: 24px;
  height: 24px;
  padding: 3px;
}

.contacts-table__actions .agenda-icon-action .material-icons,
body:not(.route-inbox) .page .contacts-table__actions a.agenda-icon-action:not(.button) .material-icons {
  font-size: 18px;
}

.whatsapp-templates__actions-cell {
  width: 136px;
  text-align: center;
}

.whatsapp-templates__actions-cell .contacts-table__actions {
  justify-content: center;
}

.contacts-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 3px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--color-danger);
  cursor: pointer;
}

body:not(.route-inbox) .page td button.contacts-icon-action {
  min-height: 0;
  padding: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--color-danger);
}

.contacts-icon-action:hover,
.contacts-icon-action:focus-visible,
body:not(.route-inbox) .page td button.contacts-icon-action:hover,
body:not(.route-inbox) .page td button.contacts-icon-action:focus-visible {
  background: transparent;
  color: var(--color-danger);
  opacity: 0.78;
  outline: 0;
  box-shadow: none;
}

.contacts-icon-action .material-icons {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.whatsapp-templates__archive-action,
body:not(.route-inbox) .page td button.whatsapp-templates__archive-action {
  color: var(--color-whatsapp-muted);
}

.whatsapp-templates__archive-action:hover,
.whatsapp-templates__archive-action:focus-visible,
body:not(.route-inbox) .page td button.whatsapp-templates__archive-action:hover,
body:not(.route-inbox) .page td button.whatsapp-templates__archive-action:focus-visible {
  color: var(--color-text-secondary);
}

.sessions-list__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.sessions-list__intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.sessions-list__intro-copy {
  min-width: 0;
  margin-top: -6px;
}

.sessions-list__intro-copy .md-card__title {
  margin: 0;
}

.sessions-list__intro-copy .muted {
  margin: 4px 0 0;
}

.sessions-list__actions {
  justify-content: flex-end;
}

.tenant-dashboard__access-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.tenant-dashboard__access-intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.tenant-dashboard__access-copy {
  min-width: 0;
  margin-top: -6px;
}

.tenant-dashboard__access-copy .md-card__title {
  margin: 0;
}

.tenant-dashboard__access-copy .muted {
  margin: 4px 0 0;
}

.tenant-detail__stack {
  gap: 16px;
}

body:not(.route-inbox) .page .tenant-detail__metrics {
  gap: 20px;
  margin-bottom: 16px;
}

.tenant-detail__card-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.tenant-detail__card-head .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.tenant-detail__card-copy {
  min-width: 0;
  flex: 1 1 auto;
  margin-top: -6px;
}

.tenant-detail__card-copy .md-card__title {
  margin: 0;
}

.tenant-detail__card-copy .muted {
  margin: 4px 0 0;
}

.integration-endpoint {
  overflow-wrap: anywhere;
}

.tenant-detail__card-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.tenant-detail__table-actions-cell {
  text-align: right;
}

.tenant-detail__table-actions {
  justify-content: flex-end;
  width: 100%;
}

.ai-settings-card + .ai-settings-card {
  margin-top: 30px;
}

.ai-settings-card__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.ai-settings-card__intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.ai-settings-card__copy {
  min-width: 0;
  flex: 1 1 auto;
  margin-top: -6px;
}

.ai-settings-card__copy .md-card__title {
  margin: 0;
}

.ai-settings-card__copy .muted {
  margin: 4px 0 0;
}

.ai-settings-card__actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.ai-settings-card__stack {
  gap: 24px;
}

.ai-settings-card__api,
.ai-settings-card__models {
  min-width: 0;
}

.ai-settings-card__api-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.ai-settings-card__api-main {
  min-width: 0;
}

.ai-settings-card__api-main > label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.ai-settings-card__api-main > input {
  width: 100%;
  margin-bottom: 14px;
}

.ai-settings-card__api-main > p.muted {
  margin: 0 0 10px;
}

.ai-settings-card__api-main > p.muted:last-child {
  margin-bottom: 0;
}

.ai-settings-card__api-actions {
  padding-left: 0;
  justify-content: flex-end;
  align-self: end;
}

.ai-price-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border-muted-solid);
  border-radius: 8px;
  background: var(--color-surface-subtle);
}

.ai-saved-configuration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border-muted-solid);
  border-radius: 8px;
}

.ai-saved-configuration__summary {
  display: grid;
  gap: 4px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-chip--pending {
  color: var(--color-warning-strong);
  background: var(--color-warning-alpha-14);
}

.status-chip--passed {
  color: var(--color-success-strong);
  background: var(--color-success-alpha-12);
}

.status-chip--failed {
  color: var(--color-danger-strong);
  background: color-mix(in srgb, var(--color-danger) 12%, transparent);
}

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

.ai-provider-credential,
.ai-catalog-model {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--color-border-muted-solid);
  border-radius: 8px;
  background: var(--color-surface);
}

.ai-provider-credential h5 {
  margin: 0 0 6px;
}

.ai-catalog-model > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.ai-catalog-model__body {
  display: grid;
  gap: 20px;
  padding-top: 18px;
}

.ai-price-form {
  padding-top: 4px;
  border-top: 1px solid var(--color-border-muted-solid);
}

.ai-usage__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.ai-usage__intro .md-card__header--icon {
  margin: -40px 0 0;
  flex: 0 0 auto;
}

.ai-usage__intro-copy {
  min-width: 0;
  margin-top: -6px;
}

.ai-usage__intro-copy .md-card__title {
  margin: 0;
}

.ai-usage__intro-copy .muted {
  margin: 4px 0 0;
}

.badge {
  background: var(--color-primary-alpha-12);
  color: var(--color-primary);
}

.badge.warm {
  background: var(--color-warning-alpha-14);
  color: var(--color-warning-strong);
}

.wa-business-page {
  display: grid;
  gap: 20px;
}

.wa-business-sync {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.wa-business-confirmed-fields {
  margin-top: 20px;
}

.wa-business-avatar-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.wa-business-avatar-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-alpha-08);
  color: var(--accent);
  overflow: hidden;
}

.wa-business-avatar-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .app-header .breadcrumb {
    margin-left: 0;
  }

  body:not(.route-inbox) .page .metric-strip.metric-strip--three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    padding-left: 0;
  }

  .app-sidebar {
    transform: translate3d(-270px, 0, 0);
  }

  body.shell-drawer-open .app-sidebar {
    transform: translate3d(0, 0, 0);
  }

  .app-sidebar__close,
  .app-header__menu-button {
    display: inline-flex;
  }

  .app-header__minimize {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-header .breadcrumb {
    padding: 0;
    margin-top: 0;
  }

  .app-header .breadcrumb > li {
    font-size: 12px;
  }

  body:not(.route-inbox) .page .metric-strip.metric-strip--three-up {
    grid-template-columns: 1fr;
  }

  body:not(.route-inbox) .page .metric-card--stats .metric-card__content {
    padding-left: 74px;
  }

  .auth-page-panel > .content {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .md-form,
  .card > form:not(.inline-actions),
  .auth-card form:not(.auth-login-form) {
    grid-template-columns: 1fr;
  }

  .ai-settings-card__api-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-provider-grid,
  .ai-saved-configuration {
    grid-template-columns: 1fr;
  }

  .ai-saved-configuration form {
    justify-self: start;
  }

  .md-card__split {
    grid-template-columns: 1fr;
  }

  .agenda-card-heading {
    padding-left: 0;
  }

  .agenda-association-grid {
    grid-template-columns: 1fr;
  }

  .agenda-field-grid--three {
    grid-template-columns: 1fr;
  }

  .agenda-field-grid--two,
  .agenda-field-grid--four {
    grid-template-columns: 1fr;
  }

  .contacts-table-filter-row th {
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .contacts-table-filter-input {
    min-width: 120px;
  }

  .contacts-search-actions {
    justify-content: flex-start;
  }

  .contacts-batch-summary {
    grid-template-columns: 1fr;
  }

  .contacts-import-controls,
  .contacts-import-upload-form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .md-form > label,
  .card > form:not(.inline-actions) > label,
  .auth-card form:not(.auth-login-form) > label {
    padding-top: 0;
    text-align: left;
    margin-bottom: 5px;
  }

  .md-form > p.muted,
  .md-form > .form-hint,
  .card > form:not(.inline-actions) > p.muted,
  .auth-card form:not(.auth-login-form) > p.muted,
  .md-form__checkboxes,
  .md-form > .inline-actions,
  .card > form:not(.inline-actions) > .inline-actions {
    grid-column: 1;
    padding-left: 0;
  }

  .ai-settings-card__api-actions {
    justify-content: flex-start;
  }
}

/* Responsive shell header */
.app-header {
  overflow: visible;
}

.app-header__inner {
  position: relative;
}

.app-header__actions-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text-muted-strong);
  cursor: pointer;
}

.app-header__actions-toggle .material-icons {
  font-size: 20px;
}

.app-header__actions-toggle:hover,
.app-header__actions-toggle:focus-visible,
.app-header.is-actions-open .app-header__actions-toggle {
  color: var(--color-text-strong);
  outline: 0;
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 1099.98px) {
  .app-main {
    padding-top: 0;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    min-height: var(--shell-header-height);
    padding: 6px 12px;
  }

  .app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    gap: 8px;
  }

  .app-header__lead {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    gap: 8px;
  }

  .app-header__brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
  }

  .app-header__minimize {
    display: none !important;
  }

  .app-header__menu-button {
    display: inline-flex;
    flex: 0 0 36px;
    color: var(--color-text-strong);
  }

  .app-header__menu-button:hover,
  .app-header__menu-button:focus-visible {
    color: var(--color-text-strong);
  }

  .app-breadcrumb-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .app-header .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    margin: 0 0 0 6px;
    overflow: hidden;
  }

  .app-header .breadcrumb > li {
    min-width: 0;
    overflow: hidden;
  }

  .app-header .breadcrumb > li > a,
  .app-header .breadcrumb > li > span {
    min-width: 0;
    max-width: min(52vw, 520px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-header__actions-toggle {
    display: inline-flex;
    flex: 0 0 36px;
  }

  .app-header__actions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 120;
    width: min(220px, calc(100vw - 24px));
    min-height: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--color-border-muted-solid);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-elevated);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .app-header.is-actions-open .app-header__actions {
    display: flex;
  }

  .app-header__actions > *,
  .app-header__language-form,
  .app-header__account {
    flex: none;
    width: 100%;
  }

  .app-header__account-toggle {
    display: none;
  }

  .app-header__account-menu {
    display: grid;
    position: static;
    width: 100%;
    padding: 0;
    gap: 2px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-header__language-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 10px;
  }

  .app-header__language-form label {
    width: auto;
    text-align: left;
  }

  .app-header__language-form select {
    width: auto;
    max-width: 132px;
    min-height: 32px;
  }

  .app-header__logout-button,
  .app-header__actions button,
  .app-header__actions .button {
    width: 100%;
  }

  .app-header__logout-button {
    justify-content: flex-start;
    min-height: 34px;
    padding: 7px 10px;
    box-shadow: none;
    background: var(--color-black-alpha-04);
  }
}

@media (max-width: 899.98px) {
  .app-header .breadcrumb > li:not(:last-child) {
    display: none;
  }

  .app-header .breadcrumb > li + li::before {
    content: none;
    display: none;
  }

  .app-header .breadcrumb > li > a,
  .app-header .breadcrumb > li > span {
    max-width: calc(100vw - 116px);
  }
}

body.route-inbox .app-shell,
body.route-native-agenda .app-shell {
  height: 100vh;
  height: 100dvh;
  padding-left: 0;
  overflow: hidden;
}

body.route-inbox .app-shell__scrim,
body.route-native-agenda .app-shell__scrim {
  display: block;
}

body.route-inbox .app-main {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-top: 0;
  overflow: hidden;
}

/* Keep the inbox header in the viewport flow so no reserved shell strip shows above it. */
body.route-inbox .app-header {
  position: relative;
  inset: auto;
  flex: 0 0 var(--shell-header-height);
  min-height: var(--shell-header-height);
}

body.route-inbox .app-sidebar,
body.route-native-agenda .app-sidebar {
  transform: translate3d(-270px, 0, 0);
  pointer-events: none;
}

body.route-inbox.shell-drawer-open .app-shell__scrim,
body.route-native-agenda.shell-drawer-open .app-shell__scrim {
  opacity: 1;
  pointer-events: auto;
}

body.route-inbox.shell-drawer-open .app-sidebar,
body.route-native-agenda.shell-drawer-open .app-sidebar {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

body.route-inbox .app-sidebar__close,
body.route-inbox .app-header__menu-button,
body.route-native-agenda .app-sidebar__close,
body.route-native-agenda .app-header__menu-button {
  display: inline-flex;
}

body.route-inbox .app-header__menu-button,
body.route-native-agenda .app-header__menu-button {
  flex: 0 0 36px;
  color: var(--color-text-strong);
}

body.route-inbox .app-header__menu-button:hover,
body.route-inbox .app-header__menu-button:focus-visible,
body.route-native-agenda .app-header__menu-button:hover,
body.route-native-agenda .app-header__menu-button:focus-visible {
  color: var(--color-text-strong);
}

body.route-inbox .app-header__minimize,
body.route-inbox .app-sidebar__collapse,
body.route-native-agenda .app-header__minimize,
body.route-native-agenda .app-sidebar__collapse {
  display: none !important;
}

.intake-review-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.intake-review-grid div {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.intake-review-grid dt {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.intake-review-grid dd {
  margin: 0;
  color: var(--color-text-strong);
  font-weight: 600;
}

.intake-review-section {
  margin-top: 22px;
}


.shell-nav__group {
  margin: 0;
}

.shell-nav__group > summary {
  list-style: none;
  cursor: pointer;
}

.shell-nav__group > summary::-webkit-details-marker {
  display: none;
}

.shell-nav__link--parent {
  grid-template-columns: 30px minmax(0, 1fr) 20px;
}

.shell-nav__link--parent > .shell-nav__icon {
  grid-column: 1;
  grid-row: 1;
}

.shell-nav__link--parent > .shell-nav__label {
  grid-column: 2;
  grid-row: 1;
}

.shell-nav__group > .shell-nav__link--parent.is-active {
  background: transparent;
  color: var(--color-white-alpha-78);
  box-shadow: none;
}

.shell-nav__group > .shell-nav__link--parent.is-active:hover,
.shell-nav__group > .shell-nav__link--parent.is-active:focus-visible {
  background: var(--color-white-alpha-08);
  color: var(--color-surface);
}

.shell-nav__chevron {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: transform 0.18s ease;
}

.shell-nav__group[open] .shell-nav__chevron {
  transform: rotate(180deg);
}

.shell-nav__submenu {
  display: grid;
  gap: 2px;
  margin: -3px 15px 8px;
}

.shell-nav__sublink {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 13px;
  border-left: 3px solid transparent;
  border-radius: 3px;
  color: var(--color-white-alpha-78);
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    padding 0.22s ease;
}

.shell-nav__subicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: inherit;
  font-size: 22px;
  line-height: 30px;
  grid-column: 1;
  grid-row: 1;
}

.shell-nav__sublink-label {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes shell-nav-sublink-label-in {
  from {
    opacity: 0;
    transform: translate3d(-25px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.shell-nav__sublink:hover,
.shell-nav__sublink:focus-visible {
  background: var(--color-white-alpha-08);
  color: var(--color-surface);
}

.shell-nav__sublink.is-active {
  border-left-color: transparent;
  background: var(--color-primary-gradient);
  color: var(--color-surface);
  box-shadow: var(--color-primary-shadow-elevated);
  font-weight: 400;
}

body.shell-sidebar-collapsed .shell-nav__group .shell-nav__chevron {
  display: none;
}

/* Keep compact navigation geometry independent from the expanded grid. */
body.shell-sidebar-collapsed .shell-nav__link {
  width: calc(100% - 30px);
  grid-template-columns: 30px;
  justify-content: center;
  justify-items: center;
  gap: 0;
  margin: 0 15px 8px;
  padding: 10px 7px;
  box-sizing: border-box;
}

body.shell-sidebar-collapsed .shell-nav__form {
  width: calc(100% - 30px);
  margin: 0 15px 8px;
}

body.shell-sidebar-collapsed .shell-nav__button {
  width: 100%;
  grid-template-columns: 30px;
  justify-content: center;
  justify-items: center;
  gap: 0;
  margin: 0;
  padding: 10px 7px;
  box-sizing: border-box;
}

body.shell-sidebar-collapsed .shell-nav__link > .shell-nav__label,
body.shell-sidebar-collapsed .shell-nav__button > .shell-nav__label,
body.shell-sidebar-collapsed .shell-nav__group .shell-nav__chevron {
  display: none;
}

body.shell-sidebar-collapsed .shell-nav__sublink-label {
  display: none;
}

body.shell-sidebar-collapsed .shell-nav__link > .shell-nav__icon,
body.shell-sidebar-collapsed .shell-nav__button > .shell-nav__icon {
  grid-column: 1;
  grid-row: 1;
}

body.shell-sidebar-collapsed .shell-nav__submenu {
  display: grid;
  width: calc(100% - 30px);
  margin: -3px 15px 8px;
}

body.shell-sidebar-collapsed .shell-nav__sublink {
  width: 100%;
  grid-template-columns: 30px;
  justify-content: center;
  justify-items: center;
  gap: 0;
  padding: 8px 7px;
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__link {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-content: normal;
    justify-items: stretch;
    gap: 15px;
    padding: 10px 13px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__link--parent {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__button {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-content: normal;
    justify-items: stretch;
    gap: 15px;
    padding: 10px 13px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__link > .shell-nav__label,
  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__button > .shell-nav__label {
    display: block;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__sublink-label {
    display: block;
    animation: shell-nav-sublink-label-in 0.22s ease 0.05s both;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__group .shell-nav__chevron {
    display: inline-flex;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__group .shell-nav__submenu {
    display: grid;
    width: 230px;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .shell-nav__sublink {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-content: normal;
    justify-items: stretch;
    gap: 15px;
    padding: 8px 13px;
  }
}

.connection-audit__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.connection-audit__columns > * {
  min-width: 0;
}

.connection-audit__json {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--color-border-solid);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.connection-audit__actions {
  justify-content: flex-end;
  margin: 0 0 30px;
}

@media (max-width: 760px) {
  .connection-audit__columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.native-professional-checklist { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: .75rem 0 1.25rem; }
.native-professional-visit-list { display: grid; gap: .75rem; margin: .75rem 0 1.25rem; }
.native-professional-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.native-professional-visit input[type="number"] { width: 9rem; }
.native-professional-status-grid,
.native-professional-associations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.native-professional-status-grid { align-items: end; margin: 18px 0 24px; }
.native-professional-status-grid > .checkbox { display: flex; align-items: center; min-height: 44px; margin: 0; }
.native-professional-status-grid > .agenda-field { min-width: 0; }
.native-professional-associations { align-items: start; margin: 20px 0 26px; }
.native-professional-association {
  min-width: 0;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.native-professional-association h5 { margin: 0 0 14px; }
.native-professional-association .native-professional-checklist { display: grid; gap: 10px; margin: 0; }
.native-professional-association .native-professional-visit-list { margin: 0; }
.native-professional-association .native-professional-visit { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.native-professional-association .native-professional-visit:last-child { padding-bottom: 0; border-bottom: 0; }
.native-professional-association .native-professional-visit input[type="number"] { width: min(100%, 10rem); }
.native-professional-signature { display: block; max-width: 15rem; max-height: 7rem; object-fit: contain; margin: .5rem 0; }
.native-professional-signature[hidden] { display: none; }
.native-professional-form [hidden],
.native-professional-dialog [hidden] { display: none !important; }
.native-professional-pending,
.native-professional-undo,
.native-professional-warning {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin: 12px 0;
}
.native-professional-pending,
.native-professional-undo { background: var(--accent-soft); color: var(--text); }
.native-professional-warning { background: var(--warm-soft); color: var(--text); }
.native-professional-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.native-professional-undo .button { margin: 0; }
.native-professional-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 22px 0;
  background: var(--surface);
}
.native-professional-section__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.native-professional-section__heading h5 { margin: 0 0 6px; }
.native-professional-section__heading p { margin: 0; }
.native-professional-section__heading .button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin: 0;
}
.native-professional-section__heading .material-icons { font-size: 18px; }
.native-professional-count {
  display: inline-block;
  min-width: 22px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  text-align: center;
}
.native-professional-empty { margin: 12px 0 2px; color: var(--muted); }
.native-professional-table { width: 100%; }
.native-professional-table td { vertical-align: middle; }
.native-professional-table tr.is-inactive { opacity: .7; }
.native-professional-table tr.is-invalid { outline: 2px solid var(--warm); outline-offset: -2px; }
.native-professional-row-actions { white-space: nowrap; text-align: right; }
.native-professional-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
}
.native-professional-icon-action:hover,
.native-professional-icon-action:focus-visible { background: var(--accent-soft); }
.native-professional-icon-action--discard { color: var(--color-text-muted-ui); }
.native-professional-row-actions .agenda-status-switch { margin: 0 4px; }
.native-professional-dialog:not([open]) { display: none; }
.native-professional-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 22px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-elevated);
}
.native-professional-dialog::backdrop { background: var(--color-black-alpha-42); }
.native-professional-dialog__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.native-professional-dialog__heading h3 { margin: 0; }
.native-professional-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.native-professional-dialog__actions .button { margin: 0; }
.native-professional-dialog select[multiple] { min-height: 128px; }
@media (max-width: 700px) {
  .native-professional-status-grid,
  .native-professional-associations { grid-template-columns: 1fr; }
  .native-professional-section { padding: 14px; }
  .native-professional-section__heading { flex-direction: column; align-items: stretch; }
  .native-professional-section__heading .button { align-self: flex-start; }
  .native-professional-table thead { display: none; }
  .native-professional-table,
  .native-professional-table tbody,
  .native-professional-table tr,
  .native-professional-table td { display: block; width: 100%; }
  .native-professional-table tr { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; }
  .native-professional-table td { padding: 5px 0; border: 0; }
  .native-professional-table td::before { content: attr(data-label) ": "; font-weight: 600; }
  .native-professional-row-actions { text-align: left; }
  .native-professional-row-actions::before { display: none; }
  .native-professional-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .native-professional-associations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-professional-association:last-child { grid-column: 1 / -1; }
}
