@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: #eeeeee;
  --page-bg-accent: #eeeeee;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-muted: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.18);
  --text: #3c4858;
  --muted: #999999;
  --accent: #e91e63;
  --accent-strong: #d81b60;
  --accent-soft: rgba(233, 30, 99, 0.12);
  --accent-soft-strong: rgba(233, 30, 99, 0.22);
  --warm: #ff9800;
  --warm-soft: rgba(255, 152, 0, 0.14);
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.14);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.14);
  --shadow-elevated:
    0 10px 30px -12px rgba(0, 0, 0, 0.42),
    0 4px 25px 0 rgba(0, 0, 0, 0.12),
    0 8px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-button:
    0 2px 2px 0 rgba(156, 39, 176, 0.14),
    0 3px 1px -2px rgba(156, 39, 176, 0.2),
    0 1px 5px 0 rgba(156, 39, 176, 0.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: 56px;
  --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: rgba(0, 0, 0, 0.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: #ffffff;
  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: rgba(180, 180, 180, 0.3);
}

.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: #a9afbb;
}

.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: rgba(200, 200, 200, 0.2);
  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: rgba(180, 180, 180, 0.3);
}

.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: rgba(200, 200, 200, 0.2);
  color: var(--text);
}

.shell-nav__link.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(156, 39, 176, 0.4);
}

.shell-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #a9afbb;
  font-size: 24px;
  line-height: 30px;
}

.shell-nav__link.is-active .shell-nav__icon {
  color: #ffffff;
}

.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 #ededf3;
  border-radius: 0;
  background: #ffffff;
  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: 50px;
}

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

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

.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__language-form label {
  margin: 0;
  font-size: var(--font-size-meta);
  font-weight: 400;
  text-transform: none;
}

.app-header__language-form select {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 6px 10px;
  margin-bottom: 0;
  font-size: var(--font-size-meta);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.app-header__logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  color: #555555;
  font-size: var(--font-size-meta);
  font-weight: 400;
  line-height: 1.2;
  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 #4caf50;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.flash.success {
  border-left-color: #4caf50;
}

.flash.error {
  border-left-color: #f44336;
}

.hero-card,
.auth-card,
.page > .section-head {
  position: relative;
  overflow: visible;
  margin: 25px 0;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: #ffffff;
  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: #ffffff;
  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: #ffffff;
  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: #17201f;
}

.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 #eeeeee;
}

tbody td {
  padding: 10px 8px;
  border-top: 1px solid #f3f3f3;
  vertical-align: middle;
}

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

tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

tbody tr:hover td {
  border-top-color: #f3f3f3;
}

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 #d2d2d2;
  border-radius: var(--radius-sm);
  background: #ffffff;
  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: #ffffff;
  box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.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: #fff;
  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: #d2d2d2;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

button.secondary:hover,
.button.secondary:hover {
  background: #ffffff;
}

button.button-rose,
.button.button-rose {
  background: linear-gradient(60deg, #ec407a, #d81b60);
  color: #ffffff;
  box-shadow: 0 12px 20px -10px rgba(233, 30, 99, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(233, 30, 99, 0.2);
}

.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: rgba(200, 200, 200, 0.2);
  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: #a9afbb;
  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: 32px;
  margin-bottom: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(211, 211, 211, 0.7);
  background: #ffffff;
  box-shadow: none;
  font-size: var(--font-size-meta);
}

.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 #eeeeee;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

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

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

.message.bot {
  border-left: 5px solid #4d825f;
  background: #ffffff;
}

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

.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: rgba(255, 255, 255, 0.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: rgba(200, 106, 59, 0.2);
  background: var(--warm-soft);
  color: #8f4f2d;
}

.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 #4caf50;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

body:not(.route-inbox) .page .flash.success {
  border-left-color: #4caf50;
  background: #ffffff;
}

body:not(.route-inbox) .page .flash.error {
  border-left-color: #f44336;
  background: #ffffff;
}

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: #ffffff;
  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: #4caf50;
  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: #4caf50;
  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: #ffffff;
  background: linear-gradient(60deg, #26c6da, #00acc1);
  box-shadow: 0 12px 20px -10px rgba(0, 172, 193, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(0, 172, 193, 0.2);
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--rose .metric-card__header {
  background: linear-gradient(60deg, #ec407a, #d81b60);
  box-shadow: 0 12px 20px -10px rgba(233, 30, 99, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(233, 30, 99, 0.2);
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--green .metric-card__header {
  background: linear-gradient(60deg, #66bb6a, #43a047);
  box-shadow: 0 12px 20px -10px rgba(76, 175, 80, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(76, 175, 80, 0.2);
}

body:not(.route-inbox) .page .metric-card--stats.metric-card--orange .metric-card__header {
  background: linear-gradient(60deg, #ffa726, #fb8c00);
  box-shadow: 0 12px 20px -10px rgba(255, 152, 0, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 152, 0, 0.2);
}

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: #ffffff;
  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 #eeeeee;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

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 rgba(60, 72, 88, 0.12);
  border-radius: 12px;
  background: rgba(200, 200, 200, 0.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: rgba(255, 152, 0, 0.16);
  background: rgba(255, 152, 0, 0.12);
  color: #8a5a10;
}

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

body:not(.route-inbox) .page thead th {
  padding: 12px 8px;
  color: #888888;
  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 #dddddd;
}

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: #f9f9f9;
}

body:not(.route-inbox) .page tbody tr:nth-child(even) {
  background: #ffffff;
}

body:not(.route-inbox) .page tbody tr:hover {
  background: #f5f5f5;
}

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 #d2d2d2;
  border-radius: var(--radius-sm);
  background: #ffffff;
  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: #ffffff;
  box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.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: #ffffff;
  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 #d2d2d2;
  background: #ffffff;
  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: linear-gradient(60deg, #ec407a, #d81b60);
  color: #ffffff;
  box-shadow: 0 12px 20px -10px rgba(233, 30, 99, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(233, 30, 99, 0.2);
}

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 #eeeeee;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

@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 rgba(180, 180, 180, 0.3);
    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 rgba(180, 180, 180, 0.3);
    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: #eeeeee;
}

.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 {
  background:
    url("/static/images/sidebar/coel-sidebar-3.jpg") center center / cover no-repeat;
  color: #ffffff;
  box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.32);
}

.app-sidebar__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.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__user::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.app-sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

.app-brand {
  padding: 0;
  gap: 0;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  transition: width 0.22s ease, justify-content 0.22s ease, overflow 0.22s ease;
}

body.shell-sidebar-collapsed .app-brand {
  justify-content: flex-start;
  width: auto;
  overflow: visible;
}

.app-brand--mini {
  width: 30px;
  flex: 0 0 30px;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
}

.app-brand--normal {
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 15px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(2 * 1.15em);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-width 0.22s ease, opacity 0.16s ease, transform 0.22s ease, margin-left 0.22s ease;
}

.app-sidebar__user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 16px 19px 28px;
  transition: padding 0.22s ease, justify-content 0.22s ease;
}

.app-sidebar__photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.app-sidebar__user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: max-width 0.22s ease, opacity 0.16s ease, transform 0.22s ease;
}

.app-sidebar__user-name,
.app-sidebar__user-meta {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-sidebar__user-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.app-sidebar__user-meta {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.shell-nav {
  padding: 18px 0 24px;
  overflow: visible;
}

.shell-nav__divider {
  background: rgba(255, 255, 255, 0.12);
}

.shell-nav__link {
  margin: 0 15px 8px;
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.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: rgba(255, 255, 255, 0.78);
  border-radius: 3px;
}

.shell-nav__link:hover,
.shell-nav__button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.shell-nav__link.is-active {
  background: linear-gradient(60deg, #ec407a, #d81b60);
  box-shadow: 0 12px 20px -10px rgba(233, 30, 99, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(233, 30, 99, 0.2);
}

.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: rgba(255, 255, 255, 0.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: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
  filter: none;
  outline: none;
}

.app-sidebar__close {
  display: none;
  position: absolute;
  top: 18px;
  right: 12px;
  color: rgba(255, 255, 255, 0.78);
}

body.shell-sidebar-collapsed .app-brand--normal,
body.shell-sidebar-collapsed .app-sidebar__user-copy,
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-sidebar__user-copy {
  display: flex;
}

body.shell-sidebar-collapsed .app-brand--normal {
  margin-left: 14px;
}

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

body.shell-sidebar-collapsed .app-sidebar__user {
  justify-content: flex-start;
  padding: 18px 16px 19px 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: auto;
    overflow: visible;
  }

  body.shell-sidebar-collapsed .app-sidebar:hover .app-brand--normal,
  body.shell-sidebar-collapsed .app-sidebar:hover .app-sidebar__user-copy,
  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__user {
    justify-content: flex-start;
    padding: 18px 16px 19px 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: var(--shell-header-height);
  background: #eeeeee;
}

.app-header {
  position: absolute;
  inset: 0 0 auto;
  min-height: var(--shell-header-height);
  padding: 4px 15px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #ededf3;
  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;
}

.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;
}

.app-header .breadcrumb {
  min-width: 0;
  margin: 0 0 0 6px;
  padding: 0.22rem 0;
  list-style: none;
  background-color: transparent;
  border-radius: 0.125rem;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.428571429;
  color: #555555;
}

.app-header .breadcrumb::after {
  content: "";
  display: table;
  clear: both;
}

.app-header .breadcrumb > li {
  float: left;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.428571429;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  color: #555555;
  letter-spacing: 0;
  white-space: nowrap;
}

.app-header .breadcrumb > li + li::before {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  color: rgba(0, 0, 0, 0.26);
  content: "/";
}

.app-header .breadcrumb > li > a,
.app-header .breadcrumb > li > span {
  color: #555555;
  text-decoration: none;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.428571429;
}

.app-header .breadcrumb > li.active,
.app-header .breadcrumb > li.active > a,
.app-header .breadcrumb > li.active > span {
  color: #555555;
}

.app-header .breadcrumb > li > a:hover {
  color: #555555;
  text-decoration: none;
}

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

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

.app-header__minimize-button:hover,
.app-header__icon-button:hover {
  background: #ffffff;
  color: #111111;
  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: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.app-header__menu-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  background: #555555;
  border-radius: 999px;
}

.app-header__context {
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
}

.app-header__actions {
  flex: 0 0 auto;
  margin-left: auto;
  gap: 10px;
  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: 8px;
}

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

.app-header__language-form select,
.auth-navbar__language-form select {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 30px;
  background: #ffffff;
  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(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.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, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.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: rgba(255, 255, 255, 0.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: #ffffff;
  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 #d2d2d2;
}

.auth-input-group__icon {
  flex: 0 0 auto;
  color: #999999;
  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: linear-gradient(60deg, #66bb6a, #43a047);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 20px -10px rgba(76, 175, 80, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(76, 175, 80, 0.2);
}

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

.auth-card__panel,
.md-card,
.hero-card,
.card,
.page > .section-head {
  position: relative;
  margin: 30px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  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: #ffffff;
  background: linear-gradient(60deg, #ec407a, #d81b60);
  box-shadow: 0 12px 20px -10px rgba(233, 30, 99, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(233, 30, 99, 0.2);
}

.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: linear-gradient(60deg, #66bb6a, #43a047);
  box-shadow: 0 12px 20px -10px rgba(76, 175, 80, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(76, 175, 80, 0.2);
}

.md-card__header--orange {
  background: linear-gradient(60deg, #ffa726, #fb8c00);
  box-shadow: 0 12px 20px -10px rgba(255, 152, 0, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 152, 0, 0.2);
}

.md-card__header--blue {
  background: linear-gradient(60deg, #26c6da, #00acc1);
  box-shadow: 0 12px 20px -10px rgba(0, 172, 193, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(0, 172, 193, 0.2);
}

.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: rgba(255, 255, 255, 0.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 #eeeeee;
}

.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: #ffffff;
  font-family: "Material Icons";
  font-size: 18px;
  background: linear-gradient(60deg, #26c6da, #00acc1);
  box-shadow: 0 12px 20px -10px rgba(0, 172, 193, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(0, 172, 193, 0.2);
}

.metric-card--rose::before {
  background: linear-gradient(60deg, #ec407a, #d81b60);
  box-shadow: 0 12px 20px -10px rgba(233, 30, 99, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(233, 30, 99, 0.2);
}

.metric-card--green::before {
  background: linear-gradient(60deg, #66bb6a, #43a047);
  box-shadow: 0 12px 20px -10px rgba(76, 175, 80, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(76, 175, 80, 0.2);
}

.metric-card--orange::before {
  background: linear-gradient(60deg, #ffa726, #fb8c00);
  box-shadow: 0 12px 20px -10px rgba(255, 152, 0, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 152, 0, 0.2);
}

.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: #666666;
  font-size: 13px;
  font-weight: 600;
  background: #eeeeee;
}

.agenda-data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

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

.agenda-data-table thead th {
  padding: 12px 8px;
  border-bottom: 1px solid #dddddd;
  color: #888888;
  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 #dddddd;
  color: #888888;
  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: #f9f9f9;
}

body:not(.route-inbox) .page .agenda-data-table tbody tr:nth-child(odd) {
  background: #f9f9f9;
}

.agenda-data-table tbody tr:nth-child(even) {
  background: #ffffff;
}

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

.agenda-data-table tbody tr:hover {
  background: #f5f5f5;
}

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

.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: #4caf50;
  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: #4caf50;
  box-shadow: none;
  text-decoration: none;
}

.agenda-icon-action:hover,
.agenda-icon-action:focus {
  color: #4caf50;
  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: #4caf50;
  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;
}

.agenda-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: #43a047;
  text-transform: uppercase;
}

.agenda-pill--muted {
  color: #666666;
  background: #eeeeee;
}

.agenda-pill--mode {
  background: #26a69a;
}

.agenda-pill--capacity-human_handoff {
  color: #666666;
  background: #eeeeee;
}

.agenda-pill--capacity-informational {
  color: #ffffff;
  background: #43a047;
}

.agenda-pill--capacity-ai_booking {
  color: #ffffff;
  background: #2563eb;
}

.agenda-pill--result-blocked {
  color: #ffffff;
  background: #e53935;
}

.agenda-pill--result-human_handoff {
  color: #666666;
  background: #eeeeee;
}

.agenda-pill--result-informational {
  color: #ffffff;
  background: #43a047;
}

.agenda-pill--result-ai_booking {
  color: #ffffff;
  background: #2563eb;
}

.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-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 #dddddd;
  border-radius: 4px;
  background: #f4f4f4;
}

.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: #555555;
  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: #777777;
  font-size: 12px;
}

.agenda-provider-readonly dd {
  margin: 2px 0 0;
  color: #333333;
}

.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: #555555;
  border-color: #d0d0d0;
  background: #eeeeee;
  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: #555555 !important;
  border-color: #c9c9c9 !important;
  background: #eeeeee !important;
  background-color: #eeeeee !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 #eeeeee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.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: #ffffff;
  background: #4caf50;
  box-shadow: 0 3px 8px rgba(76, 175, 80, 0.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: #fafafa;
}

.agenda-association-add-form > span {
  color: #666666;
  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 #eeeeee;
}

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;
}

.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 #eeeeee;
  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 #eeeeee;
  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: 0 auto 18px;
}

.contacts-search-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.contacts-search-form > label {
  padding-top: 0;
  margin-bottom: 8px;
  text-align: left;
}

.contacts-search-form > input {
  width: 100%;
  margin-bottom: 16px;
}

.contacts-search-form > .inline-actions {
  padding-left: 0;
}

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

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

.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;
}

.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-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: rgba(233, 30, 99, 0.12);
  color: #e91e63;
}

.badge.warm {
  background: rgba(255, 152, 0, 0.14);
  color: #fb8c00;
}

.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: rgba(233, 30, 99, 0.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.35rem 0;
    margin-top: 0;
  }

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

  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;
  }

  .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;
  }

  .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;
  }
}
