@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

/* ─── Base reset ───────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Authentication ─────────────────────────────────────────────────────── */

body.app-auth-pending {
  background: #111;
}

body.app-auth-pending > * {
  visibility: hidden;
}

body.auth-page {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #111;
  color: #f7f7f7;
  font-family: "Inter", sans-serif;
}

@media (max-width: 700px) and (hover: none) and (pointer: coarse) {
  body.auth-page {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 16px
      calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    background: #111;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .auth-card {
    margin: 0 auto;
  }
}

.auth-card {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid #333;
  border-radius: 18px;
  background: #1a1a1a;
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-logo-frame {
  width: 96px;
  height: 58px;
  margin: 0 auto 10px;
  overflow: hidden;
}

.auth-logo {
  display: block;
  width: 96px;
  height: 96px;
  transform: translateY(-19px);
}

.auth-intro,
.auth-status {
  color: #bdbdbd;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 22px 0;
  padding: 4px;
  border-radius: 12px;
  background: #0e0e0e;
}

.auth-tab,
.auth-form button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab {
  background: transparent;
  color: #aaa;
}

.auth-tab.is-active {
  background: #303030;
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label,
.auth-field {
  display: grid;
  gap: 7px;
  color: #ddd;
  font-size: 14px;
  text-align: left;
}

.auth-form input,
.auth-form select {
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 9px;
  padding: 0 12px;
  background: #0d0d0d;
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.auth-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  width: fit-content;
  align-items: center;
  gap: 10px !important;
  color: #ddd;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #777;
  border-radius: 3px;
  padding: 0;
  background: #1a1a1a;
  cursor: pointer;
  outline: none;
}

.auth-checkbox input:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border: solid #f7f7f7;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.auth-checkbox input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #333;
}

.auth-checkbox span {
  font-size: 14px;
  font-weight: 700;
}

.auth-form select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #ddd 50%),
    linear-gradient(135deg, #ddd 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 20px,
    calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-form input:not([type="checkbox"]):focus,
.auth-form select:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth-country-field {
  position: relative;
}

.auth-country-picker {
  position: relative;
}

.auth-country-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #444;
  border-radius: 9px;
  padding: 0 12px;
  background: #0d0d0d;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.auth-country-button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth-country-arrow {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ddd;
}

.auth-country-value,
.auth-country-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-country-value {
  min-width: 0;
}

.auth-country-flag {
  width: 28px;
  height: 21px;
  flex: 0 0 28px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 18%);
}

.auth-country-name {
  min-width: 0;
}

.auth-country-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 6px;
  border: 1px solid #444;
  border-radius: 9px;
  background: #101010;
  box-shadow: 0 16px 36px rgb(0 0 0 / 45%);
}

.auth-country-panel.hidden,
.auth-country-list.hidden,
.auth-country-option.hidden,
.auth-country-empty.hidden {
  display: none;
}

.auth-country-search-wrap {
  position: relative;
  margin-bottom: 6px;
}

.auth-country-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid #444;
  border-radius: 7px;
  padding: 0 38px 0 10px;
  background: #0d0d0d;
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.auth-country-search:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.auth-country-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-country-search-clear.hidden {
  display: none;
}

.auth-country-search-clear::before,
.auth-country-search-clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.auth-country-search-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-country-search-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.auth-country-search-clear:hover,
.auth-country-search-clear:focus {
  background: #303030;
  outline: none;
}

.auth-country-list {
  max-height: 214px;
  overflow-y: auto;
}

.auth-country-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: #f7f7f7;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.auth-country-option:hover,
.auth-country-option:focus,
.auth-country-option[aria-selected="true"] {
  background: #303030;
  outline: none;
}

.auth-country-empty {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #aaa;
  font-size: 14px;
}

.auth-photo-field small {
  color: #999;
  font: inherit;
}

.auth-photo-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 12px;
  overflow: hidden;
  color: #ddd;
  background: rgba(255, 173, 32, 0.05);
  border: 1px dashed rgba(255, 173, 32, 0.58);
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-photo-picker:hover {
  background: rgba(255, 173, 32, 0.1);
  border-color: rgba(255, 173, 32, 0.88);
}

.auth-photo-picker:focus-within {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth-photo-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.auth-photo-preview {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.auth-photo-preview.hidden {
  display: none;
}

.auth-photo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #ffad20;
  background: rgba(255, 173, 32, 0.12);
  border-radius: 50%;
}

.auth-photo-icon.hidden {
  display: none;
}

.auth-photo-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.auth-photo-copy strong {
  color: #fff;
  font-size: 15px;
}

.auth-photo-copy small {
  color: #999;
  font-size: 12px;
  font-weight: 500;
}

.profile-photo-editor {
  width: min(92vw, 430px);
  max-width: none;
  max-height: min(92dvh, 720px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #f7f7f7;
  background: transparent;
  border: 0;
  font-family: "Inter", sans-serif;
}

.profile-photo-editor::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.profile-photo-editor-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.profile-photo-editor h2 {
  font-size: 25px;
  line-height: 1.15;
}

.profile-photo-editor-help {
  margin-top: -8px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.profile-photo-editor-canvas {
  display: block;
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  background: #111;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  cursor: grab;
  touch-action: none;
}

.profile-photo-editor-canvas.is-dragging {
  cursor: grabbing;
}

.profile-photo-editor-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.profile-photo-editor-tools {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.profile-photo-editor-zoom {
  display: grid;
  gap: 7px;
  color: #ddd;
  font-size: 13px;
  font-weight: 650;
}

.profile-photo-editor-zoom-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-photo-editor-zoom output {
  color: #aaa;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.profile-photo-editor-zoom input {
  width: 100%;
  accent-color: #39cf73;
}

.profile-photo-editor-rotate,
.profile-photo-editor-flip,
.profile-photo-editor-cancel,
.profile-photo-editor-save {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.profile-photo-editor-rotate,
.profile-photo-editor-flip {
  width: 48px;
  padding: 0;
}

.profile-photo-editor-rotate svg,
.profile-photo-editor-flip svg {
  display: block;
  width: 27px;
  height: 27px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-photo-editor-flip.is-active {
  color: #8be7ac;
  background: rgba(35, 196, 96, 0.16);
  border-color: rgba(35, 196, 96, 0.5);
}

.profile-photo-editor-rotate,
.profile-photo-editor-flip,
.profile-photo-editor-cancel {
  color: #fff;
  background: #303030;
  border: 1px solid #484848;
}

.profile-photo-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  width: 100%;
}

.profile-photo-editor-save {
  color: #101010;
  background: #f4f4f4;
}

@media (max-height: 620px) {
  .profile-photo-editor-panel {
    gap: 12px;
    padding: 18px;
  }

  .profile-photo-editor-canvas {
    width: min(48dvh, 250px);
    height: min(48dvh, 250px);
  }
}

.auth-form button[type="submit"] {
  background: #f4f4f4;
  color: #111;
}

.auth-form .auth-link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #bbb;
  font-weight: 500;
  text-align: left;
}

.auth-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-size: 14px;
}

.auth-status.is-error {
  color: #ff9a9a;
}

.auth-form-status {
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(67, 229, 139, 0.35);
  border-radius: 9px;
  color: #d8ffe7;
  background: rgba(35, 196, 96, 0.1);
  font-size: 14px;
  line-height: 1.4;
}

.auth-form-status.hidden {
  display: none;
}

.auth-form-status.is-error {
  border-color: rgba(255, 154, 154, 0.4);
  color: #ffb6b6;
  background: rgba(255, 82, 82, 0.08);
}

.auth-form-status-link {
  display: inline-flex;
  margin-top: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 0 4px;
  text-align: center;
  outline: none;
}

.auth-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #61dc8d;
  background: rgba(35, 196, 96, 0.14);
  border: 1px solid rgba(35, 196, 96, 0.38);
  border-radius: 50%;
}

.auth-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-success h2 {
  font-size: 26px;
  line-height: 1.15;
}

.auth-success p {
  max-width: 330px;
  color: #bdbdbd;
  line-height: 1.45;
}

.auth-success-email {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 16px;
}

.auth-success-note {
  padding: 10px 12px;
  color: #ffd18a !important;
  background: rgba(255, 173, 32, 0.08);
  border: 1px solid rgba(255, 173, 32, 0.3);
  border-radius: 9px;
  font-size: 13px;
}

.auth-confirm-button {
  display: block;
  min-height: 44px;
  margin: 24px auto 0;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: #f4f4f4;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-confirm-card {
  width: min(100%, 460px);
}

.auth-confirm-status:empty {
  display: none;
}

/* ─── Account administration ───────────────────────────────────────────── */

body.admin-page {
  display: block;
  min-height: 100dvh;
  margin: 0;
  padding: 32px 20px;
  background: #111;
  color: #f7f7f7;
  font-family: "Inter", sans-serif;
  text-align: left;
}

.admin-card {
  width: min(calc(100vw - 32px), 1880px);
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-header h1 {
  margin-top: 4px;
  font-size: clamp(30px, 6vw, 46px);
}

.admin-eyebrow,
.admin-intro,
.admin-user-email,
.admin-user-meta,
.admin-status {
  color: #aaa;
}

.admin-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-intro {
  margin-top: 8px;
}

.admin-back-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid #3b3b3b;
  border-radius: 10px;
  text-decoration: none;
}

.admin-section-nav {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 10px;
}

.admin-section-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 14px;
  color: #aaa;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-section-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: #07130d;
  background: #35e382;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.admin-section-tab-badge.hidden {
  display: none;
}

.admin-section-tab:hover {
  color: #fff;
  background: #222;
}

.admin-section-tab.is-active {
  color: #fff;
  background: rgba(35, 196, 96, 0.13);
  border-color: rgba(67, 229, 139, 0.38);
}

.admin-section-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.admin-section-panel.hidden {
  display: none;
}

.admin-ribbon {
  position: relative;
  z-index: 10;
  --admin-ribbon-panel-height: 104px;
  margin-top: 24px;
  overflow: visible;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 13px;
}

.admin-ribbon-tabs {
  display: flex;
  min-height: 35px;
  padding: 0 10px;
  background: #121212;
  border-bottom: 1px solid #303030;
}

.admin-ribbon-tab {
  position: relative;
  min-width: 68px;
  padding: 8px 14px 7px;
  color: #aaa;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-ribbon-tab.is-active {
  color: #fff;
}

.admin-ribbon-tab.is-active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: #43e58b;
  content: "";
}

.admin-ribbon-tab:focus-visible,
.admin-ribbon-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.admin-ribbon-panel.hidden {
  display: none;
}

.admin-ribbon-panel {
  display: flex;
  height: var(--admin-ribbon-panel-height);
  padding: 8px 12px 0;
  overflow: visible;
}

.admin-ribbon-group {
  display: grid;
  flex: 0 0 auto;
  grid-template-rows: 1fr auto;
  min-width: 230px;
  padding: 0 10px;
  border-right: 1px solid #303030;
}

.admin-ribbon-group-highlighting {
  min-width: 260px;
}

.admin-ribbon-group-layout {
  min-width: 500px;
}

.admin-ribbon-group-export {
  min-width: 132px;
}

.admin-ribbon-actions {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.admin-ribbon-toggle {
  display: grid;
  grid-template-rows: 34px auto;
  place-items: center;
  min-width: 98px;
  padding: 5px 9px;
  color: #aaa;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.admin-ribbon-toggle:hover {
  color: #fff;
  background: #222;
  border-color: #383838;
}

.admin-ribbon-toggle.is-active {
  color: #fff;
  background: rgba(35, 196, 96, 0.11);
  border-color: rgba(67, 229, 139, 0.38);
}

.admin-ribbon-toggle:disabled {
  color: #666;
  cursor: default;
  opacity: 0.7;
}

.admin-ribbon-row-height-control {
  display: grid;
  grid-template-rows: auto auto 22px;
  align-content: center;
  min-width: 174px;
  padding: 6px 9px;
  color: #aaa;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.admin-ribbon-row-height-control label {
  color: #ddd;
}

.admin-ribbon-row-height-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-ribbon-row-height-value output {
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.admin-ribbon-mini-button {
  min-height: 24px;
  padding: 3px 8px;
  color: #aaa;
  background: #151515;
  border: 1px solid #333;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.admin-ribbon-mini-button:hover,
.admin-ribbon-mini-button:focus-visible {
  color: #fff;
  background: #222;
  border-color: #444;
}

.admin-ribbon-mini-button.is-active {
  color: #fff;
  background: rgba(35, 196, 96, 0.16);
  border-color: rgba(67, 229, 139, 0.5);
}

.admin-ribbon-row-height-control input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: #43e58b;
}

.admin-ribbon-row-height-control input[type="range"]:disabled {
  opacity: 0.45;
}

.admin-ribbon-split {
  position: relative;
  display: flex;
  align-items: stretch;
}

.admin-ribbon-split-main {
  width: 122px;
  min-width: 122px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.admin-ribbon-split-main.is-active {
  border-right-color: rgba(67, 229, 139, 0.24);
}

.admin-ribbon-split-menu-button {
  position: relative;
  width: 28px;
  min-width: 28px;
  padding: 0;
  color: #aaa;
  background: transparent;
  border: 1px solid transparent;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  cursor: pointer;
}

.admin-ribbon-split:hover .admin-ribbon-split-menu-button,
.admin-ribbon-split-menu-button:hover,
.admin-ribbon-split-menu-button[aria-expanded="true"] {
  color: #fff;
  background: #222;
  border-color: #383838;
}

.admin-ribbon-split:has(.admin-ribbon-split-main.is-active) .admin-ribbon-split-menu-button {
  background: rgba(35, 196, 96, 0.11);
  border-color: rgba(67, 229, 139, 0.38);
}

.admin-ribbon-split-menu-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.admin-ribbon-split-menu-button span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transform: translate(-50%, -35%);
}

.admin-ribbon-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  padding: 5px;
  background: #191919;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.admin-ribbon-menu.hidden {
  display: none;
}

.admin-ribbon-menu button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px 6px 28px;
  color: #ddd;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.admin-ribbon-menu button:hover,
.admin-ribbon-menu button:focus-visible {
  color: #fff;
  background: #252525;
  outline: none;
}

.admin-ribbon-menu button[aria-checked="true"] {
  color: #fff;
  background: rgba(35, 196, 96, 0.13);
}

.admin-ribbon-menu button[aria-checked="true"]::before {
  position: absolute;
  margin-left: -18px;
  color: #43e58b;
  content: "✓";
}

.admin-ribbon-edit-icon,
.admin-ribbon-delete-icon,
.admin-ribbon-unlock-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-ribbon-export-icon {
  width: 27px;
  height: 27px;
}

.admin-ribbon-export-sheet {
  fill: #e9fff0;
  stroke: #71d88f;
  stroke-width: 1.2;
}

.admin-ribbon-export-grid {
  fill: none;
  stroke: #1f7f3f;
  stroke-linecap: round;
  stroke-width: 1.2;
  opacity: 0.78;
}

.admin-ribbon-export-tile {
  fill: #18884f;
  stroke: #0f6f3d;
  stroke-width: 1.2;
}

.admin-ribbon-export-x {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 2;
}

.admin-ribbon-icon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 7px);
  grid-template-rows: repeat(3, 6px);
  gap: 2px;
  width: 25px;
  height: 22px;
}

.admin-ribbon-icon::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#777 0 0) 0 0 / 100% 1px,
    linear-gradient(#777 0 0) 0 50% / 100% 1px,
    linear-gradient(#777 0 0) 0 100% / 100% 1px,
    linear-gradient(90deg, #777 0 0) 0 0 / 1px 100%,
    linear-gradient(90deg, #777 0 0) 50% 0 / 1px 100%,
    linear-gradient(90deg, #777 0 0) 100% 0 / 1px 100%;
  background-repeat: no-repeat;
  content: "";
}

.admin-ribbon-icon span {
  position: absolute;
  z-index: 1;
  background: #43e58b;
}

.admin-ribbon-icon-cell span {
  top: 8px;
  left: 9px;
  width: 7px;
  height: 6px;
}

.admin-ribbon-icon-row span {
  top: 8px;
  left: 1px;
  width: 23px;
  height: 6px;
}

.admin-ribbon-icon-column span {
  top: 1px;
  left: 9px;
  width: 7px;
  height: 20px;
}

.admin-ribbon-icon-both span {
  top: 8px;
  left: 1px;
  width: 23px;
  height: 6px;
}

.admin-ribbon-icon-both::after {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 9px;
  width: 7px;
  height: 20px;
  background: rgba(67, 229, 139, 0.72);
  content: "";
}

.admin-ribbon-icon-table-focus::before {
  position: absolute;
  inset: 4px 2px;
  background: none;
  border: 1px solid currentColor;
  content: "";
}

.admin-ribbon-icon-table-focus span {
  position: absolute;
  top: 8px;
  right: 5px;
  bottom: 4px;
  left: 2px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 32%, currentColor 32% 36%, transparent 36% 66%, currentColor 66% 70%, transparent 70%);
}

.admin-ribbon-group-label {
  padding: 4px 0 3px;
  color: #777;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(350px, 0.65fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

@media (min-width: 821px) {
  body.admin-table-focus .admin-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body.admin-table-focus .admin-detail,
  body.admin-table-focus .admin-report-detail {
    display: none;
  }

  body.admin-table-focus .admin-reports-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-directory,
.admin-detail {
  min-width: 0;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 18px;
}

.admin-directory {
  padding: 22px;
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-heading h2 {
  margin-top: 3px;
  color: #fff;
  font-size: 25px;
}

.admin-section-kicker {
  color: #7fdb9f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-workspace .admin-summary {
  margin: 20px 0 16px;
}

.admin-workspace .admin-summary-item {
  padding: 14px 10px;
}

.admin-table-wrapper {
  position: relative;
  overflow-x: auto;
  border: 1px solid #303030;
  border-radius: 0;
}

.admin-column-drop-indicator {
  position: absolute;
  z-index: 6;
  display: none;
  width: 3px;
  border-radius: 999px;
  background: #43e58b;
  pointer-events: none;
  transform: translateX(-50%);
}

.admin-column-drop-indicator.is-visible {
  display: block;
}

.admin-table {
  width: 100%;
  min-width: 1540px;
  table-layout: fixed;
  border-collapse: collapse;
  color: #eee;
  font-size: 13px;
}

.admin-table th {
  position: relative;
  padding: 11px 12px;
  color: #8e8e8e;
  background: #1d1d1d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table th.is-selected-column {
  color: #fff;
  background: rgba(35, 196, 96, 0.16);
  box-shadow: inset 0 -3px 0 #43e58b;
}

.admin-table th.is-selectable-column,
.admin-table th.is-reorderable-column {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='18' viewBox='0 0 14 18'%3E%3Cpath fill='%23f7f7f7' stroke='%23111111' stroke-width='1' stroke-linejoin='round' d='M4 1h6v10h3l-6 6-6-6h3z'/%3E%3C/svg%3E") 7 9, s-resize;
}

body.is-column-reorder-modifier-active .admin-table th.is-reorderable-column {
  cursor: grab;
}

.admin-table th.is-dragging-column {
  cursor: grabbing;
}

.admin-table-resize-handle {
  position: absolute;
  top: 0;
  right: -7px;
  z-index: 2;
  width: 14px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.admin-table-resize-handle::after {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.admin-table-resize-handle:hover::after,
.admin-table-resize-handle:focus-visible::after {
  background: rgba(127, 219, 159, 0.72);
  width: 2px;
}

.admin-table-resize-handle:focus-visible {
  outline: 1px solid rgba(127, 219, 159, 0.78);
  outline-offset: -2px;
}

body.is-resizing-admin-column,
body.is-resizing-admin-column * {
  cursor: col-resize !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.admin-resize-drag-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.admin-resize-drag-layer.is-column-resize {
  cursor: col-resize;
}

body.is-reordering-admin-column,
body.is-reordering-admin-column * {
  cursor: grabbing !important;
  user-select: none !important;
}

body.is-reordering-admin-column .admin-table-resize-handle:hover::after,
body.is-reordering-admin-column .admin-table-resize-handle:focus-visible::after {
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.admin-table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

body.is-column-reorder-modifier-active .admin-table-sort-button {
  cursor: grab;
}

.admin-table-sort-button:hover {
  color: #d5d5d5;
}

.admin-table-sort-button:focus-visible {
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.admin-table th.is-selected-column .admin-table-sort-button:focus-visible {
  outline: none;
}

.admin-table-sort-indicator {
  min-width: 9px;
  color: #7fdb9f;
  font-size: 12px;
  line-height: 1;
}

.admin-column-lock {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 7px;
  margin-left: 6px;
  border: 1px solid #656565;
  border-radius: 1px;
  vertical-align: -1px;
}

.admin-column-lock::before {
  position: absolute;
  bottom: 5px;
  left: 1px;
  width: 4px;
  height: 4px;
  border: 1px solid #656565;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  content: "";
}

.admin-table td {
  position: relative;
  min-width: 0;
  max-width: 0;
  height: var(--admin-table-row-height, 108px);
  padding: 14px 12px;
  border-top: 1px solid #303030;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.admin-table td.is-selected-column {
  background: rgba(35, 196, 96, 0.07);
}

.admin-table-cell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: cell;
  user-select: none;
  -webkit-user-select: none;
}

.admin-country-display {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 7px;
  max-width: 100%;
  overflow: hidden;
  vertical-align: middle;
}

.admin-country-flag {
  width: 16px;
  height: 12px;
  flex: 0 0 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 16%);
}

.admin-country-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-date-of-birth {
  padding-right: 42px;
}

.admin-date-cell-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-date-cell-picker-button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  padding: 0;
  color: #f3f3f3;
  background: #232323;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  visibility: hidden;
}

.admin-date-cell-picker-button.is-visible {
  opacity: 0.92;
  pointer-events: auto;
  visibility: visible;
}

.admin-date-cell-picker-button span::before,
.admin-date-cell-picker-button span::after {
  position: absolute;
  content: "";
}

.admin-date-cell-picker-button span::before {
  inset: 6px 7px 5px;
  border: 1px solid currentcolor;
  border-top-width: 4px;
}

.admin-date-cell-picker-button span::after {
  top: 11px;
  left: 9px;
  width: 8px;
  height: 1px;
  background: currentcolor;
  box-shadow: 0 4px 0 currentcolor;
}

.admin-date-cell-picker-button:hover,
.admin-date-cell-picker-button:focus {
  color: #06140c;
  background: #43e58b;
  border-color: #43e58b;
  outline: none;
  opacity: 1;
}

.admin-table-cell.is-selected-cell {
  background: rgba(67, 229, 139, 0.08);
}

.admin-table-cell.is-selected-cell:focus {
  outline: none;
}

.admin-table-cell.is-selected-cell::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0 solid #43e58b;
  pointer-events: none;
  content: "";
}

.admin-table-cell.is-selection-top::after {
  border-top-width: 2px;
}

.admin-table-cell.is-selection-right::after {
  border-right-width: 2px;
}

.admin-table-cell.is-selection-bottom::after {
  border-bottom-width: 2px;
}

.admin-table-cell.is-selection-left::after {
  border-left-width: 2px;
}

.admin-table-cell.is-active-cell {
  background: rgba(67, 229, 139, 0.12);
}

.admin-table-cell.is-active-cell.is-selection-top.is-selection-right.is-selection-bottom.is-selection-left::after {
  border-width: 2px;
}

.admin-grid-copy-menu {
  position: fixed;
  z-index: 10000;
  min-width: 132px;
  padding: 6px;
  background: #202020;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.admin-grid-copy-menu button {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  color: #f6f6f6;
  font: 700 0.82rem/1.2 inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.admin-grid-copy-menu button:hover,
.admin-grid-copy-menu button:focus-visible {
  color: #07140d;
  background: #43e58b;
  outline: none;
}

.admin-grid-copy-menu button:disabled {
  color: #777;
  cursor: not-allowed;
  opacity: 0.62;
}

.admin-grid-copy-menu button:disabled:hover,
.admin-grid-copy-menu button:disabled:focus-visible {
  color: #777;
  background: transparent;
}

body.is-reordering-admin-column .admin-table th.is-selected-column {
  color: #8e8e8e;
  background: #1d1d1d;
  box-shadow: none;
}

body.is-reordering-admin-column .admin-table td.is-selected-column,
body.is-reordering-admin-column .admin-table-cell.is-selected-cell {
  background: transparent;
  box-shadow: none;
}

body.is-reordering-admin-column .admin-table-cell.is-selected-cell::after {
  content: none;
}

.admin-inline-cell-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  color-scheme: dark;
  user-select: text;
  -webkit-user-select: text;
}

.admin-inline-date-editor {
  position: relative;
  display: block;
  padding-right: 36px;
}

.admin-inline-date-picker-button {
  position: absolute;
  top: 50%;
  right: 0;
  width: 30px;
  min-width: 30px;
  height: 24px;
  padding: 0;
  background: #202020;
  border: 1px solid #555;
  border-radius: 0;
  outline: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.admin-inline-date-picker-button span::before,
.admin-inline-date-picker-button span::after {
  position: absolute;
  content: "";
}

.admin-inline-date-picker-button span::before {
  inset: 6px 7px 5px;
  border: 1px solid #f3f3f3;
  border-top-width: 4px;
}

.admin-inline-date-picker-button span::after {
  top: 11px;
  left: 10px;
  width: 10px;
  height: 1px;
  background: #f3f3f3;
  box-shadow: 0 4px 0 #f3f3f3;
}

.admin-inline-date-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: 314px;
  padding: 12px;
  background: #161616;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgb(0 0 0 / 52%);
}

.admin-inline-date-panel.hidden {
  display: none;
}

.admin-inline-date-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 94px 32px;
  gap: 8px;
  align-items: center;
}

.admin-inline-date-nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #f3f3f3;
  background: #232323;
  border: 1px solid #444;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.admin-inline-date-month,
.admin-inline-date-year {
  height: 32px;
  min-width: 0;
  padding: 5px 8px;
  color: #fff;
  background: #232323;
  border: 1px solid #444;
  border-radius: 4px;
  font: inherit;
  font-weight: 750;
  color-scheme: dark;
}

.admin-inline-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.admin-inline-date-weekday,
.admin-inline-date-day {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 30px;
  font-size: 12px;
  line-height: 1;
}

.admin-inline-date-weekday {
  color: #8e8e8e;
  font-weight: 800;
}

.admin-inline-date-day {
  color: #f3f3f3;
  background: #222;
  border: 1px solid #343434;
  border-radius: 4px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-inline-date-day.is-adjacent-month {
  color: #777;
  background: #1b1b1b;
}

.admin-inline-date-nav:hover,
.admin-inline-date-nav:focus,
.admin-inline-date-day:hover,
.admin-inline-date-day:focus {
  border-color: #43e58b;
  outline: none;
}

.admin-inline-date-day.is-selected {
  color: #06140c;
  background: #43e58b;
  border-color: #43e58b;
}

.admin-inline-date-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-inline-date-action {
  height: 30px;
  padding: 0 12px;
  color: #f3f3f3;
  background: #232323;
  border: 1px solid #444;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-inline-date-action.is-primary {
  color: #06140c;
  background: #43e58b;
  border-color: #43e58b;
}

.admin-inline-date-action:hover,
.admin-inline-date-action:focus {
  border-color: #66f0a2;
  outline: none;
}

.admin-inline-account-input {
  font-weight: 750;
}

.admin-inline-cell-control {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 4px 22px 4px 4px;
  color: #fff;
  background: #202020;
  border: 1px solid #555;
  border-radius: 0;
  outline: 0;
  font: inherit;
  color-scheme: dark;
  user-select: auto;
  -webkit-user-select: auto;
}

.admin-table-cell.is-saving-cell {
  opacity: 0.65;
}

.admin-table th.admin-table-row-number-heading,
.admin-table td.admin-table-row-number {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 42px;
  padding-right: 8px;
  padding-left: 8px;
  color: #858585;
  background: #111;
  border-right: 1px solid #303030;
  text-align: center;
}

.admin-table th.admin-table-row-number-heading {
  z-index: 4;
  box-shadow: none;
}

.admin-table th.admin-table-row-number-heading.is-selected-row-header {
  color: #fff;
  background: rgba(35, 196, 96, 0.16);
  box-shadow: inset 0 -3px 0 #43e58b;
}

.admin-table td.admin-table-row-number {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cpath fill='%23f7f7f7' stroke='%23111111' stroke-width='1' stroke-linejoin='round' d='M1 5h10V2l6 5-6 5V9H1z'/%3E%3C/svg%3E") 9 7, e-resize;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  user-select: none;
}

.admin-table td.admin-table-row-number:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: -3px;
}

.admin-table-row:hover td.admin-table-row-number {
  background: #111;
}

.admin-table-row.is-selected td.admin-table-row-number,
.admin-table-row.is-row-range-selected td.admin-table-row-number {
  color: #fff;
  background: #173b24;
  font-weight: 800;
}

.admin-table-row {
  height: var(--admin-table-row-height, 108px);
  cursor: pointer;
  transition: background 140ms ease;
}

.admin-table-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.admin-table.is-keyboard-navigating .admin-table-row:hover:not(.is-selected) {
  background: transparent;
}

.admin-table-row.is-selected {
  background: rgba(35, 196, 96, 0.1);
}

.admin-table-row.is-selected td.admin-table-row-number + td,
.admin-table-row.is-row-range-selected td.admin-table-row-number + td {
  box-shadow: inset 3px 0 0 #37cf79;
}

.admin-table-row:focus-visible {
  outline: none;
}

.admin-table-account-main {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.admin-table-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-table-identity strong {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-role {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
  color: #929292;
  font-size: 11px;
}

.admin-table-role-cell {
  color: #929292;
  font-size: 11px;
}

.admin-table-identity .admin-current-account-badge {
  min-height: 17px;
  padding: 1px 5px;
  font-size: 8px;
}

.admin-table-id {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

.admin-table-username {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-email {
  overflow: hidden;
  color: #bbb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-number {
  font-variant-numeric: tabular-nums;
}

.admin-table td.admin-table-profile-photo {
  padding-right: 58px;
  text-align: center;
}

.admin-table-profile-photo .admin-user-portrait,
.admin-table-profile-photo .admin-user-photo,
.admin-table-profile-photo .admin-user-photo-fallback {
  width: clamp(46px, calc(var(--admin-table-row-height, 108px) - 30px), 78px);
  height: clamp(46px, calc(var(--admin-table-row-height, 108px) - 30px), 78px);
}

.admin-table-profile-photo .admin-user-portrait {
  vertical-align: middle;
}

.admin-table-profile-photo .admin-user-photo-fallback svg {
  width: clamp(28px, calc(var(--admin-table-row-height, 108px) - 62px), 46px);
  height: clamp(28px, calc(var(--admin-table-row-height, 108px) - 62px), 46px);
}

.admin-profile-photo-upload-button {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  color: #f3f3f3;
  background: #232323;
  border: 1px solid #444;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  visibility: hidden;
}

.admin-profile-photo-upload-button.is-visible {
  opacity: 0.92;
  pointer-events: auto;
  visibility: visible;
}

.admin-profile-photo-upload-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-profile-photo-upload-button:hover,
.admin-profile-photo-upload-button:focus {
  color: #06140c;
  background: #43e58b;
  border-color: #43e58b;
  outline: none;
  opacity: 1;
}

.admin-profile-photo-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-detail {
  position: sticky;
  top: 24px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
}

.admin-detail-close {
  display: none;
}

.admin-detail-content {
  min-height: 430px;
}

.admin-detail-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 430px;
  padding: 28px;
  color: #999;
  text-align: center;
}

.admin-detail-empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  color: #888;
  background: #242424;
  border: 1px solid #3b3b3b;
  border-radius: 50%;
}

.admin-detail-empty-icon svg {
  width: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.admin-detail-empty h2 {
  color: #fff;
  font-size: 22px;
}

.admin-detail-empty p {
  max-width: 300px;
  margin-top: 8px;
  line-height: 1.5;
}

.admin-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #303030;
}

.admin-detail-identity {
  min-width: 0;
  text-align: left;
}

.admin-detail-header h2 {
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-name {
  overflow: hidden;
  margin-top: 4px;
  color: #e6e6e6;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-email {
  overflow: hidden;
  margin-top: 2px;
  color: #aaa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-portrait,
.admin-detail-portrait .admin-user-photo,
.admin-detail-portrait .admin-user-photo-fallback {
  width: 76px;
  height: 76px;
}

.admin-user-portrait.admin-detail-portrait {
  width: 76px;
  height: 76px;
}

.admin-detail-portrait .admin-user-photo-fallback svg {
  width: 42px;
  height: 42px;
}

.admin-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.admin-detail-section-title {
  margin: 22px 0 11px;
  color: #fff;
  font-size: 15px;
}

.admin-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.admin-detail-item {
  min-width: 0;
  padding: 12px;
  background: #202020;
  border: 1px solid #303030;
  border-radius: 10px;
}

.admin-detail-item dt {
  color: #888;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-detail-item dd {
  overflow: hidden;
  margin-top: 5px;
  color: #eee;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
}

.admin-detail-item .admin-country-display {
  justify-content: center;
}

.admin-detail-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-detail-actions .admin-action {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
}

.admin-detail-actions .admin-action-delete:last-child {
  margin-left: 0;
}

.admin-detail-actions .admin-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.admin-detail-actions-note {
  padding: 13px;
  color: #aaa;
  background: #202020;
  border: 1px solid #303030;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-messages-section,
.admin-instant-chats-section,
.admin-waitlist-section,
.admin-sessions-section,
.admin-chat-sessions-section,
.admin-reports-section,
.admin-feature-flags-section {
  margin-top: 18px;
  padding: 22px;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 18px;
}

.admin-reports-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(350px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.admin-reports-main {
  min-width: 0;
}

.admin-messages-header,
.admin-instant-chats-header,
.admin-waitlist-header,
.admin-sessions-header,
.admin-chat-sessions-header,
.admin-reports-header,
.admin-feature-flags-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-messages-header h2,
.admin-instant-chats-header h2,
.admin-waitlist-header h2,
.admin-sessions-header h2,
.admin-chat-sessions-header h2,
.admin-reports-header h2,
.admin-feature-flags-header h2 {
  margin-top: 3px;
  font-size: 25px;
}

.admin-messages-intro,
.admin-instant-chats-intro,
.admin-waitlist-intro,
.admin-sessions-intro,
.admin-chat-sessions-intro,
.admin-reports-intro,
.admin-feature-flags-intro {
  margin-top: 6px;
  color: #aaa;
}

.admin-feature-flags-status {
  margin-bottom: 14px;
}

.admin-feature-flags-list {
  display: grid;
  gap: 10px;
}

.admin-feature-flag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 10px;
}

.admin-feature-flag-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-feature-flag h3 {
  margin: 0;
  font-size: 16px;
}

.admin-feature-flag p {
  margin: 6px 0 0;
  color: #aaa;
  line-height: 1.45;
}

.admin-feature-flag-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  color: #aaa;
  background: #252525;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-feature-flag-state.is-on {
  color: #9af0b8;
  background: rgba(35, 196, 96, 0.18);
}

.admin-feature-flag-state.is-off {
  color: #c9c9c9;
}

.admin-feature-flag-state.is-mode {
  color: #bde7ff;
  background: rgba(62, 154, 217, 0.16);
}

.admin-feature-flag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-feature-flag-meta span {
  padding: 3px 7px;
  color: #929292;
  background: #1f1f1f;
  border: 1px solid #303030;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.admin-feature-flag-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-feature-flag-range {
  display: grid;
  grid-template-columns: 62px minmax(150px, 220px);
  gap: 10px;
  align-items: center;
}

.admin-feature-flag-range-value {
  color: #f7f7f7;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.admin-feature-flag-range input[type="range"] {
  width: 100%;
  accent-color: #43e58b;
}

.admin-feature-flag-switch {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 148px;
  cursor: pointer;
  user-select: none;
}

.admin-feature-flag-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-feature-flag-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: #2a2a2a;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.admin-feature-flag-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  background: #ddd;
  border-radius: 50%;
  transition: transform 0.16s ease, background 0.16s ease;
}

.admin-feature-flag-switch input:checked + .admin-feature-flag-switch-track {
  background: rgba(35, 196, 96, 0.32);
  border-color: rgba(67, 229, 139, 0.75);
}

.admin-feature-flag-switch input:checked + .admin-feature-flag-switch-track::after {
  background: #43e58b;
  transform: translateX(20px);
}

.admin-feature-flag-switch input:focus-visible + .admin-feature-flag-switch-track,
.admin-feature-flag-range input:focus-visible,
.admin-feature-flag-select:focus-visible,
.admin-feature-flag-reset:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.admin-feature-flag-switch-text {
  color: #f7f7f7;
  font-weight: 800;
}

.admin-feature-flag-select,
.admin-feature-flag-reset {
  min-height: 36px;
  color: #f7f7f7;
  background: #111;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.admin-feature-flag-select {
  min-width: 130px;
  padding: 0 10px;
}

.admin-feature-flag-reset {
  padding: 7px 11px;
  cursor: pointer;
}

.admin-feature-flag-reset:disabled,
.admin-feature-flag-select:disabled,
.admin-feature-flag-range:has(input:disabled),
.admin-feature-flag-switch:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-feature-flags-empty {
  padding: 16px;
  color: #aaa;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 10px;
}

.admin-reports-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
}

.admin-waitlist-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}

.admin-sessions-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
}

.admin-chat-sessions-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
}

.admin-sessions-status {
  margin-bottom: 14px;
}

.admin-waitlist-status {
  margin-bottom: 14px;
}

.admin-chat-sessions-status {
  margin-bottom: 14px;
}

.admin-reports-table {
  min-width: 0;
}

.admin-sessions-table {
  min-width: 0;
}

.admin-waitlist-table {
  min-width: 0;
}

.admin-chat-sessions-table {
  min-width: 0;
}

.admin-reports-empty {
  padding: 16px;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 12px;
  color: #aaa;
  font-size: 14px;
}

.admin-reports-grid .admin-table-cell {
  cursor: cell;
}

.admin-reports-grid td[data-column-key="message"] {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-reports-grid .admin-table-row.is-selected td:not(.admin-table-row-number) {
  background: rgba(35, 196, 96, 0.1);
}

.admin-session-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-session-status-active {
  color: #9af0b8;
  background: rgba(35, 196, 96, 0.18);
}

.admin-session-status-expired {
  color: #c9c9c9;
  background: #252525;
}

.admin-session-status-revoked {
  color: #ffc6c6;
  background: rgba(217, 70, 70, 0.16);
}

.admin-session-row[data-session-status="revoked"],
.admin-session-row[data-session-status="expired"] {
  opacity: 0.72;
}

.admin-session-action {
  min-height: 32px;
  padding: 6px 10px;
  color: #ffe2e2;
  background: rgba(217, 70, 70, 0.14);
  border: 1px solid rgba(217, 70, 70, 0.45);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-session-action:hover:not(:disabled),
.admin-session-action:focus-visible:not(:disabled) {
  color: #fff;
  background: rgba(217, 70, 70, 0.24);
  border-color: rgba(255, 142, 142, 0.72);
}

.admin-session-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-chat-session-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-chat-session-status-active {
  color: #9af0b8;
  background: rgba(35, 196, 96, 0.18);
}

.admin-chat-session-status-ended {
  color: #bde7ff;
  background: rgba(62, 154, 217, 0.16);
}

.admin-chat-session-status-expired {
  color: #c9c9c9;
  background: #252525;
}

.admin-chat-session-row[data-chat-session-status="ended"],
.admin-chat-session-row[data-chat-session-status="expired"] {
  opacity: 0.82;
}

.admin-chat-session-reported {
  color: #ffd99a;
  font-weight: 900;
}

.admin-chat-session-participant {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-chat-session-participant strong,
.admin-chat-session-participant span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chat-session-participant strong {
  color: #f7f7f7;
}

.admin-chat-session-participant span {
  color: #aaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.admin-report-detail-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #dfffea;
  background: #1f7f3f;
  border: 1px solid rgba(127, 219, 159, 0.38);
  border-radius: 50%;
}

.admin-report-detail-icon-problem {
  background: #265f67;
  border-color: rgba(112, 211, 226, 0.38);
}

.admin-report-detail-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.admin-report-detail-header .admin-detail-email {
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-report-detail-time {
  display: block;
  white-space: nowrap;
}

.admin-report-type-badge {
  background: rgba(127, 219, 159, 0.14);
  color: #9af0b8;
}

.admin-detail-item:has(.admin-report-message-detail) {
  grid-column: 1 / -1;
}

.admin-report-message-detail {
  display: block;
  max-height: 180px;
  overflow-y: auto;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

.admin-message-compose,
.admin-message-actions button {
  min-height: 38px;
  padding: 8px 12px;
  color: #aaa;
  background: #111;
  border: 1px solid #3b3b3b;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
}

.admin-message-actions .admin-message-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.admin-message-actions .admin-message-move-button {
  grid-template-columns: 18px 12px;
  gap: 3px;
  width: 56px;
  min-width: 56px;
  justify-content: center;
  align-content: center;
}

.admin-message-action-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.admin-message-action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-message-move-button .admin-message-action-icon:last-child {
  width: 12px;
  height: 12px;
}

.admin-message-move-button .admin-message-action-icon:first-child {
  height: 20px;
}

.admin-message-move-button .admin-message-action-icon:first-child svg {
  height: 20px;
}

.admin-message-move-button .admin-message-action-icon:last-child svg {
  width: 12px;
  height: 12px;
}

.admin-message-compose:disabled,
.admin-message-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.admin-messages-layout {
  display: grid;
  grid-template-columns: 190px minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.admin-message-folders,
.admin-message-list,
.admin-message-preview {
  min-width: 0;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 12px;
}

.admin-message-folders {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.admin-message-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  color: #ccc;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-message-folder.is-active,
body:not(.is-dragging-admin-message) .admin-message-folder:hover {
  color: #fff;
  background: rgba(35, 196, 96, 0.1);
  border-color: rgba(67, 229, 139, 0.28);
}

.admin-message-folder:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(35, 196, 96, 0.1);
  border-color: rgba(67, 229, 139, 0.46);
}

.admin-message-folder.is-drop-target {
  color: #fff;
  background: rgba(67, 229, 139, 0.18);
  border-color: rgba(67, 229, 139, 0.76);
  box-shadow: inset 0 0 0 1px rgba(67, 229, 139, 0.38);
}

.admin-message-folder strong {
  color: #7fdb9f;
  font-size: 12px;
}

.admin-message-list {
  display: grid;
  overflow: hidden;
}

.admin-instant-chats-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.admin-instant-chat-list,
.admin-instant-chat-preview {
  min-width: 0;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 12px;
}

.admin-instant-chat-list {
  display: grid;
  overflow: hidden;
}

.admin-instant-chat-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0 14px 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #303030;
  font: inherit;
  cursor: pointer;
}

.admin-instant-chat-item:last-child {
  border-bottom: 0;
}

.admin-instant-chat-item:hover,
.admin-instant-chat-item.is-selected {
  color: #fff;
  background: rgba(35, 196, 96, 0.1);
  box-shadow: inset 3px 0 0 #43e58b;
}

.admin-instant-chat-item:focus-visible {
  outline: none;
  background: rgba(35, 196, 96, 0.13);
  box-shadow: inset 3px 0 0 #43e58b;
}

.admin-instant-chat-item h3 {
  margin: 0;
  font-size: 16px;
}

.admin-instant-chat-item p,
.admin-instant-chat-item time {
  margin: 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.35;
}

.admin-instant-chat-preview {
  padding: 16px;
}

.admin-instant-chat-transcript {
  display: grid;
  gap: 10px;
}

.admin-instant-chat-transcript-entry {
  padding: 10px 12px;
  background: #202020;
  border: 1px solid #333;
  border-radius: 10px;
}

.admin-instant-chat-transcript-entry p {
  margin: 0;
}

.admin-instant-chat-transcript-entry p:first-child {
  margin-bottom: 5px;
  color: #aaa;
  font-size: 12px;
  font-weight: 850;
}

.admin-message-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #303030;
  font: inherit;
  cursor: default;
}

.admin-message-item:last-child {
  border-bottom: 0;
}

.admin-message-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-message-item.is-dragging {
  opacity: 0.56;
}

.admin-message-item.is-selected {
  background: rgba(35, 196, 96, 0.1);
  box-shadow: inset 3px 0 0 #43e58b;
}

.admin-message-item.is-unread h3::after {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  background: #35e382;
  border-radius: 999px;
  content: "";
  vertical-align: middle;
}

.admin-message-item.is-unread h3 {
  color: #fff;
  font-weight: 900;
}

.admin-message-item:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(35, 196, 96, 0.13);
  box-shadow: inset 3px 0 0 #43e58b;
}

.admin-message-item h3,
.admin-message-preview h3 {
  font-size: 16px;
}

.admin-message-item p,
.admin-message-item time,
.admin-message-preview-header p,
.admin-message-body p {
  color: #aaa;
  font-size: 13px;
  line-height: 1.45;
}

.admin-message-type {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-message-type-report {
  color: #ffd1d1;
  background: rgba(169, 43, 43, 0.34);
}

.admin-message-type-support {
  color: #d4e3ff;
  background: rgba(61, 111, 196, 0.32);
}

.admin-message-type-system {
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.13);
}

.admin-message-type-message {
  color: #d5f5df;
  background: rgba(47, 122, 79, 0.34);
}

.admin-message-preview {
  padding: 16px;
}

.admin-message-empty,
.admin-message-preview-empty {
  padding: 16px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.45;
}

.admin-message-preview-header {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #303030;
}

.admin-message-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.admin-message-meta div {
  min-width: 0;
  padding: 10px;
  background: #202020;
  border: 1px solid #333;
  border-radius: 8px;
}

.admin-message-meta dt {
  color: #929292;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-message-meta dd {
  margin-top: 4px;
  font-weight: 750;
}

.admin-message-body {
  padding: 14px 0;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
}

.admin-message-body h4 {
  margin-bottom: 6px;
}

.admin-message-body p {
  white-space: pre-wrap;
}

.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin: 12px 0 14px;
}

.admin-message-move-menu {
  position: relative;
}

.admin-message-folder-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 20;
  display: grid;
  min-width: 150px;
  padding: 6px;
  background: #202020;
  border: 1px solid #3b3b3b;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgb(0 0 0 / 34%);
}

.admin-message-folder-menu.hidden {
  display: none;
}

.admin-message-folder-menu-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  justify-content: start;
  min-height: 34px;
  padding: 7px 10px;
  color: #ddd;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  text-align: left;
}

.admin-message-folder-menu-item:hover:not(:disabled),
.admin-message-folder-menu-item:focus-visible {
  color: #fff;
  background: rgba(67, 229, 139, 0.12);
  outline: none;
}

.admin-message-folder-menu-item[aria-checked="true"] {
  color: #fff;
  font-weight: 850;
}

.admin-message-folder-menu-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  color: #7fdb9f;
  font-size: 13px;
  line-height: 1;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.admin-summary-item {
  display: grid;
  gap: 3px;
  padding: 18px;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid #303030;
  border-radius: 14px;
  font: inherit;
  text-align: center;
  box-shadow: none;
}

.admin-summary-item.is-active {
  background: rgba(35, 196, 96, 0.16);
  border-color: rgba(35, 196, 96, 0.52);
}

.admin-summary-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.admin-summary strong {
  font-size: 28px;
}

.admin-summary span,
.admin-user-meta {
  font-size: 13px;
}

.admin-status {
  min-height: 22px;
  margin-bottom: 12px;
}

.admin-status.is-error {
  color: #ff9a9a;
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-search,
.admin-sort,
.admin-clear-view {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: #fff;
  background: #111;
  border: 1px solid #3b3b3b;
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
}

.admin-clear-view {
  font-weight: 700;
  cursor: pointer;
}

.admin-clear-view:hover:not(:disabled) {
  background: #1f1f1f;
  border-color: #555;
}

.admin-clear-view:disabled {
  color: #777;
  cursor: default;
}

.admin-search::placeholder {
  color: #888;
}

.admin-search::-webkit-search-cancel-button {
  width: 14px;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%);
  cursor: pointer;
}

.admin-search:focus,
.admin-sort:focus,
.admin-clear-view:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.admin-empty {
  padding: 20px 12px;
  color: #aaa;
  text-align: center;
}

.admin-load-more {
  display: flex;
  justify-content: center;
  padding: 12px 0 2px;
}

.admin-load-more-button {
  min-height: 42px;
  padding: 9px 18px;
  color: #fff;
  background: #111;
  border: 1px solid #3b3b3b;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-load-more-button:hover {
  background: #1f1f1f;
  border-color: #555;
}

.admin-load-more-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.admin-users {
  display: grid;
  gap: 10px;
}

.admin-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: #1a1a1a;
  border: 1px solid #303030;
  border-radius: 14px;
}

.admin-directory .admin-user {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.admin-directory .admin-user.is-selected {
  border-color: rgba(55, 207, 121, 0.62);
  box-shadow: inset 3px 0 0 #37cf79;
}

.admin-directory .admin-user-main {
  grid-column: 1;
}

.admin-directory .admin-badge {
  grid-column: 2;
}

.admin-directory .admin-user-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-portrait {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #282828;
  border: 1px solid #3b3b3b;
  border-radius: 50%;
}

.admin-user-photo,
.admin-user-photo-fallback {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.admin-user-photo {
  object-fit: cover;
}

.admin-user-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.admin-user-photo-fallback svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-user h2 {
  font-size: 18px;
}

.admin-user-email {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.admin-user-meta {
  margin-top: 6px;
}

.admin-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #333;
  color: #ddd;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  user-select: none;
  -webkit-user-select: none;
}

.admin-badge-approved {
  background: #173d25;
  color: #81e6a4;
}

.admin-badge-administrator {
  background: #4a3510;
  color: #ffd978;
}

.admin-badge-pending {
  background: #453815;
  color: #f0d36d;
}

.admin-badge-suspended,
.admin-badge-rejected {
  background: #461e1e;
  color: #ff9a9a;
}

.admin-user-actions {
  display: flex;
  gap: 7px;
}

.admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.admin-action-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.admin-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-action-approved {
  background: #2aa35b;
}

.admin-action-message {
  color: #fff;
  background: #24613f;
}

.admin-action-message:hover:not(:disabled) {
  background: #2f7a4f;
}

.admin-action-rejected {
  color: #ff9a9a;
}

.admin-action-delete {
  color: #fff;
  background: #7a2424;
}

.admin-action-delete:hover:not(:disabled) {
  background: #9a2d2d;
}

.admin-delete-dialog,
.admin-message-dialog {
  width: min(430px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  color: #f7f7f7;
  background: #1a1a1a;
  border: 1px solid #3d3d3d;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  font-family: "Inter", sans-serif;
}

.admin-delete-dialog::backdrop,
.admin-message-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.admin-delete-dialog-content,
.admin-message-dialog-content {
  display: grid;
  gap: 20px;
  padding: 24px;
  text-align: left;
}

.admin-delete-dialog h2,
.admin-message-dialog h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.admin-delete-dialog-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
}

.admin-delete-dialog-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-delete-dialog-name {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-delete-dialog-email {
  overflow: hidden;
  color: #aaa;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-delete-dialog-warning {
  padding: 13px 14px;
  color: #ffc1c1;
  background: rgba(154, 45, 45, 0.16);
  border: 1px solid rgba(255, 110, 110, 0.28);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.admin-message-dialog-fields {
  display: grid;
  gap: 14px;
}

.admin-message-dialog-fields label {
  display: grid;
  gap: 7px;
  color: #aaa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-message-dialog-fields select,
.admin-message-dialog-fields input,
.admin-message-dialog-fields textarea {
  width: 100%;
  padding: 12px;
  color: #f6f6f6;
  background: #111;
  border: 1px solid #353535;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  outline: none;
}

.admin-message-dialog-fields select {
  cursor: pointer;
}

.admin-message-dialog-fields textarea {
  min-height: 132px;
  resize: vertical;
}

.admin-message-dialog-fields select:focus,
.admin-message-dialog-fields input:focus,
.admin-message-dialog-fields textarea:focus {
  border-color: #35e382;
  box-shadow: 0 0 0 3px rgba(53, 227, 130, 0.15);
}

.admin-message-dialog-note {
  padding: 12px 13px;
  color: #bfe8d0;
  background: rgba(47, 122, 79, 0.14);
  border: 1px solid rgba(69, 210, 131, 0.23);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-delete-dialog-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-delete-dialog-cancel {
  color: #fff;
  background: #353535;
}

.admin-delete-dialog-confirm {
  color: #fff;
  background: #9a2d2d;
}

.admin-message-dialog-send {
  color: #fff;
  background: #24613f;
}

.admin-delete-dialog-cancel:hover {
  background: #444;
}

.admin-delete-dialog-confirm:hover {
  background: #b73737;
}

.admin-message-dialog-send:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-delete-dialog-actions button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.admin-cell-editor {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  color: #f7f7f7;
  background: #1a1a1a;
  border: 1px solid #3d3d3d;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  font-family: "Inter", sans-serif;
}

.admin-cell-editor::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.admin-cell-editor-form {
  display: grid;
  gap: 17px;
  padding: 24px;
  text-align: left;
}

.admin-cell-editor h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.admin-cell-editor-account {
  margin-top: -10px;
  color: #aaa;
  font-size: 14px;
}

.admin-cell-editor-fields {
  display: grid;
  gap: 13px;
}

.admin-cell-editor-fields label {
  display: grid;
  gap: 6px;
  color: #ccc;
  font-size: 13px;
  font-weight: 700;
}

.admin-cell-editor-fields input {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  color: #fff;
  color-scheme: dark;
  background: #101010;
  border: 1px solid #474747;
  border-radius: 9px;
  font: inherit;
}

.admin-cell-editor-fields input:focus {
  border-color: #43e58b;
  outline: 2px solid rgba(67, 229, 139, 0.22);
}

.admin-cell-editor-feedback {
  min-height: 18px;
  color: #9bdcaf;
  font-size: 13px;
}

.admin-cell-editor-feedback.is-error {
  color: #ff9a9a;
}

.admin-cell-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.admin-cell-editor-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-cell-editor-actions button:first-child {
  color: #fff;
  background: #353535;
}

.admin-cell-editor-actions button:last-child {
  color: #07150c;
  background: #43e58b;
}

.admin-cell-editor-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 440px) {
  .admin-delete-dialog-content {
    padding: 20px;
  }

  .admin-delete-dialog-actions {
    flex-direction: column-reverse;
  }

  .admin-delete-dialog-actions button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body.admin-page {
    padding: 22px 14px;
  }

  .admin-header,
  .admin-user {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-back-link {
    justify-self: start;
  }

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

  .admin-search {
    grid-column: 1 / -1;
  }

  .admin-user {
    gap: 12px;
  }

  .admin-badge {
    justify-self: start;
  }

  .admin-user-actions {
    flex-wrap: wrap;
  }

  .admin-message-folders,
  .admin-message-meta {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    flex-wrap: wrap;
  }

  .admin-feature-flag {
    grid-template-columns: 1fr;
  }

  .admin-feature-flag-controls {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .admin-feature-flag-range {
    grid-template-columns: 58px minmax(140px, 1fr);
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .admin-workspace,
  .admin-reports-workspace {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .admin-messages-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-workspace,
  .admin-reports-workspace {
    display: block;
  }

  .admin-messages-header,
  .admin-feature-flags-header {
    display: grid;
  }

  .admin-message-folders,
  .admin-message-meta {
    grid-template-columns: 1fr;
  }

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

  .admin-directory .admin-user-main,
  .admin-directory .admin-badge,
  .admin-directory .admin-user-actions {
    grid-column: 1;
  }

  .admin-directory .admin-badge {
    justify-self: start;
  }

  .admin-table-wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .admin-table,
  .admin-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table-resize-handle {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-table-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    height: auto !important;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 13px;
  }

  .admin-table-row.is-selected {
    border-color: rgba(55, 207, 121, 0.62);
  }

  .admin-table td {
    display: grid;
    gap: 5px;
    height: auto !important;
    max-width: none;
    padding: 0;
    border: 0;
  }

  .admin-table td.admin-table-profile-photo {
    padding-right: 0;
  }

  .admin-table-profile-photo .admin-user-portrait,
  .admin-table-profile-photo .admin-user-photo,
  .admin-table-profile-photo .admin-user-photo-fallback {
    width: 62px;
    height: 62px;
  }

  .admin-table-profile-photo .admin-user-photo-fallback svg {
    width: 37px;
    height: 37px;
  }

  .admin-table td.admin-table-row-number {
    display: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: #828282;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .admin-table-account,
  .admin-table-id,
  .admin-table-username,
  .admin-table-email {
    grid-column: 1 / -1;
  }

  .admin-table-account::before {
    display: none;
  }

  .admin-table-email {
    white-space: normal;
  }

  .admin-table-id {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .admin-table-username {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .admin-detail {
    position: fixed;
    inset: 0;
    z-index: 100;
    max-height: none;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    background: #151515;
    border: 0;
    border-radius: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }

  body.admin-detail-open {
    overflow: hidden;
  }

  body.admin-detail-open .admin-detail,
  body.admin-report-detail-open .admin-report-detail {
    transform: translateX(0);
    visibility: visible;
  }

  body.admin-report-detail-open {
    overflow: hidden;
  }

  .admin-detail-close {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 42px;
    margin-bottom: 14px;
    padding: 6px 4px;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 28px;
  }

  .admin-detail-close span {
    font-size: 15px;
    font-weight: 700;
  }

  .admin-detail-content {
    min-height: 0;
  }
}

body::-webkit-scrollbar {
  display: none;
}

html {
  overscroll-behavior-x: none;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  font-family: "Inter", sans-serif;
  text-align: center;
  padding: 0 0 20px;
  background: #fff;
  overscroll-behavior-x: none;
}

html.screenshots-disabled,
html.screenshots-disabled body {
  user-select: none;
  -webkit-user-select: none;
}

@media print {
  html.screenshots-disabled body > * {
    display: none !important;
  }

  html.screenshots-disabled body::before {
    content: "Screenshots are disabled for this app.";
    display: grid;
    place-items: center;
    min-height: 100vh;
    color: #111;
    font: 700 22px/1.3 "Inter", sans-serif;
  }
}

/* ─── Controls ─────────────────────────────────────────────── */

.controls {
  order: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  flex-wrap: wrap;
}

.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(520px, calc(100vw - 40px));
  gap: 14px;
  flex-wrap: nowrap;
}

button {
  padding: 10px 16px;
  font-size: 16px;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-error {
  flex: 1 0 100%;
  max-width: 620px;
  padding: 8px 12px;
  color: #8f1d1d;
  background: #fff2f2;
  border: 1px solid #f0c8c8;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.25;
}

button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

#connectBtn,
#disconnectBtn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  color: #fff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
}

#connectBtn {
  background: rgba(35, 196, 96, 0.92);
  border-color: rgba(18, 128, 62, 0.28);
}

#disconnectBtn {
  background: rgba(214, 58, 58, 0.86);
  border-color: rgba(139, 22, 22, 0.28);
}

.desktop-button-label {
  display: inline-flex;
  align-items: center;
  height: 20px;
  line-height: 1;
}

.desktop-button-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.desktop-button-icon + .desktop-button-label,
.desktop-button-label + .desktop-button-icon {
  margin-left: 10px;
}

.desktop-button-icon-x::before,
.desktop-button-icon-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.desktop-button-icon-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.desktop-button-icon-chevron::before {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  box-sizing: border-box;
  transform: rotate(-45deg);
}

.hidden {
  display: none;
}

.duplicate-tab-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(0, 0, 0, 0.86);
}

.duplicate-tab-overlay.hidden {
  display: none;
}

.duplicate-tab-message {
  width: max-content;
  max-width: min(760px, 100%);
  padding: 18px 22px;
  background: rgba(25, 25, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

@media (max-width: 700px) {
  .duplicate-tab-message {
    width: auto;
    white-space: normal;
  }
}

.report-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(6px, env(safe-area-inset-top)) 14px max(6px, env(safe-area-inset-bottom));
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.report-sheet-backdrop.hidden {
  display: none;
}

.report-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.report-sheet {
  width: min(430px, 100%);
  /* Use almost the full viewport so all reasons fit without cropping the 4:3 preview. */
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow: auto;
  padding: 14px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.report-sheet-backdrop.is-open .report-sheet {
  opacity: 1;
  transform: none;
}

.report-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.report-sheet-header h2 {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
}

.report-target-section {
  margin-bottom: 10px;
}

.report-target-section.hidden {
  display: none;
}

.report-target-carousel {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}

.report-target-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: hidden;
}

.report-target-thumbnail,
.report-target-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.report-target-thumbnail {
  object-fit: cover;
}

.report-target-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.24);
}

.report-target-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
}

.report-target-nav-button {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 52px;
  padding: 0;
  color: #fff;
  /* Dark backing keeps the chevrons readable over bright camera frames. */
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
}

.report-target-prev-button {
  left: 12px;
}

.report-target-next-button {
  right: 12px;
}

.report-target-nav-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-left: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
  transform: translate(-35%, -50%) rotate(45deg);
}

.report-target-next-button::before {
  transform: translate(-65%, -50%) rotate(225deg);
}

.report-target-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.report-target-count {
  min-height: 15px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.report-no-targets {
  margin-bottom: 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.report-no-targets.hidden {
  display: none;
}

.report-sheet-close-button {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: none;
}

.report-sheet-close-button::before,
.report-sheet-close-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}

.report-sheet-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.report-sheet-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.report-reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-reason-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.report-reason-button[aria-selected="true"] {
  background: rgba(255, 90, 90, 0.2);
  border-color: rgba(255, 116, 116, 0.72);
}

.report-reason-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.report-sheet-status {
  min-height: 0;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.report-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 90, 90, 0.88);
  border: 1px solid rgba(255, 116, 116, 0.58);
  border-radius: 8px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.report-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.report-sheet.is-complete .report-sheet-header h2 {
  visibility: hidden;
}

.report-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 12px 12px;
  text-align: center;
  outline: none;
}

.report-success.hidden {
  display: none;
}

.report-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #75e59c;
  background: rgba(35, 196, 96, 0.14);
  border: 1px solid rgba(35, 196, 96, 0.42);
  border-radius: 50%;
}

.report-success-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-success h3 {
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
}

.report-success p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.4;
}

.report-done-button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 16px;
  color: #111;
  background: #f4f4f4;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}

.report-sheet button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 2px;
}

@media (max-height: 740px) {
  .report-sheet {
    padding: 12px;
  }

  .report-sheet-header {
    margin-bottom: 10px;
  }

  .report-reason-button {
    min-height: 39px;
    padding-block: 8px;
  }
}

.app-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.app-menu-backdrop.hidden {
  display: flex;
}

.app-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-menu-drawer {
  position: relative;
  width: min(380px, calc(100vw - 24px));
  min-height: 190px;
  height: 100%;
  max-height: 100dvh;
  padding: 0 14px 14px;
  background: rgba(18, 18, 18, 0.94);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  transform: translateX(calc(100% + 28px));
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-menu-backdrop.is-open .app-menu-drawer {
  transform: translateX(0);
}

.app-menu-drawer.is-dragging {
  transition: none;
  cursor: grabbing;
  touch-action: none;
}

.app-menu-handle {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 4px;
  height: 42px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transform: translateY(-50%);
  touch-action: none;
}

.app-menu-close-button {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
}

.app-menu-close-button::before,
.app-menu-close-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}

.app-menu-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.app-menu-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.app-menu-close-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.app-menu-content {
  position: relative;
  height: 100%;
  overflow: hidden;
  min-height: 148px;
}

.app-menu-pages {
  display: flex;
  height: 100%;
  width: 800%;
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-menu-content.is-rules .app-menu-pages {
  transform: translateX(-12.5%);
}

.app-menu-content.is-problem .app-menu-pages {
  transform: translateX(-25%);
}

.app-menu-content.is-online-users .app-menu-pages {
  transform: translateX(-37.5%);
}

.app-menu-content.is-messages .app-menu-pages {
  transform: translateX(-50%);
}

.app-menu-content.is-message-detail .app-menu-pages {
  transform: translateX(-62.5%);
}

.app-menu-content.is-instant-chat .app-menu-pages {
  transform: translateX(-75%);
}

.app-menu-content.is-admin-accounts .app-menu-pages {
  transform: translateX(-87.5%);
}

.app-menu-view {
  display: flex;
  flex: 0 0 12.5%;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 1px 0 8px;
}

.app-menu-main-view {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.app-menu-view:not(.app-menu-main-view) {
  padding-top: 58px;
}

.app-menu-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-menu-section.hidden {
  display: none;
}

.app-menu-admin-section {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.app-menu-section-heading {
  margin: 0 2px -2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.app-menu-signout-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.app-menu-signout-section.hidden {
  display: none;
}

.app-menu-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 12px;
  color: #fff;
}

.app-menu-profile.hidden {
  display: none;
}

.app-menu-profile-control {
  position: relative;
  display: block;
  width: 92px;
  height: 92px;
  overflow: visible;
  background: #282828;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.app-menu-profile-control:has(input:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 4px;
}

.app-menu-profile.is-saving .app-menu-profile-control {
  cursor: wait;
}

.app-menu-profile-control input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  cursor: pointer;
}

.app-menu-profile-control input:disabled {
  cursor: wait;
}

.app-menu-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.app-menu-photo-preview.hidden {
  display: none;
}

.app-menu-profile-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  border-radius: 50%;
}

.app-menu-profile-fallback.hidden {
  display: none;
}

.app-menu-profile-fallback svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-profile-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 150ms ease;
}

.app-menu-profile-overlay svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-profile-control:hover .app-menu-profile-overlay,
.app-menu-profile-control:focus-within .app-menu-profile-overlay {
  opacity: 1;
}

.app-menu-profile-name {
  margin-top: 10px;
  color: #fff;
  font-size: 17px;
}

.app-menu-profile-username {
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-menu-profile-username.hidden {
  display: none;
}

.app-menu-profile-status {
  min-height: 16px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.app-menu-profile-status:empty {
  display: none;
}

.app-menu-profile-status.is-error {
  color: #ff9b9b;
}

.app-menu-profile-status.is-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.password-dialog {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  color: #fff;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.password-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.password-dialog-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.password-dialog h2 {
  font-size: 24px;
}

.password-dialog p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.password-dialog label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.password-dialog input {
  width: 100%;
  padding: 13px 12px;
  color: #fff;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  outline: none;
}

.password-dialog input:focus {
  border-color: #35e382;
  box-shadow: 0 0 0 3px rgba(53, 227, 130, 0.15);
}

.password-dialog-status {
  min-height: 20px;
  font-size: 13px;
}

.password-dialog-status.is-error {
  color: #ff9b9b;
}

.password-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.password-dialog-actions button {
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  background: #333;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.password-dialog-actions button[type="submit"] {
  background: #2aa35b;
}

.password-dialog-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (hover: none) {
  .app-menu-profile-overlay {
    inset: auto -3px -3px auto;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    opacity: 1;
  }

  .app-menu-profile-overlay svg {
    width: 17px;
    height: 17px;
  }

  .app-menu-profile-overlay span {
    display: none;
  }
}

.app-menu-profile-feedback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.app-menu-profile.is-saving .app-menu-profile-feedback,
.app-menu-profile.is-photo-success .app-menu-profile-feedback {
  opacity: 1;
}

.app-menu-profile-spinner {
  display: none;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: profile-photo-spin 700ms linear infinite;
}

.app-menu-profile.is-saving .app-menu-profile-spinner {
  display: block;
}

.app-menu-profile-check {
  display: none;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #75e59c;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-profile.is-photo-success:not(.is-saving) .app-menu-profile-check {
  display: block;
}

@keyframes profile-photo-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-accounts-view .admin-summary {
  gap: 7px;
  margin: 2px 0 0;
}

.admin-full-view-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(35, 196, 96, 0.12);
  border: 1px solid rgba(55, 207, 121, 0.38);
  border-radius: 11px;
  text-align: left;
  text-decoration: none;
}

.admin-full-view-link > span:first-child {
  display: grid;
  gap: 3px;
}

.admin-full-view-link strong {
  font-size: 14px;
}

.admin-full-view-link small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.3;
}

.admin-full-view-link > span:last-child {
  color: #8be7ac;
  font-size: 27px;
  line-height: 1;
}

.admin-full-view-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.admin-accounts-view .admin-ribbon,
.admin-accounts-view .admin-section-nav,
.admin-accounts-view .admin-section-heading,
.admin-accounts-view .admin-detail {
  display: none;
}

.admin-accounts-view .admin-section-panel[data-admin-panel="accounts"]:not(.hidden),
.admin-accounts-view .admin-workspace,
.admin-accounts-view .admin-directory {
  display: contents;
}

.admin-accounts-view .admin-section-panel[data-admin-panel="messages"],
.admin-accounts-view .admin-section-panel[data-admin-panel="waitlist"],
.admin-accounts-view .admin-section-panel[data-admin-panel="sessions"],
.admin-accounts-view .admin-section-panel[data-admin-panel="chat-sessions"],
.admin-accounts-view .admin-section-panel[data-admin-panel="feature-flags"] {
  display: none;
}

.admin-accounts-view .admin-directory {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.admin-full-page-open .app-menu-backdrop {
  z-index: 80;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  background: #111;
}

body.admin-full-page-open .app-menu-drawer {
  width: max(100%, 1912px);
  max-width: none;
  min-width: max(100%, 1912px);
  min-height: 100dvh;
  height: auto;
  max-height: none;
  padding: 32px 16px;
  overflow: visible;
  background: #111;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.admin-full-page-open .app-menu-handle,
body.admin-full-page-open .app-menu-close-button,
body.admin-full-page-open .admin-full-view-link {
  display: none;
}

body.admin-full-page-open .app-menu-content {
  width: 1880px;
  min-width: 1880px;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}

body.admin-full-page-open .app-menu-pages {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  transform: none;
}

body.admin-full-page-open .app-menu-content.is-admin-accounts .app-menu-pages {
  transform: none;
}

body.admin-full-page-open .app-menu-view {
  display: none;
  flex: none;
  flex-basis: auto;
  width: 100%;
}

body.admin-full-page-open .admin-accounts-view {
  position: relative;
  display: flex;
  flex-basis: auto;
  gap: 0;
  height: auto;
  min-height: 0;
  padding: 0;
}

body.admin-full-page-open .admin-accounts-view .app-menu-back-button {
  align-self: flex-start;
  min-height: 42px;
  margin-bottom: 24px;
  padding: 9px 13px;
  border: 1px solid #3b3b3b;
  border-radius: 10px;
}

.admin-console-header {
  color: #fff;
  text-align: center;
}

.admin-console-header h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.admin-accounts-view .admin-detailed-only {
  display: none;
}

body.admin-full-page-open .admin-accounts-view .admin-console-header {
  display: block;
  position: absolute;
  top: 4px;
  left: 50%;
  width: clamp(180px, calc(100% - 420px), 720px);
  transform: translateX(-50%);
  pointer-events: none;
}

body.admin-full-page-open .admin-accounts-view .admin-section-nav {
  display: inline-flex;
  margin-top: 0;
  margin-bottom: 22px;
}

body.admin-full-page-open .admin-accounts-view .admin-section-tab {
  color: #aaa;
  background: transparent;
  border-color: transparent;
}

body.admin-full-page-open .admin-accounts-view .admin-section-tab:hover {
  color: #fff;
  background: #222;
}

body.admin-full-page-open .admin-accounts-view .admin-section-tab.is-active {
  color: #fff;
  background: rgba(35, 196, 96, 0.13);
  border-color: rgba(67, 229, 139, 0.38);
}

body.admin-full-page-open .admin-accounts-view .admin-section-panel:not(.hidden) {
  display: block;
}

body.admin-full-page-open .admin-accounts-view .admin-messages-section,
body.admin-full-page-open .admin-accounts-view .admin-messages-section button,
body.admin-full-page-open .admin-accounts-view .admin-instant-chats-section,
body.admin-full-page-open .admin-accounts-view .admin-instant-chats-section button,
body.admin-full-page-open .admin-accounts-view .admin-waitlist-section,
body.admin-full-page-open .admin-accounts-view .admin-sessions-section,
body.admin-full-page-open .admin-accounts-view .admin-sessions-section button,
body.admin-full-page-open .admin-accounts-view .admin-chat-sessions-section,
body.admin-full-page-open .admin-accounts-view .admin-chat-sessions-section button,
body.admin-full-page-open .admin-accounts-view .admin-reports-section,
body.admin-full-page-open .admin-accounts-view .admin-reports-table,
body.admin-full-page-open .admin-accounts-view .admin-feature-flags-section,
body.admin-full-page-open .admin-accounts-view .admin-feature-flags-section button,
body.admin-full-page-open .admin-accounts-view .admin-feature-flags-section select {
  color: #f7f7f7;
}

body.admin-full-page-open .admin-accounts-view .admin-messages-section,
body.admin-full-page-open .admin-accounts-view .admin-instant-chats-section,
body.admin-full-page-open .admin-accounts-view .admin-waitlist-section,
body.admin-full-page-open .admin-accounts-view .admin-sessions-section,
body.admin-full-page-open .admin-accounts-view .admin-chat-sessions-section,
body.admin-full-page-open .admin-accounts-view .admin-reports-section,
body.admin-full-page-open .admin-accounts-view .admin-feature-flags-section {
  text-align: left;
}

body.admin-full-page-open .admin-accounts-view .admin-messages-header,
body.admin-full-page-open .admin-accounts-view .admin-waitlist-header,
body.admin-full-page-open .admin-accounts-view .admin-sessions-header,
body.admin-full-page-open .admin-accounts-view .admin-chat-sessions-header,
body.admin-full-page-open .admin-accounts-view .admin-reports-header,
body.admin-full-page-open .admin-accounts-view .admin-feature-flags-header {
  text-align: left;
}

body.admin-full-page-open .admin-accounts-view .admin-messages-intro,
body.admin-full-page-open .admin-accounts-view .admin-waitlist-intro,
body.admin-full-page-open .admin-accounts-view .admin-sessions-intro,
body.admin-full-page-open .admin-accounts-view .admin-chat-sessions-intro,
body.admin-full-page-open .admin-accounts-view .admin-reports-intro,
body.admin-full-page-open .admin-accounts-view .admin-feature-flags-intro,
body.admin-full-page-open .admin-accounts-view .admin-message-item p,
body.admin-full-page-open .admin-accounts-view .admin-message-item time,
body.admin-full-page-open .admin-accounts-view .admin-message-preview-header p,
body.admin-full-page-open .admin-accounts-view .admin-message-body p {
  color: #aaa;
}

body.admin-full-page-open .admin-accounts-view .admin-message-meta dt {
  color: #929292;
}

body.admin-full-page-open .admin-accounts-view .admin-message-folder {
  color: #ccc;
}

body.admin-full-page-open .admin-accounts-view .admin-message-folder.is-active,
body.admin-full-page-open .admin-accounts-view .admin-message-folder:hover {
  color: #fff;
}

body.admin-full-page-open .admin-accounts-view .admin-ribbon {
  display: block;
  margin-top: 0;
}

body.admin-full-page-open .admin-accounts-view .admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(350px, 0.65fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

body.admin-full-page-open.admin-table-focus .admin-accounts-view .admin-workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.admin-full-page-open .admin-accounts-view .admin-directory,
body.admin-full-page-open .admin-accounts-view .admin-detail {
  display: block;
  min-width: 0;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 18px;
}

body.admin-full-page-open.admin-table-focus .admin-accounts-view .admin-detail {
  display: none;
}

body.admin-full-page-open .admin-accounts-view .admin-directory {
  padding: 22px;
}

body.admin-full-page-open .admin-accounts-view .admin-summary {
  margin: 20px 0 14px;
}

body.admin-full-page-open .admin-accounts-view .admin-tools {
  margin-top: 6px;
}

body.admin-full-page-open .admin-accounts-view .admin-detail {
  position: sticky;
  top: 24px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
}

body.admin-full-page-open .admin-accounts-view .admin-section-heading {
  display: flex;
}

body.admin-full-page-open .admin-accounts-view .admin-search {
  grid-column: auto;
}

body.admin-full-page-open .admin-accounts-view .admin-users {
  flex: 0 0 auto;
  overflow: visible;
  padding-right: 0;
}

body.admin-full-page-open .admin-accounts-view .admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid #303030;
}

body.admin-full-page-open .admin-accounts-view .admin-table {
  display: table;
  width: 100%;
  min-width: 1540px;
  table-layout: fixed;
  border-collapse: collapse;
}

body.admin-full-page-open .admin-accounts-view .admin-table thead {
  display: table-header-group;
}

body.admin-full-page-open .admin-accounts-view .admin-table tbody {
  display: table-row-group;
  width: auto;
  min-width: 0;
}

body.admin-full-page-open .admin-accounts-view .admin-table-row {
  display: table-row;
  height: var(--admin-table-row-height, 108px) !important;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.admin-full-page-open .admin-accounts-view .admin-table-row.is-selected {
  background: rgba(35, 196, 96, 0.1);
}

body.admin-full-page-open .admin-accounts-view .admin-table td {
  display: table-cell;
  max-width: 0;
  height: var(--admin-table-row-height, 108px) !important;
  padding: 14px 12px;
  border-top: 1px solid #303030;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

body.admin-full-page-open .admin-accounts-view .admin-table td::before {
  content: none;
}

body.admin-full-page-open .admin-accounts-view .admin-table td.admin-table-profile-photo {
  padding-right: 58px;
  text-align: center;
}

body.admin-full-page-open .admin-accounts-view .admin-table-profile-photo .admin-user-portrait,
body.admin-full-page-open .admin-accounts-view .admin-table-profile-photo .admin-user-photo,
body.admin-full-page-open .admin-accounts-view .admin-table-profile-photo .admin-user-photo-fallback {
  width: clamp(46px, calc(var(--admin-table-row-height, 108px) - 30px), 78px);
  height: clamp(46px, calc(var(--admin-table-row-height, 108px) - 30px), 78px);
}

body.admin-full-page-open .admin-accounts-view .admin-table-profile-photo .admin-user-photo-fallback svg {
  width: clamp(28px, calc(var(--admin-table-row-height, 108px) - 62px), 46px);
  height: clamp(28px, calc(var(--admin-table-row-height, 108px) - 62px), 46px);
}

body.admin-full-page-open .admin-accounts-view .admin-table-account,
body.admin-full-page-open .admin-accounts-view .admin-table-id,
body.admin-full-page-open .admin-accounts-view .admin-table-username,
body.admin-full-page-open .admin-accounts-view .admin-table-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-full-page-open .admin-accounts-view .admin-table th.admin-table-row-number-heading,
body.admin-full-page-open .admin-accounts-view .admin-table td.admin-table-row-number {
  display: table-cell;
}

body.admin-full-page-open .admin-accounts-view .admin-table-resize-handle {
  display: block;
}

body.admin-full-page-open .admin-accounts-view .admin-detail {
  inset: auto;
  z-index: auto;
  border: 1px solid #303030;
  border-radius: 18px;
  transform: none;
  visibility: visible;
  transition: none;
}

body.admin-full-page-open .admin-accounts-view .admin-detail-close {
  display: none;
}

body.admin-full-page-open.admin-detail-open {
  overflow: auto;
}

.admin-accounts-view .admin-summary-item {
  padding: 11px 8px;
  text-align: center;
}

.admin-accounts-view .admin-summary strong {
  color: #fff;
  font-size: 22px;
}

.admin-accounts-view .admin-summary span {
  color: #fff;
}

.admin-accounts-view .admin-status {
  margin: 0 0 18px;
  min-height: 18px;
  text-align: left;
}

.admin-accounts-view .admin-tools {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 0;
}

.admin-accounts-view .admin-search {
  grid-column: 1 / -1;
}

body.admin-full-page-open .admin-accounts-view .admin-tools {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 12px;
}

body.admin-full-page-open .admin-accounts-view .admin-search {
  grid-column: auto;
}

.admin-accounts-view .admin-users {
  align-content: start;
  flex: 1 1 auto;
  grid-auto-rows: max-content;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 0;
  padding-bottom: 8px;
  padding-right: 2px;
}

body.admin-full-page-open .admin-accounts-view .admin-users {
  flex: 0 0 auto;
  overflow: visible;
  padding-right: 0;
}

.admin-accounts-view .admin-user {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 13px;
  text-align: left;
}

.admin-accounts-view .admin-user.is-current-account {
  background: rgba(38, 176, 98, 0.09);
  border-color: rgba(55, 207, 121, 0.7);
  box-shadow: inset 3px 0 0 #37cf79;
}

.admin-accounts-view .admin-user-main {
  grid-column: 1 / -1;
  width: 100%;
}

.admin-accounts-view .admin-user-identity {
  min-width: 0;
  text-align: left;
}

.admin-accounts-view .admin-user h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  text-align: left;
}

.admin-current-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  color: #b9f6cf;
  background: rgba(38, 176, 98, 0.22);
  border: 1px solid rgba(55, 207, 121, 0.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.admin-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 7px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-presence::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #777;
  border-radius: 50%;
}

.admin-presence-online {
  color: #8be7ac;
  background: rgba(35, 196, 96, 0.12);
}

.admin-presence-online::before {
  background: #39cf73;
}

.admin-presence-searching {
  color: #ffd77d;
  background: rgba(255, 173, 32, 0.12);
}

.admin-presence-searching::before {
  background: #ffad20;
}

.admin-presence-paired {
  color: #c7a8ff;
  background: rgba(152, 102, 255, 0.14);
}

.admin-presence-paired::before {
  background: #a878ff;
}

.admin-accounts-view .admin-user-email,
.admin-accounts-view .admin-user-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-accounts-view .admin-badge {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
}

.admin-accounts-view .admin-user-actions {
  grid-column: 1 / -1;
  justify-self: start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-accounts-view .admin-user-actions:empty {
  display: none;
}

.admin-accounts-view .admin-action {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.admin-accounts-view .admin-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
}

.app-menu-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  text-align: left;
  box-shadow: none;
}

.app-menu-row.hidden {
  display: none;
}

.app-menu-row-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.app-menu-row-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-row-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.app-menu-row-state {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.app-menu-row-state.hidden {
  display: none;
}

.app-menu-row-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 34px;
  line-height: 1;
}

.app-menu-back-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-left: 3px;
  min-height: 42px;
  padding: 0 8px 0 0;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  text-align: left;
}

.app-menu-back-chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-left: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
  transform: rotate(45deg);
}

.messages-status {
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 750;
}

.messages-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 0 2px max(28px, env(safe-area-inset-bottom)) 0;
  scroll-padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.messages-item {
  display: block;
  width: 100%;
  height: 118px;
  padding: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.messages-item:focus-visible {
  border-color: #35e382;
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 227, 130, 0.18);
}

.messages-item h3 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.messages-item-meta span:first-child {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-sender-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  color: #ffd978;
  background: #4a3510;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.messages-item-body {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.instant-chat-status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 750;
}

.instant-chat-thread {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 2px 2px 4px;
}

.instant-chat-thread.hidden,
.instant-chat-conversations.hidden,
.instant-chat-form.hidden {
  display: none;
}

.instant-chat-conversations {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 2px 2px max(18px, env(safe-area-inset-bottom)) 0;
}

.instant-chat-conversation {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 82px;
  padding: 14px 15px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  font: inherit;
}

.instant-chat-conversation.is-selected,
.instant-chat-conversation:hover {
  background: rgba(53, 227, 130, 0.12);
  border-color: rgba(53, 227, 130, 0.34);
}

.instant-chat-conversation:focus-visible {
  outline: none;
  border-color: rgba(53, 227, 130, 0.78);
  box-shadow: 0 0 0 3px rgba(53, 227, 130, 0.16);
}

.instant-chat-conversation h3,
.instant-chat-conversation p,
.instant-chat-conversation time {
  margin: 0;
}

.instant-chat-conversation h3 {
  font-size: 18px;
  line-height: 1.2;
}

.instant-chat-conversation p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.instant-chat-conversation time {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.instant-chat-bubble {
  align-self: flex-start;
  max-width: min(86%, 520px);
  padding: 12px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px 15px 15px 5px;
}

.instant-chat-bubble.is-own {
  align-self: flex-end;
  background: rgba(53, 227, 130, 0.18);
  border-color: rgba(53, 227, 130, 0.34);
  border-radius: 15px 15px 5px 15px;
}

.instant-chat-bubble-meta {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.instant-chat-bubble-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.instant-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px 2px max(16px, env(safe-area-inset-bottom)) 0;
}

.instant-chat-input {
  min-height: 52px;
  max-height: 130px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.instant-chat-input:focus {
  border-color: rgba(53, 227, 130, 0.78);
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 227, 130, 0.16);
}

.instant-chat-send-button {
  min-height: 52px;
  padding: 0 18px;
  color: #07130d;
  background: #35e382;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
}

.instant-chat-send-button:disabled {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.message-detail-content {
  overflow: auto;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  text-align: left;
}

.message-detail-content h2 {
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.15;
}

.message-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 750;
}

.message-detail-body {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-detail-reply {
  margin-top: 22px;
}

.message-detail-reply-button,
.message-detail-reply-actions button {
  min-height: 42px;
  padding: 0 18px;
  color: #07130d;
  background: #35e382;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.message-detail-reply-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
}

.message-detail-reply-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.message-detail-reply-button:disabled,
.message-detail-reply-actions button:disabled {
  color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
}

.message-detail-reply-button:focus-visible,
.message-detail-reply-actions button:focus-visible,
.message-detail-reply textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 227, 130, 0.22);
}

.message-detail-reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.message-detail-reply-form.hidden {
  display: none;
}

.message-detail-reply-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.message-detail-reply textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.message-detail-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.message-detail-reply-actions button:first-child {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.message-detail-reply-status {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 750;
}

.message-detail-reply-form.is-sent textarea,
.message-detail-reply-form.is-sent .message-detail-reply-actions {
  display: none;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.problem-report-intro {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.problem-report-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-report-input {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: none;
}

.problem-report-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.problem-report-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.problem-report-status {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.problem-report-status:empty {
  display: none;
}

.problem-report-submit-button {
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: rgba(35, 196, 96, 0.92);
  border: 1px solid rgba(18, 128, 62, 0.28);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.problem-report-submit-button.is-disabled,
.problem-report-submit-button[aria-disabled="true"] {
  opacity: 0.5;
}

.online-users-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.online-users-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  padding: 11px 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  font: inherit;
  text-align: center;
  box-shadow: none;
}

.online-users-stat.is-active {
  background: rgba(35, 196, 96, 0.16);
  border-color: rgba(35, 196, 96, 0.44);
}

.online-users-stat:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.online-users-stat-value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.online-users-stat-label {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(8px, 2.2vw, 10px);
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.online-users-status {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.online-users-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  max-height: none;
  overscroll-behavior: contain;
  padding: 0 2px max(28px, env(safe-area-inset-bottom)) 0;
  scroll-padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.online-user-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  text-align: left;
}

.online-user-row.is-self {
  border-color: rgba(35, 196, 96, 0.42);
}

.online-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.online-user-details-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.online-user-details-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.online-user-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-self-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: #d9ffe6;
  background: rgba(35, 196, 96, 0.22);
  border: 1px solid rgba(35, 196, 96, 0.34);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.online-user-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.online-user-state,
.online-user-pairing,
.online-user-media,
.online-user-device {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.online-user-media {
  gap: 9px;
}

.online-user-media-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.online-user-media-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.online-user-media-item.is-on {
  color: #31c96a;
  background: rgba(49, 201, 106, 0.16);
  border-color: rgba(49, 201, 106, 0.28);
}

.online-user-media-item.is-off {
  color: #ff5a5a;
  background: rgba(255, 90, 90, 0.14);
  border-color: rgba(255, 90, 90, 0.24);
}

.online-user-state {
  gap: 6px;
  padding: 0 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.online-user-state-online::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #23c460;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(35, 196, 96, 0.18);
}

.online-user-state-searching {
  background: rgba(247, 180, 64, 0.34);
}

.online-user-state-paired {
  background: rgba(35, 196, 96, 0.34);
}

.online-user-pairing {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-device {
  align-self: flex-start;
  max-width: 100%;
  min-height: 20px;
  overflow: hidden;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-device::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}

.online-user-device-tablet::before {
  width: 12px;
  height: 15px;
  border-radius: 3px;
}

.online-user-device-desktop::before {
  width: 16px;
  height: 9px;
  border-radius: 2px;
}

.online-user-details-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.56);
}

.online-user-details-dialog {
  width: min(520px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: hidden;
  color: #fff;
  background: rgba(25, 25, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.online-user-details-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.online-user-details-header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-details-close-button {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.online-user-details-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(min(760px, 100dvh - 36px) - 58px);
  overflow: auto;
  padding: 14px;
}

.online-user-details-section {
  min-width: 0;
}

.online-user-details-section h3 {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.online-user-details-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
}

.online-user-details-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  line-height: 1.25;
}

.online-user-details-row dt,
.online-user-details-row dd {
  min-width: 0;
  margin: 0;
}

.online-user-details-row dt {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.online-user-details-row dd {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.camera-zoom-overlay {
  position: absolute;
  left: 50%;
  top: 16px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 6px 10px;
  appearance: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.camera-zoom-overlay:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.camera-zoom-overlay:active {
  transform: translateX(-50%) scale(0.96);
}

.camera-zoom-overlay.hidden {
  display: none;
}

.camera-zoom-value {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (hover: none) and (pointer: coarse) {
  .app-menu-backdrop {
    padding: 0;
  }

  .app-menu-drawer {
    width: min(360px, calc(100vw - 68px));
    max-height: 100dvh;
  }

}

@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .app-menu-backdrop {
    padding: 0;
  }

  .app-menu-drawer {
    width: min(340px, calc(100vw - 72px));
    max-height: 100dvh;
  }

}

.videos {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  width: min(100%, 3500px, calc((100dvh - 194px) * 2.6667));
  height: min(calc(100dvh - 194px), 50vw, 1312px);
  max-width: none;
  margin: 0 auto;
  gap: 0;
  background: #000;
  perspective: none;
  --swipe-perspective-x: 50%;
  perspective-origin: var(--swipe-perspective-x) 50%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
  -webkit-font-smoothing: antialiased;
}

.chat-panel {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 24;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.chat-panel.hidden {
  display: none;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 112px;
  overflow: hidden;
  pointer-events: none;
}

.chat-message {
  max-width: min(420px, 86%);
  padding: 7px 10px;
  color: #fff;
  background: rgba(23, 23, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-message.is-local {
  align-self: flex-end;
  background: rgba(33, 126, 82, 0.88);
}

.chat-message.is-remote {
  align-self: flex-start;
}

.chat-message-name {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1;
}

.chat-form {
  display: flex;
  gap: 7px;
  width: 100%;
  padding: 7px;
  background: rgba(14, 14, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.chat-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font: 700 15px/1 "Inter", sans-serif;
  outline: none;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.chat-input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

.chat-send-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 70px;
  padding: 0 14px;
  color: #fff;
  background: rgba(35, 196, 96, 0.92);
  border: 1px solid rgba(18, 128, 62, 0.28);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.chat-send-button:disabled {
  opacity: 0.5;
}
/* ─── Video layout ─────────────────────────────────────────── */
.video-shell {
  position: relative;
  flex: 1 1 0;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.remote-video-pane {
  order: 1;
  --swipe-rotate: 0deg;
  --swipe-shift: 0px;
  --swipe-scale: 1;
  --swipe-origin: center center;
  --swipe-top-inset: 0%;
  --swipe-front-top-inset: var(--swipe-top-inset);
  --swipe-side-top-inset: var(--swipe-top-inset);
  --swipe-side-left-opacity: 0;
  --swipe-side-right-opacity: 0;
  transform-style: preserve-3d;
  transform-origin: var(--swipe-origin);
  backface-visibility: hidden;
}

.remote-video-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.38) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      rgba(0, 0, 0, 0.18) 2px,
      rgba(0, 0, 0, 0.18) 5px
    );
  filter: contrast(190%) brightness(72%);
  opacity: 1;
}

.remote-video-pane:has(.remote-tuning.active)::before,
.remote-video-pane:has(> video.video-live)::before,
.remote-video-pane:has(> .remote-render-canvas.video-live)::before {
  opacity: 0;
}

.local-video-pane {
  order: 2;
  z-index: 9;
  touch-action: none;
}

.local-video-pane.is-panning-camera {
  cursor: grabbing;
}

/* Videos fill their panes and crop evenly across camera aspect ratios. */
video,
.local-render-canvas,
.local-freeze-canvas,
.local-switch-canvas,
.remote-render-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

video {
  object-fit: cover;
}

.local-render-canvas,
.local-freeze-canvas,
.local-switch-canvas,
.remote-render-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.local-freeze-canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms ease;
}

.local-video-pane.local-freeze-immediate .local-freeze-canvas {
  transition: none;
}

.local-video-pane.local-freeze-active .local-freeze-canvas {
  opacity: 1;
}

.local-switch-canvas {
  z-index: 2;
  opacity: 0;
  background: #000;
  transform-origin: center;
  backface-visibility: hidden;
  transition: opacity 180ms ease;
  will-change: opacity, transform, filter;
}

.local-video-pane.local-camera-switching .local-switch-canvas {
  opacity: 1;
  transition: none;
}

.local-video-pane.local-camera-switching::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0.24) 50%,
      rgba(255, 255, 255, 0.1) 55%,
      transparent 62%,
      transparent 100%
    ),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.24) 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 120% 0, center;
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: localCameraSwitchSheen 1500ms ease-in-out infinite;
}

.local-video-pane.local-camera-switching > video {
  opacity: 0 !important;
}

@keyframes localCameraSwitchSheen {
  0% {
    background-position: 120% 0, center;
    opacity: 0;
  }

  16% {
    opacity: 0.86;
  }

  78% {
    opacity: 0.86;
  }

  100% {
    background-position: -120% 0, center;
    opacity: 0;
  }
}

#localVideo.local-video-canvas-source,
#remoteVideo.remote-video-canvas-source {
  position: fixed;
  left: -2px;
  top: -2px;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

/* Provides a positioning context for avatars, labels, and the freeze cover. */
.video-frame {
  position: relative;
}

/* Cover layer used to hide camera startup and rotation transitions. */
.video-cover {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.video-cover.visible {
  opacity: 1;
}

.local-video-pane.local-instant-cover .video-cover {
  transition: none;
}

.remote-tuning {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: #111;
  transition: opacity 0ms linear;
}

.remote-tuning.active {
  opacity: 1;
  transition-duration: 0ms;
}

.remote-video-paused {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.58) 100%),
    rgba(0, 0, 0, 0.28);
}

.remote-video-paused.hidden {
  display: none;
}

.remote-video-paused-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.remote-video-paused-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.remote-video-pane.remote-reveal-pending > video,
.remote-video-pane.remote-reveal-pending .remote-render-canvas {
  opacity: 0 !important;
}

.remote-video-pane.remote-paused-freeze > video {
  opacity: 0 !important;
}

.remote-video-pane.remote-paused-freeze .remote-render-canvas {
  opacity: 1 !important;
  filter: none;
  transform: none;
}

.remote-video-pane.remote-paused-freeze .remote-tuning {
  opacity: 0;
}

.remote-video-pane.remote-swipe-active,
.remote-video-pane.remote-swipe-resetting,
.remote-video-pane.remote-swipe-commit-left,
.remote-video-pane.remote-swipe-commit-right {
  z-index: 8;
  overflow: visible;
  transform: translate3d(var(--swipe-shift), 0, 0) rotateY(var(--swipe-rotate)) scale(var(--swipe-scale));
  will-change: transform;
}

.remote-video-pane.remote-swipe-active {
  transition: none;
}

.remote-video-pane.remote-swipe-left > video,
.remote-video-pane.remote-swipe-left > .remote-render-canvas,
.remote-video-pane.remote-swipe-left > .remote-tuning,
.remote-video-pane.remote-swipe-left > .remote-video-paused,
.remote-video-pane.remote-swipe-left > .remote-front-timer-layer,
.remote-video-pane.remote-swipe-commit-left > video,
.remote-video-pane.remote-swipe-commit-left > .remote-render-canvas,
.remote-video-pane.remote-swipe-commit-left > .remote-tuning,
.remote-video-pane.remote-swipe-commit-left > .remote-video-paused,
.remote-video-pane.remote-swipe-commit-left > .remote-front-timer-layer {
  -webkit-clip-path: polygon(
    0 var(--swipe-front-top-inset),
    100% 0,
    100% 100%,
    0 100%
  );
  clip-path: polygon(
    0 var(--swipe-front-top-inset),
    100% 0,
    100% 100%,
    0 100%
  );
}

.remote-video-pane.remote-swipe-right > video,
.remote-video-pane.remote-swipe-right > .remote-render-canvas,
.remote-video-pane.remote-swipe-right > .remote-tuning,
.remote-video-pane.remote-swipe-right > .remote-video-paused,
.remote-video-pane.remote-swipe-right > .remote-front-timer-layer,
.remote-video-pane.remote-swipe-commit-right > video,
.remote-video-pane.remote-swipe-commit-right > .remote-render-canvas,
.remote-video-pane.remote-swipe-commit-right > .remote-tuning,
.remote-video-pane.remote-swipe-commit-right > .remote-video-paused,
.remote-video-pane.remote-swipe-commit-right > .remote-front-timer-layer {
  -webkit-clip-path: polygon(
    0 0,
    100% var(--swipe-front-top-inset),
    100% 100%,
    0 100%
  );
  clip-path: polygon(
    0 0,
    100% var(--swipe-front-top-inset),
    100% 100%,
    0 100%
  );
}

.remote-video-pane.remote-swipe-resetting > video,
.remote-video-pane.remote-swipe-resetting > .remote-render-canvas,
.remote-video-pane.remote-swipe-resetting > .remote-tuning,
.remote-video-pane.remote-swipe-resetting > .remote-video-paused,
.remote-video-pane.remote-swipe-resetting > .remote-front-timer-layer {
  transition:
    -webkit-clip-path 520ms cubic-bezier(0.22, 0.55, 0.28, 1),
    clip-path 520ms cubic-bezier(0.22, 0.55, 0.28, 1);
}

.remote-video-pane.remote-swipe-resetting,
.remote-video-pane.remote-swipe-commit-left,
.remote-video-pane.remote-swipe-commit-right {
  transition: transform 520ms cubic-bezier(0.22, 0.55, 0.28, 1);
}

.remote-video-pane.remote-swipe-left,
.remote-video-pane.remote-swipe-right,
.remote-video-pane.remote-swipe-commit-left,
.remote-video-pane.remote-swipe-commit-right {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.remote-video-pane.remote-swipe-left {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    10px 0 18px rgba(0, 0, 0, 0.24);
}

.remote-video-pane.remote-swipe-right {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    -10px 0 18px rgba(0, 0, 0, 0.24);
}

.remote-swipe-side {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background: #111;
  transition: none;
}

.remote-video-pane.remote-swipe-commit-left .remote-swipe-side,
.remote-video-pane.remote-swipe-commit-right .remote-swipe-side {
  transition: opacity 220ms cubic-bezier(0.22, 0.55, 0.28, 1);
}

.remote-swipe-side-left {
  left: 100%;
  opacity: var(--swipe-side-left-opacity);
  -webkit-clip-path: polygon(
    0 0,
    100% var(--swipe-side-top-inset),
    100% 100%,
    0 100%
  );
  clip-path: polygon(
    0 0,
    100% var(--swipe-side-top-inset),
    100% 100%,
    0 100%
  );
  transform: rotateY(90deg);
  transform-origin: left center;
}

.remote-swipe-side-right {
  right: 100%;
  opacity: var(--swipe-side-right-opacity);
  -webkit-clip-path: polygon(
    0 var(--swipe-side-top-inset),
    100% 0,
    100% 100%,
    0 100%
  );
  clip-path: polygon(
    0 var(--swipe-side-top-inset),
    100% 0,
    100% 100%,
    0 100%
  );
  transform: rotateY(-90deg);
  transform-origin: right center;
}

.remote-swipe-side-label-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.22, 0.55, 0.28, 1);
}

.remote-swipe-side-right .remote-swipe-side-label-layer {
  right: 0;
  left: auto;
}

.remote-swipe-active .remote-swipe-side-label-layer,
.remote-swipe-resetting .remote-swipe-side-label-layer,
.remote-swipe-commit-left .remote-swipe-side-label-layer,
.remote-swipe-commit-right .remote-swipe-side-label-layer {
  opacity: 1;
}

.remote-swipe-side-label,
.remote-swipe-side-status {
  transform: none;
}

.remote-swipe-side-status {
  max-width: none;
}

.remote-video-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: rgba(8, 10, 12, 0.18);
  transition: none;
}

.remote-video-pane.remote-blur-reveal::after {
  opacity: 0;
}

.remote-video-pane.remote-blur-clearing::after {
  transition: opacity 260ms ease;
}

.remote-video-pane.remote-blur-reveal > video,
.remote-video-pane.remote-blur-reveal .remote-render-canvas {
  filter: blur(8px) brightness(0.96) saturate(0.96);
  transform: scale(1.018);
  transition: none;
}

.remote-video-pane.remote-blur-clearing > video,
.remote-video-pane.remote-blur-clearing .remote-render-canvas {
  transition:
    filter 260ms ease,
    transform 260ms ease;
}

.remote-video-pane > video,
.remote-video-pane .remote-render-canvas {
  transition:
    filter 650ms ease,
    transform 650ms ease,
    opacity 120ms ease;
}

.tuning-noise,
.tuning-scanlines {
  position: absolute;
  inset: 0;
}

.tuning-noise {
  width: 100%;
  height: 100%;
  opacity: 0.78;
  filter: contrast(185%) brightness(75%);
  transform: scale(1.04);
}

.tuning-scanlines {
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.38) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      rgba(0, 0, 0, 0.18) 2px,
      rgba(0, 0, 0, 0.18) 5px
    );
  mix-blend-mode: overlay;
  opacity: 0.85;
  animation: tuneScan 700ms linear infinite;
}

@keyframes tuneScan {
  from {
    transform: translateY(-5px);
  }

  to {
    transform: translateY(5px);
  }
}

/* Name label pinned over each video pane. */
.video-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 9px;
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.editable-video-label {
  cursor: text;
  pointer-events: auto;
}

.editable-video-label:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.video-label-input {
  display: inline-block;
  max-width: 42vw;
  min-width: 1ch;
  padding: 0;
  color: inherit;
  background: transparent;
  outline: none;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

.video-label-input:empty::before {
  content: attr(data-placeholder);
  color: #a6a6a6;
}

.video-label-input:focus:empty::before {
  content: "";
}

.video-label.hidden {
  display: none;
}

.geolocation-feature-label {
  top: 12px;
  bottom: auto;
  left: 12px;
  z-index: 6;
  display: flex;
  gap: 6px;
  color: #063517;
  background: rgba(91, 231, 142, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.geolocation-feature-label.hidden {
  display: none;
}

.geolocation-feature-label.is-unavailable {
  color: #4a2f00;
  background: rgba(244, 197, 66, 0.94);
}

.geolocation-feature-label svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-status-label {
  left: auto;
  right: 12px;
  max-width: calc(100% - 24px);
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

.video-status-label::before,
.video-status-label .status-dot {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
}

.video-status-label.has-signal::before {
  display: none;
}

.video-status-label.is-connected::before,
.video-status-label.is-connected .status-dot {
  background: #28c45d;
}

.video-status-label.is-disconnected::before,
.video-status-label.is-disconnected .status-dot {
  background: #e34848;
}

.video-status-label.is-pending::before,
.video-status-label.is-pending .status-dot {
  background: #f4c542;
  animation: statusPulse 1s ease-in-out infinite;
}

.status-signal-bars {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 2px;
  width: 15px;
  height: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.status-signal-bar {
  width: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.24;
}

.status-signal-bar:nth-child(1) {
  height: 5px;
}

.status-signal-bar:nth-child(2) {
  height: 9px;
}

.status-signal-bar:nth-child(3) {
  height: 13px;
}

.video-status-label[data-signal-quality="good"] .status-signal-bars {
  color: #28c45d;
}

.video-status-label[data-signal-quality="fair"] .status-signal-bars {
  color: #f4c542;
}

.video-status-label[data-signal-quality="poor"] .status-signal-bars {
  color: #e34848;
}

.video-status-label[data-signal-quality="good"] .status-signal-bar,
.video-status-label[data-signal-quality="fair"] .status-signal-bar:nth-child(-n + 2),
.video-status-label[data-signal-quality="poor"] .status-signal-bar:nth-child(1) {
  opacity: 1;
}

.remote-mic-badge {
  position: absolute;
  right: 28px;
  bottom: 54px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 5px;
  color: #ff5a5a;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.remote-mic-badge.hidden {
  display: none;
}

.remote-mic-badge svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .remote-mic-badge {
    bottom: 47px;
  }
}

.remote-front-timer-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.remote-front-timer-layer .stats-text {
  z-index: 2;
}

.call-timer {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 64px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transform: translateX(-50%);
}

.call-timer.hidden {
  display: none;
}

.call-timer.is-counting-up {
  background: rgba(22, 47, 58, 0.72);
  border-color: rgba(175, 221, 237, 0.26);
}

.video-control-button {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.video-control-button.hidden {
  display: none;
}

.video-control-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.video-control-button svg {
  position: relative;
  z-index: 1;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  transform: translateZ(0);
}

.local-camera-button:not(.is-off):not(:disabled) svg,
.local-mic-button:not(.is-off):not(:disabled) svg {
  color: #31c96a;
}

.video-control-button.is-off:not(:disabled) svg {
  color: #ff5a5a;
}

.switch-camera-button svg {
  width: 41px;
  height: 41px;
}

.report-flag-button {
  right: 8px;
  top: 8px;
  bottom: auto;
  width: 40px;
  height: 40px;
  color: #ff5a5a;
  background: rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.report-flag-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remote-swipe-report-flag-button {
  display: none;
}

.remote-swipe-active .remote-swipe-report-flag-button:not(.hidden),
.remote-swipe-resetting .remote-swipe-report-flag-button:not(.hidden),
.remote-swipe-commit-left .remote-swipe-report-flag-button:not(.hidden),
.remote-swipe-commit-right .remote-swipe-report-flag-button:not(.hidden) {
  display: inline-flex;
}

.report-flag-button:active {
  color: #ff7474;
}

.local-camera-button {
  right: 70px;
  top: auto;
  bottom: 8px;
  transform: none;
}

.local-mic-button {
  right: 12px;
  top: auto;
  bottom: 8px;
  transform: none;
}

.switch-camera-button {
  right: 12px;
  top: auto;
  bottom: 8px;
  transform: none;
}

.local-menu-button {
  right: 8px;
  top: 8px;
  bottom: auto;
  transform: none;
  box-shadow: none;
}

body.app-menu-open .local-menu-button {
  display: none;
}

.local-menu-button svg {
  width: 28px;
  height: 28px;
}

.switch-camera-button.is-switching {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.16);
}

.local-next-button {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 5;
  display: none;
  width: 42px;
  height: 104px;
  padding: 0 9px 0 7px;
  color: #fff;
  background: rgba(35, 196, 96, 0.88);
  border: 1px solid rgba(18, 128, 62, 0.28);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.local-disconnect-button {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 5;
  display: none;
  width: 42px;
  height: 104px;
  padding: 0 7px 0 9px;
  color: #fff;
  background: rgba(214, 58, 58, 0.84);
  border: 1px solid rgba(139, 22, 22, 0.28);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.local-disconnect-button:disabled {
  opacity: 0.35;
}

.local-next-chevron {
  display: block;
  font-size: 42px;
  font-weight: 500;
  line-height: 0.8;
  transform: translateX(-1px);
}

.local-next-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 999px;
  animation: localNextSpin 800ms linear infinite;
}

@keyframes localNextSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide Safari/iOS native playback chrome inside the call panes. */
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* ─── Video visibility states ─────────────────────────────── */
video.video-idle,
.local-render-canvas.video-idle,
.remote-render-canvas.video-idle {
  opacity: 0;
}

video.video-live,
.local-render-canvas.video-live,
.remote-render-canvas.video-live {
  opacity: 1;
}

/* Centered media-state icons. Two icons sit side-by-side when both are active. */
.media-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  z-index: 4;
}

.video-frame .avatar {
  width: 60px;
  height: 60px;
  color: white;
  opacity: 0.8;
  flex: 0 0 auto;
}

.video-frame .avatar.mic-on-feedback {
  color: #31c96a;
}

.local-video-pane #localAvatar,
.local-video-pane #localMicAvatar,
.remote-video-pane #remoteAvatar,
.remote-video-pane #remoteMicAvatar {
  color: #ff5a5a;
}

.video-frame .avatar svg {
  width: 100%;
  height: 100%;
}

/* App-level stats stay quiet; call state is shown inside the video panes. */
.status-text {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 4px 9px;
  font-size: 13px;
  color: #666;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
  white-space: nowrap;
  isolation: isolate;
}

.status-text:empty {
  display: none;
}

.stats-text {
  display: none;
  z-index: 4;
}

.remote-video-pane.remote-stats-visible .stats-text:not(:empty) {
  display: block;
}

.remote-video-pane.remote-call-active #statsText {
  display: none !important;
}

.remote-swipe-side-stats {
  display: block;
}

.pairing-status {
  display: none;
}

/* ─── Desktop (wider screens) layout ───────────────────────────── */
@media (min-width: 701px) {
  .controls {
    flex-wrap: nowrap;
  }

  .controls:has(.app-error:not(.hidden)) {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .controls:has(.app-error:not(.hidden)) .button-row {
    order: 2;
  }

  .controls:has(.app-error:not(.hidden)) .app-error {
    order: 1;
  }

  .button-row {
    flex-wrap: nowrap;
  }
}

/* ─── Mobile (portrait) layout ────────────────────────────── */
@media (max-width: 700px) and (hover: none) and (pointer: coarse) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    touch-action: none;
  }

  .controls {
    display: none;
  }

  .status-text {
    top: 10px;
    font-size: 13px;
  }

  .button-row {
    width: 100%;
    padding: 0 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .button-row button {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;
    font-size: clamp(12px, 3.4vw, 15px);
  }

  #connectBtn {
    display: none;
  }

  #disconnectBtn {
    display: none;
  }

  .local-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .local-disconnect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .videos {
    order: 1;
    flex: 1 1 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    gap: 0;
    overflow: hidden;
  }

  video {
    max-width: 100%;
    width: 100%;
  }

  .video-shell {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }

  .video-label {
    left: 16px;
    bottom: 16px;
    font-size: clamp(16px, 5vw, 22px);
    transform: none;
  }

  .video-status-label {
    left: auto;
    right: 16px;
    bottom: 16px;
    max-width: max-content;
    font-size: 16px;
    padding: 6px 10px;
  }

  .geolocation-feature-label {
    left: 16px;
    top: 16px;
    bottom: auto;
    font-size: 14px;
    padding: 5px 8px;
  }

  .call-timer {
    top: 16px;
    font-size: 16px;
    padding: 6px 10px;
  }

  body.partner-focus-active .videos {
    grid-template-rows: minmax(0, 1fr);
  }

  body.partner-focus-active .remote-video-pane {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
  }

  body.partner-focus-active .remote-video-pane.remote-fit-bounded > video {
    object-fit: contain;
    background: #000;
    transform: scale(var(--remote-fit-scale, 1));
  }

  body.partner-focus-active .local-video-pane {
    position: absolute;
    left: var(--partner-tile-left, max(12px, env(safe-area-inset-left)));
    top: var(--partner-tile-top, max(12px, env(safe-area-inset-top)));
    z-index: 14;
    width: clamp(118px, 34vw, 168px);
    height: clamp(158px, 25dvh, 220px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    cursor: grab;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    touch-action: none;
  }

  body.partner-focus-active .local-video-pane > video,
  body.partner-focus-active .local-video-pane > .local-render-canvas,
  body.partner-focus-active .local-video-pane > .local-freeze-canvas,
  body.partner-focus-active .local-video-pane > .video-cover {
    border-radius: inherit;
    overflow: hidden;
    clip-path: inset(0 round 14px);
  }

  body.partner-focus-active .local-video-pane.is-dragging {
    cursor: grabbing;
  }

  body.partner-focus-active .local-video-pane .video-label {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 48px);
    padding: 4px 7px;
    font-size: 13px;
  }

  body.partner-focus-active .local-video-pane .video-control-button {
    right: 7px;
    width: 32px;
    height: 32px;
  }

  body.partner-focus-active .local-video-pane .video-control-button svg {
    width: 22px;
    height: 22px;
  }

  body.partner-focus-active .local-video-pane .switch-camera-button {
    bottom: 79px;
  }

  body.partner-focus-active .local-video-pane .local-camera-button {
    bottom: 43px;
  }

  body.partner-focus-active .local-video-pane .local-mic-button {
    bottom: 7px;
  }

  body.partner-focus-active .local-video-pane .local-menu-button {
    right: 6px;
    top: 6px;
  }
}

/* Touch controls use Switch → Cam → Mic on phones and tablets. */
@media (hover: none) and (pointer: coarse) {
  .controls,
  .local-next-button,
  .local-disconnect-button {
    display: none !important;
  }

  .videos {
    touch-action: none;
  }

  .remote-video-pane .stats-text:not(:empty) {
    display: block !important;
  }

  .remote-front-timer-layer {
    overflow: visible;
    transform-style: flat;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }

  .status-text {
    color: #666;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .video-control-button {
    width: 42px;
    height: 42px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .video-control-button svg {
    width: 31px;
    height: 31px;
  }

  .switch-camera-button svg {
    width: 37px;
    height: 37px;
  }

  .switch-camera-button {
    right: 120px;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .local-camera-button {
    right: 68px;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .local-mic-button {
    right: 16px;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .local-menu-button {
    right: 8px;
    top: 8px;
    bottom: auto;
    transform: none;
  }

  .report-flag-button {
    right: 8px;
    top: 8px;
    bottom: auto;
    transform: none;
    color: #ff5a5a;
    background: rgba(0, 0, 0, 0.58);
  }

  .report-flag-button svg {
    width: 25px;
    height: 25px;
    color: #ff5a5a;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    transform: none;
  }
}

/* ─── Tablet / mobile landscape layout ────────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
  .videos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .video-shell {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

/* iPhone landscape has desktop-like width but very little height. */
@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
  }

  .videos {
    order: 1;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    margin: 0;
  }

  .video-shell {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .controls,
  .status-text {
    display: none;
  }

  .remote-video-pane .stats-text:not(:empty) {
    display: block !important;
  }

  .remote-front-timer-layer {
    overflow: visible;
    transform-style: flat;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }

  .status-text {
    color: #666;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .video-label {
    left: 10px;
    bottom: 10px;
    padding: 4px 7px;
    font-size: clamp(14px, 3vw, 18px);
  }

  .video-status-label {
    left: auto;
    right: 10px;
    bottom: 10px;
    font-size: 13px;
    padding: 5px 8px;
  }

  .geolocation-feature-label {
    left: 10px;
    top: 10px;
    bottom: auto;
    font-size: 12px;
    padding: 4px 7px;
  }

  .local-next-button,
  .local-disconnect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 88px;
  }

  .local-next-chevron {
    font-size: 38px;
  }

  .local-next-spinner {
    width: 20px;
    height: 20px;
  }

  .video-control-button {
    width: 36px;
    height: 36px;
    bottom: 10px;
  }

  .video-control-button svg {
    width: 27px;
    height: 27px;
  }

  .switch-camera-button {
    right: 106px;
  }

  .local-camera-button {
    right: 58px;
  }

  .local-mic-button {
    right: 10px;
  }

  .local-menu-button {
    right: 6px;
    top: 6px;
    bottom: auto;
  }

  .report-flag-button {
    right: 6px;
    top: 6px;
    bottom: auto;
  }

  body.partner-focus-active .videos {
    position: relative;
    display: block;
    width: 100vw;
    height: 100dvh;
  }

  body.partner-focus-active .remote-video-pane {
    width: 100%;
    height: 100%;
  }

  body.partner-focus-active .local-video-pane {
    position: absolute;
    left: var(--partner-tile-left, max(10px, env(safe-area-inset-left)));
    top: var(--partner-tile-top, max(10px, env(safe-area-inset-top)));
    z-index: 14;
    width: clamp(118px, 24vw, 160px);
    height: clamp(82px, 28dvh, 118px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    cursor: grab;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    touch-action: none;
  }

  body.partner-focus-active .local-video-pane > video,
  body.partner-focus-active .local-video-pane > .local-render-canvas,
  body.partner-focus-active .local-video-pane > .local-freeze-canvas,
  body.partner-focus-active .local-video-pane > .video-cover {
    border-radius: inherit;
    overflow: hidden;
    clip-path: inset(0 round 14px);
  }

  body.partner-focus-active .local-video-pane.is-dragging {
    cursor: grabbing;
  }

  body.partner-focus-active .local-video-pane .video-label {
    left: 7px;
    bottom: 7px;
    max-width: calc(100% - 44px);
    padding: 3px 6px;
    font-size: 12px;
  }

  body.partner-focus-active .local-video-pane .video-control-button {
    right: 6px;
    width: 30px;
    height: 30px;
  }

  body.partner-focus-active .local-video-pane .video-control-button svg {
    width: 20px;
    height: 20px;
  }

  body.partner-focus-active .local-video-pane .switch-camera-button {
    bottom: 73px;
  }

  body.partner-focus-active .local-video-pane .local-camera-button {
    bottom: 39px;
  }

  body.partner-focus-active .local-video-pane .local-mic-button {
    bottom: 6px;
  }

  body.partner-focus-active .local-video-pane .local-menu-button {
    right: 5px;
    top: 5px;
  }
}
