/* Sales Flowis: Flowis look (tokens from flowis_design_tokens.md). Plain CSS, no framework. */
:root {
  --fl-primary: #070a2e;
  --fl-secondary: #00d2dd;
  --fl-success: #9fcc2e;
  --fl-info: #03a9f4;
  --fl-warning: #fa9f1b;
  --fl-danger: #df5645;
  --fl-light: #e1e7f0;
  --fl-dark: #373c43;
  --fl-text: #646f76;
  --fl-bg: #f5f5f5;
  --fl-gray: #f3f3f3;
  --fl-zebra: #f9fafc;
  --fl-row-border: #f0f3f8;
  --fl-link: #1663be;
  --fl-radius: 7px;
  --fl-pill: 50px;
  --fl-shadow-sm: 0 2px 4px rgba(55, 60, 67, 0.075);
  --fl-shadow-soft: 0 16px 16px -12px rgba(105, 96, 215, 0.176);
  --app-header-height: 59px;
  --ok-bg: #ecf5d5;
  --ok-fg: #405212;
  --warn-bg: #feecd1;
  --warn-fg: #64400b;
  --bad-bg: #f9ddda;
  --bad-fg: #59221c;
  --info-bg: #cdedfd;
  --info-fg: #014462;
  --neutral-bg: #e2e3e5;
  --neutral-fg: #41464b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Text is 13 px and dark; grey (--fl-text, darkened from the Flowis #7a878e to reach 5:1 on white) is for secondary details
   such as dates and hints. */
body {
  margin: 0;
  font:
    13px/1.5 "Open Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--fl-dark);
  background: var(--fl-bg);
}

a {
  color: var(--fl-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--fl-dark);
  margin: 0 0 8px;
  font-weight: 600;
}

h2 {
  font-size: 15px;
}

h3 {
  font-size: 13px;
}

code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 12px;
}

pre {
  background: #0d1030;
  color: #e7ecf5;
  padding: 12px;
  border-radius: var(--fl-radius);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 6px 0;
}

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -3px;
}

.muted {
  color: var(--fl-text);
}

.small {
  font-size: 12px;
}

.nowrap {
  white-space: nowrap;
}

.right {
  text-align: right;
}

.hidden {
  display: none !important;
}

/* sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: #fff;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
}

.brand {
  font-size: 21px;
  font-weight: 600;
  color: var(--fl-primary);
  text-align: center;
  margin: 22px 0 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--fl-text);
  letter-spacing: 0.4px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  color: var(--fl-primary);
  border-radius: var(--fl-pill);
  margin-bottom: 2px;
}

.nav a .ic {
  color: rgba(7, 10, 46, 0.5);
}

.nav a:hover {
  background: var(--fl-gray);
  text-decoration: none;
}

.nav a.active {
  background: var(--fl-primary);
  color: #fff;
}

.nav a.active .ic {
  color: #fff;
}

.nav-divider {
  height: 1px;
  background: var(--fl-light);
  margin: 10px 16px;
}

/* Pinned saved filters under the menu: lighter than the main items, the open one grey rather than navy. */
.nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fl-text);
  padding: 12px 16px 4px;
}

.nav a.pinned-view {
  padding: 5px 16px;
  font-size: 13px;
}

.nav a.pinned-view > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.nav a.pinned-view .ic {
  width: 14px;
  height: 14px;
}

.nav a.pinned-view.current {
  background: var(--fl-gray);
  font-weight: 600;
}

.nav-badge[hidden] {
  display: none;
}

.powered {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  color: #c8c8c8;
  font-size: 11px;
}

.brand {
  position: relative;
}

.nav-collapse {
  position: absolute;
  top: -14px;
  right: -6px;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 5px;
  color: rgba(7, 10, 46, 0.45);
  cursor: pointer;
  line-height: 0;
}

.nav-collapse:hover,
.nav-collapse:focus-visible {
  background: var(--fl-gray);
  color: var(--fl-primary);
}

/* Collapsed menu (desktop): an icon rail; labels stay in the DOM for screen readers and show as tooltips (title). */
@media (min-width: 961px) {
  .sidebar,
  .main {
    transition:
      width 0.15s,
      margin-left 0.15s;
  }

  .nav-collapsed .sidebar {
    width: 64px;
    padding: 0 8px;
    overflow-x: hidden;
  }

  .nav-collapsed .main {
    margin-left: 64px;
  }

  .nav-collapsed .brand {
    margin: 14px 0 10px;
    height: 30px;
  }

  .nav-collapsed .brand-name {
    display: none;
  }

  .nav-collapsed .nav-collapse {
    position: static;
    margin: 0 auto;
    display: block;
  }

  .nav-collapsed .nav a {
    justify-content: center;
    padding: 9px 0;
  }

  .nav-collapsed .nav a > span:not(.nav-badge) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-collapsed .nav a .nav-badge {
    position: absolute;
    top: 1px;
    right: 2px;
    margin: 0;
    font-size: 9px;
    padding: 0 4px;
    line-height: 15px;
  }

  .nav-collapsed .nav-divider {
    margin: 10px 4px;
  }

  .nav-collapsed .nav-title {
    display: none;
  }

  .nav-collapsed .interface-mode,
  .nav-collapsed .powered {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-collapse {
    display: none;
  }
}

/* header */
.main {
  margin-left: 220px;
  position: relative;
  min-height: 100vh;
}

/* Anchor jumps and scrollIntoView land below the bands that stay at the top of the window. */
html {
  scroll-padding-top: calc(var(--app-header-height) + var(--lead-head-height, 0px) + 8px);
}

/* The dark band stays at the top of the window while the page scrolls, as in Flowis and Digitálny poštár; without the
   wave under it, so no card sits half on dark and half on grey. */
.header {
  height: var(--app-header-height);
  background: var(--fl-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 20px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.header h1 {
  color: #fff;
  font-size: 22px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header .burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 4px;
  cursor: pointer;
}

.header .burger .ic {
  width: 22px;
  height: 22px;
}

.header-stack {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-more {
  position: relative;
}

.header-more-menu hr {
  border: 0;
  border-top: 1px solid #eceef6;
  margin: 4px 6px;
}

.header-more > summary {
  list-style: none;
}

.header-more > summary::-webkit-details-marker {
  display: none;
}

.header-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(7, 10, 46, 0.18);
  padding: 6px;
  z-index: 30;
  display: grid;
}

.header-more-menu a,
.header-more-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--fl-primary);
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
}

.header-more-menu a:hover,
.header-more-menu button:hover {
  background: #f2f4fb;
}

.header-more-menu form.inline {
  display: block;
}

.env-pill {
  background: var(--fl-danger);
  color: #fff;
  border-radius: 30px;
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.hbtn {
  height: 32px;
  min-width: 32px;
  padding: 0 12px;
  border-radius: 40px;
  background: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fl-primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.hbtn:hover {
  background: var(--fl-gray);
}

.content {
  position: relative;
  z-index: 1;
  padding: 10px 12px 24px;
}

.banner {
  border-radius: var(--fl-radius);
  padding: 10px 14px;
  margin: 0 0 10px;
  font-weight: 600;
}

.banner.danger {
  background: var(--fl-danger);
  color: #fff;
}

.banner.warning {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.flash {
  background: #fff;
  border-left: 4px solid var(--fl-success);
  border-radius: var(--fl-radius);
  padding: 10px 14px;
  margin-bottom: 10px;
  color: var(--fl-dark);
  box-shadow: var(--fl-shadow-sm);
}

.flash.alert {
  border-color: var(--fl-danger);
}

.page-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Nothing readable sits on the dark header wave (its height changes with the width and the banners above): the page
   intro and a page's toolbar are white bars like the cards below them. */
.page-intro,
.page-actions {
  background: #fff;
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow-sm);
  padding: 8px 12px;
}

.page-intro:has(+ .page-actions) {
  margin-bottom: 0;
  border-radius: var(--fl-radius) var(--fl-radius) 0 0;
  box-shadow: none;
}

.page-intro + .page-actions {
  border-radius: 0 0 var(--fl-radius) var(--fl-radius);
  padding-top: 0;
}

/* cards & grid */
.card {
  background: #fff;
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow-sm);
  margin-bottom: 10px;
}

.card.soft {
  box-shadow: var(--fl-shadow-soft);
}

.card-body {
  padding: 18px 20px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 0;
  flex-wrap: wrap;
}

.card-head h2 {
  margin: 0;
}

.card-head .tools {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.grid > * {
  min-width: 0;
}

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

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

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

.counter {
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.counter .label {
  color: var(--fl-dark);
  font-weight: 600;
}

.counter .value {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--acc, var(--fl-primary));
  margin-top: 6px;
}

.counter::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 55%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--acc, var(--fl-primary)), white 55%),
    var(--acc, var(--fl-primary))
  );
  opacity: 0.25;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C 50 56 90 22 160 14 L160 60 Z'/%3E%3C/svg%3E")
    no-repeat center/100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C 50 56 90 22 160 14 L160 60 Z'/%3E%3C/svg%3E")
    no-repeat center/100% 100%;
}

/* buttons */
/* At least 32 px high with 12.5 px text (28 px for .sm), easy to read and to hit. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--fl-pill);
  font: inherit;
  font-size: 12.5px;
  padding: 6px 16px;
  min-height: 32px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.3;
  background: var(--fl-light);
  color: var(--fl-primary);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--fl-primary);
  color: #fff;
}

.btn.secondary {
  background: var(--fl-secondary);
  color: #fff;
}

.btn.new {
  background: var(--fl-success);
  color: #fff;
}

.btn.edit {
  background: var(--fl-warning);
  color: #fff;
}

.btn.danger {
  background: var(--fl-danger);
  color: #fff;
}

.btn.outline {
  background: transparent;
  color: var(--fl-text);
  border-color: var(--fl-light);
}

.btn.outline-primary {
  background: transparent;
  color: var(--fl-primary);
  border-color: var(--fl-primary);
}

.btn.sm {
  padding: 4px 12px;
  font-size: 11.5px;
  min-height: 28px;
}

.btn.icon {
  padding: 5px;
  width: 32px;
  height: 32px;
  min-height: 0;
  justify-content: center;
}

.btn.sm.icon {
  width: 28px;
  height: 28px;
}

form.inline {
  display: inline;
}

.button_to {
  display: inline;
}

/* tables */
.table-wrap {
  overflow-x: auto;
}

table.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-weight: 700;
  color: var(--fl-dark);
  padding: 8px 14px 8px 8px;
  border-bottom: 1px solid var(--fl-light);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}

.table td {
  padding: 8px;
  border-bottom: 1px solid var(--fl-row-border);
  vertical-align: top;
}

.table tbody tr:hover {
  background: rgba(0, 0, 0, 0.025);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 26px;
  text-align: center;
  color: var(--fl-text);
}

/* A table's header row stays in view while its rows scroll past. sticky_table_header_controller.js moves the real <thead>
   (position: sticky would stick inside .table-wrap, which scrolls sideways); where the browser can, a scroll-driven
   animation moves it in step with the page, otherwise the controller sets the offset on every scroll. */
@media screen {
  .table > thead.sticky-table-header {
    position: relative;
    z-index: 3;
    background: #fff;
    transform: translateY(var(--table-header-offset, 0px));
    box-shadow: 0 1px 0 var(--fl-light);
  }

  .table > thead.sticky-table-header--scroll-driven {
    animation: sticky-table-header-scroll linear both;
    animation-timeline: scroll(root block);
    animation-range: var(--table-header-start) var(--table-header-end);
  }

  @keyframes sticky-table-header-scroll {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(var(--table-header-travel));
    }
  }
}

/* A long list's page links (shared/_pagination, and Pošta's older/newer), the last child of its card: stuck to the
   bottom of the window while the rows scroll past, after the last row once the card ends (as in Digitálny poštár). */
.pagination-bar,
.mail-pages:has(a) {
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: #fff;
  border-top: 1px solid var(--fl-light);
  border-radius: 0 0 var(--fl-radius) var(--fl-radius);
  box-shadow: 0 -4px 12px rgba(7, 10, 46, 0.06);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 20px max(8px, env(safe-area-inset-bottom));
}

.mail-pages:has(a) {
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.pagination-range {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--fl-pill);
  color: var(--fl-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pagination a:hover {
  background: var(--fl-gray);
  text-decoration: none;
}

.pagination [aria-current] {
  background: var(--fl-primary);
  color: #fff;
}

.pagination .gap {
  padding: 0 4px;
}

@media (max-width: 640px) {
  .pagination-bar {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* During a call the call panel is the bottom sheet: the page links stay above it. */
  body:has(.softphone-panel:not([hidden])) :is(.pagination-bar, .mail-pages:has(a)) {
    bottom: var(--softphone-sheet, 240px);
  }
}

/* The rubber-band bounce at either end of the page moves the page under the fixed menu, opening a gap above the sticky
   top band and under the sticky footer; phones keep pull-to-refresh. */
html {
  overscroll-behavior-y: none;
}

@media (hover: none) and (pointer: coarse) and (max-width: 767.98px),
  (hover: none) and (pointer: coarse) and (max-height: 767.98px) {
  html {
    overscroll-behavior-y: auto;
  }
}

/* Loading feedback: Turbo's progress bar in the brand colour, and a frame that is loading fades a little. */
.turbo-progress-bar {
  height: 3px;
  background: var(--fl-secondary);
}

turbo-frame[aria-busy="true"] {
  opacity: 0.6;
  transition: opacity 0.15s;
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--neutral-bg);
  color: var(--neutral-fg);
  white-space: nowrap;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.pill.bad {
  background: var(--bad-bg);
  color: var(--bad-fg);
}

.pill.info {
  background: var(--info-bg);
  color: var(--info-fg);
}

.pill.active {
  background: #fff1b8;
  color: #5a4600;
}

.pill.primary {
  background: #cdced5;
  color: #030412;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #adb5bd;
}

.dot.ok {
  background: var(--fl-success);
}

.dot.bad {
  background: var(--fl-danger);
}

.dot.warn {
  background: var(--fl-warning);
}

/* forms */
.form {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.field {
  display: grid;
  gap: 4px;
}

.field > span,
.field > label {
  color: var(--fl-primary);
  font-weight: 600;
  font-size: 12.5px;
}

.field .hint {
  font-size: 12px;
  color: var(--fl-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="time"],
input[type="number"],
input[type="datetime-local"],
input[type="search"],
input[type="url"],
select,
textarea {
  font: inherit;
  color: var(--fl-dark);
  background: #fff;
  border: 1px solid #d5dbe4;
  border-radius: var(--fl-radius);
  padding: 7px 10px;
  width: 100%;
  min-height: 36px;
}

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

/* Grows with its text, then scrolls; autogrow_controller.js sets the height where field-sizing is not supported. */
textarea.autogrow {
  field-sizing: content;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 210, 221, 0.45);
  outline-offset: 0;
  border-color: var(--fl-secondary);
}

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

.row > * {
  flex: 1 1 160px;
}

.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checks label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--fl-dark);
  font-weight: 400;
}

.filters {
  background: var(--fl-gray);
  border-radius: var(--fl-radius);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 10px;
}

.filters.compact {
  padding: 8px 12px;
  gap: 6px;
  align-items: center;
  margin-bottom: 0;
}

.filters.compact > select,
.filters.compact > input,
.filters.compact .ts-wrapper {
  width: auto;
  min-width: 140px;
  max-width: 220px;
}

.filters.compact > input.narrow {
  min-width: 130px;
  max-width: 160px;
}

.filters .field {
  min-width: 150px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #cbd0d8;
  border-radius: 20px;
  transition: 0.15s;
  cursor: pointer;
}

.switch span::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
}

.switch input:checked + span {
  background: var(--fl-success);
}

.switch input:checked + span::before {
  transform: translateX(16px);
}

/* definition list */
.dl {
  display: grid;
  grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
  margin: 0;
}

.dl dt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fl-text);
  text-align: right;
  padding: 6px 14px;
}

.dl dd {
  margin: 0;
  padding: 6px 0;
  color: var(--fl-dark);
  word-break: break-word;
}

.dl dt:nth-of-type(even),
.dl dd:nth-of-type(even) {
  background: var(--fl-zebra);
}

/* A hint on demand (hint_tips_controller.js): an ⓘ beside the field's name, its text in a bubble on hover, focus or tap. */
.tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  color: var(--fl-text);
  cursor: help;
  vertical-align: -2px;
  border-radius: 50%;
  outline-offset: 2px;
}

.tip .ic {
  width: 14px;
  height: 14px;
}

.tip:hover,
.tip:focus {
  color: var(--fl-primary);
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  left: -10px;
  top: calc(100% + 6px);
  width: max-content;
  max-width: min(340px, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--fl-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 24px rgba(7, 10, 46, 0.25);
  z-index: 40;
  pointer-events: none;
  /* Not merely invisible: a hidden tip beside the right edge still widened the page (Môj profil scrolled sideways). */
  display: none;
}

.tip:hover::after,
.tip:focus::after {
  display: block;
}

/* Settings pages: groups of fields under a short title (Môj profil). */
.settings-form {
  max-width: 860px;
  gap: 18px;
}

.settings-group {
  border: 0;
  padding: 0 0 16px;
  margin: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--fl-row-border);
}

.settings-group > legend,
details.settings-group > summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--fl-primary);
  padding: 0;
  margin-bottom: 10px;
}

.settings-group .checks {
  flex-direction: column;
  gap: 6px;
}

.session-fold > summary {
  cursor: pointer;
  color: var(--fl-link);
}

.session-fold[open] > summary {
  margin-bottom: 8px;
}

/* Znalosti AI asistenta: one search row, then each answer as a closed row with the start of its text. */
.probe-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

details.snippet {
  border-bottom: 1px solid var(--fl-row-border);
}

details.snippet > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 4px;
  list-style: none;
}

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

details.snippet > summary:hover {
  background: var(--fl-zebra);
}

details.snippet .snippet-answer {
  flex-basis: 100%;
  color: var(--fl-text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

details.snippet[open] .snippet-answer {
  display: none;
}

details.snippet .snippet-body {
  padding: 4px 4px 14px;
  display: grid;
  gap: 10px;
}

details.snippet .snippet-delete {
  display: flex;
  justify-content: flex-end;
}

details.new-snippet > summary {
  cursor: pointer;
  list-style: none;
  padding-bottom: 14px;
}

details.new-snippet > summary::-webkit-details-marker {
  display: none;
}

/* copy fields & steps */
.copy {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.copy code {
  flex: 1;
  min-width: 0;
  background: var(--fl-zebra);
  border: 1px solid var(--fl-row-border);
  border-radius: 6px;
  padding: 5px 8px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--fl-dark);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fl-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.kv {
  display: grid;
  grid-template-columns: minmax(140px, 32%) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  margin-top: 6px;
}

.kv > span {
  font-weight: 600;
  color: var(--fl-dark);
  font-size: 12px;
}

/* wire exchanges (simulator, events) */
.wire {
  display: grid;
  gap: 8px;
}

.xchg {
  border: 1px solid #edf1f6;
  border-radius: var(--fl-radius);
  background: #fff;
}

.xchg summary {
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--fl-dark);
  font-weight: 600;
  list-style: none;
}

.xchg summary::-webkit-details-marker {
  display: none;
}

.xchg .io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.xchg .io h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fl-text);
  margin: 4px 0 0;
}

.tl {
  display: grid;
  gap: 6px;
}

.tl-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: start;
}

/* flow editor */
.editor-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 320px;
  gap: 10px;
  height: calc(100vh - 210px);
  min-height: 520px;
}

.editor-shell .panel {
  background: #fff;
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow-sm);
  overflow: auto;
  padding: 12px;
}

.editor-canvas {
  background: #fff;
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow-sm);
  overflow: hidden;
  position: relative;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px dashed #d5dbe4;
  border-radius: var(--fl-radius);
  margin-bottom: 6px;
  cursor: grab;
  background: var(--fl-zebra);
  color: var(--fl-dark);
  font-size: 12px;
  user-select: none;
}

.palette-item:hover {
  border-color: var(--fl-secondary);
}

.fnode {
  background: #fff;
  border: 1.5px solid #d5dbe4;
  border-radius: 10px;
  min-width: 190px;
  max-width: 230px;
  box-shadow: var(--fl-shadow-sm);
  font-size: 11.5px;
}

.fnode.selected {
  border-color: var(--fl-secondary);
  box-shadow: 0 0 0 3px rgba(0, 210, 221, 0.25);
}

.fnode.has-error {
  border-color: var(--fl-danger);
}

.fnode.has-warning {
  border-color: var(--fl-warning);
}

.fnode.sim-active {
  border-color: var(--fl-success);
  box-shadow: 0 0 0 4px rgba(159, 204, 46, 0.35);
}

.fnode .fhead {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border-bottom: 1px solid var(--fl-row-border);
  border-radius: 10px 10px 0 0;
}

.fnode .fhead b {
  color: var(--fl-dark);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fnode .ftype {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fl-text);
  padding: 4px 9px 0;
}

.fnode .fsum {
  padding: 2px 9px 6px;
  color: var(--fl-text);
}

.fnode .fports {
  border-top: 1px solid var(--fl-row-border);
}

.fnode .fport {
  position: relative;
  padding: 3px 16px 3px 9px;
  text-align: right;
  color: var(--fl-dark);
  font-size: 11px;
}

.cat-entry {
  background: #e8f0fe;
}

.cat-logic {
  background: #fff5e0;
}

.cat-media {
  background: #eef7e1;
}

.cat-route {
  background: #e6f7f8;
}

.cat-out {
  background: #f3eefc;
}

.cat-end {
  background: #f4f4f4;
}

.issues {
  display: grid;
  gap: 6px;
}

.issue {
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}

.issue.error {
  background: var(--bad-bg);
  color: var(--bad-fg);
}

.issue.warning {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.insp .field {
  margin-bottom: 10px;
}

.insp h3 {
  margin-top: 6px;
}

.rlist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rrow {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rrow input[type="text"],
.rrow select {
  min-height: 30px;
  padding: 4px 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.rrow .btn.icon {
  flex: none;
}

.palette-item .palette-help {
  flex-basis: 100%;
  font-size: 10.5px;
  color: var(--fl-text);
  line-height: 1.35;
}

.palette-item {
  flex-wrap: wrap;
  row-gap: 0;
}

.insp-help {
  background: var(--fl-zebra);
  border-radius: 6px;
  padding: 6px 8px;
  margin: 4px 0 10px;
  font-size: 11.5px;
}

.prompt-select {
  display: flex;
  gap: 4px;
  align-items: center;
}

.prompt-select select {
  flex: 1 1 auto;
  min-width: 0;
}

.prompt-select .btn.icon {
  flex: none;
  padding: 0 7px;
  min-width: 30px;
}

/* prompt dialog of the flow designer */
.dialog.prompt-dialog {
  width: min(760px, calc(100vw - 32px));
}

.prompt-dialog .lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-dialog fieldset {
  border: 1px solid var(--fl-row-border);
  border-radius: var(--fl-radius);
  padding: 8px 10px 10px;
  margin: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.prompt-dialog textarea {
  width: 100%;
  min-height: 96px;
  font: inherit;
}

.prompt-dialog audio {
  width: 100%;
  height: 32px;
}

.prompt-dialog .dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.prompt-dialog .uses {
  margin: 4px 0 0;
  padding-left: 18px;
  max-height: 90px;
  overflow: auto;
}

@media (max-width: 640px) {
  .prompt-dialog .lang-grid {
    grid-template-columns: 1fr;
  }
}

/* "Vypočuť tok": a flow's paths as the prompts a caller hears */
.listen-path {
  border: 1px solid var(--fl-light);
  border-radius: var(--fl-radius);
  margin-bottom: 8px;
}

.listen-path > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

.listen-play {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

.listen-items {
  margin: 0;
  padding: 0 12px 10px 32px;
}

.listen-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 4px 6px;
  border-radius: var(--fl-radius);
}

.listen-item.listen-note,
.listen-item.listen-spoken {
  display: list-item;
}

.listen-item.playing {
  background: var(--fl-gray);
  outline: 2px solid var(--fl-secondary);
}

.listen-item.listen-match {
  background: var(--fl-zebra);
}

.listen-audio {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.listen-audio audio {
  height: 30px;
  max-width: 220px;
}

@media (max-width: 720px) {
  .listen-item {
    grid-template-columns: 1fr;
  }

  .listen-play {
    margin-left: 0;
  }
}

/* routing overview of a flow */
.routing-table td {
  vertical-align: top;
  min-width: 110px;
}

.routing-table td:nth-child(3) {
  min-width: 230px;
}

.routing-table .route-simulate {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.routing-table td:first-child {
  min-width: 160px;
}

.route-step {
  margin-bottom: 4px;
  color: var(--fl-dark);
}

.route-step .route-arrow {
  color: var(--fl-text);
  margin-right: 2px;
}

.route-prompt,
.route-note {
  color: var(--fl-text);
  font-size: 11.5px;
}

.route-ring,
.route-queue {
  font-weight: 600;
}

.route-people {
  margin: 2px 0 4px;
  padding-left: 16px;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--fl-text);
}

.route-branch {
  margin: 4px 0 4px 8px;
  padding-left: 8px;
  border-left: 2px solid var(--fl-light);
  font-weight: 400;
}

/* login */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--fl-primary);
  padding: 16px;
}

.login .card {
  width: min(380px, 100%);
}

/* responsive */
@media (max-width: 1180px) {
  .editor-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .editor-shell .insp-panel {
    grid-column: 1 / -1;
    height: auto;
  }
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  }

  .sidebar.open {
    transform: none;
  }

  .nav-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 46, 0.35);
    z-index: 19;
  }

  .main {
    margin-left: 0;
  }

  .header .burger {
    display: inline-flex;
  }

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .editor-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editor-canvas {
    height: 70vh;
  }

  .xchg .io {
    grid-template-columns: 1fr;
  }

  .dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl dt {
    text-align: left;
    padding-bottom: 0;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 17px;
  }

  .content {
    padding: 6px 8px 20px;
  }
}

/* setup wizard */
.setup-progress {
  display: grid;
  gap: 8px;
}

.setup-progress-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.setup-progress-head h2 {
  margin: 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.setup-card-action {
  margin-left: auto;
}

.setup-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--fl-light);
  overflow: hidden;
}

.setup-bar > span {
  display: block;
  height: 100%;
  background: var(--fl-success);
  border-radius: 8px;
  transition: width 0.3s;
}

.setup-overview {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.setup-step > .setup-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.setup-step > .setup-summary::-webkit-details-marker {
  display: none;
}

.setup-step[open] > .setup-summary {
  border-bottom: 1px solid var(--fl-row-border);
}

.setup-title {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.setup-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  font-size: 12px;
  background: var(--neutral-bg);
  color: var(--neutral-fg);
}

.setup-step.done .setup-mark {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.setup-step.missing .setup-mark {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.setup-step.error .setup-mark {
  background: var(--bad-bg);
  color: var(--bad-fg);
}

.setup-checks {
  margin: 0 0 10px;
}

.setup-checks li {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.setup-confirm {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.setup-confirm label {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.setup-instructions {
  margin: 6px 0 10px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.setup-instructions code,
.config-where code {
  word-break: break-all;
}

.setup-block {
  border-top: 1px solid var(--fl-row-border);
  padding-top: 12px;
  margin-top: 12px;
}

.setup-block h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.setup-choices,
.setup-inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.setup-inline-actions > * {
  flex: 0 0 auto;
}

.setup-fix {
  margin-top: 2px;
  color: var(--fl-dark);
}

.copy-block {
  position: relative;
  margin: 6px 0 10px;
}

.copy-block-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
}

.copy-block pre {
  max-height: 420px;
  padding-top: 44px;
  font-size: 12px;
}

.config-where {
  margin-top: 3px;
  color: var(--fl-dark);
}

.m365-matrix td,
.m365-matrix th {
  vertical-align: middle;
}

/* empty states with a call to action, collapsed sections */
.empty-action {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

details.more-settings[open] > summary,
details.more-info[open] > summary {
  margin-bottom: 10px;
}

.rule-list.plain {
  list-style: none;
  padding-left: 0;
}

turbo-cable-stream-source {
  display: none;
}

/* Nastavenia → Konfigurácia */
.config-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.config-jump .pill {
  text-decoration: none;
}

.config-group {
  scroll-margin-top: 16px;
}

.config-form {
  display: grid;
  gap: 0;
}

.config-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 18px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f4;
}

.config-entry code {
  font-weight: 600;
  word-break: break-all;
}

.config-label .pill {
  margin-left: 4px;
}

.config-value {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.config-remove {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.config-form > div:last-child {
  padding-top: 12px;
}

@media (max-width: 760px) {
  .config-entry {
    grid-template-columns: minmax(0, 1fr);
  }
}

.config-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.config-actions .btn {
  flex: none;
}

/* Asterisk: softphone accounts (QR + credentials) and the health summary */
.softphone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 16px;
}

.softphone-account {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--fl-row-border);
  border-radius: var(--fl-radius);
  padding: 12px;
}

.softphone-qr svg {
  width: 132px;
  height: 132px;
  display: block;
  background: #fff;
}

.softphone-account .sip-data {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
}

.softphone-account .sip-data dd {
  margin: 0;
}

.softphone-account code {
  word-break: break-all;
}

.asterisk-health .row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.asterisk-health .row .pill {
  flex: none;
}

.asterisk-health .kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 8px 0 0;
}

.asterisk-health .kv dd {
  margin: 0;
}

@media (max-width: 600px) {
  .softphone-account {
    flex-direction: column;
  }
}

/* iOS zooms into any field with text under 16px and does not zoom back; touch screens get 16px fields. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  .ts-control,
  .ts-control input,
  .ts-dropdown {
    font-size: 16px;
  }
}

/* Rows that open their record on a click anywhere (rowlink controller; the row carries data-href) */
[data-controller~="rowlink"] [data-href],
[data-controller~="rowlink"][data-href] {
  cursor: pointer;
}

[data-controller~="rowlink"] [data-href]:hover,
[data-controller~="rowlink"][data-href]:hover {
  background: var(--fl-zebra);
}

/* People & availability: filter and users without a person */
.people-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 560px;
  margin-bottom: 12px;
}

.people-filter input {
  flex: 1;
  min-width: 0;
}

ul.chips {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
}

/* "Ako fungujú hovory": the read-only guide for everyone */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.guide-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide;
}

.guide-chain li {
  counter-increment: guide;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--fl-pill);
  background: var(--fl-zebra);
  border: 1px solid var(--fl-light);
  color: var(--fl-dark);
  font-weight: 600;
}

.guide-chain li::before {
  content: counter(guide);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fl-primary);
  color: #fff;
  font-size: 11px;
}

.guide-chain li:not(:last-child)::after {
  content: "→";
  margin-left: 6px;
  color: var(--fl-text);
  font-weight: 400;
}

.guide-steps h3 {
  margin-top: 16px;
}

.guide-steps h3:first-child {
  margin-top: 0;
}

.guide-steps p,
.guide-steps ul {
  max-width: 900px;
}

.guide-snippet {
  border: 1px solid var(--fl-light);
  border-radius: var(--fl-radius);
  padding: 6px 12px;
  margin-bottom: 6px;
}

.guide-snippet > summary {
  cursor: pointer;
}

.guide-snippet p {
  margin: 6px 0;
  max-width: 900px;
}

/* The Sales app (docs/mobile-app.md): its own bar shows the title and "back", its tab bar or drawer the menu. The page
   runs under both (iOS 26 glass); the safe area is their height, so content, sticky bands and bottom sheets clear them. */
.native-app {
  --app-header-height: env(safe-area-inset-top, 0px);
}

.native-app .main {
  margin-left: 0;
  padding-top: var(--app-header-height);
}

.native-app .content {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.native-app .toasts {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* One "Zavolať" per number in the app (sales/calls/_options). */
.native-app .call-option .app-call {
  width: 100%;
  justify-content: center;
}

/* Keyboard shortcuts mean nothing on a phone. */
.native-app kbd,
.native-app .keys-button {
  display: none;
}

/* A slide-over panel (new lead, new opportunity) between the app's bar and its tabs. */
.native-app .dialog.drawer {
  margin-top: env(safe-area-inset-top, 0px);
  margin-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}

/* Why a field was refused, under it (ApplicationHelper#field_error). */
.field-error {
  color: var(--fl-danger);
  font-size: 12.5px;
  font-weight: 600;
}

[aria-invalid="true"] {
  border-color: var(--fl-danger);
}

/* A frame whose page did not come (lib/frame_errors.js). */
.frame-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  color: var(--fl-dark);
}

/* "Obnovili sme rozpísaný text" over a form whose unsent text came back after signing in (keep_draft_controller.js). */
.draft-restored {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--info-bg);
  color: var(--fl-dark);
  font-size: 13px;
}
