@charset "UTF-8";
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --brand: #11aabb;
  --primary: #0b7c8a;
  --primary-hover: #096a76;
  --primary-active: #07545d;
  --primary-50: #eaf6f8;
  --primary-100: #d3eef2;
  --primary-200: #a9dde5;
  --on-primary: #ffffff;
  --hero-from: #0b7c8a;
  --hero-to: #11aabb;
  --background: #f3f5f7;
  --surface: #ffffff;
  --surface-alt: #f8fafb;
  --surface-hover: #eef2f5;
  --border: #dde3e8;
  --border-hover: #a9b4be;
  --border-strong: #c3ccd4;
  --text: #1b2631;
  --text-muted: #5a6776;
  --text-disabled: #9aa5b1;
  --success: #2e7d4f;
  --success-bg: #e2f4e8;
  --success-bg-hover: #d3eedc;
  --success-border: #8fcfa5;
  --warning: #b07a12;
  --warning-bg: #fff3cc;
  --warning-bg-hover: #ffeaa8;
  --warning-border: #f0cc5c;
  --danger: #c0392b;
  --danger-hover: #a53125;
  --danger-bg: #fdecea;
  --danger-border: #f2aaa2;
  --backdrop: rgba(16, 24, 40, .45);
  --shadow-small: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-large: 0 20px 40px -8px rgba(16, 24, 40, .25), 0 4px 10px rgba(16, 24, 40, .08);
  --scroll-shadow: rgba(16, 24, 40, .3);
  --focus: rgba(11, 124, 138, .35);
  --focus-danger: rgba(192, 57, 43, .25);
  --map-filter: none;
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --iti-border-color: #dde3e8;
  --iti-dialcode-color: #5a6776;
  --iti-dropdown-bg: #ffffff;
  --iti-hover-color: #eef2f5;
  --iti-arrow-color: #5a6776;
  --iti-search-icon-color: #5a6776;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #22b8c8;
  --primary: #4cc3d1;
  --primary-hover: #6dd0dc;
  --primary-active: #8fdbe4;
  --primary-50: #15333a;
  --primary-100: #1a414a;
  --primary-200: #23606b;
  --on-primary: #0b1d21;
  --hero-from: #0a5964;
  --hero-to: #0d8492;
  --background: #12171c;
  --surface: #1b2228;
  --surface-alt: #20282f;
  --surface-hover: #29333b;
  --border: #323e48;
  --border-hover: #52616d;
  --border-strong: #44525d;
  --text: #e3e8ec;
  --text-muted: #9ba8b4;
  --text-disabled: #627080;
  --success: #5cc489;
  --success-bg: #173326;
  --success-bg-hover: #1d3f2f;
  --success-border: #2f6b4a;
  --warning: #e3b84f;
  --warning-bg: #3a3115;
  --warning-bg-hover: #463b18;
  --warning-border: #7a6421;
  --danger: #ef6b5e;
  --danger-hover: #f48a7f;
  --danger-bg: #3d1f1c;
  --danger-border: #7a3a33;
  --backdrop: rgba(0, 0, 0, .6);
  --shadow-small: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-large: 0 20px 40px -8px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .35);
  --scroll-shadow: rgba(255, 255, 255, .25);
  --focus: rgba(76, 195, 209, .45);
  --focus-danger: rgba(239, 107, 94, .4);
  --map-filter: brightness(.75) contrast(1.1);
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --chart-3: #199e70;
  --iti-border-color: #323e48;
  --iti-dialcode-color: #9ba8b4;
  --iti-dropdown-bg: #1b2228;
  --iti-hover-color: #29333b;
  --iti-arrow-color: #9ba8b4;
  --iti-search-icon-color: #9ba8b4;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
html body {
  height: 100%;
  margin: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.dialog-open {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  line-height: 1.25;
  font-weight: 650;
  color: var(--text);
}
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-hover);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hidden:not(.flatpickr-day),
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon.icon-sm {
  width: 16px;
  height: 16px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}
.btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}
.btn:disabled,
.btn.disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.btn.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-primary);
}
.btn.btn-primary:active {
  background: var(--primary-active);
}
.btn.btn-danger {
  color: var(--danger);
  border-color: var(--danger-border);
}
.btn.btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger-hover);
}
.btn.btn-danger-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--on-primary);
}
.btn.btn-danger-solid:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  color: var(--on-primary);
}
.btn.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn.btn-ghost:hover {
  background: var(--surface-hover);
}
.btn.btn-icon {
  width: 34px;
  padding: 0;
}
.btn[aria-pressed="true"] {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
}
.btn[aria-pressed="true"]:hover {
  background: var(--primary-100);
}
.btn.is-busy {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-busy::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--on-primary);
  border-right-color: var(--on-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@media (max-width: 639.98px) {
  .btn[data-short] > span {
    display: none;
  }
  .btn[data-short]::before {
    content: attr(data-short);
    order: 1;
  }
}
kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
}
.shortcuts {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.shortcuts th {
  padding: 14px 8px 4px;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shortcuts td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.shortcuts td:first-child {
  width: 42%;
  white-space: nowrap;
}
.alert {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 14px;
}
.alert.alert-danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-hover);
}
.alert.alert-info {
  border-color: var(--primary-200);
  background: var(--primary-50);
  color: var(--primary-active);
}
.alert.alert-warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: var(--text);
}
.alert.alert-success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--text);
}
.input-row[data-row^="limit-"] .input-row-fields > .input-group .input-input {
  width: 7em;
}
.alert.limit-strip {
  margin-bottom: 12px;
}
.alert.limit-strip p {
  margin: 0;
}
.alert.limit-strip a {
  margin-left: 4px;
}
.alert.mail-missing {
  margin-bottom: 12px;
}
.account-hand-over {
  max-width: 520px;
}
.account-hand-over p {
  margin: 0 0 8px;
}
.account-hand-over .account-hand-over-note {
  color: var(--text-muted);
  font-size: 14px;
}
.account-hand-over .account-hand-over-link {
  width: 100%;
  margin: 4px 0 8px;
  font-family: monospace;
}
.account-hand-over .account-hand-over-status:empty {
  display: none;
}
.dialog-buttons:has(> .account-hand-over-action) {
  flex-wrap: wrap;
}
.menu-popup {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: calc(100vw - 16px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-large);
  animation: fade-in 100ms ease;
}
.menu-popup[hidden] {
  display: none;
}
.menu-popup > a,
.menu-popup > button,
.menu-popup .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.menu-popup > a:hover,
.menu-popup > a:focus-visible,
.menu-popup > button:hover,
.menu-popup > button:focus-visible,
.menu-popup .menu-item:hover,
.menu-popup .menu-item:focus-visible {
  outline: none;
  background: var(--surface-hover);
  color: var(--text);
}
.menu-popup > a.active,
.menu-popup > button.active,
.menu-popup .menu-item.active {
  color: var(--primary-active);
  font-weight: 650;
}
.menu-popup > a:disabled,
.menu-popup > a.disabled,
.menu-popup > button:disabled,
.menu-popup > button.disabled,
.menu-popup .menu-item:disabled,
.menu-popup .menu-item.disabled {
  opacity: .45;
  cursor: not-allowed;
}
.menu-popup > a .icon,
.menu-popup > button .icon,
.menu-popup .menu-item .icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.menu-popup .menu-separator {
  height: 1px;
  margin: 4px 0;
  background: var(--border);
}
.flag {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}
body.app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}
.app-shell {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
.app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.app-main:focus {
  outline: none;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 150ms ease;
}
.skip-link:focus {
  transform: none;
  color: var(--on-primary);
}
.app-header {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.app-header .app-header-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 650;
}
.app-header .app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.app-header .lang-switch .lang-button {
  gap: 6px;
  padding: 5px 8px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 650;
}
.app-header .menu-toggle {
  display: none;
}
.has-sidebar .app-header .menu-toggle {
  display: inline-flex;
}
.app-sidebar {
  flex: 0 0 240px;
  width: 240px;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.app-sidebar .sidebar-header {
  display: none;
  flex: 0 0 56px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.app-sidebar .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list .nav-home {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list .nav-home .nav-link {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list .nav-groups-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.nav-list .nav-groups-toggle:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary-active);
}
.nav-list .nav-groups-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}
.nav-list .nav-groups-toggle .icon {
  width: 18px;
  height: 18px;
}
.nav-list .nav-group {
  margin-top: 8px;
}
.nav-list .nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 30px;
  padding: 4px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.nav-list .nav-group-toggle:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.nav-list .nav-group-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}
.nav-list .nav-group-toggle .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
  transition: transform 150ms ease;
}
.nav-list .nav-group.collapsed .nav-group-items {
  display: none;
}
.nav-list .nav-group.collapsed .nav-group-toggle .icon {
  transform: rotate(-90deg);
}
.nav-list .nav-group.collapsed:has(.nav-badge:not([hidden])) .nav-group-title::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
}
.nav-list .nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list .nav-help {
  margin-top: auto;
  padding-top: 12px;
}
.nav-list .nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.nav-list .nav-badge[hidden] {
  display: none;
}
.nav-list .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-list .nav-link:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.nav-list .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}
.nav-list .nav-link.active {
  background: var(--primary-50);
  color: var(--primary-active);
  font-weight: 650;
}
.nav-list .nav-link.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
.sidebar-backdrop {
  display: none;
}
.app-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 6px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
}
.app-footer p {
  margin: 0;
}
.app-footer .privacy-link {
  color: var(--text-muted);
}
.app-footer .privacy-link:hover {
  color: var(--primary);
}
.app-footer .shortcuts-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.app-footer .shortcuts-link:hover {
  color: var(--primary);
}
@media (max-width: 1023.98px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: var(--shadow-large);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
  }
  .app-sidebar .sidebar-header {
    display: flex;
  }
  body.sidebar-open .app-sidebar {
    transform: none;
    visibility: visible;
    transition: transform 200ms ease;
  }
  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--backdrop);
    animation: fade-in 150ms ease;
  }
}
@media (min-width: 1024px) {
  body.sidebar-collapsed .app-sidebar {
    flex-basis: 64px;
    width: 64px;
  }
  body.sidebar-collapsed .app-sidebar .nav-text {
    display: none;
  }
  body.sidebar-collapsed .app-sidebar .nav-group-toggle,
  body.sidebar-collapsed .app-sidebar .nav-groups-toggle {
    display: none;
  }
  body.sidebar-collapsed .app-sidebar .nav-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }
  body.sidebar-collapsed .app-sidebar .nav-group.collapsed .nav-group-items {
    display: flex;
  }
  body.sidebar-collapsed .app-sidebar .nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    padding: 0 4px;
    font-size: 10px;
  }
  body.sidebar-collapsed .app-sidebar .sidebar-nav {
    padding: 12px 8px;
  }
  body.sidebar-collapsed .app-sidebar .nav-link {
    justify-content: center;
    padding: 8px 0;
  }
  body.sidebar-collapsed .app-sidebar .nav-link.active::before {
    left: -8px;
  }
}
@media (max-width: 639.98px) {
  .app-main {
    padding: 10px;
  }
  .app-header {
    gap: 8px;
    padding: 0 10px;
  }
  .app-header .app-header-title {
    font-size: 16px;
  }
  .app-header .login-button .btn-text,
  .app-header .logout-button .btn-text {
    display: none;
  }
  .app-footer .shortcuts-link {
    display: none;
  }
}
.theme-print,
.theme-print *,
.theme-print *::before,
.theme-print *::after {
  transition: none !important;
}
@media print {
  .app-sidebar,
  .app-header,
  .app-footer,
  .sidebar-backdrop,
  .skip-link,
  .no-print {
    display: none !important;
  }
  .app-shell,
  .app-main {
    height: auto;
    overflow: visible;
  }
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.form-actions .btn {
  flex: 0 0 auto;
  min-height: 34px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.login-form input {
  width: 100%;
}
.login-form .btn {
  min-height: 34px;
  margin-top: 4px;
}
.login-form .login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sso-buttons .sso-or {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.btn.sso-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  margin-top: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.btn.sso-button:hover {
  background: var(--surface-hover);
}
.btn.sso-button .sso-logo {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat;
}
.btn.sso-button.sso-google .sso-logo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.6 5.4 2.7 13.3l7.9 6.2C12.5 13.6 17.8 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.1 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.4c-.5 2.9-2.2 5.3-4.6 6.9l7.4 5.7c4.3-4 6.9-9.9 6.9-17.1z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.5c-.5-1.4-.8-2.9-.8-4.5s.3-3.1.8-4.5l-7.9-6.2C1 16.6 0 20.2 0 24s1 7.4 2.7 10.7l7.8-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.4-5.7c-2.1 1.4-4.8 2.3-8.5 2.3-6.2 0-11.5-4.2-13.4-9.9l-7.9 6.2C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E");
}
.btn.sso-button.sso-microsoft .sso-logo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='1' y='1' width='9' height='9' fill='%23F25022'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237FBA00'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300A4EF'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23FFB900'/%3E%3C/svg%3E");
}
.btn.sso-button.sso-seznam .sso-logo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23CC0000'/%3E%3Ctext x='12' y='17' font-family='Arial,sans-serif' font-size='15' font-weight='700' fill='%23fff' text-anchor='middle'%3ES%3C/text%3E%3C/svg%3E");
}
.btn.sso-button.sso-apple .sso-logo {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.8 1.2 1.8 2.6 3.1 2.6 1.3-.1 1.7-.8 3.3-.8 1.5 0 1.9.8 3.3.8 1.4 0 2.2-1.2 3-2.5.9-1.4 1.3-2.8 1.4-2.8-.1 0-2.6-1-2.6-4.2zM13.9 5.1c.7-.8 1.2-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.8 1.2 1.8 2.6 3.1 2.6 1.3-.1 1.7-.8 3.3-.8 1.5 0 1.9.8 3.3.8 1.4 0 2.2-1.2 3-2.5.9-1.4 1.3-2.8 1.4-2.8-.1 0-2.6-1-2.6-4.2zM13.9 5.1c.7-.8 1.2-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sso-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.sso-links .sso-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.sso-links .sso-name {
  flex: 0 0 auto;
  width: 34px;
  padding: 0;
  pointer-events: none;
}
.sso-links .sso-link-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.sso-links .sso-muted {
  color: var(--text-muted);
}
.account-form .sso-buttons {
  margin-top: 8px;
}
.account {
  max-width: 460px;
  margin: 24px auto;
}
.account .account-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.account .account-card .card-title {
  margin-bottom: 12px;
  font-size: 20px;
}
.account .account-text {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.account .alert {
  margin-bottom: 16px;
}
.account .account-form .account-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
}
.account .account-form .account-consent input {
  width: auto;
  margin-top: 3px;
}
.account .account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account .account-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.account .account-form input {
  width: 100%;
}
.account .account-form .account-hint {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}
.account .account-form .btn {
  min-height: 34px;
  margin-top: 4px;
}
.account .account-links {
  margin: 16px 0 0;
  font-size: 14px;
  text-align: center;
}
@media (max-width: 639.98px) {
  .account {
    margin: 8px auto;
  }
  .account .account-card {
    padding: 16px;
  }
}
.consent-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.privacy-settings .entity-form .entity-form-fields > div {
  max-width: none;
}
.privacy-settings .rich-text-content {
  min-height: 60vh;
  min-height: 60dvh;
  max-height: none;
}
.filter-bar-sticky {
  position: sticky;
  top: calc(-8px - 16px);
  z-index: 5;
  margin: -16px -16px 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}
.filter-bar-sticky > .filter-bar-fields {
  display: contents;
}
.filter-bar-sticky > .filter-bar-button {
  display: none;
}
.filter-bar-button .filter-bar-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.filter-bar-dialog > .filter-bar-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 639.98px) {
  .filter-bar-sticky {
    top: calc(-4px - 10px);
    margin: -10px -10px 0;
    padding: 10px 10px 8px;
  }
  .filter-bar-sticky > .filter-bar-fields {
    display: none;
  }
  .filter-bar-sticky > .filter-bar-button {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
  }
  .filter-bar-sticky > .filter-bar-button > span:not(.filter-bar-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.rich-text-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  border-radius: 8px 8px 0 0;
  background-color: var(--surface);
}
.privacy {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  line-height: 1.55;
}
.privacy h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.privacy h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}
.privacy p,
.privacy ul {
  margin: 0 0 10px;
}
.my-account {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.my-account .settings-panel > :not(.entity-form):not(.form-actions):not(script) {
  width: 100%;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}
.my-account .settings-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.my-account .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 18px;
}
.my-account .card-title .icon {
  color: var(--primary);
}
.my-account .settings-intro {
  margin: 0 0 12px;
  color: var(--text-muted);
}
.my-account .account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.my-account .account-form > * {
  max-width: 460px;
}
.my-account .account-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.my-account .account-form input {
  width: 100%;
}
.my-account .account-form .account-hint {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}
.my-account .settings-tabs {
  margin-bottom: -4px;
}
.my-account .my-account-gdpr .my-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.my-account .my-account-gdpr .my-account-actions:last-child {
  margin-bottom: 0;
}
.my-account .my-account-gdpr .alert {
  margin-bottom: 12px;
}
.my-account .my-account-proposal {
  margin-bottom: 12px;
}
.my-account .my-account-proposal[hidden] {
  display: none;
}
.my-account .my-account-proposal p {
  margin: 0;
}
.my-account .my-account-proposal ul {
  margin: 6px 0 10px;
  padding-left: 20px;
}
.settings .settings-panel + .settings-panel {
  margin-top: 16px;
}
.backup-restore {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.backup-restore .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.backup-restore p {
  margin: 0;
}
.backup-restore ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.backup-restore-intro {
  color: var(--text-muted);
}
.backup-restore-list {
  overflow-x: auto;
}
.backup-restore-host,
.backup-restore-host > .backup-restore {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.backup-restore-host .backup-restore-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.backup-restore-host .backup-restore-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}
.backup-restore-table {
  width: 100%;
  border-collapse: collapse;
}
.backup-restore-table th,
.backup-restore-table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.backup-restore-table thead th {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.backup-restore-table td:last-child {
  text-align: right;
  padding-right: 0;
}
.backup-restore-label {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12.5px;
}
.backup-restore-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 34rem;
}
.backup-restore-dialog p {
  margin: 0;
}
.backup-restore-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.backup-restore-dialog input {
  width: 100%;
  font-weight: 400;
}
.backup-restore-lost {
  font-weight: 600;
}
.backup-restore-error {
  color: var(--danger);
}
.backup-restore-steps {
  margin: 0;
  padding-left: 20px;
}
.backup-restore-steps li {
  padding: 2px 0;
  color: var(--text-muted);
}
.backup-restore-steps li.is-busy {
  color: inherit;
  font-weight: 600;
}
.backup-restore-steps li.is-busy::after {
  content: " …";
}
.backup-restore-steps li.is-done {
  color: inherit;
}
.backup-restore-steps li.is-done::after {
  content: " ✓";
  color: var(--success);
}
.customer-changes-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.customer-changes-dialog p {
  margin: 0;
  color: var(--text-muted);
}
.customer-changes-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.customer-changes-dialog textarea {
  width: 100%;
  font-weight: 400;
}
.customer-changes-dialog > .btn {
  align-self: flex-start;
}
.customer-changes {
  border-collapse: collapse;
}
.customer-changes th,
.customer-changes td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.customer-changes thead th {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.customer-changes tbody td:last-child {
  font-weight: 600;
}
.customer-merge {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.customer-merge p {
  margin: 0;
  color: var(--text-muted);
}
.customer-merge-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.customer-merge-fields legend {
  padding: 0 4px;
  font-weight: 600;
}
.customer-merge-fields label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.customer-merge-results ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.customer-merge-results li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.customer-merge-compare {
  border-collapse: collapse;
}
.customer-merge-compare th,
.customer-merge-compare td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.customer-merge-compare thead th {
  font-weight: 400;
}
.customer-merge-compare thead th strong,
.customer-merge-compare thead th small,
.customer-merge-compare thead th label {
  display: block;
}
.customer-merge-compare thead th small {
  color: var(--text-muted);
  margin-bottom: 4px;
}
.customer-merge-compare tbody label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  white-space: pre-line;
}
.customer-merge-compare tr.same td {
  color: var(--text-muted);
}
.customer-merge-compare .excluded {
  opacity: .45;
}
@media (min-width: 640px) {
  .my-account-tabbed {
    min-height: 100%;
  }
  .my-account-tabbed > .settings-panel:not([hidden]) {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  .my-account-tabbed > .settings-panel:not([hidden]) > .entity-form {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  .my-account-tabbed > .settings-panel:not([hidden]) > .entity-form .entity-form-footer {
    margin-top: auto;
  }
  .my-account-tabbed > .settings-panel:not([hidden]) > .my-account-actions-footer {
    margin-top: auto;
  }
  .my-account-tabbed > .settings-panel:not([hidden]) > .account-form {
    margin-bottom: 16px;
  }
}
.my-account .my-account-actions-footer {
  margin: 16px -16px -16px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.my-account .entity-form .entity-form-footer {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  margin: 0 -16px -16px;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--surface);
  box-shadow: 0 -4px 12px rgba(16, 24, 40, .06);
}
.table-with-data,
.table-without-data {
  display: flex;
  gap: 16px;
  height: 100%;
  min-height: 360px;
}
.table-with-data > .table,
.table-with-data > .data-selection,
.table-without-data > .table,
.table-without-data > .data-selection {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.table-with-data > .table,
.table-without-data > .table {
  flex: 1 1 auto;
}
.table-with-data > .data-selection {
  flex: 0 0 300px;
  width: 300px;
  gap: 12px;
  overflow: hidden;
}
.table-with-data .data-selection-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 899.98px) {
  .table-with-data {
    flex-direction: column;
    min-height: 300px;
  }
  .table-with-data > .data-selection {
    order: -1;
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: visible;
  }
  .table-with-data > .data-selection > * {
    flex: 1 1 140px;
    min-width: 0;
  }
  .table-with-data > .data-selection > .calendar-compact {
    flex: 1 1 220px;
  }
  .table-with-data .data-selection-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table-with-data > .table {
    flex: 1 1 auto;
  }
}
@media (max-width: 639.98px) {
  .table-with-data,
  .table-without-data {
    gap: 10px;
  }
  .table-with-data > .table,
  .table-with-data > .data-selection,
  .table-without-data > .table,
  .table-without-data > .data-selection {
    padding: 8px;
    border-radius: 8px;
  }
}
.entity-form-section h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}
.entity-form-section .settings-intro {
  margin-bottom: 0;
}
.entity-form-section:not(:first-child) {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.entity-form.has-views .is-other-view {
  display: none !important;
}
.entity-form.has-views .entity-form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.entity-form.has-views .entity-form-section > h3 {
  display: none;
}
.entity-form.has-views .entity-form-section.entity-form-group > h3 {
  display: flex;
}
.entity-form.has-views .entity-form-section.entity-form-group:not(.is-other-view) ~ .entity-form-group:not(.is-other-view) {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.settings .settings-panel > .settings-intro[data-help] {
  display: none;
}
.help {
  display: inline-flex;
  flex: 0 0 auto;
  vertical-align: middle;
}
.help .help-button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}
.help .help-button:hover,
.help .help-button[aria-expanded="true"] {
  background: var(--surface-hover);
  color: var(--text);
}
.with-help {
  display: flex;
  align-items: center;
  gap: 4px;
}
.input-label.with-help {
  justify-content: flex-end;
}
.input-label.with-help .help {
  order: 1;
  margin: -7px 0;
}
h3.with-help .help {
  margin-left: auto;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 6px 0;
}
.input-row > .input-label {
  flex: 0 0 32%;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
}
.input-row .input-row-fields {
  display: flex;
  flex: 1 1 calc(68% - 16px);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-width: 0;
}
.input-row .input-row-fields > .input-group {
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0;
}
.input-row .input-row-fields > .input-group .input-label {
  flex: 0 0 auto;
  padding-top: 0;
  text-align: left;
}
.input-row .input-row-fields > .input-group .input-label::after {
  content: none;
}
.input-row .input-row-fields > .input-group .input-input[type="checkbox"] {
  margin-top: 0;
}
.input-row .input-row-fields > .input-group .input-error {
  padding-left: 0;
}
.input-row .input-row-fields > .input-group:has(select) {
  flex: 1 1 220px;
}
.input-row .input-row-fields > .input-group:has(select) .input-input {
  flex: 1 1 auto;
  width: auto;
}
.input-row .input-row-fields > .input-group:has(> .input-input[type="checkbox"]) .input-label {
  order: 1;
}
.input-row:not(:has(> .input-row-fields > .input-group:not([hidden]))) {
  display: none;
}
@media (max-width: 639.98px) {
  .input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .input-row > .input-label {
    flex: 0 0 auto;
    padding-top: 0;
    text-align: left;
  }
  .input-row .input-row-fields {
    flex: 0 0 auto;
    width: 100%;
  }
  .input-row .input-row-fields > .input-group {
    flex-direction: row;
  }
  .input-label.with-help {
    align-self: stretch;
    justify-content: flex-start;
  }
  .input-label.with-help .help {
    margin-left: auto;
  }
  .entity-form .entity-form-footer .entity-form-status:not(:empty) {
    flex: 1 1 calc(100% - 48px);
  }
}
.menu-popup.table-help-popup p + p {
  margin-top: 6px;
}
.entity-form:not(.has-views) .entity-form-footer > .help[data-view] {
  display: none;
}
.settings-tabs {
  flex: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar {
  display: none;
}
.settings-tabs {
  touch-action: pan-x;
  box-shadow: inset 0 -1px 0 var(--border);
  background: linear-gradient(to right, var(--background) 40%, transparent) left / 32px 100% no-repeat local, linear-gradient(to left, var(--background) 40%, transparent) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, var(--scroll-shadow), transparent) left / 16px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, var(--scroll-shadow), transparent) right / 16px 100% no-repeat scroll;
}
.settings-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.settings-tabs a:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.settings-tabs a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 360px;
}
.settings .settings-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.settings .settings-panel > .table {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.settings .settings-intro {
  max-width: 75ch;
  margin: 0 0 12px;
  color: var(--text-muted);
}
.settings .settings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.settings .settings-toolbar label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.settings .settings-subtabs {
  flex: 0 0 auto;
  margin: -6px 0 12px;
  background: linear-gradient(to right, var(--surface) 40%, transparent) left / 32px 100% no-repeat local, linear-gradient(to left, var(--surface) 40%, transparent) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, var(--scroll-shadow), transparent) left / 16px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, var(--scroll-shadow), transparent) right / 16px 100% no-repeat scroll;
}
.settings .settings-subtabs a {
  padding: 6px 12px;
  font-size: 13px;
}
.settings .settings-panel:has(> .entity-form) > .settings-intro {
  width: 100%;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}
.translations-import {
  min-width: min(560px, 80vw);
}
.translations-import .translations-import-result {
  min-height: 1.5em;
  padding-top: 8px;
}
.translations-import .translations-import-result p {
  margin: 0 0 4px;
}
.translations-import .translations-import-result .alert-error {
  color: var(--danger);
}
.translations-import .translations-import-result .translations-import-confirm {
  font-weight: 600;
}
.display-settings.entity-form .entity-form-fields > div {
  max-width: none;
}
.display-settings .sorting-editor {
  max-width: 760px;
}
.display-settings .display-section {
  padding-bottom: 8px;
}
.display-settings .display-section .card-subtitle {
  margin: 0 0 4px;
}
.display-settings .display-section .settings-intro {
  margin-bottom: 8px;
  font-size: 13px;
}
.display-settings .btn-sm {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}
.display-settings .format-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.display-settings .format-parts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.display-settings .format-part {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-hover);
  max-width: 100%;
}
.display-settings .format-part select,
.display-settings .format-part input {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 14em;
  min-height: 34px;
}
.display-settings .format-part .format-affix {
  flex: 0 0 3.5em;
  width: 3.5em;
}
.display-settings .format-part .btn-icon {
  flex: 0 0 auto;
}
.display-settings .format-part.format-part-separator {
  border-style: dashed;
  background: transparent;
}
.display-settings .format-part.format-part-hidden {
  opacity: .55;
}
.display-settings .format-part:focus-within {
  border-color: var(--primary);
}
.display-settings .format-empty {
  color: var(--text-muted);
  font-style: italic;
}
.display-settings .format-add {
  display: flex;
  gap: 6px;
}
.display-settings .format-preview {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 13px;
}
.display-settings .format-preview .format-preview-text {
  color: var(--text);
  font-size: 15px;
  white-space: pre-line;
}
.display-settings .sorting-editor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.display-settings .sorting-editor .sorting-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.display-settings .sorting-editor .sorting-row select {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  min-height: 34px;
}
.display-settings .sorting-editor .sorting-row .btn-icon {
  flex: 0 0 auto;
}
.display-settings .sorting-editor .sorting-order {
  flex: 0 0 auto;
  min-width: 1.5em;
  color: var(--text-muted);
}
@media (max-width: 639.98px) {
  .display-settings .sorting-editor {
    gap: 12px;
  }
  .display-settings .sorting-editor .sorting-row {
    display: grid;
    gap: 4px 6px;
    grid-template-columns: auto minmax(0, 1fr) repeat(2, auto);
    align-self: stretch;
  }
  .display-settings .sorting-editor .sorting-row select + select {
    grid-column: 2;
    grid-row: 2;
  }
}
.reorder-grip {
  cursor: grab;
  touch-action: none;
  color: var(--text-muted);
}
.reorder .is-dragging {
  z-index: 10;
  opacity: .85;
  cursor: grabbing;
}
.reorder .is-dragging:not(th, tr) {
  position: relative;
  box-shadow: var(--shadow);
}
.reorder .is-picked {
  outline: 2px dashed var(--primary);
  outline-offset: 1px;
}
.reorder.is-picking {
  cursor: pointer;
}
.reorder .reorder-before:not(tr) {
  box-shadow: inset 0 3px 0 var(--primary);
}
.reorder .reorder-after:not(tr) {
  box-shadow: inset 0 -3px 0 var(--primary);
}
.reorder tr.reorder-before > td {
  box-shadow: inset 0 3px 0 var(--primary);
}
.reorder tr.reorder-after > td {
  box-shadow: inset 0 -3px 0 var(--primary);
}
.reorder.reorder-horizontal .reorder-before {
  box-shadow: inset 3px 0 0 var(--primary);
}
.reorder.reorder-horizontal .reorder-after {
  box-shadow: inset -3px 0 0 var(--primary);
}
body.is-reordering {
  -webkit-user-select: none;
  user-select: none;
  cursor: grabbing;
}
.entity-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.entity-form .entity-form-fields {
  flex: 1 1 auto;
  overflow: auto;
  padding: 4px 4px 16px;
}
.entity-form .entity-form-fields > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.entity-form .entity-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.entity-form .entity-form-footer .entity-form-status {
  margin-right: auto;
  color: var(--text-muted);
  font-size: 13px;
}
.entity-form.is-dirty .entity-form-status {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 899.98px) {
  .settings {
    height: auto;
  }
  .settings .settings-panel {
    flex: 0 0 auto;
  }
  .entity-form .entity-form-fields {
    overflow: visible;
  }
  .entity-form .entity-form-footer {
    position: sticky;
    bottom: -16px;
    z-index: 2;
    margin: 0 -16px -16px;
    padding: 12px 16px;
    border-radius: 0 0 12px 12px;
    background: var(--surface);
    box-shadow: 0 -4px 12px rgba(16, 24, 40, .06);
  }
}
@media (max-width: 639.98px) {
  .entity-form .entity-form-footer,
  .my-account .entity-form .entity-form-footer {
    bottom: -10px;
  }
  .dialog-wrapper .dialog-body .dialog-buttons .btn {
    flex: 0 0 auto;
  }
}
.home {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}
.home .home-hero {
  padding: 32px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  box-shadow: var(--shadow);
}
.home .home-hero h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
}
.home .card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.home .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 18px;
}
.home .card-title .icon {
  color: var(--primary);
}
.home .card-subtitle {
  margin: 16px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.home .news {
  border-left: 4px solid var(--brand);
}
.home .news .news-content {
  font-size: 15.5px;
}
.home .news .news-content p,
.home .news .news-content ul,
.home .news .news-content ol,
.home .news .news-content blockquote {
  margin: 0 0 .6em;
}
.home .news .news-content h2,
.home .news .news-content h3,
.home .news .news-content h4 {
  margin: .8em 0 .4em;
}
.home .news .news-content blockquote {
  padding-left: 12px;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
}
.home .news .news-content > :first-child {
  margin-top: 0;
}
.home .news .news-content > :last-child {
  margin-bottom: 0;
}
.home .news .news-item + .news-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.home .news .news-item-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.home .offices {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home .office {
  min-width: 0;
}
.home .office .office-name {
  font-size: 20px;
}
@media (min-width: 900px) {
  .home .office {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
  }
  .home .office .office-map {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 260px;
  }
}
.home .time-frames {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.home .time-frames th,
.home .time-frames td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.home .time-frames th {
  width: 40%;
  font-weight: 550;
  color: var(--text-muted);
}
.home .time-frames tr:last-child th,
.home .time-frames tr:last-child td {
  border-bottom: none;
}
.home .time-frames .today th,
.home .time-frames .today td {
  background: var(--primary-50);
  color: var(--primary-active);
  font-weight: 650;
}
.home .time-frames .today th {
  border-radius: 6px 0 0 6px;
}
.home .time-frames .today td {
  border-radius: 0 6px 6px 0;
}
.home .office-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.home .office-contact .office-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.home .office-contact .office-contact-row .icon {
  margin-top: 2px;
  color: var(--primary);
}
.home .office-contact .office-contact-row a {
  font-weight: 600;
  text-decoration: none;
}
.home .office-contact .office-contact-row a:hover {
  text-decoration: underline;
}
.home .office-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
}
.home .office-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: var(--map-filter);
}
.home .company-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0;
  font-size: 14px;
}
.home .company-info dt {
  color: var(--text-muted);
}
.home .company-info dd {
  margin: 0;
  font-weight: 550;
}
@media (max-width: 639.98px) {
  .home {
    gap: 14px;
  }
  .home .home-hero {
    padding: 22px 18px;
  }
  .home .home-hero h1 {
    font-size: 24px;
  }
  .home .card {
    padding: 16px;
  }
  .home .offices {
    gap: 14px;
  }
  .home .company-info {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .home .company-info dd {
    margin-bottom: 8px;
  }
}
.system-status .settings-panel {
  overflow-y: auto;
}
.system-status .status-list,
.system-status .status-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
@media (max-width: 639.98px) {
  .system-status .status-list,
  .system-status .status-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.system-status .status-charts .statistics-card {
  display: flex;
  flex-direction: column;
}
.system-status .status-charts .statistics-chart {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.system-status .status-charts .statistics-plot {
  margin-top: auto;
}
.system-status .status-list {
  grid-auto-rows: auto;
}
.system-status .status-list:empty {
  display: none;
}
.system-status .status-errors {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.system-status .status-errors:empty {
  display: none;
}
.system-status .status-row {
  display: grid;
  grid-row: span 3;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: subgrid;
  row-gap: 8px;
  grid-template-areas: "badge name time" "text text text" "details details details";
  align-items: baseline;
  column-gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.system-status .status-badge {
  grid-area: badge;
}
.system-status .status-name {
  grid-area: name;
  min-width: 0;
  text-align: left;
}
.system-status .status-time {
  grid-area: time;
  justify-self: end;
  white-space: nowrap;
  color: var(--text-muted);
}
.system-status .status-text {
  grid-area: text;
  align-self: start;
  font-size: 13px;
}
.system-status .status-badge {
  justify-self: start;
  white-space: nowrap;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.system-status .status-ok .status-badge {
  color: var(--success);
  border-color: var(--success-border);
  background: var(--success-bg);
}
.system-status .status-problem {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}
.system-status .status-problem .status-badge {
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--surface);
}
.system-status .status-details {
  grid-area: details;
  align-self: start;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.system-status .status-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.system-status .status-details th,
.system-status .status-details td {
  padding: 3px 0 3px 12px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.system-status .status-details th:first-child {
  width: 32%;
  padding-left: 0;
  text-align: left;
}
.system-status .status-details td,
.system-status .status-details thead th {
  text-align: right;
}
.system-status .status-details thead th {
  color: var(--text-muted);
  font-weight: 600;
}
.system-status .status-details tbody th {
  font-weight: 400;
  color: var(--text-muted);
}
.system-status .status-details tbody tr + tr {
  border-top: 1px dashed var(--border);
}
.system-status .status-errors-title,
.system-status .status-chart-title {
  margin: 20px 0 8px;
}
.system-status .status-error {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.system-status .status-error:last-child {
  border-bottom: none;
}
.system-status .status-error summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.system-status .status-error summary small {
  margin-left: 8px;
  color: var(--text-muted);
}
.system-status .status-error pre {
  overflow-x: auto;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: var(--surface-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.mail-logo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}
.mail-logo.is-busy {
  opacity: .6;
  pointer-events: none;
}
.mail-logo .mail-logo-hint {
  margin: 0;
  color: var(--text-muted);
}
.mail-logo .mail-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #5f6368;
}
.mail-logo .mail-logo-preview img {
  max-width: 240px;
  max-height: 64px;
}
.mail-logo .mail-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mail-logo-button .mail-logo-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  max-width: 96px;
}
.mail-logo-button .mail-logo-thumb img {
  max-height: 22px;
  max-width: 96px;
  padding: 2px 4px;
  border-radius: 6px;
  background: #ffffff;
}
.message-template {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message-template .template-field-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
}
.message-template .template-field-group[hidden] {
  display: none;
}
.message-template .template-field-group .input-label {
  flex: none;
  padding-top: 0;
  text-align: left;
}
.message-template .message-template-types:not([hidden]) ~ .template-field-group .input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.message-template .message-template-types {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
}
.message-template .message-template-types::-webkit-scrollbar {
  display: none;
}
.message-template .message-template-types {
  box-shadow: inset 0 -1px 0 var(--border);
}
.message-template .message-template-types[hidden] {
  display: none;
}
.message-template .message-template-types [role="tab"] {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.message-template .message-template-types [role="tab"]:hover {
  color: var(--text);
}
.message-template .message-template-types [role="tab"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}
.message-template .message-template-types [role="tab"][aria-selected="true"] {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.message-template .message-template-types [role="tab"][hidden] {
  display: none;
}
.message-template .message-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.message-template .message-template-actions:has(> :not([hidden])) {
  min-height: 34px;
}
.message-template .message-template-actions .btn[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--primary);
}
.message-template > .form-hint {
  margin: 0;
  color: var(--text-muted);
}
.template-field {
  position: relative;
  min-width: 0;
}
.template-field .template-field-tools {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 3px;
  display: flex;
  gap: 2px;
}
.template-field .template-field-tools:has([aria-expanded="true"]) {
  z-index: 4;
}
.template-field .template-field-language,
.template-field .template-field-variables,
.template-field .template-field-condition,
.template-field .template-field-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.template-field .template-field-language:hover,
.template-field .template-field-variables:hover,
.template-field .template-field-condition:hover,
.template-field .template-field-reset:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.template-field .template-field-language:focus-visible,
.template-field .template-field-variables:focus-visible,
.template-field .template-field-condition:focus-visible,
.template-field .template-field-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}
.template-field .template-field-language .icon,
.template-field .template-field-variables .icon,
.template-field .template-field-condition .icon,
.template-field .template-field-reset .icon {
  width: 18px;
  height: 18px;
}
.template-field .template-field-language[hidden],
.template-field .template-field-variables[hidden],
.template-field .template-field-condition[hidden],
.template-field .template-field-reset[hidden] {
  display: none;
}
.template-field > .template-text {
  padding-right: 230px;
}
.template-field > .rich-text .rich-text-toolbar {
  padding-right: 230px;
}
.template-field:has(.template-field-reset:not([hidden])) > .template-text,
.template-field:has(.template-field-reset:not([hidden])) > .rich-text .rich-text-toolbar {
  padding-right: 270px;
}
.template-field .rich-text-content.empty::before {
  white-space: pre-wrap;
}
@media (max-width: 639.98px) {
  .template-field .template-field-variables span {
    display: none;
  }
  .template-field > .template-text {
    padding-right: 140px;
  }
  .template-field > .rich-text .rich-text-toolbar {
    padding-right: 140px;
  }
  .template-field:has(.template-field-reset:not([hidden])) > .template-text,
  .template-field:has(.template-field-reset:not([hidden])) > .rich-text .rich-text-toolbar {
    padding-right: 175px;
  }
  .template-field > .template-text.multiline,
  .template-field:has(.template-field-reset:not([hidden])) > .template-text.multiline {
    padding: 42px 10px 6px;
  }
}
.message-template .template-field-inherited {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.message-template .template-field-inherited[hidden] {
  display: none;
}
.template-block {
  padding: 1px 3px;
  border: 1px dashed var(--primary-200);
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.template-block .template-block-label {
  display: inline-block;
  margin-right: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-active);
  font-size: .78em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
}
.template-block .template-block-label .template-variable-mode {
  margin-right: 4px;
  font-weight: 400;
  opacity: .8;
}
.template-block .template-block-label .template-variable-remove {
  display: inline-block;
  margin: 0 -3px 0 4px;
  padding: 0 3px;
  border-radius: 999px;
  font-weight: 400;
  opacity: .6;
}
.template-block .template-block-label .template-variable-remove:hover {
  opacity: 1;
  background: var(--primary-200);
}
.template-block[data-mode="unless"] {
  border-color: var(--border-strong);
}
.template-text {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.template-text:hover {
  border-color: var(--border-hover);
}
.template-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}
.template-text {
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
}
.template-text.multiline {
  min-height: 7.5em;
}
.template-text.empty::before {
  content: attr(data-placeholder);
  color: var(--text-disabled);
  pointer-events: none;
}
.template-variable {
  display: inline-block;
  margin: 0 1px;
  padding: 0 7px;
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-active);
  font-size: .88em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
  touch-action: none;
}
.template-variable .template-variable-mode {
  margin-right: 4px;
  font-weight: 400;
  opacity: .8;
}
.template-variable .template-variable-remove {
  display: inline-block;
  margin: 0 -3px 0 4px;
  padding: 0 3px;
  border-radius: 999px;
  font-weight: 400;
  opacity: .6;
  cursor: pointer;
}
.template-variable .template-variable-remove:hover {
  opacity: 1;
  background: var(--primary-200);
}
.template-variable.dragging {
  opacity: .4;
}
.template-drop-mark {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin: 0 -1px;
  vertical-align: text-bottom;
  background: var(--primary);
}
html.template-dragging,
html.template-dragging * {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
}
.menu-popup.template-variable-menu {
  max-width: min(340px, calc(100vw - 16px));
}
.menu-popup.template-variable-menu .template-variable-menu-title {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border);
}
.menu-popup.template-variable-menu .template-variable-menu-title small {
  color: var(--text-muted);
  font-size: 13px;
}
.menu-popup.template-variable-menu > button {
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  gap: 2px;
  padding: 8px 10px;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
}
.menu-popup.template-variable-menu > button small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.menu-popup.template-variable-menu > button.danger {
  color: var(--danger);
}
.menu-popup.template-variables-menu {
  max-height: min(420px, 70vh);
  max-width: min(420px, calc(100vw - 16px));
}
.menu-popup.template-variables-menu .template-condition-hint {
  flex: none;
  margin: 0;
  padding: 6px 10px 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}
.menu-popup.template-variables-menu > button {
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  gap: 4px;
  padding: 8px 10px;
  white-space: normal;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.menu-popup.template-variables-menu > button small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.menu-popup > button small {
  color: var(--text-muted);
  font-weight: 400;
}
.message-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message-preview .form-hint {
  margin: 0;
  color: var(--text-muted);
}
.message-preview .message-preview-subject {
  margin: 0;
  font-weight: 600;
}
.message-preview .message-preview-mail {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.message-preview .message-preview-sms p {
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-preview .message-preview-sms .message-preview-text {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-alt);
}
.message-preview .message-preview-sms:empty {
  display: none;
}
.table-button .btn-badge {
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.table-button[aria-pressed="true"] .btn-badge {
  background: var(--on-primary);
  color: var(--primary);
}
.table-container .table-controls .table-tools .btn.table-button.icon-only:has(.btn-badge) {
  width: auto;
  padding: 0 6px;
}
