/* The board of notes on the home page (Domů › Nástěnka, src/views/board.ts, public/js/board.js), taken over from the RARELO administration
   (the owner, 29. 11. 2026): coloured papers with a folded corner, a chip of who sees the note, a pencil for the author.
   Deliberate deviation from the INTECHI Design System (docs/INTECHI-DESIGN-SYSTEM.md has no notes): the six colours of the papers are the
   ones of RARELO, the same in the light and in the dark mode (a paper stays a paper; its text is always dark, so it reads on the light paper),
   only a little dimmed in the dark mode. The lift and tilt follow the switch Animační efekty (html[data-fx]). The chips: Tým purple (--sd-color-purple-700), Osobní light green (as in RARELO). */
html.sd {
  --bn-yellow: #fff2b3;
  --bn-green: #d9f2d3;
  --bn-blue: #d6e8fb;
  --bn-pink: #fbd9e6;
  --bn-orange: #ffe0bf;
  --bn-purple: #e6dcfa;
  --bn-ink: #1f2a24;
  --bn-quiet: #4c5a52;
  --bn-me-bg: #c9efc1;
  --bn-me-ink: #1d4a25;
  --bn-me-line: #a6dc9c;
  --bn-team-bg: var(--sd-color-purple-700);
  --bn-team-ink: #fff;
  --bn-shadow: drop-shadow(0 1px 1px rgba(21, 32, 27, 0.12))
    drop-shadow(0 4px 6px rgba(21, 32, 27, 0.1));
  --bn-shadow-up: drop-shadow(0 2px 2px rgba(21, 32, 27, 0.12))
    drop-shadow(0 12px 16px rgba(21, 32, 27, 0.18));
  --bn-dim: none;
}
html.sd[data-theme='dark'] {
  --bn-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  --bn-shadow-up: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55));
  --bn-dim: brightness(0.92);
}

html.sd .board .board-h {
  margin: 0;
}
/* the heading of the card with its button on the right (as the row .card > .head of INTECHI CRM) */
html.sd .board > .head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* a form that is the target of a link only (CRM shared.css .on-target): nothing opens by itself */
html.sd .board .on-target:not(:target):not(.is-open) {
  display: none;
}
/* the drawn pad icon (src/views/board.ts padIcon) sits on the line like a letter of the font */
html.sd .pad-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}
html.sd .board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  align-items: start;
}
html.sd .board-grid:not(:has(.sticky-slot, form:target)) {
  display: none;
}
html.sd .bn-new-slot:not(:has(form:target)) {
  display: none;
}

/* the paper: the right bottom corner is cut off (clip-path) and a darker folded tip lies in it; the shadow is on the slot (the cut would drop it) */
html.sd .sticky {
  --st: var(--bn-yellow);
  position: relative;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 18px;
  border-radius: 16px;
  background: var(--st);
  color: var(--bn-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
html.sd .sticky::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  pointer-events: none;
  border-top-left-radius: 7px;
  background: linear-gradient(
    to top left,
    transparent 50%,
    color-mix(in srgb, var(--st) 72%, #000 28%) 50%,
    color-mix(in srgb, var(--st) 88%, #000 12%) 100%
  );
}
html.sd .sticky-yellow {
  --st: var(--bn-yellow);
}
html.sd .sticky-green {
  --st: var(--bn-green);
}
html.sd .sticky-blue {
  --st: var(--bn-blue);
}
html.sd .sticky-pink {
  --st: var(--bn-pink);
}
html.sd .sticky-orange {
  --st: var(--bn-orange);
}
html.sd .sticky-purple {
  --st: var(--bn-purple);
}

/* the depth: soft layered shadow, a little lift and tilt under the mouse and while dragged */
html.sd .sticky-slot,
html.sd .bn-new-slot {
  min-width: 0;
  filter: var(--bn-shadow) var(--bn-dim);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}
html.sd .sticky-slot {
  cursor: grab;
  -webkit-touch-callout: none;
}
html.sd .sticky-slot .sticky-text {
  -webkit-user-select: none;
  user-select: none;
}
html.sd .sticky-slot:hover:not(:has(form:target)) {
  transform: translateY(-2px) rotate(-0.6deg);
  filter: var(--bn-shadow-up) var(--bn-dim);
}
html.sd .sticky-slot.dragging {
  cursor: grabbing;
  opacity: 0.85;
  transform: translateY(-4px) rotate(-1.2deg) scale(1.02);
  filter: var(--bn-shadow-up) var(--bn-dim);
  z-index: 2;
}
html.sd .board-grid.is-dragging,
html.sd .board-grid.is-dragging * {
  cursor: grabbing !important;
  -webkit-user-select: none;
  user-select: none;
}
/* no motion with the switch Animační efekty off (it follows the reduced motion of the device when the person chose nothing,
   public/js/theme-init.js) */
html[data-fx='off'].sd .sticky-slot,
html[data-fx='off'].sd .sticky-slot:hover:not(:has(form:target)),
html[data-fx='off'].sd .sticky-slot.dragging {
  transition: none;
  transform: none;
}

/* the view of a note: the picture and the pencil on the axis of the FIRST line of the text, the text keeps its lines */
html.sd .sticky-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  /* the same line as the text, so the icon and the pencil (1lh) stand on the axis of its first line */
  line-height: 1.45;
}
html.sd .sticky-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 1lh;
  color: var(--bn-quiet);
}
html.sd .sticky-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
  color: var(--bn-ink);
  font-weight: 500;
}
html.sd .sticky-text a {
  color: #0b4f9c;
}
html.sd .sticky-pen,
html.sd .sticky-more {
  flex: none;
  width: 32px;
  height: 32px;
  margin-block: calc((1lh - 32px) / 2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--bn-quiet);
  text-decoration: none;
}
html.sd .sticky-pen:hover,
html.sd .sticky-pen:focus-visible,
html.sd .sticky-more:hover {
  border-color: var(--sd-action-blue-line);
  background: var(--sd-action-blue-bg);
  color: var(--sd-action-blue-ink);
}
html.sd .sticky-foot {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
html.sd .sticky-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
html.sd .sticky-pill.sticky-team {
  background: var(--bn-team-bg);
  color: var(--bn-team-ink);
}
html.sd .sticky-pill.sticky-me {
  background: var(--bn-me-bg);
  color: var(--bn-me-ink);
  border-color: var(--bn-me-line);
}

/* the form of a note: shown only when a link points at it (Přidat poznámku, the pencil); the view of that note hides meanwhile */
html.sd .sticky-slot:has(> form:target) > .bn-view {
  display: none;
}
html.sd .bn-form textarea {
  width: 100%;
  max-width: none;
  min-height: 110px;
  box-sizing: border-box;
  resize: vertical;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--bn-ink) 18%, transparent);
  background: color-mix(in srgb, #fff 55%, var(--st));
  color: var(--bn-ink);
  font: inherit;
  line-height: 1.45;
}
html.sd .bn-form textarea:focus {
  outline: 2px solid var(--sd-action-focus);
  outline-offset: 1px;
}
html.sd .bn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
html.sd .bn-row-ico {
  display: inline-flex;
  width: 20px;
  justify-content: center;
  color: var(--bn-quiet);
}
html.sd .bn-dot {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--st);
  border: 1px solid color-mix(in srgb, var(--bn-ink) 30%, transparent);
  cursor: pointer;
}
html.sd .bn-dot:has(input:checked) {
  outline: 2px solid var(--bn-ink);
  outline-offset: 2px;
}
html.sd .bn-dot:has(input:focus-visible),
html.sd .bn-chip:has(input:focus-visible) {
  outline: 2px solid var(--sd-action-focus);
  outline-offset: 2px;
}
html.sd .bn-dot input,
html.sd .bn-chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
html.sd .bn-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bn-ink) 22%, transparent);
  background: color-mix(in srgb, #fff 50%, var(--st));
  color: var(--bn-ink);
  font-size: 13px;
  cursor: pointer;
}
html.sd .bn-chip:has(input[value='team']:checked) {
  background: var(--bn-team-bg);
  border-color: var(--bn-team-bg);
  color: var(--bn-team-ink);
}
html.sd .bn-chip:has(input[value='me']:checked) {
  background: var(--bn-me-bg);
  border-color: var(--bn-me-line);
  color: var(--bn-me-ink);
}
/* the smileys of a note: the shared grid (public/css/emo.css) on the paper of the note */
html.sd .bn-pop-emoji .emo-grid {
  max-height: 228px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.sd .bn-pop-emoji .emo:hover,
html.sd .bn-pop-emoji .emo:focus-visible {
  background: color-mix(in srgb, #fff 60%, var(--st));
  border-color: color-mix(in srgb, var(--bn-ink) 20%, transparent);
}
/* Uložit and Smazat, Zrušit last on the right */
html.sd .bn-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
html.sd .bn-acts > .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html.sd .bn-acts > [data-bn-cancel] {
  order: 9;
}
/* the round icons under the text (as RARELO): a click opens the choices of the icon above the row; more can be open at once */
html.sd .bn-pop {
  display: none;
}
html.sd .bn-t {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
html.sd .bn-form:has(.bn-t-color:focus-visible) .bn-tool[for$='-t-color'],
html.sd .bn-form:has(.bn-t-scope:focus-visible) .bn-tool[for$='-t-scope'],
html.sd .bn-form:has(.bn-t-emoji:focus-visible) .bn-tool[for$='-t-emoji'],
html.sd .bn-form:has(.bn-t-act:focus-visible) .bn-tool[for$='-t-act'] {
  outline: 2px solid var(--sd-action-focus);
  outline-offset: 2px;
}
html.sd .bn-form:has(.bn-t-color:checked) .bn-pop-color,
html.sd .bn-form:has(.bn-t-scope:checked) .bn-pop-scope,
html.sd .bn-form:has(.bn-t-act:checked) .bn-pop-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
html.sd .bn-form:has(.bn-t-emoji:checked) .bn-pop-emoji {
  display: block;
}
html.sd .bn-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
/* the row of the icons and every panel are in the middle of the note, with the same room left and right (the folded corner does not move
   the middle; the owner, 29. 11. 2026) */
html.sd .bn-tools,
html.sd .bn-pop {
  padding-inline: 10px;
  box-sizing: border-box;
}
html.sd .bn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--bn-ink) 22%, transparent);
  background: color-mix(in srgb, #fff 50%, var(--st));
  color: var(--bn-ink);
  font-size: 15px;
  cursor: pointer;
}
html.sd .bn-tool:hover {
  background: color-mix(in srgb, #fff 70%, var(--st));
}
html.sd .bn-form:has(.bn-t-color:checked) .bn-tool[for$='-t-color'],
html.sd .bn-form:has(.bn-t-scope:checked) .bn-tool[for$='-t-scope'],
html.sd .bn-form:has(.bn-t-emoji:checked) .bn-tool[for$='-t-emoji'],
html.sd .bn-form:has(.bn-t-act:checked) .bn-tool[for$='-t-act'] {
  background: var(--bn-ink);
  border-color: var(--bn-ink);
  color: var(--st);
}
/* the icon of who sees it follows the choice */
html.sd .bn-form:has(input[name='scope'][value='team']:checked) .bn-ico-me,
html.sd .bn-form:has(input[name='scope'][value='me']:checked) .bn-ico-team {
  display: none;
}
html.sd .board-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Přidat poznámku is green like every adding button, the same as in INTECHI CRM (the owner, 29. 11. 2026) */
html.sd .btn.board-add {
  border-color: var(--sd-action-green-line);
  background: var(--sd-action-green-bg);
  color: var(--sd-action-green-ink);
}
html.sd .btn.board-add:hover {
  border-color: var(--sd-action-green-line);
  background: var(--sd-action-green-hover);
  color: var(--sd-action-green-ink);
}

/* the form opened by the script (public/js/board.js): a class, not the fragment of the address, so the page never moves; the fragment
   (:target) stays the way without the script and after a redirect with an error */
html.sd .board-grid[data-bn-js]:has(form.is-open) {
  display: grid;
}
html.sd .board-grid[data-bn-js] .bn-new-slot:has(form.is-open) {
  display: block;
}
html.sd .board-grid[data-bn-js] .bn-form.on-target:not(.is-open) {
  display: none;
}
html.sd .board-grid[data-bn-js] .bn-form.on-target.is-open {
  display: flex;
}
html.sd .board-grid[data-bn-js] .sticky-slot:has(> form:target:not(.is-open)) > .bn-view {
  display: flex;
}
html.sd .sticky-slot:has(> form.is-open) > .bn-view {
  display: none;
}

/* the panels of the new round icons: for whom (only a team note), the deadline, the notifications */
/* one icon for who (Osobní / Tým, and for Tým the recipients in the same panel), one for the deadline with its notifications (the owner,
   29. 11. 2026: keep it simple, five icons in one row) */
html.sd .bn-form:has(.bn-t-due:checked) .bn-pop-due {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
html.sd .bn-to,
html.sd .bn-tell-row {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
html.sd .bn-form:has(input[name='scope'][value='me']:checked) .bn-to {
  display: none;
}
html.sd .bn-form:has(.bn-t-due:focus-visible) .bn-tool[for$='-t-due'] {
  outline: 2px solid var(--sd-action-focus);
  outline-offset: 2px;
}
html.sd .bn-form:has(.bn-t-due:checked) .bn-tool[for$='-t-due'] {
  background: var(--bn-ink);
  border-color: var(--bn-ink);
  color: var(--st);
}
html.sd .bn-chip:has(input[type='checkbox']:checked) {
  background: var(--bn-team-bg);
  border-color: var(--bn-team-bg);
  color: var(--bn-team-ink);
}
html.sd .bn-chip .jr-ico {
  border-radius: 50%;
}
/* a round avatar with the initials of a person (on the chip of the form and on the note) */
html.sd .bn-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  box-sizing: border-box;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 80%, var(--bn-team-bg));
  color: var(--bn-ink);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
html.sd .sticky-pill .bn-av {
  margin-left: -4px;
  border: 1px solid var(--bn-team-bg);
}
html.sd .sticky-pill .bn-av:first-of-type {
  margin-left: 0;
}
html.sd .bn-av-johny {
  flex: none;
  width: 22px;
  min-width: 22px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
/* a fixed square: the picture of Fred was stretched into a wide oval on a phone (the owner, 29. 11. 2026, the same as INTECHI CRM) */
html.sd .bn-av-johny img {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  max-width: none;
  object-fit: cover;
}
html.sd .bn-by {
  font-weight: 600;
}
html.sd .bn-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bn-ink);
  font-size: 13px;
}
/* the day and the time are the fields of the application 1:1 (the owner, 29. 11. 2026: they looked different): its line, radius, colours,
   height and padding come from sd.css / app.css; only the size of the text is set here, the note has a smaller one */
html.sd .bn-field input {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}
/* the chips of the note: the deadline and the state of Johny */
html.sd .sticky-pill.bn-due,
html.sd .sticky-pill.bn-tell,
html.sd .sticky-pill.bn-state {
  background: color-mix(in srgb, #fff 55%, var(--st));
  border-color: color-mix(in srgb, var(--bn-ink) 18%, transparent);
  color: var(--bn-ink);
}
html.sd .sticky-pill.bn-state .jr-ico {
  border-radius: 50%;
}
html.sd .sticky-pill.bn-state-done {
  background: var(--sd-action-green-bg, #f0fdf4);
  border-color: var(--sd-action-green-line, #bbf7d0);
  color: var(--sd-action-green-ink, #15803d);
}
/* Fred works, watches or waits for his turn: orange, and it gently pulses (the switch Animační efekty alone decides, html[data-fx]); he asks:
   orange with the question mark; red stays only for an error and a past deadline (the owner, 29. 11. 2026, „Boti a jejich agenti“, the same
   as INTECHI CRM) */
html.sd .sticky-pill.bn-state-waiting,
html.sd .sticky-pill.bn-state-working,
html.sd .sticky-pill.bn-state-watching,
html.sd .sticky-pill.bn-state-question {
  background: var(--sd-action-orange-bg);
  border-color: var(--sd-action-orange-line);
  color: var(--sd-action-orange-ink);
}
html:not([data-fx='off']) .sticky-pill.bn-state-working,
html:not([data-fx='off']) .sticky-pill.bn-state-watching {
  animation: bn-state-pulse 1.8s ease-in-out infinite;
}
@keyframes bn-state-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sd-action-orange-ink) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--sd-action-orange-ink) 0%, transparent);
  }
}
/* the pill: „Fred › agent“ and the state, each with its icon, on ONE line (the owner, 29. 11. 2026): the name ends with an ellipsis */
html.sd .sticky-pill.bn-state {
  flex-wrap: nowrap;
  column-gap: 8px;
  row-gap: 0;
}
html.sd .sticky-pill.bn-state .bn-who,
html.sd .sticky-pill.bn-state .bn-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html.sd .sticky-pill.bn-state-failed,
html.sd .sticky-pill.bn-late {
  background: var(--sd-action-red-bg);
  border-color: var(--sd-action-red-line);
  color: var(--sd-action-red-ink);
}
/* a note past its deadline: a red edge (the paper keeps its colour) */
html.sd .sticky.is-late {
  box-shadow: inset 0 0 0 3px var(--sd-color-red-600, #dc2626);
}
html.sd .bn-johny-note {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--bn-ink);
  white-space: pre-line;
}
html.sd .bn-johny-note {
  line-height: 1.45;
}
/* the picture of Fred stands in the column of the pad icon above and in the middle of the first line (the owner, 29. 11. 2026: on the axis) */
html.sd .bn-johny-note .jr-ico {
  flex: none;
  border-radius: 50%;
  margin-top: calc((1lh - 16px) / 2);
}

/* the icon Termín of a note past its deadline: a small red dot (why the note is red) */
html.sd .bn-tool-due {
  position: relative;
}
html.sd .bn-tool-due.is-late::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sd-color-red-600, #dc2626);
  box-shadow: 0 0 0 2px var(--st);
}
/* the buttons inside the panels of the note (Zrušit termín, Odpovědět Fredovi): the icon and the word apart as on every button of the app */
html.sd .bn-pop-due > .btn,
html.sd .bn-johny-say > .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* what Fred says, in the form of the note too, with „Odpovědět Fredovi“ under it */
html.sd .bn-johny-say {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* touch: every target at least 44 px */
@media (pointer: coarse) {
  html.sd .sticky-pen,
  html.sd .sticky-more {
    width: 44px;
    height: 44px;
    margin-block: calc((1lh - 44px) / 2);
  }
  html.sd .bn-dot {
    width: 36px;
    height: 36px;
    border-width: 4px;
    border-color: transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bn-ink) 30%, transparent);
    padding: 4px;
    box-sizing: content-box;
  }
  html.sd .bn-chip,
  html.sd .bn-field input,
  html.sd .bn-acts > .btn,
  html.sd .board-add {
    min-height: 44px;
  }
  html.sd .bn-tool {
    width: 44px;
    height: 44px;
  }
}
/* a chip of a note is ONE line inside the note (the owner, 29. 11. 2026): a long name of the agents ends with an ellipsis, the state stays */
html.sd .sticky-pill {
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: normal;
}
html.sd .sticky-pill .bn-who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.sd .sticky-pill .bn-st {
  flex: none;
}
html.sd .sticky-pill .bn-who-t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* an answer to a question of Fred on the note: ONE chip „Upozornění po: 2 dny“ (the bell, the label in bold, the chosen values; the owner,
   30. 11. 2026: nothing wraps on a narrow note; the same as INTECHI CRM) */
html.sd .bn-answer {
  display: inline;
}
html.sd .bn-answer > .badge {
  vertical-align: middle;
  white-space: normal;
}
/* the notifications of a note: the bell in the colour of the bell of the application, the envelope in the blue of the e-mails */
html.sd .sticky-pill.bn-tell .fa-bell,
html.sd .bn-answer .fa-bell {
  color: var(--sd-color-purple-700, #7e22ce);
}
html.sd .sticky-pill.bn-tell .fa-envelope {
  color: var(--sd-action-blue-ink, #1d4ed8);
}
html.sd .bn-answer-l {
  font-weight: 700;
  margin-right: 4px;
}
html.sd .bn-answer .badge > .fa-solid {
  margin-right: 5px;
}
/* a note opened by its address (#note-N from the page of Fred, a link of the chat „Otevřít lístek“): a ring that pulses a few times and
   then stays for a while; with the effects off only the ring (the switch Animační efekty alone decides) */
html.sd .sticky-slot:target .sticky,
html.sd .sticky-slot.is-hit .sticky {
  outline: 3px solid var(--sd-action-blue-ink, #1d4ed8);
  outline-offset: 3px;
  animation: bn-hit-ring 6s ease-out 1 forwards;
}
html:not([data-fx='off']) .sticky-slot:target .sticky,
html:not([data-fx='off']) .sticky-slot.is-hit .sticky {
  animation:
    bn-hit-pulse 0.9s ease-in-out 3,
    bn-hit-ring 6s ease-out 1 forwards;
}
@keyframes bn-hit-pulse {
  0%,
  100% {
    outline-offset: 3px;
    outline-color: var(--sd-action-blue-ink, #1d4ed8);
  }
  50% {
    outline-offset: 8px;
    outline-color: color-mix(in srgb, var(--sd-action-blue-ink, #1d4ed8) 30%, transparent);
  }
}
@keyframes bn-hit-ring {
  0%,
  80% {
    outline-color: var(--sd-action-blue-ink, #1d4ed8);
  }
  100% {
    outline-color: transparent;
  }
}
/* @mentions: the suggestions under the text (rows of 44 px, never out of the note) and the chip of a person in the colour of the firm (only the
   letters and the icon: the house rule), Fred with his own picture */
html.sd .bn-form {
  position: relative;
}
html.sd .bn-mention-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
}
html.sd .bn-mention-list[hidden] {
  display: none;
}
html.sd .bn-mention-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html.sd .bn-mention-row.is-on {
  background: var(--sd-action-blue-bg);
}
html.sd .bn-mention {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  font-weight: 700;
  color: var(--brand, var(--accent));
  white-space: nowrap;
}
html.sd .bn-mention .bn-av,
html.sd .bn-mention .jr-ico {
  width: 18px;
  height: 18px;
}
/* in the text of a note the name chip is exactly one line high and sits on its line: it never pushes the first line down, so the picture of
   the note, the name, the words and the pencil stay on one axis in every browser (the owner, 1. 12. 2026: "není v ose") */
html.sd .sticky-text .bn-mention {
  height: 1lh;
  vertical-align: top;
  line-height: inherit;
}
html.sd .sticky-text .bn-mention .bn-av {
  min-width: 18px;
  font-size: 9.5px;
}

/* a request to delete or change a note on the note of its author (the same as INTECHI CRM 1.139.0): who asks, then Smazat / Upravit /
   Ponechat in one row while they fit */
html.sd .bn-delask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
}
html.sd .bn-delask-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
/* the icon and the word of a choice apart (the same as the other icon buttons) */
html.sd .bn-delask-btns > .btn {
  gap: 6px;
}
/* the menu „…“ of a note given to the person (Odbavit, the request to delete it; the owner, 2. 12. 2026): the three dots in the place of the
   pencil, its panel under the text like the „…“ of an own note */
html.sd .sticky-more {
  cursor: pointer;
}
html.sd .sticky:has(.bn-t-more:focus-visible) .sticky-more {
  outline: 2px solid var(--sd-action-focus);
  outline-offset: 2px;
}
html.sd .sticky:has(.bn-t-more:checked) .sticky-more {
  border-color: var(--sd-action-blue-line);
  background: var(--sd-action-blue-bg);
  color: var(--sd-action-blue-ink);
}
html.sd .sticky:has(.bn-t-more:checked) .bn-pop-more {
  display: flex;
}
html.sd .bn-pop-more form {
  margin: 0;
}
/* the icon and the word apart, as on every button of the app (the same as the buttons of the other panels of the note) */
html.sd .bn-pop-more .btn,
html.sd .bn-undo .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (pointer: coarse) {
  html.sd .bn-pop-more .btn {
    min-height: 44px;
  }
}
/* the people of an own note who did their part: a green tick on their avatar, and the green chip „Odbaveno“ (all of them: stronger) */
html.sd .sticky-pill .bn-av.is-done {
  position: relative;
  background: var(--sd-action-green-bg);
  border-color: var(--sd-action-green-line);
  color: var(--sd-action-green-ink);
}
html.sd .sticky-pill.bn-done {
  background: var(--sd-action-green-bg);
  border-color: var(--sd-action-green-line);
  color: var(--sd-action-green-ink);
}
html.sd .sticky-pill.bn-done.is-all {
  border-color: var(--sd-action-green-ink);
}
/* Vrátit in the toast right after Odbavit */
html.sd .bn-undo {
  display: inline-flex;
  margin: 0 0 0 10px;
  vertical-align: middle;
}
/* the request of the person who looks waits for the author: an orange chip (a state, never a button) */
html.sd .bn-delwait {
  background: var(--sd-action-orange-bg);
  border: 1px solid var(--sd-action-orange-line);
  color: var(--sd-action-orange-ink);
}
