/* Chatick — настроение начала 2000-х (неон, градиенты, «веб 1.5») */

:root {
  --sky1: #9ecfff;
  --sky2: #6aa9ff;
  --sky3: #d4ecff;
  --chrome1: #5a8fd4;
  --chrome2: #2d5aa0;
  --panel: #f8fbff;
  --panel-edge: #7aa3d6;
  --text: #1a2f52;
  --text-soft: #3d5a80;
  --link: #0645ad;
  --link-hover: #0b0080;
  --accent: #ff6b9d;
  --accent2: #ffd93d;
  --danger: #c62828;
  --ok: #2e7d32;
  --font-ui: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  --font-mono: "Lucida Console", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(165deg, var(--sky1) 0%, var(--sky2) 35%, var(--sky3) 70%, #fff8e7 100%);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

a {
  color: var(--link);
  font-weight: 600;
}
a:hover {
  color: var(--link-hover);
}

/* Весёлая полоса над формой — только главная */
.landing-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  max-width: 820px;
  margin: 0 auto 14px;
  padding: 16px 20px;
  background: linear-gradient(
    125deg,
    rgba(255, 214, 250, 0.95) 0%,
    rgba(255, 255, 200, 0.92) 35%,
    rgba(180, 230, 255, 0.95) 70%,
    rgba(200, 255, 220, 0.9) 100%
  );
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow:
    0 4px 0 rgba(45, 90, 160, 0.25),
    0 8px 24px rgba(30, 60, 120, 0.18);
}

.landing-hero__text {
  flex: 1;
  min-width: 200px;
}

.landing-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--chrome2);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(255, 182, 220, 0.8);
}

.landing-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.45;
}

.landing-sparkle {
  font-size: 18px;
  letter-spacing: 4px;
  margin-top: 8px;
}

/* Карточка приложения */
.frame-outer {
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: linear-gradient(180deg, #eef6ff 0%, #dfeaf8 100%);
  box-shadow:
    0 0 0 1px var(--panel-edge),
    0 6px 20px rgba(30, 70, 140, 0.2);
  overflow: hidden;
}

.frame-inner {
  padding: 12px 14px 16px;
  background: linear-gradient(180deg, var(--panel) 0%, #e8f0fc 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: linear-gradient(180deg, var(--chrome1) 0%, var(--chrome2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid #1a4480;
}

.title-bar a {
  color: #fff9c4;
  font-weight: 700;
}
.title-bar a:visited {
  color: #e1bee7;
}

.title-bar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.link-admin {
  color: #ffeb3b !important;
  font-size: 12px;
}

.page-center {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 10px 24px;
}

.page-center--wide {
  max-width: 1120px;
}

/* Кнопки — глянец начала 2000-х */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  min-height: 28px;
  border-radius: 8px;
  border: 2px solid #5a7aaa;
  background: linear-gradient(180deg, #fff 0%, #d0dcee 45%, #a8bdd9 100%);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.btn:hover {
  filter: brightness(1.05);
  border-color: #3d5a8a;
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  border-color: #1e4a8a;
  background: linear-gradient(180deg, #6ab0ff 0%, #2d7be8 40%, #1a5cb8 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  border-color: #6a8ab8;
  background: linear-gradient(180deg, #f4f8ff 0%, #c8d8ee 100%);
  color: #1a3050;
}

.btn-ghost {
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(180, 210, 255, 0.25) 100%);
  color: #fff;
}

.btn-compact {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  font-family: inherit;
  font-size: 13px;
  border: 2px solid #8aa8cc;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 4px 8px;
  box-shadow: inset 0 1px 3px rgba(0, 40, 100, 0.08);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--chrome1);
  box-shadow: 0 0 0 2px rgba(90, 143, 212, 0.35);
}

textarea {
  resize: vertical;
}

/* Вкладки */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px 8px 0 0;
  border: 2px solid transparent;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.tab:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}
.tab.active {
  background: linear-gradient(180deg, #fff 0%, var(--panel) 100%);
  color: var(--chrome2);
  border-color: var(--panel-edge);
  border-bottom-color: var(--panel);
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
  margin-top: -2px;
  padding: 14px 16px;
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 4px 12px rgba(40, 80, 140, 0.12);
}
.tab-panel.active {
  display: block;
}

hr.sep {
  border: none;
  height: 2px;
  margin: 10px 0;
  background: linear-gradient(90deg, transparent, rgba(90, 140, 200, 0.5), transparent);
}

/* Палитра цветов */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 280px;
  margin-bottom: 8px;
}

.color-palette--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.color-swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #333;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.color-swatch:hover {
  transform: scale(1.08);
  z-index: 1;
}
.color-swatch.selected {
  outline: 3px solid var(--chrome2);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 1px 2px 0 rgba(0, 0, 0, 0.25);
}

.color-preview {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.color-preview-nick {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.msg-mood {
  font-weight: 900;
}

/* Чат: основная сетка — см. .chat-page / .chat-shell ниже */

.section {
  margin-bottom: 12px;
}
.section:last-child {
  margin-bottom: 0;
}

.section-head {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chrome2);
  margin: 0 0 6px 2px;
}

.compose-grid {
  margin-top: 4px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.compose-grid td {
  padding: 0 6px 0 0;
  vertical-align: middle;
}
.compose-grid td.compose-td-full {
  width: 100%;
  text-align: left;
  padding-right: 0;
}
.compose-grid .full {
  width: 100%;
}

.msg-public,
.msg-private {
  /* Tahoma/Verdana визуально «тяжелее», чем узкий моноширинный на Retina */
  font-family: Tahoma, Verdana, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #6a8ec4;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: inset 0 2px 6px rgba(0, 40, 100, 0.06);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.msg-public .msg-time,
.msg-private .msg-time {
  font-weight: 700;
  color: #5a7090;
}

.msg-public .msg-text,
.msg-private .msg-text {
  font-weight: 800;
  letter-spacing: 0.015em;
}

.msg-public .msg-mood,
.msg-private .msg-mood {
  font-weight: 800;
}

.chat-nick {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.chat-nick:hover {
  text-decoration-style: solid;
  background: rgba(255, 230, 100, 0.45);
}

.msg-sys-nick {
  font-weight: 800;
  color: #8a0000;
}

.msg-line,
.msg-line-pm {
  margin-bottom: 3px;
}

.msg-public {
  height: min(40vh, 360px);
  min-height: 180px;
}

.msg-private {
  height: 124px;
}

.chat-page .msg-public {
  height: auto;
  max-height: min(42vh, 380px);
  flex: 1 1 auto;
  min-height: 160px;
}

.chat-page .msg-private {
  height: auto;
  max-height: 140px;
  min-height: 100px;
}

.side-panel {
  width: 272px;
}

/* Адресат в общем зале */
.msg-direct {
  font-weight: 800;
  font-size: 13px;
}

.me-color-dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #1a2f52;
  vertical-align: middle;
  margin-left: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.compose-hint {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.45;
}

.compose-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 1px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: #e8ecf4;
  border: 1px solid #9aa8c4;
  border-radius: 4px;
  box-shadow: 0 1px 0 #fff;
}

.msg-input {
  width: 100%;
  min-height: 6.75rem;
  resize: vertical;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  border: 2px solid #6a8ec4;
  border-radius: 8px;
  box-sizing: border-box;
}

.compose-actions {
  padding-top: 4px;
}

.btn-smiley-toggle {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 6px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-ui);
  border-radius: 8px;
  border: 2px dashed #b8a070;
  background: linear-gradient(180deg, #fffef8 0%, #f5e9c8 100%);
  color: #4a3d28;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.btn-smiley-toggle:active {
  transform: scale(0.99);
}

.smiley-wrap {
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.compose-td-smiley-label {
  width: 80px;
  text-align: right;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 901px) {
  .btn-smiley-toggle {
    display: none !important;
  }

  .smiley-wrap {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

.ignore-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ignore-row input {
  width: 140px;
  max-width: 100%;
}

#ignore-list {
  margin-top: 10px;
}

/* ——— Chat layout (шапка, сетка, drawer, мобильная версия) ——— */
.chat-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #d4ecff 0%, #f0f6ff 40%, #fff 100%);
}

.chat-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #6aa9ff 0%, #5a8fd4 100%);
  border-bottom: 3px solid #2d5aa0;
  box-shadow: 0 2px 8px rgba(30, 60, 120, 0.2);
}

.chat-topbar__brand {
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  text-shadow: 1px 1px 0 #2d5aa0;
  letter-spacing: 0.02em;
}

.chat-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
}

.chat-topbar__link,
.chat-topbar__nav .link-admin {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-topbar__nav .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
}

.chat-topbar__admin {
  display: inline-flex;
  align-items: center;
}

.chat-shell {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 292px);
  gap: 10px;
  padding: 8px 10px 12px;
  box-sizing: border-box;
}

.chat-main-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-card-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-card-inner .section--public {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-card-inner .section--private {
  flex: 0 0 auto;
}

.chat-card-inner .compose-grid {
  flex-shrink: 0;
}

.chat-drawer-toggle {
  display: none;
}

.chat-drawer-backdrop {
  display: none;
}

.chat-drawer {
  min-height: 0;
  max-height: calc(100vh - 52px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--panel-edge);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(40, 90, 160, 0.12);
}

.chat-drawer__head {
  display: none;
}

.chat-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 14px;
}

.mode-block--drawer {
  border-style: solid;
}

/* Смайлики (база — до mobile-переопределений) */
.smiley-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, #fffef5 0%, #fff8dc 100%);
  border: 2px dashed #c9a86c;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.smiley-btn {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  min-width: 2.1em;
  padding: 2px 6px;
  margin: 0;
  border: 1px solid #b8a070;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffff8 0%, #f5e6c8 100%);
  cursor: pointer;
  line-height: 1.2;
  color: #3a3020;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.smiley-btn:hover {
  background: #fffacd;
  border-color: #8a7030;
}

.smiley-btn:active {
  transform: scale(0.96);
}

.smiley-btn--emoji {
  font-size: 1.15rem;
  line-height: 1.15;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  min-width: 2.35em;
  padding: 3px 5px;
}

@media (max-width: 900px) {
  .chat-shell {
    grid-template-columns: 1fr;
    padding: 4px 6px 8px;
    gap: 0;
  }

  .chat-drawer-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
  }

  .chat-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(20, 40, 70, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .chat-drawer-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
  }

  .chat-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 320px);
    max-height: none;
    z-index: 50;
    border-radius: 12px 0 0 12px;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
  }

  .chat-drawer--open {
    transform: translateX(0);
  }

  .chat-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-weight: 900;
    font-size: 13px;
    color: var(--chrome2);
    border-bottom: 2px solid #c5d8f0;
    flex-shrink: 0;
  }

  .chat-drawer__body {
    flex: 1;
    min-height: 0;
  }

  .msg-public {
    height: min(46vh, 420px);
    min-height: 140px;
    flex: 1 1 auto;
  }

  .msg-private {
    height: min(22vh, 160px);
    min-height: 72px;
    max-height: 180px;
  }

  .user-list {
    height: min(28vh, 220px);
  }

  .smiley-bar {
    max-height: 100px;
    padding: 6px 8px;
    gap: 3px 4px;
  }

  .smiley-btn {
    font-size: 12px;
    min-width: 1.85em;
    padding: 2px 4px;
  }

  .smiley-btn--emoji {
    font-size: 1rem;
    min-width: 2em;
    padding: 2px 4px;
  }

  .chat-topbar {
    padding: 6px 10px;
  }

  .chat-topbar__brand {
    font-size: 12px;
  }

  .compose-hint {
    display: none !important;
  }

  .chat-page .frame-outer {
    overflow: visible;
  }

  .chat-page .chat-card-inner {
    overflow: visible;
    min-height: 0;
  }

  .chat-page .chat-main-col {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chat-page .compose-grid,
  .chat-page .compose-grid tbody {
    display: block;
    width: 100%;
  }

  .chat-page .compose-grid tr {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    box-sizing: border-box;
  }

  .chat-page .compose-grid tr:last-child {
    margin-bottom: 0;
  }

  .chat-page .compose-grid td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
    vertical-align: top;
  }

  .chat-page .compose-grid td:first-child:not(.compose-td-full):not(.compose-actions) {
    width: 100% !important;
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--chrome2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: normal;
  }

  .compose-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }

  .compose-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 10px;
  }

  .compose-td-smiley-label {
    display: none;
  }

  .btn-smiley-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
  }

  .chat-page .smiley-wrap {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    transition: max-height 0.2s ease, box-shadow 0.2s ease;
  }

  .chat-page .smiley-wrap.smiley-wrap--open {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-height: min(48vh, 340px) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom, 12px));
    background: linear-gradient(180deg, #fffef8 0%, #fff8dc 100%);
    border: 2px solid #c9a86c;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
  }

  .chat-page .smiley-wrap--open .smiley-bar {
    max-height: none;
    margin: 0;
  }
}

.stat-box {
  padding: 10px 12px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 0%, #e8f2ff 100%);
  border: 2px solid var(--panel-edge);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(40, 90, 160, 0.1);
}
.stat-box b {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--chrome2);
}

.user-list {
  height: 196px;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #6a8ec4;
  border-radius: 8px;
  padding: 4px;
  font-size: 12px;
  font-weight: 700;
}

.user-list__row {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-list__gender {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  color: #2d4a78;
  width: 1.1em;
  text-align: center;
}

.user-list__nick {
  font-weight: 900;
  font-size: 13px;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.28);
  min-width: 0;
  word-break: break-all;
}

.user-list__row:hover {
  background: rgba(90, 143, 212, 0.28);
  box-shadow: inset 0 0 0 1px rgba(45, 90, 160, 0.25);
}

.user-list__row:hover .user-list__gender {
  color: #153a6b;
}

.mode-block {
  margin-top: 8px;
  font-size: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 2px dashed #9ab6dc;
  border-radius: 8px;
  font-weight: 600;
}

.mode-block label {
  display: inline-block;
  margin: 3px 0;
  cursor: pointer;
}

.small-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}

.welcome-lead {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--chrome2);
}

fieldset.fieldset-card {
  min-inline-size: 0;
  margin: 0;
  padding: 12px 14px 8px;
  border: 2px solid var(--panel-edge);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

fieldset.fieldset-card legend {
  font-weight: 800;
  padding: 0 8px;
  color: var(--chrome2);
}

.form-error {
  color: var(--danger);
  font-weight: 700;
  margin-top: 8px;
}

.form-error--ok {
  color: var(--ok);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--panel-edge);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 80, 140, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-weight: 600;
}
.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #c5d5ee;
  text-align: left;
}
.admin-table th {
  background: linear-gradient(180deg, #e8f2ff 0%, #c8daf0 100%);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chrome2);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:nth-child(even) td {
  background: #f6f9ff;
}
.admin-table tbody tr:hover td {
  background: #fff9e6;
}

.admin-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 12px;
  line-height: 1.45;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.admin-toolbar .small-note {
  flex: 1 1 200px;
  margin: 0;
}

.admin-subtitle {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--chrome2);
}

.admin-block-zone {
  border: 3px dashed #c44;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff0f0 0%, #ffe4e4 100%);
  min-height: 88px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.admin-block-zone--hover {
  border-color: #a22;
  box-shadow: inset 0 0 0 2px rgba(180, 40, 40, 0.2);
  background: #ffd6d6;
}

.admin-block-zone__title {
  font-weight: 800;
  font-size: 13px;
  color: #8a2020;
  margin-bottom: 10px;
}

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

.admin-blocked-empty {
  font-size: 12px;
  font-weight: 600;
  color: #a05050;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid #b44;
  background: #fff;
}

.admin-chip--blocked {
  color: #6a1515;
}

.admin-actions {
  white-space: nowrap;
  text-align: right;
}

.admin-draggable {
  cursor: grab;
}

.admin-draggable:active {
  cursor: grabbing;
}

.admin-dragging {
  opacity: 0.55;
}
