/*
 * Moderátorský panel. Interný nástroj, ktorý stojí na rovnakých tokenoch ako
 * verejný web, ale pracuje s väčším priestorom a vlastnou trojstĺpcovou
 * pracovnou plochou.
 */

:root {
  --op-header-h: 68px;
  --op-max: 1640px;
}

/* ---------- Spoločná hlavička a značka ---------- */

.op-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.op-brand__mark {
  width: 21px;
  height: 21px;
  flex: none;
  fill: var(--pink);
  stroke: none;
}

.op-brand__copy {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.op-brand__name {
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.op-brand__tag {
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.op-kicker {
  margin: 0;
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------- Prihlásenie a prvé nastavenie ---------- */

.op-auth {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 47, 116, 0.13), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(255, 47, 116, 0.055), transparent 38%),
    linear-gradient(180deg, #0a0a0d 0%, var(--bg) 62%);
}

.op-auth__bar {
  display: flex;
  width: min(100% - 48px, var(--container));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.op-auth__back {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11.5px;
  transition: color 160ms ease, border-color 160ms ease;
}

.op-auth__back:hover {
  border-color: var(--pink);
  color: var(--white);
}

.op-auth__main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) 20px;
}

.op-auth__card {
  position: relative;
  width: min(100%, 540px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4);
}

.op-auth__card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 2px;
  background: var(--pink);
  content: "";
}

.op-auth__card--setup {
  width: min(100%, 640px);
}

.op-auth__card h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.op-auth__lead {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.op-auth__form {
  display: grid;
  gap: 19px;
  margin-top: 28px;
}

.op-auth__form .button {
  margin-top: 4px;
}

.op-auth__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.55;
}

.op-auth__note .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-auth__lock {
  margin: 20px 0 0;
  padding: 11px 13px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 47, 116, 0.07);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.op-auth__card .auth-errors {
  margin-top: 22px;
}

/* ---------- Pracovná hlavička ---------- */

.op-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.op-header__inner {
  display: flex;
  width: min(100% - 48px, var(--op-max));
  height: var(--op-header-h);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin-inline: auto;
}

.op-nav {
  display: flex;
  gap: 3px;
}

.op-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.op-nav a:hover {
  color: var(--white);
}

.op-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--white);
}

.op-nav .icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-nav__badge {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--bg);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.op-account {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.op-account__identity {
  display: grid;
  gap: 2px;
  text-align: right;
}

.op-account__label {
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.op-account__identity strong {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}

.op-account__web {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10.5px;
  transition: color 160ms ease, border-color 160ms ease;
}

.op-account__web:hover {
  border-color: var(--pink);
  color: var(--white);
}

.op-logout {
  display: flex;
}

.op-logout__button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease;
}

.op-logout__button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ---------- Pracovná plocha ---------- */

.op-main {
  width: min(100% - 48px, var(--op-max));
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 42px) 0 64px;
}

.op-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.op-pagehead h1 {
  margin: 8px 0 0;
  font-size: clamp(2.15rem, 3.2vw, 3.1rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.op-pagehead__lead {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.op-pagehead__stats {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 12px;
}

.op-stat {
  display: grid;
  min-width: 112px;
  gap: 3px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-pagehead__stats > .ad-state {
  justify-content: center;
  padding: 14px 20px;
}

.op-stat strong {
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.op-stat span {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-stat--alert strong {
  color: var(--pink);
}

.op-pagehead__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 10px;
}

.op-summary {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-summary__item {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
}

.op-summary__item:last-child {
  border-right: 0;
}

.op-summary__item strong {
  margin-right: 4px;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.op-summary__item.is-alert strong {
  color: var(--pink);
}

.op-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  transition: color 160ms ease;
}

.op-back .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-back:hover {
  color: var(--white);
}

/* ---------- Prázdne stavy ---------- */

.op-empty {
  display: grid;
  justify-items: center;
  padding: clamp(46px, 8vw, 88px) clamp(24px, 4vw, 48px);
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 47, 116, 0.08), transparent 46%),
    var(--surface);
  text-align: center;
}

.op-empty__mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(255, 47, 116, 0.35);
  background: rgba(255, 47, 116, 0.06);
  color: var(--pink);
}

.op-empty__mark .icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-empty h1,
.op-empty h2 {
  max-width: 22ch;
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.op-empty > p:not(.op-kicker) {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.op-empty .button {
  margin-top: 24px;
}

/* ---------- Trojstĺpcová pracovná plocha ---------- */

.op-shell {
  display: grid;
  height: clamp(620px, calc(100svh - 258px), 920px);
  overflow: hidden;
  grid-template-columns: clamp(220px, 16vw, 260px) clamp(300px, 22vw, 360px) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

/* Ľavý stĺpec: za ktorý profil sa píše. */

.op-cast {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0c0c10;
}

.op-cast__head {
  flex: none;
  padding: 23px 19px 18px;
  border-bottom: 1px solid var(--line);
}

.op-cast__label {
  margin: 0;
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.op-cast__hint {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.op-cast__list {
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.op-cast__list li + li {
  margin-top: 2px;
}

.op-cast__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  border-left: 2px solid transparent;
  transition: background 160ms ease, border-color 160ms ease;
}

.op-cast__item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.op-cast__item.is-active {
  border-left-color: var(--pink);
  background: rgba(255, 47, 116, 0.075);
}

.op-cast__item.is-hidden {
  opacity: 0.6;
}

.op-cast__avatar-wrap {
  display: block;
}

.op-cast__avatar {
  width: 44px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  object-fit: cover;
}

.op-cast__avatar--initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.3), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.op-cast__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.op-cast__name {
  overflow: hidden;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-cast__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.35;
}

.op-cast__hidden {
  padding: 1px 5px;
  border: 1px solid rgba(255, 47, 116, 0.4);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.op-cast__badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--bg);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.op-cast__manage {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 15px 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  transition: color 160ms ease, background 160ms ease;
}

.op-cast__manage:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--pink);
}

.op-cast__manage .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Stredný stĺpec: rozhovory zvoleného profilu. */

.op-threads {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0e0e12;
}

.op-threads__head {
  flex: none;
  padding: 23px 20px 17px;
  border-bottom: 1px solid var(--line);
}

.op-threads__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.op-threads__title-row h2 {
  max-width: 12ch;
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.op-threads__count {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.op-threads__head .thread-search {
  height: 38px;
  margin-top: 16px;
}

.op-threads__notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 47, 116, 0.06);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.op-thread-list {
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.op-thread + .op-thread {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.op-thread__link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 20px;
  border-left: 2px solid transparent;
  transition: background 160ms ease, border-color 160ms ease;
}

.op-thread__link:hover {
  background: rgba(255, 255, 255, 0.035);
}

.op-thread.is-active .op-thread__link {
  border-left-color: var(--pink);
  background: rgba(255, 47, 116, 0.075);
}

.op-thread__avatar-wrap {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
}

.op-thread__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-raised);
  object-fit: cover;
}

.op-thread__avatar--initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.3), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.op-thread__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.op-thread__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.op-thread__name {
  overflow: hidden;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-thread__time {
  flex: none;
  color: var(--dim);
  font-size: 9px;
  white-space: nowrap;
}

.op-thread__snippet {
  overflow: hidden;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-thread.is-active .op-thread__snippet {
  color: var(--muted);
}

.op-thread__prefix {
  color: var(--pink);
  font-weight: 600;
}

.op-thread__badge {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--bg);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
}

.op-thread-list__empty {
  margin: 0;
  padding: 26px 20px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}

.op-threads__empty {
  margin: auto 0;
  padding: 42px 26px;
  text-align: center;
}

.op-threads__empty-title {
  margin: 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.op-threads__empty p + p {
  max-width: 34ch;
  margin: 8px auto 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.6;
}

/* Pravý stĺpec: samotný rozhovor. */

.op-chat {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--bg);
}

.op-chat__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 13px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.op-chat__back {
  display: none;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease;
}

.op-chat__back .icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-chat__back:hover {
  border-color: var(--white);
  color: var(--white);
}

.op-chat__avatar-wrap {
  flex: none;
}

.op-chat__avatar {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
}

.op-chat__avatar--initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.3), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.op-chat__identity {
  min-width: 0;
  flex: 1;
}

.op-chat__identity h2 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-chat__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.3;
}

.op-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--online);
}

.op-chat__status--offline {
  color: var(--dim);
}

.op-chat__sep {
  margin: 0 1px;
  color: var(--line-strong);
}

.op-chat__profile-link {
  flex: none;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  transition: color 160ms ease, border-color 160ms ease;
}

.op-chat__profile-link:hover {
  border-color: var(--pink);
  color: var(--white);
}

.op-chat__body {
  min-height: 0;
  flex: 1;
  padding: 28px 26px 34px;
  overflow-y: auto;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 31px,
    rgba(247, 245, 244, 0.026) 31px 32px
  );
  background-attachment: local;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.op-chat__body .chat__bubble {
  max-width: min(70%, 540px);
}

.op-chat__body .chat__message {
  margin-top: 9px;
}

.op-chat__body .chat__day {
  margin: 26px 0 18px;
}

.op-chat__body .chat__day:first-child {
  margin-top: 0;
}

.op-chat__intro {
  max-width: 480px;
  margin: clamp(38px, 9vh, 92px) auto 0;
  text-align: center;
}

.op-chat__intro h2 {
  margin: 12px 0 0;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.op-chat__intro p:not(.op-kicker) {
  max-width: 42ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.op-chat__notice {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 17px 22px;
  border-top: 1px solid rgba(255, 47, 116, 0.32);
  background: rgba(255, 47, 116, 0.06);
}

.op-chat__notice p {
  min-width: 240px;
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.op-chat__notice strong {
  color: var(--white);
  font-weight: 600;
}

.op-chat__notice .button {
  flex: none;
}

.op-chat__placeholder {
  max-width: 460px;
  margin: auto;
  padding: 48px 34px;
  text-align: center;
}

.op-chat__placeholder-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(255, 47, 116, 0.35);
  background: rgba(255, 47, 116, 0.06);
  color: var(--pink);
}

.op-chat__placeholder-mark .icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-chat__placeholder h2 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.op-chat__placeholder p:not(.op-kicker) {
  max-width: 44ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.op-chat__placeholder .text-link,
.op-chat__placeholder .button {
  margin-top: 22px;
}

.op-chat__composer {
  padding: 16px 20px 14px;
  border-top: 1px solid var(--line);
}

.op-chat__composer .chat__composer-meta {
  margin-top: 9px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.op-chat__composer .chat__composer-meta strong {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Profily ---------- */

.op-profile-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 28px;
  list-style: none;
}

.op-profile-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.op-profile-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.op-profile-card__media {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.24), transparent 48%),
    linear-gradient(155deg, #1b1720 0%, #101014 58%, #0b0b0e 100%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
}

.op-profile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.op-profile-card:hover .op-profile-card__media img {
  transform: scale(1.025);
}

.op-profile-card__state {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, 0.82);
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.op-profile-card.is-hidden .op-profile-card__state {
  border-color: rgba(255, 47, 116, 0.45);
  color: var(--pink);
}

.op-profile-card__body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 7px;
  padding: 20px;
}

.op-profile-card__body h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.op-profile-card__city {
  margin: 0;
  color: var(--dim);
  font-size: 10.5px;
}

.op-profile-card__looking {
  margin: 6px 0 0;
}

.op-profile-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
}

.op-profile-card__unread {
  color: var(--pink);
  font-weight: 600;
}

.op-profile-card__clear {
  color: var(--dim);
}

.op-profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.op-profile-card__actions .button {
  min-height: 34px;
}

.op-profile-card__actions .button + .button {
  margin-left: 0;
}

/* ---------- Editor profilu ---------- */

.op-editor {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 720px);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}

.op-editor__preview {
  position: sticky;
  top: calc(var(--op-header-h) + 24px);
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-editor__preview .profile-avatar {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.op-editor__preview-name {
  margin: 18px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.op-editor__preview-city {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 11px;
}

.op-editor__preview-looking {
  margin: 12px 0 0;
}

.op-editor__preview-state {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.op-editor__preview-state.is-visible {
  color: var(--online);
}

.op-editor__preview-state.is-hidden {
  color: var(--pink);
}

.op-editor__note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.op-editor__panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-editor__panel .auth-errors {
  margin-top: 0;
  margin-bottom: 22px;
}

.op-form {
  gap: 28px;
}

.op-form .field {
  gap: 9px;
}

.op-form .profile-form__row {
  gap: 22px;
}

.op-form .field textarea {
  min-height: 196px;
}

.op-form .profile-form__row--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.op-form__section {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.op-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--field);
  cursor: pointer;
  transition: border-color 160ms ease;
}

.op-toggle:hover {
  border-color: var(--line-strong);
}

.op-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.op-toggle__track {
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.op-toggle__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dim);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.op-toggle input:checked + .op-toggle__track {
  background: rgba(255, 47, 116, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 47, 116, 0.55);
}

.op-toggle input:checked + .op-toggle__track::after {
  background: var(--pink);
  transform: translateX(18px);
}

.op-toggle input:focus-visible + .op-toggle__track {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.op-toggle__copy {
  display: grid;
  gap: 3px;
}

.op-toggle__copy strong {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
}

.op-toggle__copy span {
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---------- Päta ---------- */

.op-footer {
  display: flex;
  width: min(100% - 48px, var(--op-max));
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-inline: auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
}

.op-footer p {
  margin: 0;
}

.op-footer__meta {
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Responzívne úpravy ---------- */

@media (max-width: 1360px) {
  .op-shell {
    grid-template-columns: 226px 320px minmax(0, 1fr);
  }

  .op-chat__head {
    padding: 16px 20px;
  }

  .op-chat__body {
    padding: 24px 22px 30px;
  }
}

@media (max-width: 1180px) {
  .op-shell {
    height: clamp(600px, calc(100svh - 236px), 880px);
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .op-cast {
    overflow: hidden;
    flex-direction: row;
    align-items: stretch;
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .op-cast__head {
    display: grid;
    width: 148px;
    flex: none;
    align-content: center;
    padding: 13px 15px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .op-cast__hint {
    display: none;
  }

  .op-cast__list {
    display: flex;
    min-width: 0;
    flex: 1;
    gap: 4px;
    align-items: center;
    padding: 7px 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .op-cast__list li {
    flex: none;
  }

  .op-cast__list li + li {
    margin-top: 0;
  }

  .op-cast__item {
    position: relative;
    width: 174px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 7px 9px;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .op-cast__item.is-active {
    border-bottom-color: var(--pink);
    border-left-color: transparent;
  }

  .op-cast__avatar {
    width: 36px;
    height: 42px;
  }

  .op-cast__meta {
    display: none;
  }

  .op-cast__name {
    font-size: 11px;
  }

  .op-cast__badge {
    position: absolute;
    top: 3px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 8px;
  }

  .op-cast__manage {
    flex: none;
    justify-content: center;
    padding: 12px 14px;
    border-top: 0;
    border-left: 1px solid var(--line);
    font-size: 9.5px;
  }

  .op-cast__manage .icon {
    display: none;
  }

  .op-shell .op-threads {
    grid-column: 1;
  }

  .op-shell .op-chat {
    grid-column: 2;
  }

  .op-profile-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 980px) {
  .op-header__inner,
  .op-main,
  .op-footer {
    width: min(100% - 40px, var(--op-max));
  }

  .op-account__identity {
    display: none;
  }

  .op-pagehead {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 22px;
  }

  .op-pagehead__stats {
    order: 3;
    width: 100%;
  }

  .op-stat {
    flex: 1;
    min-width: 0;
  }

  .op-editor {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .op-editor__preview {
    position: static;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 4px 22px;
  }

  .op-editor__preview .profile-avatar {
    grid-row: 1 / 5;
    width: 132px;
  }

  .op-editor__preview .profile-avatar__initials {
    font-size: 3rem;
  }

  .op-editor__preview-name {
    margin-top: 0;
  }

  .op-editor__preview-state {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0;
  }

  .op-editor__note {
    display: none;
  }
}

@media (max-width: 820px) {
  .op-account__web {
    display: none;
  }

  .op-nav {
    margin-left: auto;
  }

  .op-account {
    margin-left: 0;
  }

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

@media (max-width: 760px) {
  :root {
    --op-header-h: 100px;
  }

  .op-header__inner,
  .op-main,
  .op-footer {
    width: calc(100% - 28px);
  }

  /* Panelová hlavička má na mobile dva riadky: značku s odhlásením
     a pod nimi navigáciu. Nič sa už netlačí do jedného preplneného radu. */
  .op-header__inner {
    height: auto;
    min-height: var(--op-header-h);
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 0 0;
  }

  .op-brand__tag {
    display: none;
  }

  .op-brand__name {
    font-size: 17px;
  }

  .op-header__inner .op-account,
  .op-header__inner .lang-switch--panel + .op-account {
    margin-left: auto;
  }

  .op-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 2px;
    margin: 9px 0 0;
    border-top: 1px solid var(--line);
  }

  .op-nav a {
    padding: 11px 16px;
    font-size: 11px;
  }

  .op-main {
    padding-top: 20px;
    padding-bottom: 44px;
  }

  .op-pagehead {
    gap: 16px;
    margin-bottom: 20px;
  }

  .op-pagehead h1 {
    font-size: clamp(1.95rem, 8vw, 2.5rem);
  }

  .op-pagehead__lead {
    font-size: 11.5px;
  }

  .op-pagehead__actions {
    width: 100%;
  }

  .op-pagehead__actions .button {
    width: 100%;
  }

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

  .op-stat {
    min-width: 0;
    padding: 11px 13px;
  }

  .op-stat strong {
    font-size: 21px;
  }

  .op-stat span {
    font-size: 7.5px;
  }

  .op-shell {
    display: block;
    height: auto;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .op-cast {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: #0c0c10;
  }

  .op-cast__head,
  .op-cast__manage {
    display: none;
  }

  .op-cast__list {
    padding: 7px;
    overflow-x: auto;
  }

  .op-cast__item {
    width: 158px;
  }

  .op-shell--chat .op-cast,
  .op-shell--chat .op-threads,
  .op-shell:not(.op-shell--chat) .op-chat {
    display: none;
  }

  .op-threads {
    border: 1px solid var(--line);
    background: #0e0e12;
  }

  .op-thread-list {
    flex: none;
    overflow: visible;
  }

  .op-thread__link {
    padding: 13px 15px;
  }

  .op-chat {
    height: calc(100svh - 138px);
    min-height: 520px;
    border: 1px solid var(--line);
  }

  .op-chat__back {
    display: inline-grid;
  }

  .op-chat__head {
    padding: 12px 14px;
  }

  .op-chat__avatar {
    width: 40px;
    height: 40px;
  }

  .op-chat__identity h2 {
    font-size: 15.5px;
  }

  .op-chat__meta {
    font-size: 9.5px;
  }

  .op-chat__profile-link {
    display: none;
  }

  .op-chat__body {
    padding: 18px 14px 24px;
  }

  .op-chat__body .chat__bubble {
    max-width: 86%;
  }

  .op-chat__composer {
    padding: 11px 12px 10px;
  }

  .op-chat__composer .chat__composer-meta {
    font-size: 8.5px;
  }

  .op-chat__notice {
    padding: 14px;
  }

  .op-chat__placeholder {
    padding: 40px 22px;
  }

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

  .op-summary__item {
    border-bottom: 1px solid var(--line);
  }

  .op-summary__item:nth-child(2n) {
    border-right: 0;
  }

  .op-summary__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .op-profile-grid {
    gap: 14px;
  }

  .op-profile-card__body {
    padding: 15px;
  }

  .op-profile-card__body h2 {
    font-size: 16px;
  }

  .op-profile-card__actions {
    gap: 10px;
  }

  .op-editor__panel {
    padding: 20px 16px;
  }

  .op-editor__preview {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 3px 18px;
    padding: 18px;
  }

  .op-editor__preview .profile-avatar {
    width: 104px;
  }

  .op-form .profile-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-toggle {
    padding: 15px;
  }

  .op-footer {
    padding-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .op-account {
    gap: 10px;
  }

  .op-logout__button {
    padding: 0 9px;
    font-size: 8.5px;
  }

  .op-nav .icon {
    width: 17px;
    height: 17px;
  }

  .op-nav a {
    position: relative;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px 9px;
    font-size: 10px;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  /* Šesť položiek sa na 320 px do jedného radu nezmestí. Mriežka 3 × 2
     drží všetky odkazy rovnako široké a nič nepreteká mimo obrazovku. */
  .op-nav--admin {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }

  .op-nav--admin a {
    justify-content: center;
    width: 100%;
  }

  .op-nav__badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    margin-left: 0;
    font-size: 8px;
  }

  .op-profile-grid {
    grid-template-columns: 1fr;
  }

  .op-profile-card__media {
    aspect-ratio: 5 / 4;
  }

  .op-editor__preview {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 2px 15px;
  }

  .op-editor__preview .profile-avatar {
    width: 84px;
  }

  .op-editor__preview-name {
    font-size: 17px;
  }

  .op-editor__preview-state {
    font-size: 8px;
  }

  .op-auth__bar {
    width: calc(100% - 36px);
    min-height: 70px;
  }

  .op-auth__back {
    font-size: 10px;
  }

  .op-auth__main {
    padding-inline: 14px;
  }

  .op-auth__card {
    padding: 26px 20px;
  }

  .op-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-cast__item,
  .op-thread__link,
  .op-profile-card,
  .op-profile-card__media img,
  .op-toggle__track,
  .op-toggle__track::after {
    transition: none;
  }
}

/* ---------- Admin panel ---------- */

.op-header--admin {
  border-bottom-color: rgba(255, 47, 116, 0.34);
}

.op-header--admin .op-brand__tag {
  color: var(--pink);
}

/*
 * Každá sekcia admin panelu stojí vo vlastnom bloku. Priame deti .op-main
 * dostanú rovnaký vertikálny rytmus, aby sa karty, upozornenia a tabuľky
 * nikdy nedotýkali. Pri menovkách sa medzery nezrážajú na nulu.
 */
.op-main > .ad-stats,
.op-main > .ad-callout,
.op-main > .ad-columns,
.op-main > .ad-split,
.op-main > .ad-secret,
.op-main > .ad-panel,
.op-main > .ad-filterbar,
.op-main > .ad-filterchip,
.op-main > .ad-thread-view,
.op-main > .ad-readonly-bar,
.op-main > .an-period,
.op-main > .an-grid,
.op-main > .an-panel,
.op-main > .op-summary {
  margin-top: 34px;
}

.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.ad-stat {
  display: grid;
  gap: 10px;
  padding: 22px 22px 19px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease;
}

.ad-stat:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.ad-stat__label {
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ad-stat__value {
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: clamp(30px, 3vw, 40px);
  font-style: italic;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.ad-stat__meta {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.45;
}

.ad-stat--alert {
  border-color: rgba(255, 47, 116, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 47, 116, 0.09), transparent 62%),
    var(--surface);
}

.ad-stat--alert .ad-stat__value {
  color: var(--pink);
}

.ad-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--pink);
  background:
    linear-gradient(90deg, rgba(255, 47, 116, 0.07), transparent 58%),
    var(--surface);
}

.ad-callout h2 {
  margin: 6px 0 0;
  font-size: 21px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.ad-callout p:not(.op-kicker) {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.ad-callout--pink {
  border-left-color: var(--pink);
  background:
    linear-gradient(90deg, rgba(255, 47, 116, 0.12), transparent 64%),
    var(--surface-raised);
}

.ad-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
  align-items: start;
  gap: 36px;
}

.ad-panel {
  min-width: 0;
  padding: clamp(28px, 2.8vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.ad-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ad-panel__head h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ad-panel__looking {
  margin: 14px 0 0;
}

.ad-panel__text {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.ad-panel__text .text-link {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.ad-panel__empty {
  padding: 24px 0 4px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.6;
}

.ad-panel__empty p {
  margin: 0;
}

.ad-panel__empty .text-link {
  display: inline-block;
  margin-top: 10px;
}

.ad-conversation-list {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.ad-conversation-list li + li .ad-conversation {
  border-top: 1px solid var(--line);
}

.ad-conversation {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 -12px;
  padding: 14px 12px;
  transition: background 160ms ease;
}

.ad-conversation:hover {
  background: var(--surface-raised);
}

.ad-conversation__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.28), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ad-conversation__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-conversation__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.ad-conversation__top {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.ad-conversation__top strong {
  overflow: hidden;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-conversation__time {
  flex: none;
  color: var(--dim);
  font-size: 9px;
  white-space: nowrap;
}

.ad-conversation__snippet {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-conversation__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.ad-conversation__meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-conversation__who .looking-pill {
  flex: none;
}

.ad-conversation__badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--bg);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ad-conversation__clear {
  color: var(--dim);
  font-size: 9px;
  white-space: nowrap;
}

.ad-conversation--wide {
  display: grid;
  grid-template-columns: 52px minmax(180px, 0.9fr) minmax(0, 1.5fr) auto;
  gap: 16px;
}

.ad-conversation__avatar--profile {
  width: 52px;
  height: 52px;
}

.ad-conversation__who {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.ad-conversation__who > strong {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
}

.ad-conversation__arrow {
  color: var(--line-strong);
  font-size: 12px;
}

.ad-conversation__user {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
}

.ad-conversation__user img,
.ad-conversation__user-initials {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 800;
  object-fit: cover;
}

.ad-conversation--wide .ad-conversation__copy {
  gap: 5px;
}

.ad-conversation--wide .ad-conversation__snippet {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ad-conversation__side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.ad-conversation__presence {
  color: var(--dim);
}

.ad-conversation__presence.is-online {
  color: var(--online);
}

.ad-team-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.ad-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}

.ad-team + .ad-team {
  border-top: 1px solid var(--line);
}

.ad-team__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ad-team__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.ad-team__copy strong {
  overflow: hidden;
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-team__copy span {
  color: var(--dim);
  font-size: 9.5px;
}

.ad-team__state {
  flex: none;
  color: var(--dim);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-team__state.is-online {
  color: var(--online);
}

.ad-secret {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid rgba(255, 47, 116, 0.5);
  background:
    linear-gradient(115deg, rgba(255, 47, 116, 0.13), transparent 62%),
    var(--surface-raised);
}

.ad-secret__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 47, 116, 0.45);
  border-radius: 50%;
  color: var(--pink);
}

.ad-secret__icon .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-secret h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.ad-secret p:not(.op-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.ad-secret p strong {
  color: var(--white);
  font-weight: 600;
}

.ad-secret__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.ad-secret__value {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--white);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.ad-split {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 36px;
}

.ad-split--wide {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
}

.ad-form {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.ad-form__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 47, 116, 0.06);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.ad-form__note .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-form__note p {
  margin: 0;
}

.field select {
  width: 100%;
  height: 48px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--field);
  color: var(--white);
  font-size: 14px;
  transition: border-color 160ms ease;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 21px,
    calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field select:hover,
.field select:focus {
  border-color: var(--line-strong);
}

.field select:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.ad-operator-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ad-operator {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.ad-operator.is-off {
  opacity: 0.74;
}

.ad-operator__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.ad-operator__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.22), transparent 60%),
    var(--surface);
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ad-operator__identity {
  min-width: 0;
}

.ad-operator__identity h3 {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-operator__identity h3 a:hover {
  color: var(--pink);
}

.ad-operator__identity p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-state.is-active {
  border-color: rgba(185, 245, 107, 0.35);
  background: rgba(185, 245, 107, 0.07);
  color: var(--online);
}

.ad-operator__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 9.5px;
}

.ad-operator__stats span.is-alert {
  color: var(--pink);
}

.ad-operator__stats strong {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ad-operator__stats span.is-alert strong {
  color: inherit;
}

.ad-operator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ad-operator__actions form {
  display: contents;
}

.ad-assignment {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.ad-assignment .icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-assignment a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-assignment a:hover {
  border-bottom-color: var(--pink);
  color: var(--pink);
}

.ad-assignment.is-alert {
  color: var(--pink);
}

.ad-assignment--muted {
  color: var(--dim);
}

.op-profile-card--unassigned {
  border-color: rgba(255, 47, 116, 0.4);
}

.ad-editor__operator {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.ad-editor__operator .icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-profile-card__notice {
  margin: 12px 0 0;
  padding: 10px 11px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 47, 116, 0.06);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.ad-filterbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ad-filterbar:focus-within {
  border-color: var(--line-strong);
}

.ad-filterbar__icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-filterbar input[type="search"] {
  min-width: 0;
  height: 38px;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 12.5px;
  outline: 0;
}

.ad-filterbar input[type="search"]::placeholder {
  color: var(--dim);
}

.ad-filterbar .text-link {
  flex: none;
  font-size: 10px;
  white-space: nowrap;
}

.ad-filterchip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 10.5px;
}

.ad-filterchip strong {
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
}

.ad-filterchip__label {
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ad-filterchip__meta {
  color: var(--dim);
}

.ad-filterchip .text-link {
  margin-left: auto;
  font-size: 10px;
}

.ad-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 47, 116, 0.38);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-readonly-badge .icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-readonly-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 17px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 47, 116, 0.06);
}

.ad-readonly-bar .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-readonly-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.ad-readonly-bar strong {
  color: var(--white);
  font-weight: 600;
}

.ad-thread-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  align-items: start;
  gap: 36px;
}

.ad-thread {
  display: flex;
  min-width: 0;
  min-height: clamp(520px, 70vh, 760px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ad-thread__head {
  border-bottom: 1px solid var(--line);
}

.ad-thread__head > .text-link {
  flex: none;
  margin-left: auto;
  font-size: 10px;
}

.ad-thread__body {
  padding: 26px 24px 32px;
}

.ad-thread-side {
  display: grid;
  align-content: start;
  gap: 26px;
}

.ad-presence {
  color: var(--dim);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.ad-presence.is-online {
  color: var(--online);
}

.ad-person {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 17px;
}

.ad-person__avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.28), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ad-person__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-person__name {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ad-person__meta {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.45;
  word-break: break-word;
}

.ad-notes__hint {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.ad-note-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ad-note {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.ad-note:first-child {
  border-top: 0;
  padding-top: 0;
}

.ad-note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.ad-note__head strong {
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
}

.ad-note__head time {
  color: var(--dim);
  font-size: 8.5px;
  white-space: nowrap;
}

.ad-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ad-side-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.ad-side-actions form {
  display: block;
}

.ad-assigned-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.ad-assigned {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 13px;
  padding: 16px 0;
}

.ad-assigned + .ad-assigned {
  border-top: 1px solid var(--line);
}

.ad-assigned.is-off {
  opacity: 0.7;
}

.ad-assigned__avatar {
  display: grid;
  width: 52px;
  height: 52px;
  grid-row: span 2;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.28), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ad-assigned__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-assigned__copy {
  min-width: 0;
}

.ad-assigned__copy h3 {
  overflow: hidden;
  margin: 0;
  font-size: 13.5px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-assigned__copy h3 a:hover {
  color: var(--pink);
}

.ad-assigned__arrow {
  margin: 0 3px;
  color: var(--line-strong);
  font-weight: 400;
}

.ad-assigned__copy p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.4;
}

.ad-assigned .ad-state {
  grid-column: 3;
  justify-self: end;
}

.ad-assigned__actions {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.ad-assigned__actions .text-link {
  font-size: 10px;
}

.text-link--danger,
button.text-link--danger {
  border: 0;
  background: none;
  color: var(--pink);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  padding: 0;
}

.text-link--danger:hover {
  color: var(--pink-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button--danger {
  border: 1px solid rgba(255, 47, 116, 0.55);
  background: transparent;
  color: var(--pink);
}

.button--danger:hover {
  border-color: var(--pink);
  background: rgba(255, 47, 116, 0.1);
  color: var(--white);
}

.op-chat__notes {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  transition: color 160ms ease, border-color 160ms ease;
}

.op-chat__notes:hover {
  border-color: var(--pink);
  color: var(--white);
}

.op-chat__notes:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.op-chat__notes .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-chat__notes-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.op-auth__switch {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.55;
}

.op-auth__switch .text-link {
  color: var(--muted);
}

.op-auth__switch .text-link:hover {
  color: var(--white);
}

/* ---------- Interné poznámky operátorov ---------- */

.op-notes-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
}

.op-notes-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 22px;
  scroll-margin-top: calc(var(--op-header-h) + 24px);
}

.op-notes-person {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 4px 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-notes-person__avatar {
  display: grid;
  width: 76px;
  height: 76px;
  grid-row: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.3), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.op-notes-person__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-notes-person__copy {
  min-width: 0;
}

.op-notes-person h2 {
  margin: 5px 0 0;
  font-size: 19px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.op-notes-person__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.op-notes-person__presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.op-notes-person > .button,
.op-notes-person__hint {
  grid-column: 1 / -1;
}

.op-notes-person > .button {
  margin-top: 14px;
}

.op-notes-person__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.55;
}

.op-notes-person__hint .icon {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-notes-main {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-notes-main__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.op-notes-main__head h2,
.op-notes-main__head h3 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.op-notes-main .auth-errors {
  margin: 18px 0 0;
}

.op-note-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.op-note-form .field textarea {
  min-height: 120px;
}

.op-note-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.op-note-form__count {
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.op-note-form__count.is-near-limit {
  color: var(--pink);
}

.op-note-list {
  margin-top: 24px;
}

.op-note {
  padding: 16px 0;
}

.op-note p {
  font-size: 11.5px;
  line-height: 1.65;
}

.op-notes-empty {
  margin-top: 24px;
  padding: 30px 24px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.op-notes-empty__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--dim);
}

.op-notes-empty__mark .icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-notes-empty p {
  max-width: 46ch;
  margin: 12px auto 0;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.6;
}

.op-notes-empty__title {
  color: var(--white) !important;
  font-size: 12.5px !important;
  font-weight: 600;
}

/* ---------- Responzívne úpravy admin panelu ---------- */

@media (max-width: 1180px) {
  .ad-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-columns,
  .ad-split,
  .ad-split--wide,
  .ad-thread-view {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .ad-thread-side .ad-notes {
    grid-column: 1 / -1;
  }

  .op-notes-pair {
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .ad-conversation--wide {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar who side"
      "avatar copy copy";
    align-items: start;
  }

  .ad-conversation--wide .ad-conversation__avatar {
    grid-area: avatar;
  }

  .ad-conversation--wide .ad-conversation__who {
    grid-area: who;
  }

  .ad-conversation--wide .ad-conversation__copy {
    grid-area: copy;
  }

  .ad-conversation--wide .ad-conversation__side {
    grid-area: side;
  }

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

  .op-notes-person {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 4px 20px;
  }

  .op-notes-person__avatar {
    width: 88px;
    height: 88px;
  }

  .op-notes-person h2 {
    margin-top: 4px;
  }

  .op-notes-person > .button {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .op-main > .ad-stats,
  .op-main > .ad-callout,
  .op-main > .ad-columns,
  .op-main > .ad-split,
  .op-main > .ad-secret,
  .op-main > .ad-panel,
  .op-main > .ad-filterbar,
  .op-main > .ad-filterchip,
  .op-main > .ad-thread-view,
  .op-main > .ad-readonly-bar,
  .op-main > .an-period,
  .op-main > .an-grid,
  .op-main > .an-panel,
  .op-main > .op-summary {
    margin-top: 26px;
  }

  .ad-stats {
    gap: 20px;
  }

  .ad-stat {
    padding: 18px 17px 16px;
  }

  .ad-stat__value {
    font-size: 30px;
  }

  .ad-callout {
    padding: 20px;
  }

  .ad-callout h2 {
    font-size: 18px;
  }

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

  .ad-secret__icon {
    width: 38px;
    height: 38px;
  }

  .ad-secret__row {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-secret__value {
    font-size: 13px;
  }

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

  .ad-thread__head {
    flex-wrap: wrap;
  }

  .ad-thread__head > .text-link {
    display: none;
  }

  .ad-thread {
    min-height: 440px;
  }

  .ad-thread__body {
    padding: 20px 15px 24px;
  }

  .ad-filterbar {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px 10px;
    padding: 11px 12px;
  }

  .ad-filterbar__icon {
    align-self: center;
  }

  .ad-filterbar input[type="search"] {
    height: 38px;
  }

  .ad-filterbar .button {
    width: 100%;
    min-height: 42px;
    grid-column: 1 / -1;
  }

  .ad-filterbar .text-link {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .ad-assigned__actions {
    gap: 6px 12px;
  }

  .op-chat__notes {
    gap: 5px;
    padding: 7px 8px;
    font-size: 0;
  }

  .op-chat__notes .icon {
    width: 16px;
    height: 16px;
  }

  .op-chat__notes-count {
    font-size: 8px;
  }

  .op-notes-person {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 3px 16px;
    padding: 20px;
  }

  .op-notes-person__avatar {
    width: 68px;
    height: 68px;
    font-size: 16px;
  }

  .op-notes-person h2 {
    font-size: 17px;
  }

  .op-notes-main {
    padding: 20px 16px;
  }

  .op-note-form {
    padding: 15px;
  }

  .op-note-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .op-note-form__footer .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-stat,
  .ad-conversation,
  .op-chat__notes {
    transition: none;
  }
}

/* ---------- Prepínač jazyka v paneli ---------- */

.lang-switch--panel {
  margin-left: auto;
  border-color: var(--line-strong);
  background: transparent;
}

@media (min-width: 981px) {
  .op-header__inner .lang-switch--panel + .op-account {
    margin-left: 0;
  }
}

.lang-switch--panel-auth {
  margin-left: auto;
  border-color: var(--line-strong);
  background: transparent;
}

.lang-switch--panel-footer {
  border-color: var(--line-strong);
  background: transparent;
}

@media (max-width: 980px) {
  .lang-switch--panel {
    display: none;
  }
}

@media (max-width: 420px) {
  .op-auth__back {
    display: none;
  }
}

/* ---------- Pracovný rozhovor: profil vľavo, muž vpravo ---------- */

.op-task-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 16px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.op-task-bar__copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
}

.op-task-bar__label {
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.op-task-bar__copy strong {
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.op-task-bar__arrow {
  margin: 0 8px;
  color: var(--line-strong);
  font-weight: 400;
}

.op-task-bar__profile {
  color: var(--white);
}

.op-task-bar__user {
  color: var(--muted);
  font-weight: 600;
}

.op-task-bar__since {
  color: var(--dim);
  font-size: 9.5px;
}

.op-task-bar__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.op-task-bar__next {
  margin: 0;
}

.op-task-bar__next .button {
  gap: 8px;
}

.op-task-bar__next .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-reward-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 47, 116, 0.34);
  background: rgba(255, 47, 116, 0.07);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.op-task {
  display: grid;
  height: clamp(620px, calc(100svh - 318px), 900px);
  overflow: hidden;
  grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.op-task-profile {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0c0c10;
}

.op-task-profile__media {
  position: relative;
  min-height: 220px;
  flex: 0 1 38%;
  overflow: hidden;
  background: #141418;
}

.op-task-profile__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}

.op-task-profile__photo--initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 116, 0.3), transparent 55%),
    linear-gradient(155deg, #201a23 0%, #121217 70%);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.op-task-profile__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 47, 116, 0.5);
  background: rgba(8, 8, 10, 0.82);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.op-task-profile__body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 26px 24px 20px;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.op-task-profile__body h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.op-task-profile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.op-task-profile__meta .op-chat__sep {
  margin: 0 7px;
}

.op-task-profile__looking {
  margin: 13px 0 0;
}

.op-task-profile__looking .looking-pill {
  padding: 5px 10px;
  font-size: 10px;
}

.op-task-profile__visible {
  color: var(--online);
}

.op-task-profile__hidden {
  color: var(--pink);
}

.op-task-profile__hint {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.6;
}

.op-task-profile__section {
  margin-top: 20px;
}

.op-task-profile__section h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.op-task-profile__section p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.op-task-profile__reward {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.op-task-profile__reward small {
  color: var(--dim);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 9.5px;
  font-weight: 500;
}

/* Rýchla poznámka je vždy na očiach: operátor ju zapíše bez opustenia
   rozhovoru a hneď pokračuje v odpovedi. */
.op-quicknote {
  flex: none;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: #0a0a0d;
}

.op-quicknote__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.op-quicknote__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.op-quicknote__title .icon {
  width: 13px;
  height: 13px;
  color: var(--pink);
}

.op-quicknote__all {
  color: var(--dim);
  font-size: 10px;
  text-decoration: none;
  transition: color 160ms ease;
}

.op-quicknote__all:hover,
.op-quicknote__all:focus-visible {
  color: var(--white);
}

.op-quicknote__errors {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 47, 116, 0.08);
  color: #ff9db7;
  font-size: 10px;
  line-height: 1.5;
}

.op-quicknote__errors p {
  margin: 0;
}

.op-quicknote__errors p + p {
  margin-top: 4px;
}

.op-quicknote__form {
  margin-top: 10px;
}

.op-quicknote__targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  background: #0e0e12;
}

.op-quicknote__target {
  position: relative;
  display: block;
  min-width: 0;
}

.op-quicknote__target input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.op-quicknote__target span {
  display: block;
  padding: 7px 6px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.op-quicknote__target:hover span {
  color: var(--white);
}

.op-quicknote__target input:checked + span {
  background: rgba(255, 47, 116, 0.16);
  color: var(--white);
}

.op-quicknote__target input:focus-visible + span {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.op-quicknote__input {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--white);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  line-height: 1.55;
  resize: vertical;
}

.op-quicknote__input:focus {
  outline: none;
  border-color: var(--line-strong);
}

.op-quicknote__input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

.op-quicknote__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.op-quicknote__count {
  color: var(--dim);
  font-size: 9px;
  font-weight: 500;
}

.op-quicknote__count.is-near-limit {
  color: var(--pink);
}

.op-task-chat {
  min-height: 0;
}

.op-task-earnings {
  width: min(100%, 520px);
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.op-task-earnings__rate {
  margin: 0;
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.op-task-earnings__list {
  display: grid;
  margin: 18px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.op-task-earnings__list div {
  padding: 13px 14px;
}

.op-task-earnings__list div + div {
  border-left: 1px solid var(--line);
}

.op-task-earnings__list dt {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-task-earnings__list dd {
  margin: 5px 0 0;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.op-task-earnings__note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.op-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 1360px) {
  .op-task {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .op-task {
    height: clamp(600px, calc(100svh - 292px), 880px);
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .op-task-profile__body {
    padding: 20px 19px 22px;
  }
}

@media (max-width: 980px) {
  .op-task-bar {
    align-items: flex-start;
  }

  .op-task-bar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .op-task {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .op-task > * {
    min-width: 0;
  }

  .op-task-profile {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    /* Na úzkych obrazovkách ide rýchla poznámka nad profil, aby bola
       viditeľná hneď po otvorení rozhovoru. */
    grid-template-areas:
      "notes notes"
      "media body";
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .op-task-profile__media {
    grid-area: media;
    min-height: 220px;
    height: 100%;
    flex: none;
  }

  .op-task-profile__body {
    grid-area: body;
    max-height: 420px;
    overflow-y: auto;
  }

  .op-quicknote {
    grid-area: notes;
  }

  .op-task-chat {
    height: min(72svh, 720px);
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .op-task-bar {
    padding: 13px 14px;
  }

  .op-task-bar__since {
    flex-basis: 100%;
  }

  .op-task-profile {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .op-task-profile__media {
    min-height: 204px;
  }

  .op-task-profile__body {
    max-height: none;
    padding: 18px 16px 20px;
  }

  .op-task-profile__body h2 {
    font-size: 1.45rem;
  }

  .op-task-profile__looking .looking-pill {
    gap: 5px;
    padding: 3px 7px;
    font-size: 8.5px;
  }

  .op-task-profile__hint {
    margin-top: 12px;
    padding-top: 12px;
    font-size: 9.5px;
    line-height: 1.55;
  }

  .op-task-profile__section {
    display: none;
  }

  .op-task-profile__reward {
    margin-top: 16px;
    padding-top: 12px;
  }

  .op-quicknote {
    padding: 14px 16px 16px;
  }

  .op-task-chat {
    height: 68svh;
    min-height: 460px;
  }

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

  .op-task-earnings__list div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ---------- Admin: rozhovory operátora, odmeny a výplaty ---------- */
.ad-stat__value--money {
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -0.03em;
}

.ad-assigned__snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 4px !important;
  color: var(--dim);
  font-size: 10.5px !important;
  line-height: 1.5 !important;
}

.ad-assigned__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px !important;
  color: var(--dim);
  font-size: 9px !important;
  letter-spacing: 0.03em;
}

.ad-assigned__meta .is-alert {
  color: var(--pink);
}

.ad-state.is-pending {
  border-color: rgba(255, 47, 116, 0.35);
  background: rgba(255, 47, 116, 0.07);
  color: var(--pink);
}

.ad-operator-side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ad-earnings-grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ad-earnings-grid > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ad-earnings-grid dt {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-earnings-grid dd {
  margin: 5px 0 0;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ad-payout-form {
  margin-top: 18px;
}

.ad-payout-empty {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.ad-payout-history {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ad-payout-history h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-payout-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-payout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 11px 0;
}

.ad-payout + .ad-payout {
  border-top: 1px solid var(--line);
}

.ad-payout__amount {
  color: var(--online);
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ad-payout__meta {
  color: var(--dim);
  font-size: 8.5px;
  line-height: 1.45;
  text-align: right;
}

.ad-payout__note {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.5;
}

.ad-commission {
  margin-top: 18px;
}

.ad-commission__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.ad-margin {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.ad-margin h3 {
  margin: 4px 0 0;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.ad-margin__lead {
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.ad-margin__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ad-margin__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.ad-margin__row + .ad-margin__row {
  border-top: 1px solid var(--line);
}

.ad-margin__package,
.ad-margin__cell {
  display: grid;
  gap: 3px;
}

.ad-margin__package strong {
  color: var(--white);
  font-size: 11px;
}

.ad-margin__package span {
  color: var(--dim);
  font-size: 9.5px;
}

.ad-margin__cell {
  text-align: right;
}

.ad-margin__cell span {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-margin__cell strong {
  color: var(--white);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ad-margin__cell--owner strong {
  color: var(--online);
}

.ad-margin__note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .ad-commission__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .ad-earnings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .ad-margin__cell--owner {
    grid-column: 1 / -1;
    text-align: left;
  }

  .ad-assigned {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ad-assigned__avatar {
    width: 44px;
    height: 44px;
  }

  .ad-assigned .ad-state {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- Admin: analytika operátorov ---------- */

.an-page > * + * {
  margin-top: 24px;
}

.an-page > .op-pagehead {
  margin-bottom: 0;
}

.an-page .op-pagehead__actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.an-period {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
}

.an-period a {
  padding: 10px 17px;
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.an-period a + a {
  border-left: 1px solid var(--line);
}

.an-period a:hover {
  color: var(--white);
  background: var(--surface-raised);
}

.an-period a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 47, 116, 0.14);
  box-shadow: inset 0 -2px 0 var(--pink);
}

.an-period a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.an-period__note {
  max-width: 330px;
  margin: 0;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.55;
  text-align: right;
}

.an-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.an-stats .ad-stat {
  padding: 22px 20px 19px;
}

.an-stats .ad-stat__value {
  display: flex;
  min-height: 36px;
  align-items: flex-end;
  line-height: 1;
}

.ad-stat__value--text {
  font-size: clamp(19px, 1.7vw, 25px);
  letter-spacing: -0.03em;
}

.ad-stat--muted {
  border-color: var(--line);
}

.ad-stat--muted .ad-stat__value {
  color: var(--dim);
}

.an-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.an-chart-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.an-chart-panel__range {
  flex: none;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.an-bars {
  margin-top: 24px;
}

.an-bars__track {
  display: grid;
  height: 168px;
  grid-template-columns: repeat(var(--an-cols, 30), minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1px, 0.22vw, 3px);
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
}

.an-bars__col {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: flex-end;
}

.an-bars__bar {
  width: 100%;
  max-width: 56px;
  height: var(--an-h, 0%);
  margin-inline: auto;
  min-height: 3px;
  background: linear-gradient(180deg, var(--pink), rgba(255, 47, 116, 0.3));
  transition: background 160ms ease;
}

.an-bars__bar.is-empty {
  min-height: 2px;
  background: var(--line-strong);
  opacity: 0.6;
}

.an-bars__col:hover .an-bars__bar {
  background: var(--pink-hover);
}

.an-bars__col:hover .an-bars__bar.is-empty {
  background: var(--line-strong);
}

.an-bars__axis {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.an-bars--hours .an-bars__col {
  justify-content: center;
}

.an-bars--hours .an-bars__bar {
  max-width: 28px;
}

.an-table-panel {
  min-width: 0;
}

.an-table-wrap {
  margin-top: 6px;
  overflow-x: auto;
}

.an-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.an-table thead th {
  padding: 15px 14px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.an-table tbody th,
.an-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.an-table tbody tr:last-child th,
.an-table tbody tr:last-child td {
  border-bottom: 0;
}

.an-table tbody tr {
  transition: background 160ms ease;
}

.an-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.an-table thead th:first-child,
.an-table tbody th:first-child {
  padding-left: 0;
}

.an-table thead th:last-child,
.an-table tbody td:last-child {
  padding-right: 0;
  text-align: right;
}

.an-table td strong {
  display: block;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.an-table td small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
}

.an-table strong.is-dim {
  color: var(--dim);
  font-weight: 500;
}

.an-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.an-person__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.an-person__copy strong {
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 160ms ease;
}

.an-person:hover .an-person__copy strong {
  color: var(--pink);
}

.an-person__copy small {
  overflow: hidden;
  max-width: 190px;
  color: var(--dim);
  font-size: 9.5px;
  text-overflow: ellipsis;
}

.an-person .ad-state {
  margin-left: 4px;
}

.an-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.an-avatar--lg {
  width: 54px;
  height: 54px;
  font-size: 13px;
}

.an-operator {
  scroll-margin-top: calc(var(--op-header-h) + 20px);
}

.an-operator__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.an-operator__identity {
  min-width: 220px;
  flex: 1;
}

.an-operator__identity h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.an-operator__identity p:not(.op-kicker) {
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.an-operator__head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.an-operator__head-right .text-link {
  color: var(--pink);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.an-operator__head-right .text-link:hover {
  color: var(--pink-hover);
}

.an-metric-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 30px;
  margin-top: 24px;
}

.an-metric-group {
  min-width: 0;
}

.an-metric-group h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.an-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
}

.an-metrics dt {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.an-metrics dd {
  margin: 5px 0 0;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.an-metrics dd small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.an-metrics dd.an-metrics__date {
  color: var(--muted);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.an-operator__charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.an-chart-block {
  min-width: 0;
}

.an-chart-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}

.an-chart-block__head h3 {
  margin: 0;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.an-chart-block__head span {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.an-chart-block .an-bars {
  margin-top: 18px;
}

.an-chart-block .an-bars__track {
  height: 96px;
}

.an-definitions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin-top: 22px;
}

.an-definition {
  min-width: 0;
}

.an-definition h3 {
  margin: 0;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.an-definition p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

@media (max-width: 1440px) {
  .an-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .an-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 980px) {
  .an-page .op-pagehead__actions {
    align-items: flex-start;
  }

  .an-period__note {
    text-align: left;
  }

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

@media (max-width: 760px) {
  .an-page > * + * {
    margin-top: 20px;
  }

  .an-metric-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .an-definitions__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .an-stats .ad-stat {
    padding: 18px 16px 16px;
  }

  .an-stats .ad-stat__value {
    min-height: 30px;
  }

  .ad-stat__value--text {
    font-size: 18px;
  }

  .an-bars__track {
    height: 132px;
  }

  .an-chart-block .an-bars__track {
    height: 84px;
  }

  .an-table thead th,
  .an-table tbody th,
  .an-table tbody td {
    padding-right: 11px;
    padding-left: 11px;
  }

  .an-operator__head-right {
    width: 100%;
  }

  .an-metrics {
    gap: 16px;
  }
}

/* ---------- Stripe platby ---------- */

.stripe-config-hint {
  margin: 14px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.7;
  white-space: pre;
}

.stripe-status {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.stripe-status > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.stripe-status dt {
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stripe-status dd {
  margin: 0;
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
}

.stripe-note {
  margin-top: 16px;
}

.stripe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.stripe-probe {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--dim);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.stripe-probe p {
  margin: 0;
}

.stripe-probe p + p {
  margin-top: 5px;
}

.stripe-probe.is-ok {
  border-left-color: var(--online);
  background: rgba(185, 245, 107, 0.05);
}

.stripe-probe.is-error {
  border-left-color: var(--pink);
  background: rgba(255, 47, 116, 0.06);
}

.stripe-probe__title {
  color: var(--white);
  font-weight: 700;
}

.stripe-probe__time {
  color: var(--dim);
  font-size: 9.5px;
}

.stripe-test-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stripe-test-result h3 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.stripe-test-result > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.stripe-test-result .stripe-probe {
  margin-top: 14px;
}

.stripe-test-result .button {
  margin-top: 14px;
}

.stripe-orders-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.stripe-orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.stripe-orders thead th {
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.stripe-orders tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.stripe-orders tbody tr:last-child td {
  border-bottom: 0;
}

.stripe-orders tbody td strong {
  color: var(--white);
  font-weight: 600;
}

.stripe-orders__muted {
  color: var(--dim);
  font-size: 10px;
}

.stripe-orders__session {
  color: var(--dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  word-break: break-all;
}

.stripe-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 47, 116, 0.35);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.stripe-status-pill {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stripe-status-pill.is-paid {
  border-color: rgba(185, 245, 107, 0.35);
  background: rgba(185, 245, 107, 0.07);
  color: var(--online);
}

.stripe-status-pill.is-pending {
  border-color: rgba(255, 196, 87, 0.35);
  background: rgba(255, 196, 87, 0.07);
  color: #ffc457;
}

.stripe-status-pill.is-failed,
.stripe-status-pill.is-expired {
  border-color: rgba(255, 47, 116, 0.35);
  background: rgba(255, 47, 116, 0.07);
  color: var(--pink);
}

.stripe-status-pill.is-refunded {
  border-color: var(--line-strong);
  color: var(--muted);
}

@media (max-width: 720px) {
  .stripe-orders thead th,
  .stripe-orders tbody td {
    padding-right: 9px;
    padding-left: 9px;
  }
}
