
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-italic.woff2") format("woff2");
}
:root {
  --navy: #103456;
  --navy-deep: #0c253d;
  --navy-mid: #002d54;
  --gold: #e4a025;
  --gold-hover: #e3a033;
  --cyan: #48a5dc;
  --text: #39414d;
  --muted: #6c6c6c;
  --white: #ffffff;
  --off: #f2f2f2;
  --grey: #e7e7e7;
  --line: #d5d8de;
  --copy-text: #b2b2b1;
  --danger: #8a1f1f;
  --danger-bg: #f8eaea;
  --ok: #24553a;
  --ok-bg: #e7f3ec;
  --warn: #8a5a12;
  --warn-bg: #fff6e4;
  --info: #1d4f73;
  --shadow: 0 12px 36px rgba(16, 52, 86, 0.1);
  --radius: 8px;
  --text-page: 20px;
  --text-section: 13px;
  --text-body: 15px;
  --text-meta: 12px;
  --sidebar-label-color: #103456;
  --sidebar-label-size: 11px;
  --sidebar-head-height: 109px;
  --sidebar-account-height: 80px;
  --sidebar-row-height: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --list-stack-gap: 6px;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --control-height: 36px;
  --toolbar-control-height: 36px;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%23103456' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off);
  line-height: 1.5;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html {
  height: 100%;
  margin: 0;
  background: var(--off);
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--off);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.is-public {
  max-width: 100%;
}
body.is-public .page,
body.is-public .header-inner,
body.is-public .site-footer .footer-inner {
  min-width: 0;
  max-width: 100%;
}
body.is-public:has(.pack-sign-form, .sa-sign-form) .page { padding-bottom: 28px; }
body.has-shell { background: var(--off); }
body.has-shell.is-fill,
html:has(body.has-shell.is-fill) {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body.has-shell.is-fill { min-height: 0; }
body.has-shell.is-fill .app-shell {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body.has-shell.is-fill .app-main { min-height: 0; overflow: hidden; }
.app-main .page.fill {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.has-shell .app-main .page > .page-alerts {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.proto-banner,
.site-header,
.site-footer { flex-shrink: 0; }
.page { flex: 1 0 auto; }
.app-main .page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
}
.app-main .page.wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
}
.app-main .page.fill,
.app-main .page.wide.fill {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.app-main .page > .card-grid:first-child,
.app-main .page > .banner + .card-grid { margin-top: 0; }
.app-main .page.list,
.app-main .page.list.wide,
.app-main .page.list.fill,
.app-main .page.wide.fill.list {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
}
.page-stack {
  display: flex;
  flex-direction: column;
  gap: var(--list-stack-gap);
  min-width: 0;
}
.page-stack > * { margin-block: 0; }
.app-main .page.list.fill > .page-stack,
.app-main .page.wide.fill.list > .page-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 1280px) {
  .app-main .page,
  .app-main .page.wide,
  .app-main .page.list,
  .app-main .page.list.wide,
  .app-main .page.list.fill,
  .app-main .page.wide.fill.list { padding: 12px; }
  .app-main .page.fill:not(.list),
  .app-main .page.wide.fill:not(.list) { padding: 0; }
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; }

.proto-banner {
  background: var(--gold);
  color: var(--navy-deep);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}
.header-inner, .page, .site-footer .footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.page.wide { width: min(1290px, calc(100% - 32px)); }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
  padding: 10px 0;
  gap: 20px;
}
.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 119px;
  height: auto;
  display: block;
}
.brand-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px 16px;
}
.nav-hub-link {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  padding: 10px 12px 8px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-hub-link:hover,
.nav-hub-link:focus-visible { color: var(--gold); }

.app-shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}
.app-sidebar {
  width: 212px;
  flex: 0 0 212px;
  background: var(--white);
  border-right: 1px solid var(--grey);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  min-height: 0;
  z-index: 30;
}
body.has-shell .proto-banner + .app-shell .app-sidebar {
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
}
.sidebar-head {
  display: flex;
  align-items: stretch;
  flex: 0 0 var(--sidebar-head-height);
  gap: 8px;
  height: var(--sidebar-head-height);
  border-top: 0;
  border-bottom: 3px solid var(--gold);
  box-shadow: none;
  padding: 14px 16px;
}
.sidebar-brand {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  color: var(--navy);
  text-decoration: none;
  box-shadow: none;
}
.sidebar-collapse {
  appearance: none;
  flex: 0 0 28px;
  align-self: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.sidebar-collapse:hover { background: var(--off); border-color: var(--gold); }
.sidebar-collapse svg { width: 16px; height: 16px; display: block; margin: 0 auto; }
.sidebar-brand:hover { color: var(--navy); }
.sidebar-logo,
.sidebar-icon {
  display: block;
  object-fit: contain;
  box-shadow: none;
}
.sidebar-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 42px;
  max-width: 100%;
  max-height: 42px;
  transform: translate(-50%, -50%);
  object-position: center center;
}
.sidebar-icon {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-position: center center;
}
.sidebar-nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #c5cad3 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; height: 0; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #c5cad3;
  border-radius: 4px;
}
.sidebar-dock {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: var(--white);
  position: relative;
  z-index: 2;
}
.sidebar-dock-item,
.sidebar-user-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--sidebar-label-size);
  font-weight: 600;
  color: var(--sidebar-label-color);
  text-align: left;
  cursor: pointer;
}
.sidebar-dock-item {
  min-height: var(--sidebar-row-height);
  height: var(--sidebar-row-height);
  padding: 5px 8px;
}
.sidebar-user-toggle {
  min-height: 32px;
  height: auto;
  padding: 0 8px;
  align-items: flex-start;
}
.sidebar-dock-item:hover,
.sidebar-user-toggle:hover,
.sidebar-dock-item:focus-visible,
.sidebar-user-toggle:focus-visible,
.sidebar-dock-item.is-active {
  background: var(--off);
  outline: none;
  color: var(--navy);
}
.sidebar-dock-ico {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-dock-item svg,
.sidebar-dock-item .nav-ico,
.sidebar-dock-ico svg,
.sidebar-dock-ico .nav-ico,
.sidebar-dock-ico .topbar-notice-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #4a5560;
}
.sidebar-dock-label {
  min-width: 0;
  flex: 1;
  color: var(--sidebar-label-color);
  font-size: var(--sidebar-label-size);
}
.sidebar-dock-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  pointer-events: none;
}
.sidebar-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--off);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}
.sidebar-keycap-mod {
  font-size: 12px;
  min-width: 18px;
  padding: 0 4px;
}
.sidebar-dock-tools,
.sidebar-dock-account {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-dock-tools {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  overflow: hidden;
}
.sidebar-dock-account {
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  height: auto;
  min-height: 0;
  padding-top: 10px;
}
.sidebar-help { position: relative; width: 100%; }
.sidebar-help-menu {
  position: fixed;
  left: calc(212px + 8px);
  right: auto;
  top: auto;
  bottom: 80px;
  z-index: 90;
  width: min(320px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
html.sidebar-collapsed .sidebar-help-menu,
body.sidebar-collapsed .sidebar-help-menu {
  left: calc(58px + 8px);
}
.sidebar-help-menu[hidden] { display: none !important; }
.sidebar-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.sidebar-help-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.sidebar-help-x {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.sidebar-help-x svg { display: block; margin: 0 auto; }
.sidebar-help-x:hover { background: var(--off); }
.sidebar-help-section { padding: 4px 0 0; }
.sidebar-help-heading {
  margin: 0;
  padding: 8px 12px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.sidebar-help-keys { display: inline-flex; gap: 3px; color: var(--muted); }
.sidebar-help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-help-link svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); }
.sidebar-help-link:hover { background: var(--off); }
.sidebar-bell-btn {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.sidebar-bell-btn svg { width: 16px; height: 16px; display: block; margin: 0 auto; }
.sidebar-bell-btn:hover,
.sidebar-bell-btn:focus-visible,
.topbar-notices.is-open .sidebar-bell-btn {
  background: var(--off);
  outline: none;
}
.sidebar-bell-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c53030;
  box-shadow: 0 0 0 2px var(--white);
}
.sidebar-bell-dot[hidden] { display: none !important; }
.sidebar-dock .topbar-notices {
  width: auto;
  flex: 0 0 auto;
  position: relative;
  margin-left: auto;
}
.sidebar-dock .topbar-notice-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  justify-content: center;
}
.sidebar-dock .topbar-notice-btn:hover,
.sidebar-dock .topbar-notice-btn:focus-visible,
.sidebar-dock .topbar-notices.is-open .topbar-notice-btn {
  border-color: transparent;
  background: var(--off);
  color: var(--navy);
}
.sidebar-dock-ico .topbar-notice-count,
.sidebar-bell-btn .topbar-notice-count {
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  line-height: 14px;
  font-size: 9px;
  background: #c53030;
  color: #fff;
}
.sidebar-dock .topbar-notice-menu {
  top: auto;
  right: auto;
  left: calc(212px + 8px);
  bottom: 16px;
}
.sidebar-user-toggle .nav-avatar,
.sidebar-dock-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 8px;
  border: 0;
  background: #eef1f4;
  color: var(--navy);
  font-size: 9px;
}
.sidebar-user-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}
.sidebar-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  color: var(--sidebar-label-color);
  font-size: var(--sidebar-label-size);
  font-weight: 600;
}
.sidebar-user-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}
.sidebar-user-chevron { width: 14px; height: 14px; flex: 0 0 14px; color: #9aa1ab; }
.sidebar-dock .nav-user { flex: 1 1 auto; min-width: 0; width: auto; }
.sidebar-dock .nav-user-menu {
  top: auto;
  right: auto;
  left: calc(212px + 8px);
  bottom: 16px;
}
.sidebar-user-toggle:focus {
  outline: none;
  box-shadow: none;
}
.sidebar-dock .sidebar-user-toggle:focus-visible {
  outline: 1px solid rgba(16, 52, 86, 0.28);
  outline-offset: 1px;
  box-shadow: none;
  background: var(--off);
}
html.sidebar-collapsed .app-sidebar,
body.sidebar-collapsed .app-sidebar {
  width: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  min-height: 0;
  background: var(--white);
  border-right: 1px solid var(--grey);
}
html.sidebar-collapsed .sidebar-head,
body.sidebar-collapsed .sidebar-head {
  flex: 0 0 var(--sidebar-head-height);
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: var(--sidebar-head-height);
  border-top: 0;
  border-bottom: 3px solid var(--gold);
  box-shadow: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}
html.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  flex: none;
  width: auto;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  padding: 0;
}
html.sidebar-collapsed .sidebar-logo,
body.sidebar-collapsed .sidebar-logo { display: none; }
html.sidebar-collapsed .sidebar-icon,
body.sidebar-collapsed .sidebar-icon {
  display: none;
}
html.sidebar-collapsed .sidebar-collapse,
body.sidebar-collapsed .sidebar-collapse {
  position: absolute;
  right: auto;
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  flex: 0 0 28px;
  align-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  z-index: 2;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
}
html.sidebar-collapsed .sidebar-collapse:hover,
html.sidebar-collapsed .sidebar-collapse:focus-visible,
body.sidebar-collapsed .sidebar-collapse:hover,
body.sidebar-collapsed .sidebar-collapse:focus-visible {
  background: var(--off);
  border-color: var(--gold);
  outline: none;
}
html.sidebar-collapsed .sidebar-collapse svg,
body.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
html.sidebar-collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar-nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
  display: block;
  scrollbar-width: none;
}
html.sidebar-collapsed .sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }
html.sidebar-collapsed .nav-section,
body.sidebar-collapsed .nav-section {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
  width: 100%;
}
html.sidebar-collapsed .nav-section-toggle,
body.sidebar-collapsed .nav-section-toggle {
  display: flex;
  width: var(--sidebar-row-height);
  min-width: var(--sidebar-row-height);
  max-width: var(--sidebar-row-height);
  min-height: var(--sidebar-row-height);
  height: var(--sidebar-row-height);
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  border-radius: 8px;
}
html.sidebar-collapsed .app-sidebar .nav-section-items,
html.sidebar-collapsed .app-sidebar .nav-section.is-collapsed .nav-section-items,
body.sidebar-collapsed .app-sidebar .nav-section-items,
body.sidebar-collapsed .app-sidebar .nav-section.is-collapsed .nav-section-items {
  display: none;
}
html.sidebar-collapsed .app-sidebar .nav-item-rail-hide,
body.sidebar-collapsed .app-sidebar .nav-item-rail-hide { display: none; }
html.sidebar-collapsed .app-sidebar .nav-item-label,
html.sidebar-collapsed .app-sidebar .nav-section-label,
html.sidebar-collapsed .app-sidebar .nav-chevron,
html.sidebar-collapsed .app-sidebar .nav-badge,
body.sidebar-collapsed .app-sidebar .nav-item-label,
body.sidebar-collapsed .app-sidebar .nav-section-label,
body.sidebar-collapsed .app-sidebar .nav-chevron,
body.sidebar-collapsed .app-sidebar .nav-badge { display: none; }
html.sidebar-collapsed .nav-section.is-active .nav-section-toggle,
body.sidebar-collapsed .nav-section.is-active .nav-section-toggle {
  background: #0b1a2c;
  color: var(--white);
}
html.sidebar-collapsed .nav-section.is-active .nav-section-toggle .nav-ico,
body.sidebar-collapsed .nav-section.is-active .nav-section-toggle .nav-ico { color: var(--white); }
html.sidebar-collapsed .nav-section.is-open .nav-section-toggle,
body.sidebar-collapsed .nav-section.is-open .nav-section-toggle {
  background: #0b1a2c;
  color: var(--white);
}
html.sidebar-collapsed .nav-section.is-open .nav-section-toggle .nav-ico,
body.sidebar-collapsed .nav-section.is-open .nav-section-toggle .nav-ico { color: var(--white); }
html.sidebar-collapsed .sidebar-dock-tools,
body.sidebar-collapsed .sidebar-dock-tools {
  align-items: center;
  width: 100%;
  padding: 0 0 4px;
  margin: 0;
}
html.sidebar-collapsed .sidebar-dock-account,
body.sidebar-collapsed .sidebar-dock-account {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: 0;
  height: auto;
  min-height: 46px;
  padding-top: 10px;
  position: relative;
  overflow: visible;
}
html.sidebar-collapsed .sidebar-dock .nav-user,
html.sidebar-collapsed .sidebar-help,
body.sidebar-collapsed .sidebar-dock .nav-user,
body.sidebar-collapsed .sidebar-help { width: auto; min-width: 0; }
html.sidebar-collapsed .sidebar-dock .topbar-notices,
body.sidebar-collapsed .sidebar-dock .topbar-notices { margin-left: 0; }
html.sidebar-collapsed .sidebar-dock,
body.sidebar-collapsed .sidebar-dock {
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  overflow: visible;
}
html.sidebar-collapsed .sidebar-dock .nav-user,
html.sidebar-collapsed .sidebar-dock .topbar-notices,
body.sidebar-collapsed .sidebar-dock .nav-user,
body.sidebar-collapsed .sidebar-dock .topbar-notices {
  width: auto;
  display: flex;
  justify-content: center;
}
html.sidebar-collapsed .sidebar-dock-item,
body.sidebar-collapsed .sidebar-dock-item {
  width: var(--sidebar-row-height);
  min-width: var(--sidebar-row-height);
  max-width: var(--sidebar-row-height);
  height: var(--sidebar-row-height);
  min-height: var(--sidebar-row-height);
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  border-radius: 8px;
}
html.sidebar-collapsed .sidebar-user-toggle,
body.sidebar-collapsed .sidebar-user-toggle {
  width: 20px;
  height: auto;
  min-height: 20px;
  padding: 0;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}
html.sidebar-collapsed .sidebar-dock-label,
html.sidebar-collapsed .sidebar-dock-hint,
html.sidebar-collapsed .sidebar-dock-feedback,
html.sidebar-collapsed .sidebar-user-copy,
html.sidebar-collapsed .sidebar-user-name,
html.sidebar-collapsed .sidebar-user-meta,
html.sidebar-collapsed .sidebar-user-chevron,
body.sidebar-collapsed .sidebar-dock-label,
body.sidebar-collapsed .sidebar-dock-hint,
body.sidebar-collapsed .sidebar-dock-feedback,
body.sidebar-collapsed .sidebar-user-copy,
body.sidebar-collapsed .sidebar-user-name,
body.sidebar-collapsed .sidebar-user-meta,
body.sidebar-collapsed .sidebar-user-chevron { display: none; }
html.sidebar-collapsed .sidebar-dock .topbar-notices,
body.sidebar-collapsed .sidebar-dock .topbar-notices {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  transform: translateX(-50%);
  overflow: visible;
  z-index: 3;
}
html.sidebar-collapsed .sidebar-dock .topbar-notice-btn,
body.sidebar-collapsed .sidebar-dock .topbar-notice-btn {
  width: 20px;
  height: 20px;
  min-height: 20px;
  min-width: 20px;
  padding: 0;
  justify-content: center;
  overflow: visible;
  background: transparent;
}
html.sidebar-collapsed .sidebar-dock .topbar-notice-btn:hover,
html.sidebar-collapsed .sidebar-dock .topbar-notice-btn:focus-visible,
html.sidebar-collapsed .sidebar-dock .topbar-notices.is-open .topbar-notice-btn,
body.sidebar-collapsed .sidebar-dock .topbar-notice-btn:hover,
body.sidebar-collapsed .sidebar-dock .topbar-notice-btn:focus-visible,
body.sidebar-collapsed .sidebar-dock .topbar-notices.is-open .topbar-notice-btn {
  background: transparent;
}
html.sidebar-collapsed .sidebar-dock .sidebar-bell-btn svg,
html.sidebar-collapsed .sidebar-dock .topbar-notice-ico,
html.sidebar-collapsed .sidebar-dock .sidebar-bell-dot,
body.sidebar-collapsed .sidebar-dock .sidebar-bell-btn svg,
body.sidebar-collapsed .sidebar-dock .topbar-notice-ico,
body.sidebar-collapsed .sidebar-dock .sidebar-bell-dot {
  display: none !important;
}
html.sidebar-collapsed .sidebar-dock .topbar-notice-count,
body.sidebar-collapsed .sidebar-dock .topbar-notice-count {
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  line-height: 16px;
  font-size: 9px;
  font-weight: 800;
  background: #c53030;
  color: #fff;
  box-shadow: 0 0 0 2px var(--white);
  border-radius: 999px;
}
html.sidebar-collapsed .sidebar-dock-avatar,
html.sidebar-collapsed .sidebar-user-toggle .nav-avatar,
body.sidebar-collapsed .sidebar-dock-avatar,
body.sidebar-collapsed .sidebar-user-toggle .nav-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 9px;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .sidebar-collapse { display: none; }
  html.sidebar-collapsed .app-sidebar,
  body.sidebar-collapsed .app-sidebar {
    width: 212px;
    flex: 0 0 212px;
    overflow: auto;
  }
  html.sidebar-collapsed .sidebar-head,
  body.sidebar-collapsed .sidebar-head {
    flex-direction: row;
    align-items: stretch;
    height: var(--sidebar-head-height);
    border-bottom: 3px solid var(--gold);
    justify-content: flex-start;
    padding: 14px 16px;
  }
  html.sidebar-collapsed .sidebar-brand,
  body.sidebar-collapsed .sidebar-brand {
    display: block;
    position: relative;
    inset: auto;
    width: auto;
    aspect-ratio: auto;
    height: auto;
    padding: 0;
  }
  html.sidebar-collapsed .sidebar-logo,
  body.sidebar-collapsed .sidebar-logo {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    inset: auto;
    width: auto;
    height: 28px;
    max-width: 100%;
    max-height: 28px;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center center;
  }
  html.sidebar-collapsed .sidebar-icon,
  body.sidebar-collapsed .sidebar-icon { display: none; }
  html.sidebar-collapsed .sidebar-nav,
  body.sidebar-collapsed .sidebar-nav {
    display: block;
    padding: 8px 8px 16px;
    overflow: visible;
  }
  html.sidebar-collapsed .app-sidebar .nav-item-label,
  html.sidebar-collapsed .app-sidebar .nav-section-label,
  html.sidebar-collapsed .app-sidebar .nav-chevron,
  html.sidebar-collapsed .app-sidebar .nav-badge,
  body.sidebar-collapsed .app-sidebar .nav-item-label,
  body.sidebar-collapsed .app-sidebar .nav-section-label,
  body.sidebar-collapsed .app-sidebar .nav-chevron,
  body.sidebar-collapsed .app-sidebar .nav-badge { display: unset; }
  html.sidebar-collapsed .sidebar-nav,
  body.sidebar-collapsed .sidebar-nav { padding: 8px 8px 16px; }
  html.sidebar-collapsed .nav-section-toggle,
  body.sidebar-collapsed .nav-section-toggle {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 5px 8px;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
  }
  html.sidebar-collapsed .app-sidebar .nav-section-items,
  html.sidebar-collapsed .app-sidebar .nav-section.is-collapsed .nav-section-items,
  body.sidebar-collapsed .app-sidebar .nav-section-items,
  body.sidebar-collapsed .app-sidebar .nav-section.is-collapsed .nav-section-items {
    display: none;
  }
  html.sidebar-collapsed .app-sidebar .nav-section:not(.is-collapsed) .nav-section-items,
  body.sidebar-collapsed .app-sidebar .nav-section:not(.is-collapsed) .nav-section-items {
    display: flex;
  }
  html.sidebar-collapsed .nav-item-rail-hide,
  body.sidebar-collapsed .nav-item-rail-hide { display: flex; }
  html.sidebar-collapsed .nav-item,
  body.sidebar-collapsed .nav-item {
    width: auto;
    height: var(--sidebar-row-height);
    min-height: var(--sidebar-row-height);
    margin: 0;
    padding: 5px 10px 5px 34px;
    justify-content: flex-start;
    gap: 10px;
  }
  html.sidebar-collapsed .nav-ico,
  body.sidebar-collapsed .nav-ico {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #5d6b7a;
  }
  html.sidebar-collapsed .nav-section.is-active .nav-section-toggle,
  html.sidebar-collapsed .nav-section.is-open .nav-section-toggle,
  body.sidebar-collapsed .nav-section.is-active .nav-section-toggle,
  body.sidebar-collapsed .nav-section.is-open .nav-section-toggle {
    background: transparent;
    color: var(--navy);
  }
  html.sidebar-collapsed .nav-section.is-active .nav-section-toggle .nav-ico,
  html.sidebar-collapsed .nav-section.is-open .nav-section-toggle .nav-ico,
  body.sidebar-collapsed .nav-section.is-active .nav-section-toggle .nav-ico,
  body.sidebar-collapsed .nav-section.is-open .nav-section-toggle .nav-ico { color: #e4a025; }
  html.sidebar-collapsed .nav-item.is-active,
  body.sidebar-collapsed .nav-item.is-active {
    background: #e8eef5;
    color: var(--navy-deep);
  }
  html.sidebar-collapsed .nav-item.is-active .nav-ico,
  body.sidebar-collapsed .nav-item.is-active .nav-ico { color: var(--navy); }
  html.sidebar-collapsed .sidebar-dock,
  body.sidebar-collapsed .sidebar-dock {
    align-items: stretch;
    padding: 8px 8px 10px;
  }
  html.sidebar-collapsed .sidebar-dock-item,
  body.sidebar-collapsed .sidebar-dock-item {
    width: 100%;
    height: var(--sidebar-row-height);
    min-height: var(--sidebar-row-height);
    padding: 5px 10px;
    justify-content: flex-start;
    gap: 10px;
  }
  html.sidebar-collapsed .sidebar-user-toggle,
  body.sidebar-collapsed .sidebar-user-toggle {
    width: 100%;
    height: auto;
    min-height: 32px;
    padding: 0 10px;
    justify-content: flex-start;
    gap: 10px;
  }
  html.sidebar-collapsed .app-sidebar .sidebar-dock-label,
  html.sidebar-collapsed .app-sidebar .sidebar-dock-hint,
  html.sidebar-collapsed .app-sidebar .sidebar-dock-feedback,
  html.sidebar-collapsed .app-sidebar .sidebar-user-copy,
  html.sidebar-collapsed .app-sidebar .sidebar-user-name,
  html.sidebar-collapsed .app-sidebar .sidebar-user-meta,
  html.sidebar-collapsed .app-sidebar .sidebar-user-chevron,
  body.sidebar-collapsed .app-sidebar .sidebar-dock-label,
  body.sidebar-collapsed .app-sidebar .sidebar-dock-hint,
  body.sidebar-collapsed .app-sidebar .sidebar-dock-feedback,
  body.sidebar-collapsed .app-sidebar .sidebar-user-copy,
  body.sidebar-collapsed .app-sidebar .sidebar-user-name,
  body.sidebar-collapsed .app-sidebar .sidebar-user-meta,
  body.sidebar-collapsed .app-sidebar .sidebar-user-chevron { display: unset; }
  html.sidebar-collapsed .app-sidebar .sidebar-user-copy,
  body.sidebar-collapsed .app-sidebar .sidebar-user-copy { display: flex; }
  html.sidebar-collapsed .sidebar-dock-feedback,
  body.sidebar-collapsed .sidebar-dock-feedback { display: flex; }
  html.sidebar-collapsed .sidebar-collapse,
  body.sidebar-collapsed .sidebar-collapse {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
  }
  html.sidebar-collapsed .sidebar-dock-account,
  body.sidebar-collapsed .sidebar-dock-account {
    flex-direction: row;
    gap: 4px;
    height: auto;
    min-height: 0;
    padding-top: 10px;
  }
  html.sidebar-collapsed .sidebar-dock .topbar-notices,
  html.sidebar-collapsed .sidebar-dock .topbar-notice-btn,
  body.sidebar-collapsed .sidebar-dock .topbar-notices,
  body.sidebar-collapsed .sidebar-dock .topbar-notice-btn {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
  html.sidebar-collapsed .sidebar-dock .sidebar-bell-btn svg,
  html.sidebar-collapsed .sidebar-dock .topbar-notice-ico,
  html.sidebar-collapsed .sidebar-dock .sidebar-bell-dot,
  body.sidebar-collapsed .sidebar-dock .sidebar-bell-btn svg,
  body.sidebar-collapsed .sidebar-dock .topbar-notice-ico,
  body.sidebar-collapsed .sidebar-dock .sidebar-bell-dot {
    display: block;
  }
  html.sidebar-collapsed .sidebar-dock .topbar-notice-count,
  body.sidebar-collapsed .sidebar-dock .topbar-notice-count {
    top: 2px;
    right: 2px;
    box-shadow: none;
  }
  html.sidebar-collapsed .sidebar-dock-avatar,
  html.sidebar-collapsed .sidebar-user-toggle .nav-avatar,
  body.sidebar-collapsed .sidebar-dock-avatar,
  body.sidebar-collapsed .sidebar-user-toggle .nav-avatar {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    font-size: 9px;
  }
}
.topbar-feedback {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  flex: 0 0 auto;
}
.topbar-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.topbar-feedback-btn:hover,
.topbar-feedback-btn:focus-visible {
  border-color: var(--gold);
  background: #fff8eb;
  color: var(--navy);
}
.topbar-feedback-btn .nav-ico { flex: 0 0 18px; width: 18px; height: 18px; }
.topbar-feedback-label { line-height: 1.2; }
.topbar-feedback-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  min-width: var(--control-height);
  min-height: var(--control-height);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.topbar-feedback-info:hover,
.topbar-feedback-info:focus-visible,
.topbar-feedback.is-tip-open .topbar-feedback-info {
  border-color: var(--gold);
  background: #fff8eb;
}
.topbar-feedback-info-ico { width: 14px; height: 14px; }
.topbar-feedback-tip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.topbar-feedback-info:hover ~ .topbar-feedback-tip,
.topbar-feedback-info:focus ~ .topbar-feedback-tip,
.topbar-feedback-info:focus-visible ~ .topbar-feedback-tip,
.topbar-feedback.is-tip-open .topbar-feedback-tip {
  display: block;
}
.record-modal[hidden] { display: none; }
.feedback-files { margin: 0; padding-left: 18px; }
.feedback-file { margin: 0 0 8px; }
.feedback-thumb {
  display: block;
  max-width: 220px;
  max-height: 140px;
  margin: 0 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav-section { margin: 0 0 8px; }
.nav-section-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: var(--sidebar-row-height);
  height: var(--sidebar-row-height);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  margin: 0;
  overflow: visible;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--sidebar-label-size);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-label-color);
}
.nav-section-toggle:hover { color: var(--sidebar-label-color); background: var(--off); }
.nav-section-toggle .nav-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #5d6b7a;
}
.nav-section-toggle:hover .nav-ico { color: var(--navy); }
.nav-section.is-active .nav-section-toggle { color: var(--navy); }
.nav-section.is-active .nav-section-toggle .nav-ico { color: #e4a025; }
.nav-section-label {
  min-width: 0;
  flex: 1;
  text-align: left;
  line-height: 1.2;
  color: var(--sidebar-label-color);
  font-size: var(--sidebar-label-size);
}
.nav-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  overflow: visible;
  color: #9aa1ab;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.15s ease;
}
.nav-section:not(.is-collapsed) .nav-chevron { transform: rotate(90deg); }
.nav-section.is-collapsed .nav-chevron { transform: rotate(0deg); }
.nav-section.is-collapsed .nav-section-items { display: none; }
.nav-section-flyout {
  position: fixed;
  left: calc(212px + 8px);
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 90;
  width: min(280px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav-section-flyout[hidden] { display: none !important; }
html:not(.sidebar-collapsed) .nav-section-flyout,
body:not(.sidebar-collapsed) .nav-section-flyout { display: none !important; }
html:not(.sidebar-collapsed) .nav-section-toggle::after,
body:not(.sidebar-collapsed) .nav-section-toggle::after {
  content: none !important;
  display: none !important;
}
html.sidebar-collapsed .nav-section-toggle {
  position: relative;
}
html.sidebar-collapsed .nav-section-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  padding: 5px 8px;
  border-radius: 6px;
  background: #0b1a2c;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
}
html.sidebar-collapsed .nav-section-toggle:hover::after,
html.sidebar-collapsed .nav-section-toggle:focus-visible::after {
  opacity: 1;
}
html.sidebar-collapsed .nav-section.is-open .nav-section-toggle::after { content: none; }
.nav-section-flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.nav-section-flyout-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.nav-section-flyout-x {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-section-flyout-x svg { display: block; margin: 0 auto; }
.nav-section-flyout-x:hover { background: var(--off); }
.nav-section-flyout-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}
.nav-section-items { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 34px;
  min-height: var(--sidebar-row-height);
  height: var(--sidebar-row-height);
  border-radius: 8px;
  color: var(--sidebar-label-color);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--sidebar-label-size);
  text-decoration: none;
  line-height: 1.25;
}
.nav-section-flyout-items .nav-item {
  padding-left: 10px;
}
.nav-item:hover {
  background: var(--off);
  color: var(--navy);
}
.nav-item.is-active {
  background: #e8eef5;
  color: var(--navy-deep);
}
.nav-item.is-active .nav-ico { color: var(--navy); }
.nav-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #5d6b7a;
}
.nav-item-label { min-width: 0; flex: 1; }
.nav-badge {
  margin-left: auto;
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.nav-badge[hidden] { display: none !important; }
.nav-item.is-active .nav-badge { background: var(--navy); }
.nav-item-soon {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: auto;
}
.nav-item-soon:hover {
  background: transparent;
  color: var(--muted);
}
.check.is-disabled,
label.check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.page-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.page-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off);
}
.page-alert p { margin: 0; }
.page-alert.warn { border-color: var(--gold); }
.page-alert.ok { border-color: var(--cyan); }
.page-alert .btn { margin: 0; }
.hub-card-later {
  opacity: 0.55;
  cursor: not-allowed;
}
.hub-card-later .btn {
  pointer-events: none;
}
.nav-later { display: none; }
.org-tabs,
.list-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px 16px;
  margin: 0 0 6px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.org-tab,
.list-tab {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 2px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  background: transparent;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.org-tab:hover,
.list-tab:hover {
  color: var(--navy);
}
.org-tab.is-active,
.org-tab[aria-current="page"],
.list-tab.is-active,
.list-tab[aria-current="page"] {
  color: var(--navy);
  background: transparent;
  border-bottom-color: var(--gold);
}
.org-tab.is-disabled,
.org-tab[aria-disabled="true"],
.list-tab.is-disabled,
.list-tab[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted);
  background: transparent;
  border-bottom-color: transparent;
}
.org-tab .badge,
.list-tab .badge { margin-left: 8px; }
.org-subtabs {
  margin: -4px 0 16px;
  padding-top: 4px;
  border-bottom-color: var(--grey);
}
.org-subtabs .org-tab { font-size: 14px; }
.badge.muted {
  background: var(--grey);
  color: var(--muted);
}
.app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--off);
}
.app-topbar {
  display: none;
}
.app-topbar-mobile {
  position: sticky;
  top: 0;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--grey);
}
.topbar-context {
  margin: 0;
  flex: 1;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  color: var(--navy);
}
.page-chrome { margin: 0; flex: 0 0 auto; }
.page-chrome-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.page-chrome .topbar-context,
.page-chrome-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}
.page-chrome-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.page-chrome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  overflow: visible;
}
.page-chrome-actions .list-toolbar-right { margin: 0; }
.page-chrome-actions .btn {
  height: 32px;
  min-height: 32px;
}
.page-chrome-row.is-record {
  flex-wrap: wrap;
  gap: 8px 10px;
}
.page-chrome-row.is-record .record-back {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.page-chrome-row.is-record .topbar-context {
  flex: 0 1 auto;
  max-width: min(100%, 42rem);
}
.page-chrome-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.page-chrome-row.is-record .page-chrome-actions {
  margin-left: auto;
}
.page-chrome-actions .record-contacts {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.page-chrome-actions .list-more-btn,
.page-chrome-actions .btn.list-more-btn,
.page-chrome-actions .btn.ghost.list-more-btn,
.page-chrome-actions .record-more-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}
.page-chrome-actions .list-more-btn:hover,
.page-chrome-actions .btn.list-more-btn:hover,
.page-chrome-actions .btn.ghost.list-more-btn:hover,
.page-chrome-actions .record-more-btn:hover {
  background: var(--white);
  color: var(--navy);
  border-color: #c5cad3;
}
@media (max-width: 900px) {
  .app-topbar-mobile { display: flex; }
  .page-chrome-row:not(.is-record) .topbar-context,
  .page-chrome-title { display: none; }
}
.break-glass-session {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #e4c27a;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-user-kind {
  margin: 0;
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--grey);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--navy);
}
.nav-backdrop,
.nav-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.nav-user { position: relative; }
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--navy-mid);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-avatar:hover,
.nav-avatar[aria-expanded="true"] {
  background: var(--navy-deep);
  color: var(--gold);
}
.nav-user-menu {
  position: fixed;
  left: calc(212px + 8px);
  right: auto;
  top: auto;
  bottom: 16px;
  z-index: 90;
  width: min(280px, calc(100vw - 24px));
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
html.sidebar-collapsed .nav-user-menu,
html.sidebar-collapsed .sidebar-dock .nav-user-menu,
body.sidebar-collapsed .nav-user-menu,
body.sidebar-collapsed .sidebar-dock .nav-user-menu {
  left: calc(58px + 8px);
}
.nav-user-menu[hidden] { display: none !important; }
.nav-user-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.nav-user-head-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1f4;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}
.nav-user-head-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
}
.nav-user-head-name {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.nav-user-head-meta,
.nav-user-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-x {
  appearance: none;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-user-x svg { display: block; margin: 0 auto; }
.nav-user-x:hover { background: var(--off); }
.nav-user-item,
.nav-user-menu a,
.nav-user-action,
.nav-signout button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.nav-user-item svg,
.nav-user-menu a svg,
.nav-user-action svg,
.nav-signout button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--navy);
}
.nav-user-item:hover,
.nav-user-menu a:hover,
.nav-user-action:hover,
.nav-signout button:hover {
  background: var(--off);
  color: var(--navy);
}
.nav-signout { margin: 0; padding: 0; border-top: 1px solid var(--line); }

.hero { padding: 36px 0 8px; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.25;
}
h1 { font-size: var(--text-page); }
h2 { font-size: var(--text-section); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
h3 { font-size: var(--text-body); }
.lede { color: var(--muted); max-width: 62ch; margin: 0 0 var(--space-5); font-size: var(--text-body); line-height: 1.5; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.public-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.card-grid .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-grid .card > .actions {
  margin-top: auto;
  align-self: flex-end;
  justify-content: flex-end;
}
.card a.card-link { text-decoration: none; color: inherit; display: block; }
.public-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card.public-tile a.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 100%;
}
.card.public-tile a.card-link p { flex: 1 1 auto; }
.card.public-tile a.card-link .btn {
  align-self: flex-end;
  margin-top: auto;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.count { font-size: 34px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.gold-rule { height: 3px; width: 56px; background: var(--gold); margin: 0 0 16px; }
.form-settings-card.is-focus {
  border-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
}

.form-card, .panel {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.section-title { font-size: 22px; margin-top: 8px; }
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
}
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin-bottom: 10px; }
.field.full { grid-column: 1 / -1; }
.row > .field > label,
.row-3 > .field > label {
  min-height: 1.25em;
  line-height: 1.25;
}
label, .label { font-size: 15px; font-weight: 500; color: var(--navy); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.inset-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off);
}
.inset-list > li {
  padding: 8px 0;
  border-bottom: 1px solid var(--grey);
  font-size: 15px;
}
.inset-list > li:last-child { border-bottom: 0; }
.req { color: var(--gold); }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([data-command-search-input]),
select,
textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #fff;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
}
textarea { height: auto; min-height: 120px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding: 10px 36px 10px 14px;
  line-height: 1.25;
  font-size: 15px;
}
select::-ms-expand { display: none; }
input:focus:not([type="checkbox"]):not([type="radio"]):not([data-sms-link-q]):not([data-sms-picker-q]):not([data-command-search-input]),
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 160, 37, 0.22);
}
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.error { color: var(--danger); font-size: 13px; }
.banner {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 15px;
  border: 1px solid transparent;
}
.banner.has-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.banner-undo { margin: 0; }
.banner.error { background: var(--danger-bg); color: var(--danger); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.warn {
  background: #fffaf0;
  color: var(--navy);
  border-color: #f0d7a2;
}
.banner.warn code { color: var(--navy-deep); }

.legal {
  background: var(--off);
  border: 1px solid var(--grey);
  border-radius: 8px;
  padding: 16px 18px;
  max-height: 280px;
  overflow: auto;
  font-size: 14px;
  white-space: pre-wrap;
  color: var(--text);
  margin-bottom: 12px;
}
.consent-legal { max-height: none; overflow: visible; }
.consent-hero {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.consent-qr {
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid var(--grey);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.consent-qr svg { display: block; margin: 0 auto; }
.consent-declares { display: grid; gap: 12px; margin-bottom: 8px; }
.consent-declare { align-items: flex-start; line-height: 1.45; }
.consent-dl { display: grid; gap: 8px; margin: 16px 0; }
.consent-dl .dl-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
.consent-dl dt { color: var(--muted); font-weight: 500; }
.intro { font-size: 15.5px; white-space: pre-wrap; color: var(--text); }

.signature-wrap { border: 1px dashed var(--gold); border-radius: 8px; background: #fff; }
.signature-wrap canvas { width: 100%; height: 180px; display: block; touch-action: none; cursor: crosshair; }
.sig-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 13px; color: var(--muted); }

.btn, button.btn {
  appearance: none;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0 22px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  height: var(--control-height);
  min-height: var(--control-height);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover, button.btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--white); }
.btn.gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn.gold:hover { background: var(--cyan); border-color: var(--cyan); color: var(--white); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gold);
}
.btn.ghost:hover { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn.secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn.secondary:hover {
  background: var(--white);
  border-color: #c5cad3;
  color: var(--navy);
}
.btn.small { padding: 0 14px; font-size: 14px; font-weight: 600; height: var(--control-height); min-height: var(--control-height); }
.btn:disabled, button.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.actions-end { justify-content: flex-end; }
.mailbox-prompt {
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.mailbox-prompt p { margin: 0 0 8px; }
.mailbox-prompt .actions { margin-top: 0; }
.account-alerts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex: 0 1 auto;
  position: relative;
}
.topbar-notices { flex: 0 0 auto; }
.topbar-keypad-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  min-width: var(--control-height);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  flex: 0 0 auto;
}
.topbar-keypad-btn svg { width: 18px; height: 18px; display: block; }
.topbar-keypad-btn:hover,
.topbar-keypad-btn:focus-visible {
  border-color: var(--gold);
  background: #fff8eb;
}
.topbar-notice-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  min-width: var(--control-height);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.topbar-notice-btn:hover,
.topbar-notice-btn:focus-visible,
.topbar-notices.is-open .topbar-notice-btn {
  border-color: var(--gold);
  background: #fff8eb;
}
.topbar-notice-ico { width: 18px; height: 18px; }
.topbar-notice-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.topbar-notice-count[hidden] { display: none !important; }
.topbar-notice-menu {
  position: fixed;
  left: calc(212px + 8px);
  right: auto;
  top: auto;
  bottom: 16px;
  z-index: 90;
  width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
html.sidebar-collapsed .topbar-notice-menu,
html.sidebar-collapsed .sidebar-dock .topbar-notice-menu,
body.sidebar-collapsed .topbar-notice-menu,
body.sidebar-collapsed .sidebar-dock .topbar-notice-menu {
  left: calc(58px + 8px);
}
.topbar-notice-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.topbar-notice-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.topbar-notice-empty { color: var(--muted); font-size: 13px; padding: 8px; flex-shrink: 0; }
.topbar-notice-item.is-unread .topbar-notice-title { font-weight: 700; }
.topbar-notice-item.is-read .topbar-notice-title { font-weight: 600; }
.topbar-notice-item.is-read .account-alert-dot { opacity: 0.35; }
a.topbar-notice-item { text-decoration: none; color: inherit; }
.topbar-toast {
  position: fixed;
  top: auto;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
}
.topbar-toast.error { background: var(--danger-bg); color: var(--danger); border-color: #e2b6b6; }
.topbar-toast.ok { background: var(--ok-bg); color: var(--ok); }
.topbar-toast.warn { background: var(--warn-bg); color: var(--warn); }
.account-alert-pill,
.topbar-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  height: auto;
  padding: 8px 10px;
  border: 1px solid #e4c27a;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  overflow: hidden;
}
.topbar-notice-item {
  flex-shrink: 0;
  min-height: 52px;
}
.topbar-notice-item.ok { background: var(--ok-bg); border-color: #b7d7c3; }
.topbar-notice-item.error { background: var(--danger-bg); border-color: #e2b6b6; }
.topbar-notice-item.info { background: #eef6fb; border-color: #b9d3e4; }
.topbar-notice-item.warn .account-alert-dot { background: var(--warn); }
.topbar-notice-item.info .account-alert-dot { background: var(--cyan); }
.topbar-notice-item.ok .account-alert-dot { background: var(--ok); }
.topbar-notice-item.error .account-alert-dot { background: var(--danger); }
.topbar-notice-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.topbar-notice-title,
.topbar-notice-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.3;
}
.topbar-notice-title {
  color: var(--navy);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.topbar-notice-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-notice-when {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.topbar-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.topbar-notice-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.topbar-notice-x {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.topbar-notice-x svg { display: block; margin: 0 auto; }
.topbar-notice-x:hover { background: var(--off); }
.topbar-notice-list {
  max-height: 208px;
}
.topbar-notice-menu .topbar-notice-item,
.topbar-notice-menu .topbar-notice-item.ok,
.topbar-notice-menu .topbar-notice-item.error,
.topbar-notice-menu .topbar-notice-item.info,
.topbar-notice-menu .topbar-notice-item.warn,
.topbar-notice-menu .topbar-notice-item.is-nested {
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.topbar-notice-item.is-unread .account-alert-dot { background: #c53030; }
.notice-mark-all {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4a025;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.notice-mark-all svg { width: 16px; height: 16px; }
.notice-view-all {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.notice-view-all:hover { color: var(--navy); }
.topbar-notice-copy a { display: inline; margin-left: 6px; }
.topbar-notice-group {
  margin: 0;
  border: 0;
  background: transparent;
  flex-shrink: 0;
}
.topbar-notice-group > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 22px;
}
.topbar-notice-group > summary::-webkit-details-marker { display: none; }
.topbar-notice-group > summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.topbar-notice-group[open] > summary::after { transform: rotate(225deg); top: 16px; }
.topbar-notice-group-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 0 16px;
}
.topbar-notice-item.is-nested { background: #fffaf0; }
.account-alert-pill[hidden],
.topbar-notice-item[hidden],
.topbar-notice-menu[hidden],
.topbar-toast[hidden],
.sms-emoji-picker[hidden] { display: none !important; }
.account-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  flex: 0 0 auto;
}
.account-alert-pill a {
  color: inherit;
  text-decoration: none;
}
.account-alert-pill a:hover { text-decoration: underline; }
.account-alert-dismiss {
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.account-alert-dismiss:hover { color: var(--navy); background: rgba(16, 52, 86, 0.06); }
.rich-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--off);
  overflow: visible;
}
.rich-editor-btn {
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rich-editor-btn:hover { background: #fff; }
.rich-editor-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 2px;
}
.rich-editor-style select {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  width: auto;
  min-width: 7.5rem;
  margin: 0;
  padding: 0 28px 0 8px;
  line-height: 30px;
  font-size: 13px;
  background-position: right 8px center;
  background-size: 10px 7px;
  vertical-align: middle;
}
.rich-editor-size select { min-width: 6rem; }
.rich-editor-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--swatch, #103456);
  box-shadow: inset 0 0 0 2px #fff;
}
.rich-editor-swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.rich-editor-more { position: relative; }
.rich-editor-more > summary { list-style: none; }
.rich-editor-more > summary::-webkit-details-marker { display: none; }
.rich-editor-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 8;
  min-width: 10rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.rich-editor-more-menu .rich-editor-btn { justify-content: flex-start; width: 100%; }
.outlook-composer .outlook-header { display: grid; gap: 10px; }
.outlook-composer .outlook-ccbcc { display: flex; gap: 8px; }
.outlook-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: var(--control-height);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.outlook-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--off);
  font-size: 13px;
}
.outlook-chip-clear {
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.outlook-chip-input {
  flex: 1;
  min-width: 8rem;
  border: 0;
  padding: 4px;
  font: inherit;
  background: transparent;
}
.outlook-chip-input:focus { outline: none; }
.outlook-compose-bar { display: flex; align-items: center; gap: 8px; }
.outlook-attach { position: relative; }
.outlook-attach > summary { list-style: none; }
.outlook-attach > summary::-webkit-details-marker { display: none; }
.outlook-attach-menu {
  position: absolute;
  z-index: 8;
  min-width: 10rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.ticket-msg { position: relative; }
.ticket-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ticket-msg-actions { position: absolute; top: 8px; right: 8px; display: inline-flex; gap: 4px; }
.ticket-msg-actions .btn { min-width: 0; }
.rich-editor-surface {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.55;
}
.rich-editor-surface:focus { outline: none; }
.rich-editor-surface p { margin: 0 0 12px; }
.rich-editor-compact .rich-editor-surface { min-height: 140px; }
.rich-editor.is-fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.rich-editor.is-fullscreen .rich-editor-surface {
  flex: 1;
  max-height: none;
}
.inline-send { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.send-now-form {
  margin: var(--space-5) 0 0;
  padding: var(--space-4) 0 0;
  border-top: 3px solid var(--gold);
  background: transparent;
  box-shadow: none;
}
.send-now-form h2 {
  margin: 0 0 8px;
  color: var(--navy);
}
.send-now-form .field input,
.send-now-form .field select {
  background: var(--white);
  border-radius: 8px;
}
.send-now-form button[data-send-now-submit],
.send-now-form button[data-send-now-submit]:hover {
  background: #103456;
  color: #fff;
  border-color: #103456;
}
.send-now-form button[data-send-now-submit].is-sending,
.send-now-form button[data-send-now-submit].is-sending:hover,
.send-now-form button[data-send-now-submit]:disabled,
.send-now-form button[data-send-now-submit]:disabled:hover {
  opacity: 0.55;
  background: #103456;
  color: #fff;
  border-color: #103456;
  cursor: wait;
  pointer-events: none;
  transition: none;
}
.last-send {
  margin: var(--space-5) 0 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--line);
}
.last-send h2 {
  margin: 0 0 8px;
  color: var(--navy);
}
.last-send-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 15px;
}
.last-send-list li { margin: 0 0 6px; }
.run-status { font-weight: 700; color: var(--navy); }
.run-status-sent { color: var(--ok); }
.run-status-failed { color: var(--danger); }
.run-status-running { color: var(--navy); }
.send-now-form.inline-send .send-now-recipient {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.send-now-form.inline-send .send-now-recipient span {
  font-size: var(--text-meta);
  color: var(--muted);
  white-space: nowrap;
}
.send-now-form.inline-send select {
  height: var(--control-height);
  min-width: 180px;
  max-width: 280px;
}
.stack-sm > .btn,
form > .btn {
  align-self: flex-start;
  width: auto;
  max-width: 220px;
}
.data-list-toolbar > .btn,
.data-list-toolbar > a.btn,
.pipeline-board-toolbar > .btn,
.pipeline-board-toolbar > a.btn,
.toolbar > .btn,
.toolbar > a.btn,
form.data-list-toolbar > .btn,
form.pipeline-board-toolbar > .btn,
form.toolbar > .btn {
  align-self: flex-end;
  max-width: none;
}

.org-logo-preview,
.org-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}
.org-logo-preview img {
  display: block;
  max-width: 220px;
  max-height: 56px;
  width: auto;
  height: auto;
}
.org-icon-preview {
  width: 72px;
  min-height: 72px;
}
.org-icon-preview img {
  display: block;
  width: 32px;
  height: 32px;
}
.file-upload { margin: 0 0 14px; }
.file-upload-drop {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.file-upload-drop.is-dragover,
.file-upload:focus-within .file-upload-drop,
[data-attach-drop].is-dragover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 160, 37, 0.22);
}
.file-upload-error { margin: 8px 0 0; color: #ff3b30; font-size: 13px; }
.file-upload-error[hidden] { display: none !important; }
.file-upload.is-compact { margin: 0; }
.file-upload.is-compact .file-upload-drop {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  gap: 0;
}
.file-upload.is-compact .file-upload-helper,
.file-upload.is-compact .file-upload-actions { display: none; }
.file-upload-helper { margin: 0; max-width: 42rem; }
.file-upload-actions {
  display: flex;
  justify-content: flex-end;
}
.file-upload-choose {
  width: auto;
  max-width: none;
}
.file-upload-list { margin: 8px 0 0; }
.file-upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--control-height);
  padding: 0;
  border-bottom: 1px solid var(--grey);
}
.file-upload-item:last-child { border-bottom: 0; }
.file-upload-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: var(--text);
}
.file-upload-size {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}
.file-upload-remove {
  appearance: none;
  flex-shrink: 0;
  width: var(--control-height);
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.file-upload-remove:hover,
.file-upload-remove:focus-visible {
  color: var(--danger);
  background: var(--danger-bg);
  outline: 0;
}
input[type="file"].file-upload-input { font-size: 0; }
input[type="file"].file-upload-input::file-selector-button { display: none; }
.doc-slot-form { padding: 8px 0 4px; }
.doc-slot-form .file-upload { max-width: 640px; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-body); background: var(--white); }
th { text-align: left; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--grey); vertical-align: top; font-size: var(--text-meta); font-weight: 600; color: var(--muted); }
td { text-align: left; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--grey); vertical-align: top; font-size: var(--text-body); }
.page.list .hero {
  width: 100%;
  padding: var(--space-4) var(--space-5) var(--space-2);
  margin: 0;
}
.page.list .hero h1 { font-size: var(--text-page); margin: 0; }
.page.list .gold-rule { display: none; }
.page.list .lede { margin: 4px 0 0; font-size: 14px; max-width: none; }
.page.list .kicker { margin-bottom: 2px; }
.data-list-flash { padding: 8px 0 12px; min-width: 0; }
.data-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-list .data-list {
  border: 0;
  border-radius: 0;
}
.data-list .panel,
.data-list .form-card,
.data-list .table-wrap,
.data-list-body > .panel,
.data-list-body > .form-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.data-list-body {
  background: var(--white);
  padding: 20px 24px;
}
.data-list-body:has(> .data-list-table),
.data-list-body:has(> table),
.data-list-body:has(> .data-list) {
  padding: 0;
}
.data-list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.data-list-bar .org-tabs {
  width: 100%;
  margin: 0;
  align-items: center;
}
.data-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin: 0;
  flex: 1 1 360px;
}
.data-list-toolbar .field,
.data-list-bar .field {
  margin: 0;
  min-width: 140px;
  gap: 4px;
}
.data-list-toolbar .field.grow { flex: 1 1 220px; min-width: 180px; }
.pipeline-board-toolbar label,
.data-list-toolbar label,
.data-list-bar label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 14px;
  line-height: 14px;
}
.pipeline-board-toolbar input,
.pipeline-board-toolbar select,
.data-list-toolbar input,
.data-list-toolbar select,
.data-list-bar input,
.data-list-bar select {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  max-height: var(--toolbar-control-height);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.2;
}
.pipeline-board-toolbar select,
.data-list-toolbar select,
.data-list-bar select {
  padding-right: 32px;
  background-position: right 10px center;
}
.data-list-toolbar .btn,
.data-list-bar .btn,
.data-list-actions .btn,
.pipeline-board-toolbar .btn {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  max-height: var(--toolbar-control-height);
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.data-list-bar .field-action,
.data-list-toolbar .field-action,
.pipeline-board-toolbar .field-action {
  justify-content: flex-end;
  min-width: 0;
  gap: 4px;
}
.data-list-bar .field-spacer,
.data-list-toolbar .field-spacer,
.pipeline-board-toolbar .field-spacer {
  display: block;
  min-height: 14px;
  height: 14px;
  line-height: 14px;
}
.data-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}
.data-list-actions-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.data-list-table { overflow-x: auto; max-width: 100%; }
.data-table.is-weighted { table-layout: fixed; width: 100%; }
.data-table th,
.data-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.data-table th.is-center,
.data-table td.is-center { text-align: center; }
.data-table th.is-end,
.data-table td.is-end { text-align: right; }
.data-table td:has(.btn),
.data-table td:has(.list-more),
.data-table td:has(.row-menu),
.data-table td:has([data-owner-assign]),
.data-table th.bulk-check,
.data-table td.bulk-check,
.data-table td.lo-action,
.data-table td.row-menu {
  overflow: visible;
  text-overflow: clip;
}
.data-table td:has(.hint) { white-space: normal; }
.data-table td:has(.hint) .hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bulk-bar[hidden],
.btn[hidden],
button.btn[hidden],
.bulk-notice-preview[hidden],
.hint[hidden] {
  display: none !important;
}
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff8eb;
}
.bulk-bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.bulk-bar-count { margin: 0; font-weight: 600; }
.bulk-bar-actions { margin: 0; margin-left: auto; }
.bulk-check { width: 28px; text-align: center; }
.data-table th.bulk-check,
.data-table td.bulk-check {
  padding-left: 6px;
  padding-right: 4px;
  overflow: visible;
  text-overflow: clip;
}
.bulk-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
}
.bulk-dialog-wide { width: min(640px, 100%); }
.bulk-notice-preview { margin: 0 0 16px; }
.bulk-notice-preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fafbfc;
}
.bulk-notice-preview-card p { margin: 10px 0 0; }
@media (max-width: 720px) {
  .bulk-bar { padding: 10px 14px; }
  .bulk-bar-actions { width: 100%; }
}
.data-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; background: var(--white); }
.data-table th,
.data-table td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #eceff3;
  vertical-align: middle;
  line-height: 1.25;
}
/* Help Desk row density (~36–40px): shrink in-row widgets so they do not stretch every list. */
.data-table .list-more-btn,
.data-table .row-menu-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.data-table .row-menu { width: 32px; }
.data-table .bulk-check { width: 28px; }
.data-table .bulk-check-label {
  min-width: 20px;
  min-height: 20px;
}
.data-table td .btn.small {
  height: 24px;
  min-height: 24px;
  padding: 0 10px;
  font-size: 13px;
}
.data-table th.nowrap,
.data-table td.nowrap { white-space: nowrap; }
.data-table th.is-wrap,
.data-table td.is-wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
}
.data-table th {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  background: #f4f6f8;
}
.data-table tbody tr:hover { background: #f7f9fb; }
.data-table .hint { margin-top: 1px; font-size: 12px; }
.data-table .toolbar { margin: 0; gap: 6px; align-items: flex-end; }
.data-table .toolbar .field { margin: 0; min-width: 110px; }
.data-table .toolbar select,
.data-table .toolbar input {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  max-height: var(--toolbar-control-height);
  padding: 5px 8px;
  font-size: 15px;
}
.data-table .toolbar select { padding-right: 28px; background-position: right 8px center; }
.data-table .toolbar .btn {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  padding-top: 0;
  padding-bottom: 0;
}
.data-table tr.data-empty td {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}
.list-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.list-notice span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--line);
}
.list-notice.is-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #e2b6b6;
}
.data-table tr.is-detail td {
  padding: 2px 16px 12px;
  background: #f7f9fb;
  vertical-align: top;
}
.data-table tr.is-detail:hover td { background: #f7f9fb; }
.data-table tr.is-detail details { margin: 0; }
.data-table tr.is-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}
.data-table tr.is-detail summary:hover { color: var(--navy); }
.data-table tr.is-detail .table-wrap {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}
.data-table tr.is-detail table { font-size: 13px; }
.page.list .data-list-after { margin: 20px 0 0; }
#record-visit:not(:target):not(.is-open) { display: none; }
.data-list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  border-top: 1px solid #eceff3;
  background: #fafbfc;
}
.data-list-pager-count {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.data-list-pager-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.data-list-pager-ellipsis { color: var(--muted); padding: 0 4px; }
.data-list-pager .btn.disabled,
.data-list-pager .btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.data-list-section-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px;
  border-top: 1px solid #eceff3;
  background: #fafbfc;
}
.user-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.user-access {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.user-access-meta {
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.user-row-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.user-row-actions .btn {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
}
.user-role-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.perm-panel .org-tabs { margin: 12px 0 16px; }
.perm-grid .perm-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.perm-level { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.perm-effective { margin-top: 16px; }
.perm-grid select { min-width: 120px; }
.perm-overrides {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.perm-override {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 140px 120px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.merge-box { margin-top: 16px; }
.merge-box h3 { margin: 0 0 8px; font-size: 16px; }
.record-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.dup-banner {
  margin: 0;
  padding: 10px 14px;
  background: #e8f3f1;
  color: var(--navy);
  border-left: 4px solid var(--teal, #1f6f66);
  font-size: 14px;
  flex: 1;
}
.dup-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.dup-row-actions form { margin: 0; }
.dup-table-wrap { margin: 0 0 20px; }
.dup-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.dup-table th, .dup-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e0d8;
  vertical-align: top;
  text-align: left;
}
.dup-table thead th {
  background: #f4f1ea;
  font-size: 13px;
  font-weight: 600;
}
.dup-table tbody th[scope="row"] {
  width: 22%;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.dup-section th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 12px;
}
.dup-section-navy th { background: #1b365d; }
.dup-section-teal th { background: #1f6f66; }
.dup-section-gold th { background: #b8860b; }
.dup-section-clay th { background: #8a4b2f; }
.dup-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}
.dup-choice.is-empty,
.dup-choice.is-empty .dup-empty {
  color: #9a958c;
}
.dup-choice.is-readonly { opacity: 0.85; }
.dup-empty { font-style: italic; }
.dup-value { white-space: pre-wrap; word-break: break-word; }
.dup-warn {
  display: inline-block;
  margin-left: 6px;
  color: #b45309;
  font-size: 14px;
}
.dup-comment { max-width: 520px; margin-top: 8px; }
.dup-block {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fde8e8;
  border-left: 4px solid #b42318;
}
.dup-block p { margin: 0; }
.dup-form .actions { margin-top: 8px; }
.user-edit-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.user-edit-access form { margin: 0; }
.user-edit-meta { margin: 0 0 12px; font-size: 13px; }
@media (max-width: 720px) {
  .user-access { flex-wrap: wrap; }
  .user-access-meta { max-width: 100%; white-space: normal; }
}
.page-h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--navy);
}
.page-h2 {
  margin: 28px 0 8px;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}
.page-lede {
  margin: 0 0 16px;
  max-width: 52rem;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.page.list .page-lede { margin: 0; }
.page.list .page-h1 { margin: 0; font-size: 20px; }
.dash-header { margin-bottom: 20px; }
.dash-header .page-h1 { margin-bottom: 6px; }
.dash-date { margin: 0 0 4px; font-weight: 600; color: var(--navy); }
.dash-who { margin: 0; color: var(--muted); font-size: 15px; }
.dash-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 16px;
  margin-bottom: 16px;
}
.dash-band h2 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.dash-queue { list-style: none; margin: 0; padding: 0; }
.dash-queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eceff3;
}
.dash-queue-row:first-child { border-top: 0; }
.dash-queue-row a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  flex: 1;
  min-width: 0;
}
.dash-queue-row .inline-form { margin: 0; flex: 0 0 auto; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.task-row.is-done { opacity: 0.7; }
.dash-queue-title { font-weight: 600; }
.dash-queue-row.is-urgent .dash-queue-title { color: var(--danger); }
.dash-queue-detail { color: var(--muted); font-size: 14px; }
.dash-empty { margin: 0; color: var(--ok); font-weight: 600; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 20px;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}
.kpi-row .dash-stat {
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  max-height: 64px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kpi-row .dash-stat.is-emphasis {
  border-color: color-mix(in srgb, var(--cyan) 50%, var(--line));
  background: color-mix(in srgb, var(--cyan) 10%, #fff);
}
.dash-stat.is-muted { opacity: 0.55; }
.dash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--navy);
  text-decoration: none;
}
.dash-stat strong { font-size: 18px; line-height: 1.1; font-weight: 700; }
.dash-stat span { font-size: 11px; line-height: 1.2; color: var(--muted); }
.dash-split { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.dash-activity { list-style: none; margin: 0; padding: 0; }
.dash-activity li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px 0;
  border-top: 1px solid #eceff3;
}
.dash-activity li:first-child { border-top: 0; }
.dash-activity-meta { color: var(--muted); font-size: 13px; }
.dash-actions { justify-content: flex-start; margin-top: 0; }
.inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.inbox-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.inbox-tab.is-active,
.inbox-tab[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}
.invite-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.invite-form select {
  height: var(--control-height);
  min-height: var(--control-height);
  padding-right: 36px;
}
@media (max-width: 820px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.integration-list { display: grid; gap: 10px; }
.integration-intro { padding: 16px 18px !important; margin-bottom: 0 !important; }
.integration-intro h2 { margin: 0 0 4px; font-size: 18px; }
.integration-intro .muted { margin: 0; }
.integration-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 16px 24px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
}
.integration-row h3 { margin: 0 0 4px; font-size: 17px; }
.integration-row .muted { margin: 0; }
.integration-connect { display: grid; gap: 8px; }
.integration-connect .field { margin: 0; }
.integration-connect input { padding: 8px 10px; }
.integration-card {
  padding: 14px 16px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--navy) !important;
  box-shadow: none !important;
}
.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.integration-card-title h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.integration-card-meta { margin: 3px 0 0; font-size: 12px; }
.integration-card .record-grid { gap: 10px 14px; margin-bottom: 10px; }
.integration-card .field { margin: 0; }
.integration-card .field .hint { margin: 0; }
.integration-card input { padding: 8px 10px; }
.integration-card-actions { margin-top: 4px; justify-content: flex-end; }
.integration-card-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.integration-saved {
  margin: 0 0 8px;
  color: var(--ok);
  font-size: 13px;
  font-weight: 600;
}
.integration-intro h2 { margin: 0 0 6px; }
.integration-intro .muted { margin: 0; }
.integration-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.integration-tile {
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 52, 86, 0.04);
}
.integration-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.integration-tile-head-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.integration-tile-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}
.integration-tile-mark.tone-navy { background: var(--navy); }
.integration-tile-mark.tone-gold { background: var(--gold); color: var(--navy-deep); }
.integration-tile-mark.tone-cyan { background: var(--cyan); }
.integration-tile-mark.tone-ok { background: var(--ok); }
.integration-tile h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.25; color: var(--navy); }
.integration-tile-cat { margin: 0 0 8px; font-size: 13px; }
.integration-tile-copy {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.integration-tile-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.integration-tile-action .btn { min-width: 108px; text-align: center; }
.integration-detail > .muted { margin: 0 0 12px; }
@media (max-width: 1320px) {
  .integration-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .integration-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .integration-row { grid-template-columns: 1fr; }
  .integration-card .record-grid-2,
  .integration-card .record-grid-3 { grid-template-columns: 1fr; }
}
th {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: #f7f8fa;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.new, .badge.qualified { background: #e8eef5; color: var(--info); }
.badge.in_review, .badge.pending_approval, .badge.no_show, .badge.screening { background: var(--warn-bg); color: var(--warn); }
.badge.completed, .badge.active { background: var(--ok-bg); color: var(--ok); }
.badge.interview, .badge.scheduled, .badge.out_for_signature { background: #e4eaf8; color: #2a3f7a; }
.badge.offer { background: #fff3d6; color: #8a5a12; }
.badge.onboarding, .badge.simulated { background: #e8e4f4; color: #4a3a78; }
.badge.rejected, .badge.failed, .badge.overdue { background: var(--danger-bg); color: var(--danger); }
.badge.cancelled, .badge.draft, .badge.archived, .badge.ended { background: var(--grey); color: var(--muted); }
.badge.employee, .badge.contractor { background: #e8eef5; color: var(--info); }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.approved, .badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.not_approved, .badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.amber { background: var(--warn-bg); color: var(--warn); }
.badge.licensed { background: var(--ok-bg); color: var(--ok); }
.badge.unlicensed { background: var(--grey); color: var(--muted); }
.badge.signed, .badge.won, .badge.converted { background: var(--ok-bg); color: var(--ok); }
.badge.viewed, .badge.sent, .badge.quoted, .badge.awaiting_md, .badge.awaiting_author, .badge.awaiting_approver { background: #e4eaf8; color: #2a3f7a; }
.badge.void, .badge.withdrawn, .badge.lost, .badge.spam { background: var(--danger-bg); color: var(--danger); }
.age-overdue { color: var(--danger); font-weight: 700; }
.lead-message { white-space: pre-wrap; margin: 0 0 16px; }
.lead-notes { margin: 0; }
.contact-note { margin: 0 0 12px; }
.contact-note:last-child { margin-bottom: 0; }
.contact-note-meta {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 400;
}
.contact-note-body {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
}
.form-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 12px;
  background: #fff;
}
.form-group > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 12px 14px;
  list-style: none;
}
.form-group > summary::-webkit-details-marker { display: none; }
.form-group-body {
  padding: 8px 14px 4px;
  border-top: 1px solid #eceff3;
}
.flash-toast {
  position: fixed;
  top: auto;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 600;
}
.flash-toast.ok { background: var(--ok-bg); color: var(--ok); }
.flash-toast.error { background: var(--danger-bg); color: var(--danger); }
.flash-toast.warn { background: var(--warn-bg); color: var(--warn); }
.flash-toast.is-gone { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ticket-layout-document {
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
}
.ticket-layout-headed {
  grid-template-areas:
    "header header"
    "side main";
}
.ticket-layout-headed > .ticket-header { grid-area: header; }
.ticket-layout-headed > .ticket-side { grid-area: side; }
.ticket-layout-headed > .ticket-main { grid-area: main; }
.ticket-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
}
.ticket-header-field {
  display: grid;
  grid-template-columns: minmax(200px, 260px) auto;
  align-items: end;
  gap: 8px;
  margin: 0;
}
.ticket-header-field label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-header-field select,
.ticket-header-field .btn {
  height: var(--control-height);
  min-height: var(--control-height);
  margin: 0;
}
.ticket-header-field select { min-width: 200px; width: 100%; }
.ticket-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px auto;
}
.ticket-rail { min-width: 0; margin-top: 20px; }
.ticket-rail-panel { overflow: visible; }
.ticket-rail-title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
}
.ticket-rail [data-note-list] {
  margin: 12px 0 0;
}
.ticket-side {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  max-width: 100%;
}
.ticket-side-fold {
  margin: 0;
}
.ticket-side-fold > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  min-height: var(--control-height);
  display: flex;
  align-items: center;
}
.ticket-side-fold > summary::-webkit-details-marker { display: none; }
.ticket-side-body { margin-top: 12px; }
.ticket-side-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.ticket-side .dl { grid-template-columns: 1fr; }
.ticket-side [data-note-list] {
  margin: 12px 0 16px;
  max-height: 280px;
  overflow: auto;
}
.ticket-main { min-width: 0; }
.ticket-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ticket-main-head h2 { margin: 0; }
.sign-order { margin: 16px 0; }
.sign-order ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.sign-order li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
}
.board-scope { margin: 0 0 12px; }
.ticket-below { display: grid; gap: 20px; margin-top: 20px; }
.ticket-composer { margin-bottom: 16px; }
.ticket-composer.is-dragover,
[data-reply-form].is-dragover {
  outline: 2px dashed #007aff;
  outline-offset: 2px;
}
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ticket-msg {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.ticket-msg-in { border-left: 3px solid var(--cyan); }
.ticket-msg-out { border-left: 3px solid var(--gold); }
.ticket-msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.ticket-msg-meta strong { color: var(--navy); }
.ticket-msg-subject { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.ticket-msg-body { margin: 0; white-space: pre-wrap; }
.ticket-preview {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 40px);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  contain: inline-size;
}
.ticket-preview-label {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey);
  font-weight: 700;
  color: var(--navy);
}
.ticket-preview-scroll {
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  contain: inline-size;
}
.actions.reply-actions {
  flex-wrap: nowrap;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .actions.reply-actions { flex-wrap: wrap; justify-content: flex-end; }
}
.reply-actions > .btn,
.reply-actions > a.btn,
.reply-actions .respond-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.reply-actions .respond-stage label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.reply-actions .respond-stage select {
  height: var(--control-height);
  min-height: var(--control-height);
  min-width: 180px;
  border-radius: 8px;
}
.reply-actions .split-btn .btn {
  height: var(--control-height);
  min-height: var(--control-height);
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
}
.split-btn-toggle {
  padding-left: 10px;
  padding-right: 10px;
  border-left: 1px solid rgba(255,255,255,0.35);
}
.split-btn {
  display: inline-flex;
  position: relative;
  align-items: stretch;
}
.split-btn-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 8;
  min-width: 260px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.split-btn-menu[hidden] { display: none; }
.split-btn-item {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  border-radius: 5px;
}
.split-btn-item:hover { background: var(--off); }
@media (min-width: 901px) {
  .ticket-side-fold > summary { pointer-events: none; }
}
@media (max-width: 900px) {
  .ticket-layout,
  .ticket-layout-document,
  .ticket-layout-headed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "side"
      "main";
  }
  .ticket-side { position: static; max-height: none; overflow: visible; }
  .ticket-preview { position: static; max-height: none; overflow-x: hidden; }
}
@media (max-width: 720px) {
  .actions.reply-actions { flex-wrap: wrap; }
}
.lead-attribution { margin: 16px 0 20px; }
.lead-attribution summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.lead-attribution .dl { margin-top: 12px; }
.lead-actions {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
}
.lead-actions > .btn,
.lead-actions > a.btn,
.lead-actions > form > .btn,
.lead-actions > form > button {
  height: var(--control-height);
  min-height: var(--control-height);
  max-height: var(--control-height);
  width: auto;
  max-width: none;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}
.inline-action {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.inline-action select {
  width: auto;
  min-width: 140px;
  max-width: 220px;
  height: var(--control-height);
  min-height: var(--control-height);
  max-height: var(--control-height);
}
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
script[type="application/json"] { display: none !important; }
.pre {
  background: var(--off);
  border: 1px solid var(--grey);
  border-radius: 8px;
  padding: 14px 16px;
  overflow: auto;
  font-size: 13px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field { margin: 0; min-width: 180px; }
.toolbar .field > label {
  min-height: 1.25em;
  line-height: 1.25;
}
.toolbar input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.toolbar select {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  max-height: var(--toolbar-control-height);
}
.toolbar select { padding-right: 32px; background-position: right 10px center; }
.toolbar > .btn,
.toolbar > a.btn,
.toolbar > button {
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  padding-top: 0;
  padding-bottom: 0;
}
.dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; font-size: 15px; }
.dl dt { color: var(--muted); }
.incident-photos { display: flex; flex-wrap: wrap; gap: 12px; }
.incident-photos img { max-width: 220px; max-height: 160px; object-fit: cover; border: 1px solid var(--grey); border-radius: 6px; }
.sig-preview { max-width: 420px; border: 1px solid var(--grey); background: #fff; border-radius: 8px; }

.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  font-size: 14px;
  border-top: 3px solid var(--gold);
}
.site-footer-bar .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.footer-legal { margin: 0; color: var(--white); line-height: 1.4; }
.site-footer .btn { flex: 0 0 auto; }
.signin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.signin-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 18px 24px 16px;
  text-align: center;
}
.signin-header img { display: block; margin: 0 auto; }
.page-signin { max-width: 520px; }
.muted { color: var(--muted); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

.login-split {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(240px, 320px);
  gap: 24px;
  align-items: start;
  max-width: 860px;
}
.login-card { margin-bottom: 0; }
.ms-signin { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 4px; }
.ms-signin-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.btn-microsoft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 44px;
  padding: 0 20px;
  background: #fff;
  color: #5e5e5e;
  border: 1px solid #d0d0d0;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(16, 52, 86, 0.08);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.btn-microsoft:hover { background: #f7f7f7; color: #323130; border-color: #c8c8c8; }
.ms-logo { display: block; flex: 0 0 21px; }
.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.login-or::before,
.login-or::after { content: ""; flex: 1; height: 1px; background: var(--grey); }
.break-glass-form { margin: 0; }
.break-glass-form .actions { margin-top: 4px; }
.break-glass-form .hint { margin: 12px 0 0; text-align: center; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 14px 0; }
  .has-shell .nav-toggle { display: inline-flex; }
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  body.has-shell .proto-banner + .app-shell .app-sidebar {
    height: 100vh;
    max-height: 100vh;
  }
  body.nav-open .app-sidebar {
    transform: none;
    box-shadow: var(--shadow);
  }
  .topbar-feedback-btn { width: var(--control-height); padding: 0; }
  .topbar-feedback-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sidebar-dock .topbar-feedback-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 37, 61, 0.35);
    z-index: 25;
  }
  .app-main .page,
  .app-main .page.wide { width: 100%; padding: 12px; }
  .app-main .page.fill,
  .app-main .page.wide.fill { width: 100%; padding: 0; }
  .app-main .page.list,
  .app-main .page.list.wide,
  .app-main .page.list.fill,
  .app-main .page.wide.fill.list { width: 100%; padding: 12px; }
  .public-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .row, .row-3, .dl, .consent-hero, .consent-dl .dl-row { grid-template-columns: 1fr; }
  .consent-hero { flex-direction: column-reverse; }
  .form-card, .panel { padding: 22px; }
  .login-split { grid-template-columns: 1fr; }
  .public-tiles { grid-template-columns: 1fr; }
  .list-toolbar { flex-wrap: wrap; }
  .list-toolbar-left { flex: 1 1 auto; }
  .list-toolbar-right { order: 2; }
  .list-toolbar-search {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    justify-content: stretch;
  }
  .list-toolbar-extras { order: 4; flex: 1 1 100%; }
  .list-toolbar-search input[type="search"] {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }
}

.sa-import-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}
.sa-split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}
.sa-sign-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.sa-internal-sign .sa-preview-col,
.sa-internal-sign .sa-sign-form {
  border-radius: 8px;
  box-shadow: none;
}
.sa-internal-sign .sa-sign-form {
  background: var(--white);
  border: 1px solid var(--grey);
  padding: var(--space-4);
  margin: 0;
}
.sa-internal-sign .sa-sign-form .field {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.sa-internal-sign .sa-view-pdf {
  margin: 0 0 12px;
}
.sa-internal-sign .sa-view-pdf .btn {
  display: inline-flex;
}
.sa-preview-col {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 48px);
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overflow-x: hidden;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 12px;
  padding: 16px;
}
.sa-preview-fit {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  contain: inline-size;
}
.sa-preview-label {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.sa-preview-col .sa-doc {
  transform-origin: top left;
}
.ticket-preview-scroll .sa-doc,
.ticket-preview-scroll .ec-v6,
.ticket-preview-scroll .hr-form,
.ticket-preview-scroll .gov-doc,
.pack-preview .sa-doc,
.pack-preview .ec-v6,
.pack-preview .hr-form,
.pack-preview .gov-doc {
  zoom: unset;
  transform-origin: top left;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pack-preview .pack-doc.sa-doc,
.ticket-preview-scroll .pack-doc.sa-doc {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.pack-preview .ato-sheet,
.pack-preview .pack-sheet,
.ticket-preview-scroll .ato-sheet,
.ticket-preview-scroll .pack-sheet {
  width: 100%;
  max-width: 210mm;
  height: auto;
  aspect-ratio: 210 / 297;
  background-size: 100% 100%;
}
.sa-preview-col .sa-sheet,
.ticket-preview-scroll .sa-sheet {
  margin-bottom: 12px;
}
.sa-doc { display: grid; gap: 18px; }
.sa-doc-page {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px 16px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.45;
}
.sa-doc-brand { margin: 0 0 8px; font-family: var(--font-ui); font-weight: 700; color: var(--navy); }
.sa-doc-foot { margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.signature-wrap { border: 1px solid var(--navy); border-radius: 8px; background: #fff; }
.signature-wrap canvas { display: block; width: 100%; height: 180px; }
@media (max-width: 980px) {
  .sa-split, .sa-sign-split { grid-template-columns: minmax(0, 1fr); }
  .sa-preview-col { position: static; max-height: none; overflow: visible; overflow-x: hidden; }
}
.pack-progress {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.pack-sign-split {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.pack-doc-main {
  min-width: 0;
  max-width: 100%;
}
.pack-doc-list {
  display: grid;
  gap: 6px;
}
.pack-doc {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.pack-doc strong { font-size: 14px; }
.pack-doc span { font-size: 12px; color: var(--muted); }
.pack-doc.is-current { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }
.pack-preview {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  contain: inline-size;
}
.pack-preview-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.pack-pdf {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}
.pack-sign-form { max-width: none; width: 100%; min-width: 0; }
.pack-sign-form .sign-box { width: 100%; max-width: 100%; box-sizing: border-box; }
@media (max-width: 800px) {
  .pack-sign-split { grid-template-columns: minmax(0, 1fr); }
  .pack-pdf { min-height: 50vh; }
}
.email-preview-frame {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 12px;
  overflow: hidden;
  min-height: 720px;
}
.email-preview-frame iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  height: 900px;
  border: 0;
  background: #fff;
}
.email-preview-frame.email-preview-compact {
  max-width: 560px;
  min-height: 0;
  width: fit-content;
  padding: 16px 18px;
}
.email-preview-frame.email-preview-compact iframe {
  min-height: 280px;
  height: 360px;
  width: 520px;
  max-width: 100%;
}
.ansic-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 52, 86, 0.45);
}
.ansic-dialog[hidden] { display: none; }
.ansic-dialog-card {
  width: min(520px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.ansic-dialog-card .actions { justify-content: flex-end; }
.support-expect {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.support-dialog input[type="text"],
.support-dialog input[type="email"],
.support-dialog textarea {
  background: #fff8eb;
  border: 1px solid #c9b27a;
  box-shadow: inset 0 1px 2px rgba(16, 52, 86, 0.08);
}
.support-dialog input[type="text"],
.support-dialog input[type="email"] {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 8px 12px;
  line-height: 1.2;
  font-size: 16px;
}
.support-dialog textarea {
  min-height: 120px;
  padding: 10px 12px;
}
.support-dialog input::placeholder,
.support-dialog textarea::placeholder {
  color: #8a8f96;
  opacity: 1;
}
.support-dialog input:focus,
.support-dialog textarea:focus {
  background: #fff;
  border-color: var(--gold);
}
.ansic-dialog-results {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.report-page-bar {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}
.data-list-actions form {
  display: contents;
}
.data-list-toolbar .check {
  display: flex;
  align-items: center;
  height: var(--toolbar-control-height);
  margin: 0;
  align-self: flex-end;
}
.inset-list .check { margin: 0; }
.report-range { color: var(--muted); margin: 0 0 16px; }
.report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.report-kpi {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.report-kpi-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-kpi-value { margin: 0 0 6px; font-size: 28px; line-height: 1.1; color: var(--navy); font-weight: 700; }
.report-kpi-change { margin: 0; font-size: 13px; color: var(--muted); }
.report-kpi-change.is-up { color: var(--ok); }
.report-kpi-change.is-down { color: var(--danger); }
.report-kpi-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.report-chart { width: 100%; max-width: 720px; height: auto; background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); padding: 12px; }
.dash-widget .report-chart { border: 0; padding: 0; max-width: none; }
.report-chart-block { display: grid; gap: 10px; }
.report-donut { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.report-chart-donut { max-width: 200px; }
.report-legend-list { display: grid; gap: 6px; }
.report-legend { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.report-legend-detail { color: var(--muted); font-weight: 600; }
.report-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-tip {
  position: fixed;
  z-index: 80;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.report-empty, .report-footnote { color: var(--muted); }
.report-table-fallback { margin-top: 16px; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.dash-widget {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}
.dash-w-3 { grid-column: span 3; }
.dash-w-4 { grid-column: span 4; }
.dash-w-6 { grid-column: span 6; }
.dash-w-12 { grid-column: span 12; }
.dash-widget-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.dash-widget-head h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.dash-widget-tools { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .dash-w-3, .dash-w-4, .dash-w-6, .dash-w-12 { grid-column: span 12; }
}
.pipeline-board { display: grid; gap: 16px; }
.pipeline-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}
.pipeline-board-toolbar .field { min-width: 180px; margin: 0; }
.pipeline-board-toolbar .field-action { margin-left: auto; }
.board-assigned { position: relative; min-width: 220px; }
.board-assigned-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  padding: 6px 32px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--white);
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.board-assigned-button:hover,
.board-assigned-button:focus-visible {
  border-color: var(--gold);
  outline: 0;
}
.board-assigned.is-open .board-assigned-menu { display: grid; }
.board-assigned-menu {
  display: none;
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  gap: 4px;
}
.board-assigned-menu .check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 0 6px;
  border-radius: 4px;
}
.board-assigned-menu .check:hover { background: var(--off); }
.board-assigned-people {
  margin: 8px 6px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pipeline-cols {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.pipeline-col {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.pipeline-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--grey);
}
.pipeline-col-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.pipeline-col-body { display: grid; gap: 10px; padding: 12px; align-content: start; flex: 1; }
.pipeline-card {
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: grab;
}
.pipeline-card p { margin: 4px 0 0; font-size: 13px; }
.pipeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.pipeline-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ece7dc;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pipeline-card-menu .row-menu-pop { right: 0; left: auto; }
.pipeline-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.pipeline-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--off);
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pipeline-card-avatar.is-empty {
  border-color: var(--line);
  color: var(--muted);
  font-weight: 600;
}
.board-add > summary { list-style: none; }
.board-add > summary::-webkit-details-marker { display: none; }
.pipeline-col.is-over { outline: 2px solid var(--gold); }
#ansic-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  height: 3px;
  width: 0;
  background: var(--gold);
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.2s ease;
}
#ansic-nav-progress.is-on {
  opacity: 1;
  width: 78%;
}
.record-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 24px;
  overflow: auto;
  background: rgba(12, 37, 61, 0.45);
}
.record-modal-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.record-modal-compact { width: min(900px, 100%); }
.record-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.record-modal-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.record-modal-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
}
.record-modal-close:hover { background: var(--off); color: var(--navy); }
.record-modal-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.record-modal-body {
  padding: 8px 24px 24px;
  overflow: auto;
  flex: 1;
}
.record-modal-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.record-cancel {
  height: var(--control-height);
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
button.record-cancel,
button.record-modal-close {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.record-cancel:hover { color: var(--navy); }
.record-section { margin: 20px 0 8px; }
.record-section-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.record-grid {
  display: grid;
  gap: 14px;
}
.record-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.record-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.record-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.record-span-2 { grid-column: span 2; }
.record-span-3 { grid-column: span 3; }
.record-span-4 { grid-column: 1 / -1; }
.record-address-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.record-address-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--off);
}
.field[hidden],
.record-lookup-hidden { display: none !important; }
.record-address-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.record-address-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.record-copy-link,
.record-inline-action {
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.record-copy-link:hover,
.record-inline-action:hover { color: var(--gold-ink, #8a6a12); }
.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.record-combo { position: relative; }
.record-combo-list {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow: auto;
}
.record-combo-list button {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}
.record-combo-list button:hover { background: var(--off); }
.ticket-side .record-section { margin-top: 16px; }
.ticket-side .record-section-title { margin-bottom: 10px; }
@media (max-width: 980px) {
  .record-grid-2,
  .record-grid-3,
  .record-grid-4,
  .record-address-pair { grid-template-columns: 1fr; }
  .record-span-2,
  .record-span-3 { grid-column: auto; }
}

.list-page { display: grid; gap: var(--list-stack-gap); }
.list-page > * { margin-block: 0; }
.list-page > .list-tabs,
.list-page > .kpi-row,
.list-page > [data-stat-cards] { margin: 0; }
.list-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--off);
  min-height: var(--control-height);
}
.list-toolbar-left {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  min-height: var(--control-height);
  min-width: 0;
  flex: 1 1 auto;
}
.list-toolbar-extras {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  flex: 0 1 auto;
}
.list-toolbar-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.list-toolbar-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}
.list-toolbar-search input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  width: 240px;
  max-width: 240px;
  min-width: 240px;
  height: var(--control-height);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.list-toolbar-search input[type="search"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 160, 37, 0.22);
  outline: 0;
}
.list-toolbar-search .btn,
.list-toolbar-left .btn,
.list-toolbar-right .btn,
.list-toolbar .bulk-bar .btn,
.list-pager-size select,
.list-pager-chevron,
.filter-chip {
  height: var(--control-height);
  min-height: var(--control-height);
  border-radius: var(--radius);
}
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--control-height);
}
.view-toggle-pill {
  display: inline-flex;
  align-items: stretch;
  height: var(--control-height);
  min-height: var(--control-height);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #d5dae1;
  padding: 3px;
  gap: 0;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b6573;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
a.view-toggle-btn { color: var(--navy); text-decoration: none; }
.view-toggle-btn + .view-toggle-btn { border-left: 0; }
.view-toggle-btn.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
}
a.view-toggle-btn.is-active { color: var(--navy); }
.view-toggle-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.view-toggle-count { color: var(--muted); font-size: 15px; font-weight: 500; }
.list-toolbar-left .view-toggle[data-board-scope] { flex: 0 0 auto; }
.list-toolbar-left .view-toggle[data-board-scope] .view-toggle-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.filter-menu { position: relative; overflow: visible; }
.list-toolbar { overflow: visible; }
@media (max-width: 720px) {
  .list-toolbar { flex-wrap: wrap; }
  .list-toolbar-left { flex: 1 1 auto; }
  .list-toolbar-right { order: 2; }
  .list-toolbar-search {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    justify-content: stretch;
  }
  .list-toolbar-extras { order: 4; flex: 1 1 100%; }
  .list-toolbar-search input[type="search"] {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }
}
.btn.filter-open-btn,
.btn.ghost.filter-open-btn {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: var(--radius);
  gap: 6px;
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
  max-height: var(--control-height);
}
.btn.filter-open-btn:hover,
.btn.ghost.filter-open-btn:hover {
  background: var(--white);
  border-color: #c5cad3;
  box-shadow: none;
  color: var(--navy);
}
.btn.filter-open-btn.is-active,
.btn.ghost.filter-open-btn.is-active {
  border-color: var(--gold);
  box-shadow: none;
  background: var(--white);
  color: var(--navy);
}
.filter-open-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.filter-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.filter-menu-badge.is-idle {
  visibility: hidden;
}
.filter-menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 220px;
  height: auto;
  min-height: 0;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 52, 86, 0.12);
  overflow: visible;
}
.filter-menu-pop[hidden] { display: none; }
.filter-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 14px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.filter-menu-clear {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.filter-menu-clear:hover { color: var(--navy); }
.filter-menu-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.filter-menu-field { position: relative; }
.filter-menu-cat {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.filter-menu-cat:hover,
.filter-menu-cat.is-open { background: #f4f6f8; }
.filter-menu-chevron { color: var(--muted); font-size: 16px; }
.filter-menu-flyout {
  position: absolute;
  right: calc(100% + 6px);
  top: 0;
  z-index: 21;
  min-width: 200px;
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 52, 86, 0.12);
}
.filter-menu-flyout[hidden] { display: none; }
@media (max-width: 720px) {
  .filter-menu-flyout {
    position: static;
    right: auto;
    min-width: 0;
    max-height: 220px;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }
}
.filter-menu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  min-height: 34px;
  cursor: pointer;
  font-size: 14px;
  color: var(--navy);
}
.filter-menu-option:hover { background: #f4f6f8; }
.filter-menu-option input { position: absolute; opacity: 0; pointer-events: none; }
.filter-menu-check { margin-left: auto; color: var(--gold); opacity: 0; font-size: 13px; }
.filter-menu-option.is-on .filter-menu-check,
.filter-menu-option:has(input:checked) .filter-menu-check { opacity: 1; }
.filter-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}
.filter-menu-group {
  margin: 0;
  padding: 0;
  border: 0;
}
.filter-menu-group legend {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.filter-menu-actions { display: none; }
.filter-date-range, .filter-date-label { display: grid; gap: 6px; margin-top: 6px; font-size: 13px; }
.filter-date-label input[type="date"] {
  width: 100%;
  height: var(--control-height);
  border-radius: var(--radius);
}
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: min(360px, 38vw); }
.filter-chips.is-wide { max-width: none; flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  background: #e4edf4;
  color: var(--navy);
  font-size: 13px;
  text-decoration: none;
}
.filter-chip.is-on { background: var(--navy); color: #fff; }
.filter-chip.is-secondary { background: #eef2f5; color: #5a6b7a; }
.filter-chip.is-secondary.is-on { background: var(--navy); color: #fff; }
.col-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  cursor: help;
}
.staff-sync-cell { text-align: center; width: 52px; }
.staff-sync {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--navy);
}
.staff-sync.is-empty { color: #c5ced6; }
.staff-sync.is-local {
  color: #5b6573;
  border: 1.5px dashed #8b95a1;
  border-radius: 50%;
}
.staff-sync.is-ok { color: #0b1f33; }
.staff-sync.is-pending { color: #c5a35a; }
.staff-sync.is-stale { color: #c5a35a; }
.staff-sync.is-differs { color: #e4a025; }
.staff-sync.is-error { color: #b42318; }
.staff-sync svg { width: 18px; height: 18px; }
.staff-sync.is-local svg { width: 16px; height: 16px; }
.sync-differs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 8px;
  background: #e4a025;
  color: #0b1f33;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.staff-local-only {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.sync-differs-list { margin: 12px 0 0; }
.sync-differs-line { margin: 0 0 8px; }
.sync-field { min-width: 0; }
.sync-field-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.sync-field-value { min-width: 0; }
.sync-field-main .record-more { margin-left: auto; flex: 0 0 auto; }
.sync-differs-tag {
  display: inline-block;
  color: #8a5a12;
  font-size: 12px;
  font-weight: 700;
}
.sync-compare {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.sync-log-head {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.sync-health {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 3px 0 0 #e4a025;
  width: 100%;
}
.sync-health h2 { margin: 0 0 8px; font-size: 15px; }
.sync-health p { margin: 0 0 4px; }
.sync-health p:last-child { margin: 0; }
.list-more { position: relative; flex: 0 0 auto; }
.list-more-btn,
.btn.list-more-btn,
.btn.ghost.list-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  min-width: var(--control-height);
  padding: 0;
  list-style: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn.list-more-btn:hover,
.btn.ghost.list-more-btn:hover {
  background: var(--white);
  border-color: #c5cad3;
  color: var(--navy);
}
.list-more-btn::-webkit-details-marker { display: none; }
.list-more-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.list-more:not([open]) .list-more-pop { display: none; }
.list-more-item {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
button.list-more-item { appearance: none; }
.list-more-item:hover { background: #f4f7fa; }
.list-more-item.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.list-toolbar .bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: var(--control-height);
}
.list-toolbar .bulk-bar[hidden] { display: none !important; }
.bulk-bar-meta, .bulk-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.data-list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--navy);
}
.list-pager-size {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}
.list-pager-size select {
  width: auto;
  min-width: 64px;
  height: var(--control-height);
  background-color: var(--white);
}
.list-pager-nav { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.list-pager-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  background: var(--white);
  border: 1px solid #6b7684;
  border-radius: 8px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.list-pager-chevron:hover {
  border-color: var(--navy);
  background: var(--off);
}
.list-pager-chevron.is-disabled,
.list-pager-chevron[aria-disabled="true"] {
  background: var(--white);
  border-color: #c5cad2;
  color: #9aa3ad;
  opacity: 1;
  pointer-events: none;
}
.age-overdue { color: var(--danger); font-weight: 600; }
.row-menu { width: 44px; text-align: right; }
.row-menu-details { position: relative; }
.row-menu-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}
.row-menu-btn::-webkit-details-marker { display: none; }
.row-menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.record-signing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.record-signing-head > p { margin: 0; min-width: 0; }
.record-signing-head .list-more { position: relative; flex: 0 0 auto; }
.row-menu-pop a {
  display: block;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--radius);
}
.row-menu-pop a:hover { background: #f4f7fa; }
.row-menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
.row-menu-pop button:hover { background: #f4f7fa; }
.actions .pack-more { margin-left: 8px; }
.app-main .page.list.wide,
.list-page,
.data-list,
.data-list-board {
  min-width: 0;
  max-width: 100%;
}
.data-list-board {
  overflow: hidden;
}
.page.list.fill .list-page {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page.list.fill .data-list {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page.list.fill .data-list-board {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page.list.fill .status-board {
  flex: 1 1 auto;
  min-height: 0;
}
.status-board {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 420px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px;
}
.status-col {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--grey);
  border-radius: var(--radius);
}
.status-col-head {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--grey);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--board-col-text, var(--navy));
}
.status-col-head > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-col-head > [data-board-count] {
  flex: 0 0 auto;
}
.status-col-toggle {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.status-col-toggle:hover,
.status-col-toggle:focus-visible {
  background: rgba(16, 52, 86, 0.08);
}
.status-col.is-collapsed {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
}
.status-col.is-collapsed .status-col-body {
  display: none;
}
.status-col.is-collapsed .status-col-head {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: auto;
  min-height: 160px;
  max-height: none;
  padding: 12px 6px;
}
.status-col.is-collapsed .status-col-head > span:first-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  overflow: visible;
}
.status-col.is-collapsed .status-col-toggle {
  transform: rotate(-90deg);
}
.status-col.tone-navy { background: #e8eef4; }
.status-col.tone-gold { background: #fff8e8; }
.status-col.tone-ok { background: #e8f4ec; }
.status-col.tone-warn { background: #fff3e4; }
.status-col.tone-danger { background: #f7eaea; }
.status-col.tone-cyan { background: #e6f3f8; }
.status-col.tone-navy .status-col-head { background: #dce7f0; }
.status-col.tone-gold .status-col-head { background: #fff1d2; }
.status-col.tone-ok .status-col-head { background: #d9eddf; }
.status-col.tone-warn .status-col-head { background: #ffe8cc; }
.status-col.tone-danger .status-col-head { background: #f3d6d6; }
.status-col.tone-cyan .status-col-head { background: #d5eaf5; }
.status-col.colour-navy { background: #e8eef4; }
.status-col.colour-gold { background: #fff8e8; }
.status-col.colour-green { background: #e8f4ec; }
.status-col.colour-amber { background: #fff3e4; }
.status-col.colour-red { background: #f7eaea; }
.status-col.colour-cyan { background: #e6f3f8; }
.status-col.colour-orange { background: #f8e6b8; }
.status-col.colour-grey { background: #f2f3f5; }
.status-col.colour-navy .status-col-head { background: #dce7f0; }
.status-col.colour-gold .status-col-head { background: #fff1d2; }
.status-col.colour-green .status-col-head { background: #d9eddf; }
.status-col.colour-amber .status-col-head { background: #ffe8cc; }
.status-col.colour-red .status-col-head { background: #f3d6d6; }
.status-col.colour-cyan .status-col-head { background: #d5eaf5; }
.status-col.colour-orange .status-col-head { background: #e4a025; color: #142033; }
.status-col.colour-grey .status-col-head { background: #e6e8eb; }
.status-col-body {
  display: grid;
  gap: 6px;
  align-content: start;
  flex: 1;
  min-width: 0;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
}
.status-col-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.status-card {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.status-card a,
.status-card p { overflow-wrap: anywhere; }
.status-card a,
.status-card img { -webkit-user-drag: none; }
.status-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.status-card-head a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.status-card-head strong { font-size: 14px; line-height: 1.25; }
.status-card-contact {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.status-card-ref {
  margin: 1px 0 0;
  color: #8a93a3;
  font-size: 12px;
  line-height: 1.3;
}
.status-card-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.status-card-tag {
  max-width: 100%;
  padding: 1px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: #e4edf4;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}
.status-card-tag.is-stage {
  background: #f4f7fa;
  font-weight: 500;
}
.status-card-menu { flex: 0 0 auto; opacity: 1; }
.status-card-menu > summary {
  list-style: none;
}
.status-card-menu > summary::-webkit-details-marker,
.status-card-menu > summary::marker {
  display: none;
  content: none;
}
.status-card-menu .row-menu-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  overflow: visible;
}
.status-card-menu .row-menu-btn > span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}
.status-card-menu .row-menu-pop { right: 0; left: auto; }
.status-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}
.status-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
  max-height: 32px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.status-card-kind {
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-card-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--off);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  cursor: default;
}
button.status-card-avatar { cursor: pointer; }
.status-card-avatar.is-empty {
  border-color: #c5cad3;
  color: #9aa3b2;
  font-weight: 600;
}
.owner-popover {
  position: absolute;
  z-index: 40;
  width: 240px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}
.owner-popover input[type="search"] {
  width: 100%;
  margin-bottom: 6px;
}
.owner-popover-list { max-height: 220px; overflow: auto; }
.owner-popover-opt {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.owner-popover-opt:hover,
.owner-popover-opt:focus { background: var(--off); }
.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;
}
.status-board-move { display: none; }
.status-col.is-over { outline: 2px solid var(--gold); }
.status-col.is-over.is-drop-blocked { outline-color: #c0392b; }
.status-card.is-dragging {
  opacity: 0.45;
  pointer-events: none;
}
.status-card.is-board-origin {
  outline: 1px dashed var(--gold);
}
body.is-board-dragging,
body.is-board-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.status-card[draggable="true"] {
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-touch-callout: none;
}
.status-card[draggable="true"].is-dragging {
  touch-action: none;
}
.data-list-toolbar .field.grow { flex: 0 1 240px; max-width: 240px; min-width: 240px; }
.record-detail {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  grid-template-areas:
    "side main";
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.record-detail > .record-detail-info { grid-area: side; }
.record-detail > .ticket-main { grid-area: main; }
.record-detail-bar {
  grid-area: header;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.record-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  font-size: 18px;
}
.record-detail-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.record-detail-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.record-detail-actions form { margin: 0; }
.record-detail-info {
  grid-area: side;
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.record-card,
.record-detail-info > .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.record-card > h2,
.record-card-head > h2,
.record-card > summary,
.record-card-head > summary,
.record-detail-info > .panel > h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.record-card-head > h2,
.record-card-head > summary { margin: 0; }
.record-card > summary,
.record-card-head > summary { cursor: pointer; list-style: none; }
.record-card > summary::-webkit-details-marker,
.record-card-head > summary::-webkit-details-marker { display: none; }
.record-more-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.record-card-body .field { margin: 0 0 8px; }
.record-card-body .field label {
  font-size: 12px;
  margin-bottom: 2px;
}
.record-meta { display: grid; gap: 6px; margin: 0; }
.record-meta > div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: baseline; }
.record-meta dt { margin: 0; color: var(--muted); font-size: 12px; }
.record-meta dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.record-owner-field { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.record-properties { display: grid; gap: 10px; }
.record-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 10px 14px;
  margin: 0;
  min-width: 0;
}
.record-properties-grid > div { display: grid; gap: 2px; min-width: 0; }
.record-properties-grid dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.record-properties-grid dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.record-properties-grid .field { margin: 0; }
.record-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.record-task-row { margin: 0; }
.record-task-row label { display: flex; align-items: center; gap: 8px; }
.record-task.is-done span { text-decoration: line-through; color: var(--muted); }
.record-task-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 8px 0 0;
  align-items: center;
  min-width: 0;
}
.record-task-add input,
.record-task-add select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.record-task-add .btn {
  width: auto;
  justify-self: start;
}
.record-detail-info input,
.record-detail-info select,
.record-detail-info textarea,
.record-card input,
.record-card select,
.record-card textarea {
  max-width: 100%;
  min-width: 0;
}
.record-related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.record-related-list span { margin-left: 8px; }
.record-more { position: relative; }
.record-more > summary { list-style: none; }
.record-more > summary::-webkit-details-marker { display: none; }
.record-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 8;
  min-width: 220px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.record-more-item {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
}
.record-more-item:hover { background: var(--off); }
.record-more-item.is-danger { color: var(--danger); }
.record-convo { grid-area: main; min-width: 0; }
.convo-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ticket-msg > summary { cursor: pointer; list-style: none; }
.ticket-msg > summary::-webkit-details-marker { display: none; }
.ticket-msg-note { border-left-color: var(--navy); }
.ticket-msg-system { border-left-color: var(--muted); }
.record-detail-info .ticket-header-field { display: block; }
@media (max-width: 900px) {
  .record-detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
  }
}
.inline-form { display: inline; margin-right: 6px; }
.licence-oft-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  margin-top: 12px;
  background: var(--off);
}
.roster-post {
  background: var(--white, #fff);
  border: 1px solid var(--grey);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.roster-post header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.roster-post > p { margin: 8px 0; white-space: pre-wrap; }
.roster-reply {
  margin: 10px 0 10px 16px;
  padding: 8px 10px;
  border-left: 3px solid var(--gold, #c4a35a);
  background: var(--off, #f6f4ef);
}
.roster-reply p { margin: 4px 0 0; }
.phone-sms-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.phone-sms-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 4px 16px 0;
  box-sizing: border-box;
  background: transparent;
}
.phone-sms-seg.sms-seg {
  display: flex;
  width: 168px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 3px;
  flex: 0 0 168px;
  align-self: center;
  align-items: stretch;
  box-sizing: border-box;
}
.phone-sms-seg .sms-seg-tab {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: 26px;
  padding: 0 8px;
}
.sms-inbox {
  display: grid;
  grid-template-columns: minmax(280px, 32%) 1fr;
  flex: 1 1 auto;
  min-height: 0;
  margin: 8px 16px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sms-list {
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.sms-inbox button,
.sms-inbox select,
.sms-inbox textarea,
.sms-inbox summary,
.sms-inbox a {
  font-family: inherit;
}
.sms-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px 12px; min-height: 36px; }
.sms-list-title { margin: 0; flex: 1; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.sms-list-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.sms-edit-btn {
  border: 0; background: transparent; color: #007aff; font: inherit;
  font-size: 17px; font-weight: 400; line-height: 28px;
  height: 28px; padding: 0 8px; border-radius: 8px; cursor: pointer;
}
.sms-edit-btn[aria-pressed="true"] { font-weight: 400; }
.sms-select {
  display: none; position: relative;
  width: 22px; height: 22px; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.sms-select[hidden] { display: none !important; }
.sms-select::after {
  content: "";
  width: 22px; height: 22px; box-sizing: border-box;
  border: 1.5px solid #c7c7cc; border-radius: 50%; background: #fff;
}
.sms-inbox.is-editing .sms-thread-row.is-selected .sms-select::after {
  background-color: #007aff;
  border-color: #007aff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.2l2.4 2.4L12 5.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px 14px;
}
.sms-select input {
  appearance: none; -webkit-appearance: none;
  position: absolute; inset: 0; width: 22px; height: 22px; margin: 0;
  opacity: 0; border: 0; background: transparent;
  box-shadow: none; outline: none; pointer-events: none;
}
.sms-select input:focus,
.sms-select input:focus-visible,
.sms-select input:checked:focus,
.sms-select input:checked:focus-visible {
  outline: none; box-shadow: none; border-color: transparent;
}
.sms-inbox.is-editing .sms-select:not([hidden]) { display: inline-flex; }
.sms-inbox.is-editing .sms-thread-row { grid-template-columns: 22px 44px 1fr auto; cursor: pointer; }
.sms-inbox.is-editing .sms-compose-btn,
.sms-inbox.is-editing [data-sms-draft] { display: none; }
.sms-inbox.is-editing .sms-thread-row.is-active { background: transparent; color: inherit; }
.sms-inbox.is-editing .sms-thread-row.is-active em,
.sms-inbox.is-editing .sms-thread-row.is-active time { color: #8e8e93; }
.sms-inbox.is-editing .sms-thread-row.is-active .sms-avatar { background: #c7c7cc; color: #fff; }
.sms-inbox.is-editing .sms-thread-row.is-selected { background: #e8f1ff; }
.sms-inbox.is-editing .sms-thread-row:focus,
.sms-inbox.is-editing .sms-thread-row:focus-visible {
  outline: none; box-shadow: none;
}
.sms-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 6px 4px;
  border-top: 1px solid #f2f2f7;
}
.sms-bulk[hidden] { display: none !important; }
.sms-bulk-count { font-size: 13px; font-weight: 600; color: #3a3a3c; padding: 0 4px; }
.sms-bulk-count[hidden] { display: none !important; }
.sms-bulk button {
  border: 0; background: #f2f2f7; color: #007aff; border-radius: 999px;
  padding: 6px 10px; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer;
}
.sms-bulk button:disabled { color: #8e8e93; cursor: default; }
.sms-list-head .sms-compose-btn { flex: 0 0 auto; width: 28px; height: 28px; }
.sms-list-head .sms-compose-btn svg { width: 16px; height: 16px; }
.sms-search { position: relative; margin: 0 4px 12px; }
.sms-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #8e8e93; pointer-events: none;
}
.sms-search-icon svg { display: block; width: 16px; height: 16px; }
.sms-inbox .sms-search input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]) {
  width: 100%;
  height: auto;
  min-height: 36px;
  border: 0;
  background: #f2f2f7;
  border-radius: 999px;
  padding: 8px 16px 8px 38px;
  font: inherit;
  font-size: 15px;
  color: #3a3a3c;
  box-shadow: none;
}
.sms-search input::placeholder { color: #8e8e93; opacity: 1; }
.sms-list-more { position: relative; }
.sms-list-more-btn {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  list-style: none; cursor: pointer; color: #007aff; border: 0; background: transparent;
  border-radius: 8px; font-size: 18px; font-weight: 700; line-height: 1;
}
.sms-list-more-btn::-webkit-details-marker { display: none; }
.sms-filter { position: relative; }
.sms-filter-btn {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  list-style: none; cursor: pointer; color: #007aff; border-radius: 8px;
}
.sms-filter-btn:focus,
.sms-thread-more-btn:focus,
.sms-from-btn:focus,
.calls-filter-btn:focus,
.calls-keypad-btn:focus,
.list-more-btn:focus,
.record-more > summary:focus,
.row-menu-btn:focus,
.filter-menu [data-filter-open]:focus,
.nav-avatar:focus,
.topbar-notice-btn:focus,
.topbar-feedback-info:focus,
.sms-plus:focus,
.sms-emoji:focus,
[data-popover-toggle]:focus,
details[data-popover] > summary:focus {
  outline: none;
  box-shadow: none;
}
.sms-filter-btn:focus-visible,
.sms-thread-more-btn:focus-visible,
.sms-from-btn:focus-visible,
.calls-filter-btn:focus-visible,
.calls-keypad-btn:focus-visible,
.list-more-btn:focus-visible,
.record-more > summary:focus-visible,
.row-menu-btn:focus-visible,
.filter-menu [data-filter-open]:focus-visible,
.nav-avatar:focus-visible,
.topbar-notice-btn:focus-visible,
.topbar-feedback-info:focus-visible,
.sms-plus:focus-visible,
.sms-emoji:focus-visible,
[data-popover-toggle]:not(.sidebar-user-toggle):not(.nav-section-toggle):not(.sidebar-dock-item):focus-visible,
details[data-popover] > summary:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.28);
  outline-offset: 2px;
}
.app-sidebar .nav-section-toggle:focus,
.app-sidebar .sidebar-collapse:focus,
.app-sidebar .sidebar-dock-item:focus,
.app-sidebar .sidebar-bell-btn:focus,
.app-sidebar .nav-item:focus {
  outline: none;
}
.app-sidebar .nav-section-toggle:focus-visible,
.app-sidebar .sidebar-collapse:focus-visible,
.app-sidebar .sidebar-dock-item:focus-visible,
.app-sidebar .sidebar-bell-btn:focus-visible,
.app-sidebar .nav-item:focus-visible {
  outline: 1px solid rgba(16, 52, 86, 0.28);
  outline-offset: 1px;
  box-shadow: none;
}
.sidebar-user-toggle:focus-visible {
  outline: 1px solid rgba(16, 52, 86, 0.28);
  outline-offset: 1px;
  box-shadow: none;
}
.sms-filter-btn::-webkit-details-marker { display: none; }
.sms-filter-btn svg { width: 16px; height: 16px; }
.sms-filter-pop {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 5;
  min-width: 160px; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sms-filter-item {
  display: block; padding: 8px 12px; border-radius: 8px; color: #111; text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 400;
}
.sms-filter-item:hover { background: #f2f2f7; }
.sms-filter-item.is-active { color: #007aff; }
.sms-seg {
  display: flex;
  gap: 0;
  margin: 0 4px 14px;
  background: #f2f2f7;
  border-radius: 10px;
  padding: 3px;
}
.sms-seg-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}
.sms-seg-tab.is-active { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sms-seg-label { min-width: 0; }
.sms-seg-tab .sms-unread { margin-top: 0; flex: 0 0 auto; }
.sms-thread-list { overflow: auto; flex: 1; min-height: 0; }
.sms-thread-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 12px 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  align-items: center;
}
.sms-thread-row:hover { background: #f7f7f8; }
.sms-thread-row.is-active { background: #007aff; color: #fff; }
.sms-thread-row.is-active em,
.sms-thread-row.is-active time { color: rgba(255,255,255,.82); }
.sms-thread-row.is-active .sms-avatar { background: #fff; color: #007aff; }
.sms-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #c7c7cc; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  flex: 0 0 auto;
}
.sms-thread-copy { min-width: 0; }
.sms-thread-copy strong {
  display: block; font-size: 16px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sms-thread-copy em {
  display: block; font-style: normal; color: #8e8e93; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.sms-thread-meta { text-align: right; align-self: start; padding-top: 2px; }
.sms-thread-meta time { display: block; color: #8e8e93; font-size: 13px; }
.sms-unread {
  display: inline-block; min-width: 1.4em; padding: 1px 6px; border-radius: 999px;
  background: #007aff; color: #fff; font-size: 11px; text-align: center; margin-top: 4px;
}
.sms-thread-row.is-active .sms-unread { background: #fff; color: #007aff; }
.sms-empty-list, .sms-empty-main, .sms-empty-thread {
  color: #8e8e93; text-align: center; padding: 48px 16px; font-size: 17px; margin: 0;
}
.sms-empty-main { flex: 1; display: flex; align-items: center; justify-content: center; }
.sms-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 8px 8px 12px; }
.sms-thread-chrome {
  flex: 0 0 auto;
  flex-grow: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #fff;
  margin: 0;
}
.sms-thread-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 8px 8px 4px;
  flex: 0 0 auto;
  border-bottom: 0;
}
.sms-thread-title { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sms-thread-title .sms-avatar { width: 52px; height: 52px; font-size: 18px; margin-bottom: 4px; }
.sms-thread-title strong { font-size: 16px; }
.sms-thread-phone, .sms-thread-via { color: #8e8e93; font-size: 12px; font-weight: 600; line-height: 1.3; }
.sms-from-menu { position: relative; min-width: 0; }
.sms-from-btn {
  width: 100%;
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  appearance: none;
  border: 1px solid #8e8e93;
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  border-radius: 10px;
  padding: 8px 36px 8px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #3a3a3c;
}
.sms-from-btn:disabled { color: #8e8e93; cursor: not-allowed; }
.sms-from-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6;
  padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sms-top .sms-from-pop {
  top: calc(100% + 4px); bottom: auto;
}
.sms-from-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 12px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer;
}
.sms-from-option:hover { background: #f2f2f7; }
.sms-from-option.is-off, .sms-from-option:disabled { color: #8e8e93; cursor: not-allowed; font-weight: 500; }
.sms-from-option.is-selected { color: #007aff; }
.sms-from-check { color: #007aff; font-weight: 700; }
.sms-thread-tools { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 2px; justify-self: end; }
.sms-call-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: #007aff; border-radius: 10px; text-decoration: none;
}
.sms-call-btn svg { width: 18px; height: 18px; }
.sms-call-btn:hover { background: #f2f2f7; }
.sms-thread-more { position: relative; justify-self: end; }
.sms-thread-more-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  list-style: none; cursor: pointer; color: #007aff; font-size: 20px; border-radius: 10px;
}
.sms-thread-more-btn::-webkit-details-marker { display: none; }
.sms-thread-more-pop {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 5;
  min-width: 248px; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sms-thread-more-pop button,
.sms-thread-more-pop a {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 12px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer;
  color: #111; text-decoration: none; white-space: nowrap;
}
.sms-cancel-btn {
  font: inherit; font-size: 17px; font-weight: 400; color: #007aff;
  text-decoration: none; padding: 4px 8px; border-radius: 8px; justify-self: end;
}
.sms-thread-more-pop button:hover,
.sms-thread-more-pop a:hover { background: #f2f2f7; }
.sms-link-pop {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 6;
  min-width: 320px; width: min(360px, 92vw);
  padding: 10px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: 8px;
}
.sms-link-pop[hidden] { display: none !important; }
.sms-link-pop input[data-sms-link-q] {
  width: 100%; min-width: 0; height: 36px; box-sizing: border-box;
  border: 1px solid #d1d1d6; border-radius: 8px; padding: 0 10px; font-size: 14px;
  background: #fff; color: #3a3a3c; box-shadow: none;
}
.sms-link-pop input[data-sms-link-q]:focus {
  outline: none; border-color: #d1d1d6; box-shadow: none;
}
.sms-link-pop input[data-sms-link-q]:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.28); outline-offset: 2px;
  border-color: #d1d1d6; box-shadow: none;
}
.sms-link-list { overflow: auto; max-height: 240px; display: flex; flex-direction: column; gap: 2px; }
.sms-link-hit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 8px; font: inherit; cursor: pointer; color: #111;
}
.sms-link-hit:hover, .sms-link-hit.is-active { background: #f2f2f7; }
.sms-link-hit strong {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 700;
}
.sms-link-hit span {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  color: #8e8e93; font-size: 12px; white-space: nowrap;
}
.sms-link-tag {
  display: inline-flex; align-items: center; padding: 1px 6px;
  border-radius: 999px; background: #f2f2f7; color: #636366;
  font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap;
}
.sms-link-empty { margin: 0; padding: 8px 10px; color: #8e8e93; font-size: 13px; }
.sms-blocked-note { margin: 0; padding: 12px 16px; color: #8e8e93; font-size: 14px; text-align: center; }
.sms-compose-btn, .sms-back {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: #007aff; text-decoration: none; border-radius: 10px; background: transparent; border: 0;
}
.sms-compose-btn.is-active, .sms-compose-btn:hover { background: #f2f2f7; }
.sms-back { font-size: 28px; line-height: 1; }
.sms-back-spacer { width: 36px; }
.sms-bubbles { flex: 1 1 auto; overflow: auto; min-height: 0; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 0; }
.sms-bubbles > :first-child { margin-top: auto; }
.sms-bubbles > .sms-empty-thread { margin: auto; }
.sms-day { align-self: center; color: #8e8e93; font-size: 12px; font-weight: 600; margin: 14px 0 10px; }
.sms-bubble-wrap { display: flex; flex-direction: column; max-width: 78%; }
.sms-bubble-wrap.is-in { align-self: flex-start; align-items: flex-start; }
.sms-bubble-wrap.is-out { align-self: flex-end; align-items: flex-end; }
.sms-bubble { max-width: 100%; padding: 8px 14px; border-radius: 18px; }
.sms-bubble.is-in { background: #e9e9eb; color: #111; border-bottom-left-radius: 6px; }
.sms-bubble.is-out { background: #007aff; color: #fff; border-bottom-right-radius: 6px; }
.sms-bubble p { margin: 0; white-space: pre-wrap; font-size: 16px; line-height: 1.35; }
.sms-media { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.sms-bubble p + .sms-media { margin-top: 8px; }
.sms-media-img { display: block; border-radius: 12px; overflow: hidden; max-width: 240px; }
.sms-media-img img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: cover; }
.sms-bubble.is-out .sms-media-img { outline: 1px solid rgba(255,255,255,.25); }
.sms-media-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.08);
  color: inherit; text-decoration: none; font-size: 13px; font-weight: 600;
}
.sms-bubble.is-out .sms-media-chip { background: rgba(255,255,255,.18); color: #fff; }
.sms-lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.78);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.sms-lightbox[hidden] { display: none !important; }
.sms-lightbox img { max-width: min(92vw, 920px); max-height: 88vh; border-radius: 12px; }
.sms-lightbox-x {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #fff; color: #111; font-size: 20px; cursor: pointer;
}
.sms-meta { color: #8e8e93; font-size: 11px; padding: 3px 6px 8px; line-height: 1.35; }
.sms-meta.is-detail { cursor: pointer; text-decoration: underline; }
.sms-bubble-wrap.is-failed .sms-meta { color: #ff3b30; }
.sms-receipt { align-self: flex-end; color: #8e8e93; font-size: 12px; padding: 0 8px 10px; }
.sms-thread-form { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sms-thread-form.is-compose { flex: 1; }
.sms-composer {
  flex: 0 0 auto;
  padding: 8px 16px 10px;
  background: #f2f2f7;
  border-top: 1px solid #e5e5ea;
}
.sms-composer.is-dragover {
  outline: 2px dashed #007aff;
  outline-offset: -4px;
  background: #e8f1ff;
}
.sms-attach-error { margin: 0 0 8px; color: #ff3b30; font-size: 13px; }
.sms-attach-error[hidden] { display: none !important; }
.sms-top .sms-from { padding: 0; }
.sms-composer-controls {
  padding: 0; flex: 0 0 auto; position: relative;
  background: transparent; border-top: 0;
}
.sms-attach-chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px;
}
.sms-attach-chips[hidden] { display: none !important; }
.sms-composer .file-upload-list,
.sms-composer .file-upload-list.inset-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0;
  border: 0; background: transparent;
}
.sms-composer .file-upload-item,
.sms-composer .inset-list > li.file-upload-item {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  min-height: 0; padding: 4px 8px 4px 10px;
  background: #fff; border: 1px solid #d1d1d6; border-radius: 999px;
  font-size: 13px; color: #3a3a3c;
}
.sms-composer .file-upload-name { font-size: 13px; max-width: 160px; }
.sms-composer .file-upload-size { font-size: 12px; }
.sms-composer .file-upload-remove {
  width: 18px; height: 18px; min-height: 18px; border-radius: 50%;
  background: #e5e5ea; color: #3a3a3c; font-size: 13px;
}
.sms-composer .file-upload-error { margin: 0 0 8px; }
.sms-attach-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  background: #fff; border: 1px solid #d1d1d6; border-radius: 999px;
  padding: 4px 8px 4px 10px; font-size: 13px; color: #3a3a3c;
}
.sms-attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.sms-attach-chip button {
  width: 18px; height: 18px; border: 0; border-radius: 50%; padding: 0;
  background: #e5e5ea; color: #3a3a3c; font-size: 13px; line-height: 1; cursor: pointer;
}
.sms-compose-spacer { flex: 1; }
.sms-top { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 10px; border-bottom: 1px solid #f2f2f7; flex: 0 0 auto; flex-grow: 0; flex-shrink: 0; margin: 0; margin-top: 0; position: relative; z-index: 2; background: #fff; }
.sms-to, .sms-from {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  margin-top: 0;
  position: relative;
  flex: 0 0 auto;
}
.sms-to label, .sms-from label { color: #3a3a3c; font-size: 14px; font-weight: 600; min-width: 0; padding-top: 0; }
.sms-to-wrap {
  position: relative; min-width: 0; min-height: 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  border: 1px solid #8e8e93; border-radius: 10px; background: #fff;
  padding: 4px 8px;
}
.sms-chips { display: contents; }
.sms-to-wrap input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([data-sms-picker-q]) {
  flex: 1; min-width: 120px; width: auto; height: 32px; min-height: 32px; max-height: 36px;
  border: 0; border-radius: 0; background: transparent;
  padding: 0 4px; font-size: 15px; color: #3a3a3c; box-shadow: none;
}
.sms-to-picker-btn {
  width: 32px; height: 32px; border: 0; background: transparent; color: #007aff;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer;
}
.sms-to-picker-btn svg { width: 20px; height: 20px; }
.sms-to-picker-btn:focus { outline: none; }
.sms-to-picker-btn:focus-visible { outline: 2px solid rgba(0, 122, 255, 0.28); outline-offset: 2px; }
.sms-picker {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 4;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 320px;
}
.sms-picker[hidden] { display: none !important; }
.sms-picker input[data-sms-picker-q] {
  width: 100%; min-width: 0; height: 36px; border: 1px solid #d1d1d6; border-radius: 8px;
  padding: 0 10px; font-size: 14px;
}
.sms-picker-list { overflow: auto; display: flex; flex-direction: column; gap: 2px; min-height: 80px; }
.sms-picker-row {
  display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center;
  padding: 8px; border-radius: 8px; cursor: pointer;
}
.sms-picker-row:hover { background: #f2f2f7; }
.sms-picker-row.is-off { opacity: 0.5; cursor: not-allowed; color: #8e8e93; }
.sms-picker-row strong { display: block; font-size: 14px; }
.sms-picker-row em { display: block; font-style: normal; font-size: 12px; color: #8e8e93; }
.sms-picker-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sms-multi-note { margin: 0; padding: 0 16px 8px; color: #8e8e93; font-size: 13px; }
.sms-multi-note[hidden] { display: none !important; }
.sms-confirm {
  margin: 8px 16px 0; padding: 12px 14px; border: 1px solid #e5e5ea; border-radius: 12px; background: #f9f9fb;
}
.sms-confirm[hidden] { display: none !important; }
.sms-confirm-title { margin: 0 0 8px; font-weight: 700; }
.sms-confirm-list { margin: 0 0 10px; padding-left: 18px; }
.sms-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sms-chip-status { font-size: 11px; color: #34c759; font-weight: 600; }
.sms-chip[data-failed] .sms-chip-status { color: #ff3b30; }
.sms-from .sms-from-menu { width: 100%; max-width: none; }
.sms-chip { display: inline-flex; align-items: center; gap: 6px; background: #e8f1ff; color: #007aff; border-radius: 999px; padding: 4px 10px 4px 12px; }
.sms-chip[hidden] { display: none !important; }
.sms-chip-name { border: 0; background: transparent; color: inherit; font-weight: 700; }
.sms-chip-number { display: inline; font-size: 13px; color: #3a3a3c; }
.sms-chip-clear { border: 0; background: transparent; color: #8e8e93; }
.sms-to-results {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); border-radius: 12px; z-index: 3; padding: 6px;
}
.sms-to-hit { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; }
.sms-to-hit:hover, .sms-to-hit.is-active { background: #f2f2f7; }
.sms-to-hit.is-off, .sms-to-hit:disabled { color: #8e8e93; cursor: default; }
.sms-to-hit span { color: #8e8e93; font-size: 13px; }
.sms-pill {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #8e8e93; border-radius: 22px; padding: 6px 8px 6px 6px;
}
.sms-icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5e5ea; color: #3a3a3c; cursor: pointer;
}
.sms-icon-btn svg { width: 18px; height: 18px; display: block; }
.sms-plus, .sms-emoji { background: #e5e5ea; color: #3a3a3c; }
.sms-library { max-height: 220px; overflow: auto; border-top: 1px solid #f2f2f7; }
.sms-library .sms-plus-item { display: flex; flex-direction: column; gap: 2px; }
.sms-library .sms-plus-item span { color: #8e8e93; font-size: 12px; font-weight: 500; }
.sms-send { background: #007aff; color: #fff; }
.sms-send:disabled { opacity: 0.4; cursor: default; }
.sms-emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 8px 0 0;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.sms-emoji-btn {
  width: 32px; height: 32px; border: 0; background: transparent; font-size: 18px; border-radius: 8px; cursor: pointer;
}
.sms-emoji-btn:hover { background: #f2f2f7; }
.sms-composer-controls .sms-pill textarea,
.sms-composer-controls .sms-pill textarea:hover,
.sms-composer-controls .sms-pill textarea:focus,
.sms-composer-controls .sms-pill textarea:focus-visible,
.sms-composer-controls .sms-pill textarea:active {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  width: auto;
  min-width: 0;
  border: 0;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
  border-color: transparent;
  border-radius: 0;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  height: 24px;
  padding: 6px 4px;
  font-size: 16px;
}
.sms-pill:focus-within {
  border-color: #636366;
  box-shadow: none;
}
.sms-send.is-sending { opacity: 0.7; pointer-events: none; }
.sms-send.is-ok { background: #34c759; }
.sms-send.is-error { background: #ff3b30; }
.sms-send .sms-send-spin {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: sms-spin .6s linear infinite;
}
@keyframes sms-spin { to { transform: rotate(360deg); } }
.sms-bubble-wrap.is-pending .sms-bubble { opacity: 0.72; }
.sms-bubble-wrap.is-failed .sms-bubble { background: #ff3b30; }
.sms-retry { border: 0; background: transparent; color: #ff3b30; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0 8px 8px; }
.sms-plus-menu {
  margin: 8px 0 0; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.1); overflow: hidden;
}
.sms-plus-item, .sms-plus-group .sms-plus-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 14px; font-size: 15px;
}
.sms-plus-item[hidden], .sms-plus-menu[hidden], .sms-library[hidden], .sms-later[hidden] { display: none !important; }
.sms-plus-item.is-muted { color: #8e8e93; }
.sms-later, .sms-via { margin-top: 8px; font-size: 13px; color: #8e8e93; }
.sms-override {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  font-size: 13px; font-weight: 500; color: #3a3a3c; text-decoration: none; cursor: help;
}
.sms-override input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: #007aff; flex: 0 0 auto; }
.sms-override-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sms-override-label { font-weight: 600; }
.sms-override-help { font-size: 12px; font-weight: 400; color: #8e8e93; line-height: 1.35; }
.sms-sender-row { border: 1px solid var(--grey); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
@media (max-width: 800px) {
  .sms-inbox { grid-template-columns: 1fr; height: 100%; min-height: 0; }
  .sms-inbox.has-thread .sms-list { display: none; }
  .sms-inbox.is-list .sms-thread { display: none; }
  .calls-inbox .calls-keypad-col { display: none; }
  .sms-back { display: inline-flex; }
}
@media (min-width: 801px) {
  .sms-back { visibility: hidden; pointer-events: none; }
  .calls-inbox { grid-template-columns: minmax(240px, 30%) minmax(0, 1fr) 260px; }
  .calls-inbox.is-list { grid-template-columns: minmax(280px, 32%) 1fr; }
  .calls-inbox.is-list .sms-thread { display: none; }
  .calls-inbox.is-list .calls-keypad-col,
  .calls-inbox.is-list .sms-list { display: flex; }
}
.topbar-call-actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}
.topbar-call-actions:not([hidden]) { display: inline-flex; }
.topbar-call-copy { display: flex; flex-direction: column; min-width: 0; padding: 0 6px; }
.topbar-call-copy strong { font-size: 13px; line-height: 1.2; }
.topbar-call-copy span { font-size: 11px; color: #c7c7cc; }
.topbar-call-btn {
  border: 0; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.topbar-call-btn.is-answer { background: #34c759; color: #fff; }
.topbar-call-btn.is-decline { background: #ff3b30; color: #fff; }
.topbar-call-btn.is-mute { background: #3a3a3c; color: #fff; }
.topbar-call-actions.is-muted .topbar-call-btn.is-mute { background: #8e8e93; }
.live-toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 24px));
  max-height: none;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: auto;
  pointer-events: none;
}
.live-toast[hidden] { display: none !important; }
.live-toast[data-toast-more] {
  grid-template-columns: minmax(0, 1fr);
  cursor: pointer;
}
.live-toast {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 14px 14px;
  background: var(--white);
  border: 1px solid rgba(16, 52, 86, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(16, 52, 86, 0.10), 0 1px 2px rgba(16, 52, 86, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: live-toast-in .22s ease-out;
}
@keyframes live-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.live-toast-x {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: #e5e5ea; color: #3a3a3c; font-size: 11px; line-height: 18px;
  padding: 0; cursor: pointer; text-align: center;
}
.live-toast-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f2f2f7; color: #fff; flex: 0 0 auto;
}
.live-toast-ico svg { width: 22px; height: 22px; display: block; }
.live-toast-ico.is-sms { background: #34c759; }
.live-toast-ico.is-helpdesk { background: #c5a572; }
.live-toast-ico.is-lead { background: #007aff; }
.live-toast-ico.is-call { background: #30d158; }
.live-toast-ico.is-liveops { background: #1c3d5a; }
.live-toast-ico.is-desktop { background: #5856d6; }
.live-toast-copy { min-width: 0; padding-right: 10px; }
.live-toast-copy strong { display: block; font-size: 14px; font-weight: 700; color: #111; letter-spacing: -.01em; }
.live-toast-sub {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  color: #8e8e93;
  letter-spacing: .01em;
}
.live-toast-copy p {
  margin: 3px 0 0; font-size: 13px; color: #3a3a3c; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.live-toast-actions {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding-left: 12px; border-left: 1px solid rgba(60,60,67,.12); min-width: 72px;
}
.live-toast-act {
  border: 0; background: transparent; color: #007aff; font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center; cursor: pointer; padding: 2px 0;
}
.live-toast-act.is-danger { color: #ff3b30; }
.live-toast-offer .live-toast-copy strong { font-weight: 600; }
.active-call-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 16px 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1c1c1e;
  color: #fff;
}
.active-call-bar:not([hidden]) { display: flex; }
.active-call-copy { display: flex; flex-direction: column; min-width: 0; }
.active-call-copy strong { font-size: 14px; }
.active-call-copy time { font-size: 12px; color: #c7c7cc; font-variant-numeric: tabular-nums; }
.active-call-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.active-call-btn {
  border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700;
  background: #3a3a3c; color: #fff; cursor: pointer;
}
.active-call-btn.is-hangup { background: #ff3b30; }
.active-call-bar.is-muted .active-call-btn[data-active-call-mute] { background: #8e8e93; }
.calls-inbox.is-editing .sms-thread-row { grid-template-columns: 22px 44px 1fr auto; }
.calls-inbox.is-editing .sms-select:not([hidden]) { display: inline-flex; }
.sms-thread-row.is-missed:not(.is-active) .calls-name { color: #ff3b30; }
.calls-thread { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.calls-keypad-col {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 12px 16px; background: #f7f7f8; min-width: 0; min-height: 0; overflow: auto;
}
.calls-detail {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 4px 16px 16px;
}
.calls-detail-meta { margin: 0 0 12px; color: #8e8e93; font-size: 13px; }
.calls-media { margin: 0 0 16px; }
.calls-media h3 { margin: 0 0 6px; font-size: 14px; }
.calls-media audio { width: 100%; }
.calls-notes label { display: block; font-weight: 600; margin-bottom: 8px; }
.calls-notes textarea { width: 100%; }
.calls-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.calls-keypad-col .calls-key,
.calls-keypad-col .calls-keypad-call {
  width: 56px; height: 56px; font-size: 20px;
}
.calls-keypad-col .calls-keypad-number { font-size: 22px; margin: 0 0 10px; }
.calls-from {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #6e6e73);
}
.calls-from span { flex: 0 0 auto; }
.calls-from select,
.calls-from select:focus {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 38px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  font-weight: 600;
  color: var(--navy);
}
.calls-keypad-col .calls-keypad-grid { gap: 8px; }
.calls-keypad-col .calls-keypad-back { right: 0; bottom: 8px; }
.calls-keypad-docked {
  position: relative;
  width: 100%;
  max-width: 240px;
}
.calls-keypad-pop {
  position: absolute;
  right: 16px;
  top: 58px;
  z-index: 40;
  width: min(320px, calc(100vw - 24px));
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.calls-keypad { width: 100%; max-width: 320px; }
.calls-keypad-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.calls-keypad-match { min-height: 22px; text-align: center; font-size: 14px; color: #8e8e93; }
.calls-keypad-number-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 0 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.calls-keypad-number-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--navy);
}
.calls-keypad-number-ico svg { display: block; width: 18px; height: 18px; }
.calls-keypad-number,
.calls-keypad-number:focus,
.calls-keypad-number-field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.calls-keypad-number-field input:focus:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]) {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #111;
}
.calls-keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calls-key {
  border: 0; border-radius: 50%; width: 72px; height: 72px; margin: 0 auto;
  background: #e5e5ea; color: #111; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500; line-height: 1;
}
.calls-key small { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #6c6c70; }
.calls-keypad-call {
  grid-column: 2; width: 72px; height: 72px; margin: 4px auto 0; border: 0; border-radius: 50%;
  background: #34c759; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.calls-keypad-call[disabled] { opacity: .45; cursor: not-allowed; }
.calls-keypad-call svg, .calls-keypad-back svg { width: 26px; height: 26px; display: block; }
.calls-keypad-back {
  position: absolute; right: 28px; bottom: 28px; border: 0; background: transparent; color: #3a3a3c;
  width: 44px; height: 44px; cursor: pointer;
}
.calls-off-note { margin: 0 0 8px; font-size: 13px; color: #8e8e93; }
.calls-demo-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff8eb;
  border: 1px solid #e6c98a;
  color: #3a3a3c;
  font-size: 14px;
}
.calls-demo-banner strong { color: #7a5a12; }
.calls-demo-incoming {
  border: 1px solid #e6c98a;
  background: #fff8eb;
  color: #7a5a12;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.calls-demo-incoming:hover { background: #fff1d4; }
.topbar-call-demo,
.active-call-demo {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #c9a227;
  text-transform: uppercase;
}
.topbar-call-actions.is-demo,
.active-call-bar.is-demo {
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45);
}
@media (max-width: 800px) {
  .live-toasts { right: 8px; bottom: 8px; }
  .topbar-call-copy span { display: none; }
  .calls-keypad-pop { right: 8px; left: 8px; top: auto; bottom: 8px; width: auto; }
  .active-call-bar { margin: 8px; flex-wrap: wrap; }
}
.integration-advanced { margin: 12px 0 0; }
.integration-advanced summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.integration-advanced .muted { margin: 8px 0 12px; }
.lo-alert { background: #f8eaea; color: #8a1f1f; border: 1px solid #e2b8b8; border-radius: 8px; padding: 14px 16px; }
.lo-alert .btn { margin-top: 8px; }
.data-table:has([data-lo-row]) {
  table-layout: fixed;
  width: 100%;
}
.data-table:has([data-lo-row]) th,
.data-table:has([data-lo-row]) td {
  padding: 7px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.data-table:has([data-lo-row]) th.lo-name,
.data-table:has([data-lo-row]) td.lo-name,
.data-table:has([data-lo-row]) th.lo-site,
.data-table:has([data-lo-row]) td.lo-site {
  white-space: nowrap;
}
.data-table:has([data-lo-row]) .lo-when-cell { min-width: 6rem; }
.data-table:has([data-lo-row]) .lo-num { min-width: 4.25rem; }
.data-table:has([data-lo-row]) td.lo-action { overflow: visible; min-width: 2.75rem; }
.data-table:has([data-lo-row]) .lo-status .badge {
  padding: 3px 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table:has([data-lo-row]) .lo-licence-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table:has([data-lo-row]) .badge.active {
  background: #c6f6d5;
  color: #027a48;
}
.lo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.lo-dot.is-grey { background: #9aa0a8; }
.data-table th.is-center,
.data-table td.is-center { text-align: center; }
.data-table td.is-center .list-more { display: inline-flex; justify-content: center; }
.data-table td.is-center .lo-actions { align-items: center; }
.data-table td.is-center .lo-action-tools { justify-content: center; }
.lo-when-cell,
.lo-num { white-space: nowrap; }
.lo-when { display: inline; font-weight: 650; white-space: nowrap; }
.lo-when-date { font-size: 11px; font-weight: 600; color: var(--muted); }
.lo-when-time { font-weight: 650; }
.lo-late-stack { display: inline-flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 4px; line-height: 1.1; vertical-align: middle; }
.lo-late-num { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.lo-late-unit { font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lo-dot.is-green { background: #12b76a; }
.lo-dot.is-orange { background: #f59e0b; }
.lo-dot.is-red { background: #dc2626; }
.lo-licence-check {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
}
.lo-licence-status { font-weight: 650; }
.lo-licence-hint { font-size: 11px; color: var(--muted); }
.lo-licence-check.is-valid .lo-licence-status { color: #027a48; }
.lo-licence-check.is-expired .lo-licence-status { color: #b42318; }
.lo-licence-check.is-failed .lo-licence-status { color: #b42318; }
.lo-licence-check.is-not_found .lo-licence-status,
.lo-licence-check.is-needs_number .lo-licence-status { color: #b45309; }
.lo-licence-check.is-pending .lo-licence-status { color: #1d4f73; }
.lo-licence-check.is-not_checked .lo-licence-status { color: #6c6c6c; }
.lo-licence-check.is-due .lo-licence-status { color: #b45309; }
.lo-licence-check.is-unmatched .lo-licence-status { color: #6c6c6c; }
.lo-licence-check.is-not_required { overflow: visible; }
.lo-licence-check.is-not_required .lo-licence-status { color: #6c6c6c; font-weight: 550; white-space: nowrap; }
.lo-licence-no { color: var(--navy); font-weight: 650; text-decoration: none; }
.lo-late { color: var(--warn); font-size: 12px; font-weight: 600; }
.lo-tag { color: var(--muted); font-size: 12px; }
.lo-name a { color: var(--navy); font-weight: 650; text-decoration: none; }
.lo-name .hint { margin-top: 2px; }
.lo-name, .lo-partner { white-space: nowrap; }
.lo-synced { display: inline-block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lo-ops-login { margin-left: 10px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ops-reveal code { display: inline-block; min-width: 12rem; padding: 0.2rem 0.45rem; font-size: 1rem; user-select: all; background: var(--off); }
.ops-reveal input[type="password"] {
  display: inline-block;
  min-width: 12rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--off);
  letter-spacing: 0.15em;
}
.lo-synced.is-warn { color: var(--warn); font-weight: 600; }
.lo-synced[data-lo-failed="1"] { cursor: pointer; }
.lo-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lo-action-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.lo-note-mark {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: #e4edf4;
  color: var(--navy);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.lo-note-mark[hidden] { display: none; }
.lo-notes { display: grid; gap: 10px; margin: 12px 0 16px; }
.lo-note { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fb; }
.lo-note p { margin: 0; }
.lo-note .muted { margin-top: 6px; }
.data-table td .list-more { position: relative; z-index: 4; }
.data-table td .list-more[open] { z-index: 20; }
.data-list:has([data-lo-row-menu][open]),
.data-list:has(details[data-popover][open]),
.data-list-table:has([data-lo-row-menu][open]),
.data-list-table:has(details[data-popover][open]) { overflow: visible; }
.data-table tr:nth-last-child(-n+3) .list-more-pop {
  top: auto;
  bottom: calc(100% + 6px);
}
.lo-contacted { font-size: 10px; color: var(--muted); min-height: 0; line-height: 1.2; }
.lo-contacted:empty { display: none; }
.lo-icon { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--navy); cursor: pointer; }
.lo-modal { position: fixed; inset: 0; background: rgba(16,52,86,.45); display: none; align-items: center; justify-content: center; z-index: 30; padding: 24px; }
.lo-modal:not([hidden]) { display: flex; }
.lo-card { background: #fff; border-radius: 10px; width: min(920px, 100%); max-height: 90vh; overflow: auto; padding: 22px; }
.lo-card h2 { margin: 0 0 14px; color: var(--navy); }
.lo-card h3 { margin: 0 0 8px; font-size: 14px; color: var(--navy); }
.lo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lo-photo { width: 100%; aspect-ratio: 4/3; background: #d9e4ee; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 700; }
.lo-photo-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #d9e4ee; }
.lo-badge { display: inline-block; margin-left: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.lo-filter-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lo-filter-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lo-sites { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.lo-sites label { display: block; padding: 4px 0; }
body.is-lo-tv .app-sidebar,
body.is-lo-tv .app-topbar,
body.is-lo-tv .proto-banner,
body.is-lo-tv .page-head,
body.is-lo-tv .active-call-bar { display: none !important; }
body.is-lo-tv .app-shell { display: block; }
body.is-lo-tv .app-main .page { width: 100%; padding: 16px; }
body.is-lo-tv .data-table { font-size: 18px; }
body.is-lo-tv .page-h1 { font-size: 28px; }
@media (max-width: 720px) {
  .lo-split, .lo-filter-cols { grid-template-columns: 1fr; }
}
.page-stack > .staff-inbox,
.page-stack > .list-page:has(.staff-inbox) { flex: 1 1 auto; min-height: 0; }
.page-stack > .list-toolbar,
.list-page > .list-toolbar { flex: 0 0 auto; }
.list-page:has(.staff-inbox) {
  display: flex;
  flex-direction: column;
  gap: var(--list-stack-gap);
  min-height: 0;
  overflow: hidden;
}
.list-page > .staff-inbox { flex: 1 1 auto; min-height: 0; }
.staff-inbox {
  display: grid;
  grid-template-columns: minmax(280px, 32%) 1fr;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.staff-list {
  display: flex;
  flex-direction: column;
  padding: 0 12px 0 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.staff-sync-census { margin: 0 0 10px; font-size: 13px; }
.staff-list .data-list-pager { margin: 8px 4px 0; padding: 8px 0 0; border-top: 1px solid var(--line); flex-shrink: 0; }
.staff-row-list { overflow: auto; flex: 1; min-height: 0; }
.staff-list-empty { padding: 16px 8px; }
.staff-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.staff-row:hover { background: #f7f7f8; }
.staff-row.is-active { background: #007aff; color: #fff; }
.staff-row.is-active em { color: rgba(255,255,255,.82); }
.staff-row.is-active .staff-row-mug { background: #fff; color: #007aff; }
.staff-row.is-active .badge { background: rgba(255,255,255,.18); color: #fff; }
.staff-row-mug, .staff-mug {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c7c7cc;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}
.staff-row-mug { width: 36px; height: 36px; font-size: 12px; }
.staff-mug { width: 52px; height: 52px; font-size: 16px; }
.staff-row-copy { min-width: 0; }
.staff-row-copy strong { display: block; font-size: 14px; }
.staff-row-copy em { display: block; font-size: 12px; color: var(--muted); font-style: normal; }
.staff-detail { overflow: auto; min-width: 0; padding: var(--space-4); }
.staff-detail-empty { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.staff-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
}
.staff-detail-identity { display: flex; align-items: flex-start; gap: var(--space-4); min-width: 0; }
.staff-detail-name { margin: 0 0 var(--space-1); font-size: var(--text-page); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--navy); }
.staff-detail-sub { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-body); }
.staff-detail-badges { margin: 0 0 var(--space-2); }
.staff-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1); font-size: var(--text-body); }
.staff-quick-actions a, .staff-quick-actions span { color: var(--navy); text-decoration: none; font-weight: 600; }
.staff-quick-actions a:hover { color: var(--gold); }
.staff-quick-sep { color: var(--muted); font-weight: 400; padding: 0 2px; }
.staff-quick.is-disabled { opacity: .45; pointer-events: none; }
.record-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1); font-size: var(--text-body); }
.record-contacts a { color: var(--navy); text-decoration: none; font-weight: 600; }
.record-contacts a:hover { color: var(--gold); }
.staff-detail .list-tabs { margin: 28px 0 24px; }
.staff-coming-soon { margin-top: 8px; }
.staff-list-toggle { margin-left: 8px; }
.board-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}
.board-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.board-swatch.is-on {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px #fff;
}
.board-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.board-column-grid {
  display: grid;
  gap: 16px;
}
.board-column-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.board-column-card h3 {
  margin: 0;
}
.board-stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.board-stage-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--off);
}
.page-stack > .roster-page {
  flex: 1 1 auto;
  min-height: 0;
}
.roster-page {
  display: flex;
  flex-direction: column;
  gap: var(--list-stack-gap);
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.roster-page > * { margin-block: 0; }
.roster-page .list-tabs { flex: 0 0 auto; margin: 0; }
.roster-page .list-toolbar,
.roster-page [data-stat-cards] { flex: 0 0 auto; }
.roster-toolbar {
  flex: 0 0 auto;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
.roster-publish { display: inline-flex; margin: 0; }
.roster-page .list-more-btn,
.roster-page .btn.list-more-btn,
.roster-page .btn.ghost.list-more-btn {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.roster-page .list-more-btn:hover,
.roster-page .btn.list-more-btn:hover,
.roster-page .btn.ghost.list-more-btn:hover {
  background: var(--white);
  border-color: #c5cad3;
  color: var(--navy);
}
.roster-example-banner {
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  background: #fff8e8;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.roster-example-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff1d2;
  color: #8a5a00;
  font-size: 10px;
  font-weight: 700;
}
.roster-body {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.roster-scroller {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.roster-scroller .cal-month {
  min-width: 0;
  border: 0;
}
.roster-grid {
  display: grid;
  grid-template-columns: 200px repeat(var(--days, 7), minmax(0, 1fr));
  min-width: 0;
  background: var(--white);
}
.roster-grid > [hidden] {
  display: none !important;
}
.roster-grid.is-fortnight {
  grid-template-columns: 200px repeat(14, minmax(96px, 1fr));
  min-width: calc(200px + (14 * 96px));
}
.roster-corner,
.roster-dayhead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #eef1f4;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.roster-corner { left: 0; z-index: 4; }
.roster-name,
.roster-group {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  border-bottom: 1px solid #eef1f4;
  border-right: 1px solid var(--line);
  padding: 3px 8px;
  min-height: 22px;
}
.roster-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.roster-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-name em { color: var(--muted); font-style: normal; }
.roster-name strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.roster-name.is-open-row,
.roster-cell.has-open {
  background: color-mix(in srgb, var(--cyan) 8%, #fff);
}
.roster-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.roster-group.is-client { background: #f4f7fa; }
.roster-group.is-site { background: #f8fafc; padding-left: 16px; }
.roster-group.is-empty { color: var(--muted); font-weight: 600; }
.roster-group-pad { border-bottom: 1px solid #eef1f4; min-height: 22px; }
.roster-group-pad.is-client { background: color-mix(in srgb, var(--navy) 3%, #fff); }
.roster-group-pad.is-site { background: color-mix(in srgb, var(--navy) 1.5%, #fff); }
.roster-group-btn {
  appearance: none;
  border: 0;
  background: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.roster-group-btn::before {
  content: "▾";
  display: inline-block;
  width: 12px;
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
}
.roster-group.is-collapsed .roster-group-btn::before { content: "▸"; }
.roster-group-meta {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.roster-group-link { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--cyan); }
.roster-cell {
  min-height: 24px;
  padding: 2px;
  border-bottom: 1px solid #eef1f4;
  border-right: 1px solid #eef1f4;
  display: grid;
  align-content: start;
  gap: 2px;
  position: relative;
  background: #fff;
}
.roster-cell.is-empty { min-height: 24px; }
.roster-dayhead.is-alt-day,
.roster-cell.is-alt-day,
.roster-group-pad.is-alt-day,
.roster-total.is-alt-day {
  background: #f3f5f8;
}
.roster-group-pad.is-client.is-alt-day { background: color-mix(in srgb, var(--navy) 3%, #f3f5f8); }
.roster-group-pad.is-site.is-alt-day { background: color-mix(in srgb, var(--navy) 1.5%, #f3f5f8); }
.roster-dayhead.is-today,
.roster-cell.is-today,
.roster-group-pad.is-today,
.roster-total.is-today {
  background: #fff8eb;
}
.roster-group-pad.is-client.is-today { background: color-mix(in srgb, var(--navy) 3%, #fff8eb); }
.roster-group-pad.is-site.is-today { background: color-mix(in srgb, var(--navy) 1.5%, #fff8eb); }
.roster-cell.has-open { background: color-mix(in srgb, var(--cyan) 8%, #fff); }
.roster-cell.has-open.is-alt-day { background: color-mix(in srgb, var(--cyan) 8%, #f3f5f8); }
.roster-cell.has-open.is-today { background: color-mix(in srgb, var(--cyan) 8%, #fff8eb); }
.roster-cell-add {
  display: none;
  align-items: center;
  justify-content: center;
  height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.roster-cell.is-empty:hover .roster-cell-add { display: flex; }
.roster-cell.is-over { outline: 2px solid var(--gold); outline-offset: -2px; }
.roster-cell .cal-chip.roster-chip,
.roster-chip.cal-chip {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 28px;
  max-height: none;
  padding: 2px 5px;
  line-height: 1.15;
  font-size: 11px;
  gap: 4px;
}
.roster-chip-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}
.roster-chip .cal-chip-time {
  flex: 0 0 auto;
  margin-right: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.roster-grid.is-fortnight .roster-chip .cal-chip-time {
  font-size: 9px;
}
.roster-chip .cal-chip-title {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}
.roster-chip-marks {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
}
.roster-chip-overnight {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.roster-grid.is-fortnight .roster-chip .cal-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-chip.is-open {
  background: color-mix(in srgb, var(--cal-chip, var(--cyan)) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 50%, #fff);
  font-weight: 700;
}
.roster-chip.is-open .cal-chip-title { color: var(--navy); font-weight: 800; }
.roster-chip.is-draft {
  background: color-mix(in srgb, var(--cal-chip, var(--gold)) 22%, #fff);
}
.roster-chip.is-cancelled {
  text-decoration: line-through;
  opacity: 0.5;
}
.roster-chip-warn {
  flex: 0 0 auto;
  margin-left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 22%, #fff);
  color: var(--warn);
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
}
.roster-chip .roster-example-tag,
.roster-chip .roster-chip-rostering {
  margin-left: 3px;
  padding: 0 4px;
  font-size: 9px;
}
.roster-unavail {
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  font-size: 11px;
}
.roster-total-label,
.roster-total {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #f4f7fa;
  border-top: 1px solid var(--line);
  border-right: 1px solid #eef1f4;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.roster-total-label { left: 0; z-index: 4; }
.roster-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.roster-total em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
}
.roster-total-hint {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.roster-month .cal-month-week { min-height: 0; }
.roster-month .cal-month-cell { padding: 0 3px 1px; }
.roster-month .cal-month-num { height: 18px; font-size: 11px; line-height: 16px; }
.roster-month .cal-month-items { gap: 1px; }
.roster-popover { pointer-events: none; }
.roster-empty { padding: 24px 16px; }
.roster-staff {
  flex: 0 0 240px;
  width: 240px;
  border-left: 1px solid var(--line);
  background: var(--white);
  overflow: auto;
}
.roster-staff-head { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.roster-staff-row {
  appearance: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  background: none;
  text-align: left;
  cursor: grab;
}
.roster-staff-row em { color: var(--muted); font-style: normal; }
.roster-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: min(420px, 100%);
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(16, 24, 40, 0.12);
  overflow: auto;
}
.roster-drawer[hidden] { display: none; }
.roster-drawer-head,
.roster-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.roster-drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.roster-drawer-body { padding: 16px; display: grid; gap: 12px; }
.roster-drawer-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.roster-drawer-tools { display: flex; align-items: center; gap: 6px; }
.roster-history { margin: 0; }
.roster-history h3 { margin: 0 0 8px; font-size: 14px; }
.roster-history ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.roster-page .list-toolbar { margin: 0; position: static; }
.roster-month.cal-month { flex: 1 1 auto; min-height: 280px; }
.roster-month .cal-month-cell { text-decoration: none; color: inherit; }
.page.list.fill { overflow-x: hidden; }
@media (max-width: 720px) {
  .roster-staff { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; }
}
.command-search {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.command-search[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.command-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}
.command-search-modal {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  margin: 15vh auto 0;
  padding: 16px 16px 10px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(16, 52, 86, 0.18);
}
.command-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.command-search-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.command-search-close:hover { background: var(--off); }
.command-search-field {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}
.command-search-field:focus-within {
  border-color: #e4a025;
  box-shadow: none;
}
.command-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.command-search-ico svg { display: block; width: 18px; height: 18px; }
.command-search-modal .command-search-field input,
.command-search-modal .command-search-field input:focus,
.command-search-modal .command-search-field input:focus-visible {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 0;
  padding: 0 36px 0 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  background-color: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.command-search-field input::-webkit-search-cancel-button,
.command-search-field input::-webkit-search-decoration,
.command-search-field input::-webkit-search-results-button,
.command-search-field input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.command-search-clear {
  appearance: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.command-search-clear svg { display: block; margin: 0 auto; width: 14px; height: 14px; }
.command-search-clear:hover { background: var(--off); color: var(--navy); }
.command-search-clear[hidden] { display: none !important; }
.command-search-body {
  max-height: min(52vh, 420px);
  overflow: auto;
  margin-top: 10px;
}
.search-group { padding: 4px 0 8px; }
.search-group-head, .search-group > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 4px;
}
.search-group h3 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.search-see-all { color: var(--navy); font-size: 12px; font-weight: 600; text-decoration: none; }
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.search-row:hover,
.search-row.is-active { background: var(--off); }
.search-row .search-enter { display: none; color: var(--muted); font-size: 12px; }
.search-row.is-active .search-enter,
.search-row:hover .search-enter { display: inline; }
.search-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1f4;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}
.search-avatar.is-icon {
  border-radius: 8px;
  background: var(--off);
  color: var(--navy);
}
.search-avatar.is-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.search-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-label { color: var(--navy); font-size: 14px; font-weight: 600; }
.search-label strong { font-weight: 800; }
.search-secondary { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-status {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--info);
  font-size: 11px;
  font-weight: 700;
}
.search-status-ok { background: var(--ok-bg); color: var(--ok); }
.search-status-warn { background: var(--warn-bg); color: var(--warn); }
.search-status-muted { background: var(--off); color: var(--muted); }
.search-empty { color: var(--muted); font-size: 13px; padding: 16px 8px; }
.page-stack > .cal-app {
  flex: 1 1 auto;
  min-height: 0;
}
.cal-app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--white);
}
.cal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.cal-toolbar-left,
.cal-toolbar-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cal-toolbar-right { justify-content: flex-end; }
.cal-toolbar-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.cal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.cal-range {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.cal-range span { color: var(--muted); font-weight: 600; font-size: 11px; margin-left: 6px; }
.cal-filter-form { display: inline-flex; margin: 0; }
.cal-nav-btn { width: 36px; padding: 0; flex: 0 0 auto; }
.list-toolbar-extras [data-cal-today] { flex: 0 0 auto; }
.page-chrome-actions .board-add { position: relative; }
[data-cal-add] > summary.btn,
[data-cal-add] > summary.btn.gold,
[data-cal-add][open] > summary.btn,
[data-cal-add][open] > summary.btn.gold,
[data-cal-add] > summary.btn:hover,
[data-cal-add] > summary.btn:focus,
[data-cal-add] > summary.btn:focus-visible,
[data-cal-add] > summary.btn:active,
.page-chrome-actions [data-cal-add] > summary.btn,
.page-chrome-actions [data-cal-add] > summary.btn.gold,
.page-chrome-actions [data-cal-add][open] > summary.btn,
.page-chrome-actions [data-cal-add][open] > summary.btn.gold,
.page-chrome-actions [data-cal-add] > summary.btn:hover,
.page-chrome-actions [data-cal-add] > summary.btn:focus,
.page-chrome-actions [data-cal-add] > summary.btn:focus-visible,
.page-chrome-actions [data-cal-add] > summary.btn:active {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  background: #e4a025;
  background-color: #e4a025;
  border: 2px solid #e4a025;
  color: #fff;
  border-radius: 8px;
}
[data-cal-add] > summary.btn::-webkit-details-marker,
.page-chrome-actions [data-cal-add] > summary.btn::-webkit-details-marker {
  display: none;
}
.cal-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cal-month,
.cal-week,
.cal-day {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cal-month-dow,
.cal-week-headrow,
.cal-allday,
.cal-day-label {
  flex: 0 0 auto;
}
.cal-month-dow,
.cal-month-days,
.cal-week-headrow,
.cal-week-grid,
.cal-allday-singles,
.cal-allday-grid .cal-span-lane {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
}
.cal-week-headrow,
.cal-week-grid {
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
}
.cal-allday {
  grid-template-columns: 56px minmax(0, 1fr);
}
.cal-week-headrow {
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #f4f7fa;
}
.cal-week-head,
.cal-month-dow span {
  min-width: 0;
  padding: 8px 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-week-head.is-today,
.cal-month-cell.is-today { background: #fff8eb; }
.cal-gutter-spacer {
  min-width: 0;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.cal-allday {
  display: grid;
  align-items: start;
  flex: 0 0 auto;
  max-height: calc(3 * 20px + 16px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.cal-allday.is-day { grid-template-columns: 56px minmax(0, 1fr); }
.cal-allday-grid { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.cal-allday-singles { display: grid; min-width: 0; }
.cal-allday-cell { min-width: 0; padding: 2px 4px; display: flex; flex-direction: column; gap: 2px; }
.cal-span-lane {
  display: grid;
  position: relative;
  min-height: 18px;
  height: 18px;
  min-width: 0;
}
.cal-span-slot { min-width: 0; }
.cal-span {
  appearance: none;
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 1px 3px;
  padding: 1px 8px;
  border: 0;
  border-radius: 6px;
  background: var(--cal-chip, var(--gold));
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}
.cal-time-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  scroll-padding-top: 16px;
}
.cal-time-grid {
  position: relative;
  display: grid;
  min-width: 0;
  height: calc(24 * 48px + 16px);
  padding-top: 16px;
  background: var(--white);
}
.cal-week-grid { grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.cal-day-grid { grid-template-columns: 56px minmax(0, 1fr); }
.cal-hours {
  position: relative;
  background: var(--white);
}
.cal-hour-label {
  height: 48px;
  padding: 4px 6px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  border-top: 1px solid #e4e7ec;
  box-sizing: border-box;
}
.cal-week-col {
  position: relative;
  min-width: 0;
  border-left: 1px solid var(--line);
  background: var(--white);
}
.cal-hour-line {
  height: 48px;
  border-top: 1px solid #e4e7ec;
}
.cal-block {
  appearance: none;
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  margin: 0 2px;
  padding: 0;
  border: 0;
  border-left: 3px solid var(--cal-chip, var(--gold));
  border-radius: 6px;
  background: color-mix(in srgb, var(--cal-chip, var(--gold)) 16%, #fff);
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  overflow: visible;
  cursor: pointer;
}
.cal-block-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  padding: 3px 6px;
  background: color-mix(in srgb, var(--cal-chip, var(--gold)) 16%, #fff);
}
.cal-block strong { display: block; font-size: 12px; }
.cal-block span { display: block; color: var(--muted); font-size: 11px; }
.cal-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 0;
  border-top: 2px solid #d7263d;
  pointer-events: none;
}
.cal-now span {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7263d;
}
.cal-month-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}
.cal-month-week {
  --cal-num-h: 22px;
  --cal-span-lanes: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cal-month-days {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}
.cal-month-spans {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: var(--cal-num-h);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  pointer-events: none;
  z-index: 2;
}
.cal-month-spans .cal-span-lane {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 18px;
  min-width: 0;
}
.cal-month-cell {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 4px 2px;
  border-left: 1px solid #e4e7ec;
  background: var(--white);
}
.cal-month-cell.is-out { color: #b4b8c0; background: #f7f8fa; }
.cal-month-cell.is-today { background: #fff8eb; }
.cal-month-num {
  appearance: none;
  flex: 0 0 var(--cal-num-h);
  align-self: flex-start;
  height: var(--cal-num-h);
  margin: 0;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
}
.cal-month-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: calc(var(--cal-span-lanes, 0) * 20px);
}
.cal-chip,
.cal-more {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-left: 3px solid var(--cal-chip, var(--gold));
  border-radius: 6px;
  background: color-mix(in srgb, var(--cal-chip, var(--gold)) 14%, #fff);
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}
.cal-chip.is-compact { padding: 0 5px; }
.cal-chip-time { color: var(--muted); margin-right: 4px; font-weight: 700; }
.cal-chip-site { color: var(--muted); margin-left: 4px; font-weight: 500; }
.cal-more { flex-shrink: 0; border-left: 0; background: transparent; color: var(--cyan); font-weight: 700; }
.cal-day-label {
  padding: 6px 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.cal-day-label span { color: var(--gold); }
.cal-res-grid { align-items: stretch; }
.cal-res-col { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.cal-res-name, .cal-res-allday { flex: 0 0 auto; padding: 4px 6px; font-size: 11px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-res-col .cal-week-col { flex: 1 1 auto; height: calc(24 * 48px + 16px); }
.cal-popover {
  position: fixed;
  z-index: 40;
  width: 280px;
  max-width: calc(100vw - 32px);
}
.cal-pop-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 52, 86, 0.14);
}
.cal-pop-card h2 { margin: 0 0 6px; font-size: 16px; }
.cal-pop-card p { margin: 0 0 6px; font-size: 13px; }
.cal-pop-kind { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.cal-pop-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-height: 240px; overflow: auto; }
@media (max-width: 900px) {
  .cal-toolbar { grid-template-columns: minmax(0, 1fr); }
  .cal-toolbar-center, .cal-toolbar-right { justify-content: flex-start; }
}
.sending-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.data-list-body .sending-settings > .panel {
  border: 1px solid var(--grey);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: var(--space-4);
  margin: 0;
}
.msg-template-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.msg-template-grid > * { min-width: 0; }
.email-preview-frame { min-width: 0; overflow: hidden; }
.email-preview-scale {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f2f2;
}
.email-preview-scale iframe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 480px;
  border: 0;
  border-radius: 8px;
  background: #f2f2f2;
}
.sms-preview { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--off); white-space: pre-wrap; }
.train-counts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; font-weight: 700; color: var(--navy); }
.train-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.train-matrix-wrap { overflow: auto; }
.train-matrix th, .train-matrix td {
  font-size: 13px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  vertical-align: top;
}
.train-matrix th { min-width: 88px; }
.train-status { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--off); }
.train-status.is-expired, .train-status.is-missing { background: #f8d7da; }
.train-status.is-expiring { background: #fff3cd; }
.train-status.is-valid { background: #d9eddf; }
.train-status.is-exempt, .train-status.is-no-expiry { background: var(--grey); }
.train-differs {
  display: inline-block;
  margin-left: 4px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  cursor: help;
}
.run-preview { max-height: 120px; overflow: auto; padding: 8px; border-radius: 8px; background: var(--off); font-size: 13px; }
@media (max-width: 900px) {
  .msg-template-grid, .train-filters { grid-template-columns: minmax(0, 1fr); }
}
.tpl-library .data-list-bar {
  padding: 0 0 0;
  border-bottom: 0;
  background: transparent;
}
.tpl-library .org-tabs {
  width: 100%;
  margin: 0 0 8px;
}
.tpl-library .data-table td.tpl-name-cell {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}
.tpl-name-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.tpl-name-link { font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.tpl-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: #eef1f4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tpl-pill.is-system {
  background: #e8eef5;
  color: var(--info);
}
.tpl-library .data-table td.tpl-subject-cell {
  padding-right: 16px;
}
.tpl-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
  box-sizing: border-box;
}
.tpl-modal-card { border-radius: 8px; }
.record-modal-wide { width: min(1120px, 100%); }
.tpl-modal-lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.tpl-type-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #e8eef5;
  color: var(--info);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.tpl-preview-subject {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.tpl-preview-frame {
  background: #fff;
  border-radius: 8px;
  overflow: auto;
  max-height: min(62vh, 640px);
  width: 100%;
}
.tpl-preview-frame iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
}
.tpl-preview-sms {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.tpl-edit-grid {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  gap: 24px;
  min-height: 420px;
}
.tpl-edit-body .rich-editor { min-height: 360px; }
.tpl-edit-body .rich-editor-surface { min-height: 280px; }
.record-modal-foot-left { margin-right: auto; }
.tpl-preview-link { margin-right: auto; }
.rich-editor.is-source .rich-editor-surface[hidden] { display: none; }
.rich-editor.is-source .rich-editor-input {
  display: block;
  width: 100%;
  min-height: 280px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
.rich-editor-template .rich-editor-toolbar {
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
}
.rich-editor-template .rich-editor-icon {
  width: 28px;
  min-width: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rich-editor-template .rich-editor-style select { min-width: 5.6rem; }
.rich-editor-template .rich-editor-fullscreen { margin-left: 2px; }
.rich-editor-template .rich-editor-more[data-re-vars] {
  display: inline-flex;
  align-items: center;
  align-self: center;
}
.rich-editor-template .rich-editor-vars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  line-height: 1;
}
.rich-editor-template .rich-editor-vars svg {
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .tpl-edit-grid { grid-template-columns: 1fr; }
}
@media print {
  .app-shell .app-sidebar,
  .app-topbar,
  .roster-page .list-tabs,
  .roster-toolbar,
  .roster-staff,
  .roster-drawer { display: none !important; }
  body.has-shell.is-fill,
  body.has-shell.is-fill .app-main,
  .roster-page,
  .roster-body,
  .roster-scroller { overflow: visible !important; height: auto !important; max-height: none !important; }
}
.sign-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  overflow: visible;
}
.sign-box + .sign-box { margin-top: 10px; }
.sign-box-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 2px;
}
.sign-box-icon svg { display: block; width: 22px; height: 22px; }
.sign-box-body { flex: 1; min-width: 0; }
.sign-box-body label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}
.sign-box:focus-within { border-color: var(--gold); }
.sign-box input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.sign-box select,
.sign-box textarea {
  width: 100%;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  height: auto;
  min-height: 28px;
  padding: 2px 0 0;
  border-radius: 0;
  overflow: visible;
}
.sign-box select {
  background-position: right 0 center;
  padding-right: 22px;
}
.sign-box input::placeholder,
.sign-box textarea::placeholder {
  color: #8a97a3;
  opacity: 1;
}
.sign-box input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):focus,
.sign-box select:focus,
.sign-box textarea:focus {
  outline: none;
}
.sign-box.is-tick { align-items: flex-start; }
.sign-box.is-tick .sign-box-icon,
.sign-box.is-yesno .sign-box-icon,
.sign-box.is-signature .sign-box-icon { display: none; }
.sign-box.is-details-if-yes[hidden] { display: none; }
.sign-box.is-tick label,
.sign-box.is-tick .sign-tick-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin: 0;
  font-weight: 600;
  text-align: left;
}
.sign-box.is-tick input[type="checkbox"] {
  display: block;
  width: auto;
  margin: 3px 0 0;
  vertical-align: top;
}
.sign-box.is-tick .sign-tick-text { display: block; min-width: 0; }
.sign-req-end { white-space: nowrap; }
.sign-box.is-tick .req { display: inline; margin-left: 0; float: none; }
.sign-box .error { margin-top: 6px; color: var(--danger); }
.sign-box .signature-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}
.pack-sign-form .actions,
.sa-sign-form .actions { margin-top: 14px; margin-bottom: 28px; }
@media (max-width: 640px) {
  body.is-public:has(.pack-sign-form, .sa-sign-form) .page { padding-bottom: 40px; }
  .pack-sign-form .actions,
  .sa-sign-form .actions { margin-bottom: 36px; }
}
.payroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 14px 18px;
  margin: 0;
}
.payroll-grid > div { display: grid; gap: 4px; min-width: 0; }
.payroll-grid dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.payroll-grid dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
