@import "../features/egg/egg.css";
@import "../phone/phone.css";
@import "../features/posts/posts.css";

:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --border: #222226;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #3b82f6;
  --scrollbar-track: #0d1018;
  --scrollbar-thumb: #2d4b8f;
  --scrollbar-thumb-hover: #4f74d6;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html {
  color-scheme: dark;
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  border: 3px solid var(--scrollbar-track);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--scrollbar-thumb), var(--scrollbar-thumb-hover));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover), #84a4ff);
}

body[data-embed="phone"] {
  background: transparent;
}

html[data-embed="phone"],
body[data-embed="phone"] {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-embed="phone"]::-webkit-scrollbar,
body[data-embed="phone"]::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

a { color: inherit; text-decoration: none; }
button, input, textarea {
  font: inherit;
  color: inherit;
}

.appRoot {
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 96px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 16px;
}

.topBar {
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 140;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

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

.brandLogo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.brandText {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.eggxWordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.46em;
  vertical-align: middle;
}

.eggxWordmarkLogo {
  width: 1.22em;
  height: 1.22em;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.eggxWordmarkText {
  line-height: 1;
}

.searchInput {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #101014;
  padding: 0 16px;
  outline: none;
}

.searchShell {
  position: relative;
  min-width: 0;
}

.searchShell .searchInput {
  width: 100%;
}

.appSearchDropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  max-height: min(68vh, 560px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(13, 14, 18, 0.98);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.46);
  padding: 10px;
}

.appSearchSection + .appSearchSection {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.appSearchSectionTitle {
  padding: 4px 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.appSearchItem {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.appSearchItem:hover,
.appSearchItem.isActive {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.appSearchEgg {
  width: 34px;
  height: 44px;
}

.appSearchItemCopy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.appSearchItemCopy strong,
.appSearchItemCopy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appSearchItemCopy span {
  color: var(--muted);
  font-size: 12px;
}

.appSearchEmpty {
  padding: 18px 14px;
  color: var(--muted);
  text-align: center;
}

.mainNav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.navBtn {
  min-width: 122px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #17171b;
  font-weight: 700;
  cursor: pointer;
}

.navBtn .eggxWordmark {
  gap: 8px;
  font-size: 15px;
}

.navBtn .eggxWordmarkLogo {
  width: 18px;
  height: 18px;
}

.cardTitle .eggxWordmarkLogo {
  width: 1.3em;
  height: 1.3em;
}

.navBtn.active {
  border-color: #3a3a42;
  background: #23232a;
}

.pageBody {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0f1014;
  padding: 16px;
  overflow: visible;
}

.appRoot--embed {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.pageBody--embed {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-embed="phone"] #app {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.pageBody--embed::-webkit-scrollbar,
body[data-embed="phone"]::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body[data-embed="phone"] {
  overflow: hidden;
}

.mainLayout {
  display: grid;
  grid-template-columns: 1fr minmax(660px, 760px) minmax(300px, 360px);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
}

.leftSpacer { min-height: 1px; }

.feedColumn,
.sidebarColumn {
  display: grid;
  gap: 16px;
  align-content: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.cardTitle {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.usernameMention {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.profileHero {
  min-height: 220px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 16px;
}

.tabRow {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.tabBtn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1b1b20;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.tabBtn.active { background: #292934; }

.feedComposer textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101014;
  padding: 12px;
}

.feedPost {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #111217;
}

.feedPostHeader {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.feedPostImage {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feedPostText { padding: 12px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.badgeEgg {
  width: 46px;
  height: 58px;
  border-radius: 50% / 60%;
  border: 1px solid #3a3a44;
  background: #0d0f15;
}

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

.btnPrimary,
.btnGhost {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btnPrimary {
  background: #2f6fed;
  border-color: #2f6fed;
  color: #fff;
  font-weight: 700;
}

.btnGhost { background: #17171b; }

.textMuted { color: var(--muted); }
.hidden { display: none !important; }

.staffTabletLauncher {
  position: fixed;
  right: clamp(12px, 1.7vw, 28px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: none;
  z-index: 330;
  width: 58px;
  height: 74px;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  border: 1px solid rgba(255, 216, 108, 0.74);
  background:
    radial-gradient(120% 120% at 16% 12%, rgba(255, 229, 142, 0.22), transparent 50%),
    linear-gradient(165deg, rgba(14, 18, 30, 0.99), rgba(9, 12, 22, 0.99));
  display: grid;
  place-items: center;
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 230, 153, 0.22) inset;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.staffTabletLauncher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 236, 170, 0.32) inset;
}

.staffTabletLauncher.isActive {
  filter: saturate(1.08) brightness(1.04);
}

.staffTabletLauncher.isHidden {
  display: none;
}

body[data-embed="phone"] .staffTabletLauncher,
body[data-embed="phone"] .staffTabletPanel {
  display: none !important;
}

.staffTabletLauncherLogo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(84%) sepia(50%) saturate(1492%)
    hue-rotate(335deg) brightness(103%) contrast(102%);
}

.staffTabletLauncherDot {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffd45b;
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.staffTabletBackdrop {
  position: fixed;
  inset: 0;
  z-index: 318;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

.staffTabletBackdrop.isOpen {
  opacity: 1;
  pointer-events: auto;
}

.staffTabletBackdrop.isHidden {
  display: none;
}

.staffTabletPanel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1120px, calc(100vw - 96px));
  max-height: calc(100vh - 74px);
  aspect-ratio: 4 / 3;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(140% 130% at 14% -8%, rgba(255, 206, 90, 0.2), transparent 44%),
    linear-gradient(176deg, rgba(22, 26, 40, 0.995), rgba(10, 12, 22, 0.995));
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 325;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 12px 14px;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 210ms ease;
  isolation: isolate;
}

.staffTabletPanel.isOpen {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.staffTabletPanel.isHidden {
  display: none;
}

.staffTabletCamera {
  justify-self: center;
  margin-top: 2px;
  margin-bottom: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(9, 10, 18, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 12px rgba(120, 155, 255, 0.22) inset;
  pointer-events: none;
}

.staffTabletViewport {
  min-height: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(120% 110% at 18% -10%, rgba(255, 214, 102, 0.12), transparent 42%),
    linear-gradient(166deg, rgba(10, 12, 20, 0.98), rgba(12, 16, 27, 0.985));
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.staffTabletHomeBar {
  justify-self: center;
  width: min(180px, 22%);
  height: 5px;
  border-radius: 999px;
  margin-top: 10px;
  margin-bottom: 2px;
  background: rgba(255, 255, 255, 0.26);
}

.staffTabletHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staffTabletHead h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.staffTabletHead p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(236, 240, 255, 0.72);
}

.staffTabletHeadActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staffTabletRole {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 225, 115, 0.38);
  background: rgba(255, 193, 67, 0.16);
  color: rgba(255, 232, 160, 0.96);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.staffTabletRole img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.staffTabletCloseBtn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 7px 11px;
  color: rgba(238, 242, 255, 0.9);
  font-weight: 700;
  cursor: pointer;
}

.staffTabletCloseBtn[aria-pressed="true"] {
  border-color: rgba(255, 210, 92, 0.52);
  background: rgba(255, 196, 78, 0.16);
  color: rgba(255, 236, 184, 0.98);
}

.staffTabletFilters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 116px;
  gap: 8px;
}

.staffTabletFilters input,
.staffTabletFilters select,
.staffTabletFilters button {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 244, 255, 0.95);
  padding: 0 10px;
}

.staffTabletFilters select,
.staffTabletLine select {
  color-scheme: dark;
}

.staffTabletFilters select option,
.staffTabletLine select option {
  background: #0d1422;
  color: rgba(238, 244, 255, 0.98);
}

.staffTabletFilters button {
  background: linear-gradient(160deg, rgba(255, 194, 80, 0.28), rgba(255, 163, 44, 0.22));
  border-color: rgba(255, 211, 95, 0.38);
  font-weight: 700;
  cursor: pointer;
}

.staffTabletSummary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(226, 233, 255, 0.86);
  background: rgba(255, 255, 255, 0.03);
}

.staffTabletBody {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 12px;
}

.staffTabletWhitelistWrap {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(13, 18, 30, 0.86), rgba(8, 12, 20, 0.72));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.staffTabletWhitelistFrame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

.staffTabletPanel.isWhitelistMode .staffTabletFilters,
.staffTabletPanel.isWhitelistMode .staffTabletSummary,
.staffTabletPanel.isWhitelistMode .staffTabletBody {
  display: none;
}

.staffTabletPanel.isWhitelistMode .staffTabletViewport {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.staffTabletPanel.isWhitelistMode .staffTabletWhitelistWrap {
  min-height: 0;
}

.staffTabletListWrap,
.staffTabletDetailWrap {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(170deg, rgba(13, 18, 30, 0.82), rgba(8, 12, 20, 0.68));
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.staffTabletListWrap h3,
.staffTabletDetailWrap h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 239, 255, 0.76);
}

.staffTabletList,
.staffTabletDetail {
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
  display: grid;
  align-content: start;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.staffTabletEmpty {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  color: rgba(232, 237, 255, 0.72);
}

.staffTabletReportRow {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}

.staffTabletReportRow.isActive {
  border-color: rgba(255, 212, 94, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 213, 113, 0.18) inset;
  background: rgba(255, 201, 72, 0.08);
}

.staffTabletReportTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staffTabletTag {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staffTabletReportMeta {
  color: rgba(229, 234, 255, 0.72);
  font-size: 11px;
}

.staffTabletDetailCard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  padding: 10px;
  display: grid;
  gap: 8px;
}

.staffTabletDetailHead,
.staffTabletLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staffTabletLine span,
.staffTabletBlock span {
  color: rgba(228, 234, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.staffTabletLine strong {
  font-size: 12px;
  font-weight: 700;
  color: rgba(243, 247, 255, 0.92);
}

.staffTabletBlock p {
  margin: 0;
  font-size: 12px;
  color: rgba(237, 242, 255, 0.86);
  line-height: 1.35;
  white-space: pre-wrap;
}

.staffTabletActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.staffTabletActions button,
.staffTabletMacros button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  color: rgba(236, 241, 255, 0.92);
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

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

.staffTabletMacros button span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.staffTabletMacros button small {
  display: block;
  margin-top: 2px;
  color: rgba(224, 230, 255, 0.72);
  font-size: 11px;
  line-height: 1.25;
}

.staffTabletAdminTools strong {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.staffTabletSearchRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.staffTabletSearchRow input,
.staffTabletSearchRow button,
.staffTabletLine select,
.staffTabletAdminReason {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 244, 255, 0.96);
}

.staffTabletSearchRow input,
.staffTabletLine select {
  height: 34px;
  padding: 0 10px;
}

.staffTabletSearchRow button {
  height: 34px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.staffTabletFieldBlock > button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 241, 255, 0.92);
  font-weight: 700;
  cursor: pointer;
}

.staffTabletTimelineList {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 180px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 6px;
}

.staffTabletTimelineRow {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 8px;
  display: grid;
  gap: 4px;
}

.staffTabletTimelineTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.staffTabletTimelineTop strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 248, 255, 0.96);
}

.staffTabletTimelineTop span {
  color: rgba(224, 231, 255, 0.68);
}

.staffTabletTimelineMeta {
  display: grid;
  gap: 2px;
  font-size: 10px;
  color: rgba(224, 231, 255, 0.68);
}

.staffTabletTimelineRow p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(236, 241, 255, 0.86);
}

.staffTabletAdminReason {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  padding: 8px 10px;
  font: inherit;
}

.staffTabletUserResults {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 168px;
  overflow: auto;
  padding: 6px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.staffTabletUserBtn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  padding: 7px 8px;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.staffTabletUserBtnTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staffTabletUserResultAvatar {
  width: 28px;
  height: 36px;
  border-radius: 46% 46% 54% 54% / 58% 58% 42% 42%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
}

.staffTabletRolePill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 211, 102, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 192, 70, 0.15);
  color: rgba(255, 234, 187, 0.95);
  width: fit-content;
}

.staffTabletRolePill em {
  font-style: normal;
}

.staffTabletRolePillIcon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.42));
}

.staffTabletRolePill.isSmall {
  padding: 1px 5px;
  font-size: 9px;
}

.staffTabletRolePill.isSmall .staffTabletRolePillIcon {
  width: 13px;
  height: 13px;
}

.staffTabletUserBtn strong {
  font-size: 12px;
  font-weight: 700;
  color: rgba(243, 247, 255, 0.95);
}

.staffTabletUserBtn small {
  color: rgba(224, 231, 255, 0.66);
  font-size: 10px;
}

.staffTabletUserBtn.isActive {
  border-color: rgba(255, 212, 94, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 212, 94, 0.22) inset;
  background: rgba(255, 198, 72, 0.1);
}

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

.staffTabletActionGrid button {
  min-height: 58px;
  text-align: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.staffTabletUserProfileCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.staffTabletUserHead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staffTabletUserAvatar {
  width: 54px;
  height: 70px;
  border-radius: 46% 46% 54% 54% / 58% 58% 42% 42%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.38);
}

.staffTabletUserHeadCopy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.staffTabletUserHeadCopy strong {
  font-size: 12px;
  color: rgba(245, 248, 255, 0.96);
}

.staffTabletUserHeadCopy small {
  font-size: 10px;
  color: rgba(220, 230, 255, 0.68);
}

.staffTabletUserStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.staffTabletUserStats > div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 7px;
  display: grid;
  gap: 2px;
}

.staffTabletUserStats span {
  font-size: 10px;
  color: rgba(220, 230, 255, 0.68);
}

.staffTabletUserStats strong {
  font-size: 13px;
  color: rgba(244, 247, 255, 0.95);
}

.staffTabletBadgeList {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.staffTabletBadgeChip {
  border: 1px solid rgba(255, 214, 116, 0.34);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  background: rgba(255, 204, 102, 0.1);
  color: rgba(255, 236, 194, 0.95);
}

.staffTabletRoleButtons {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staffTabletRoleButtons button {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 244, 255, 0.94);
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
}

.staffTabletRoleButtons button.isActive {
  border-color: rgba(255, 208, 95, 0.62);
  background: rgba(255, 191, 67, 0.18);
  color: rgba(255, 240, 211, 0.98);
}

.staffTabletActions button.isDanger {
  border-color: rgba(255, 135, 135, 0.35);
  color: rgba(255, 202, 202, 0.95);
  background: rgba(112, 29, 38, 0.35);
}

@media (max-width: 900px) {
  .staffTabletActionGrid {
    grid-template-columns: 1fr;
  }

  .staffTabletRoleButtons {
    justify-content: flex-start;
  }
}

@supports (height: 100dvh) {
  .staffTabletPanel {
    max-height: calc(100dvh - 74px);
  }
}

@media (max-width: 1100px) {
  .staffTabletPanel {
    width: min(100vw - 64px, 980px);
    max-height: calc(100vh - 50px);
  }

  .staffTabletBody {
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 900px) {
  .staffTabletLauncher {
    width: 52px;
    height: 66px;
  }

  .staffTabletPanel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 22px);
    border-radius: 28px;
    padding: 10px;
  }

  .staffTabletViewport {
    border-radius: 22px;
    padding: 10px;
  }

  .staffTabletFilters {
    grid-template-columns: minmax(0, 1fr) 120px 94px;
    gap: 6px;
  }

  .staffTabletBody {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 0.9fr) minmax(220px, 1.1fr);
  }
}

@media (max-width: 1200px) {
  .appRoot { min-height: 100vh; }
  .topBar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px;
  }
  .mainLayout { grid-template-columns: 1fr; }
  .leftSpacer { display: none; }
}
