:root {
  --bg: #05070c;
  --panel: #0b111b;
  --panel-2: #101824;
  --panel-3: #151f2d;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #edf4ff;
  --muted: #95a3b8;
  --soft: #657184;
  --gold: #ffb300;
  --gold-soft: rgba(255, 179, 0, .14);
  --green: #5ee092;
  --green-soft: rgba(94, 224, 146, .12);
  --blue: #38c9ff;
  --blue-soft: rgba(56, 201, 255, .12);
  --red: #ff5b77;
  --red-soft: rgba(255, 91, 119, .12);
  --violet: #b99cff;
  --violet-soft: rgba(185, 156, 255, .12);
  --radius: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 179, 0, .08), transparent 34%),
    linear-gradient(315deg, rgba(56, 201, 255, .07), transparent 32%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: rgba(5, 7, 12, .82);
  border-right: 1px solid var(--line);
}

.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ops-map {
  width: min(780px, calc(100% - 56px));
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 10px;
  transform: rotate(-2deg);
}

.sector {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 36, .88), rgba(8, 13, 22, .74));
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.sector:nth-child(2n) {
  transform: translateY(18px);
}

.sector.hot {
  border-color: rgba(255, 179, 0, .34);
  background: linear-gradient(180deg, rgba(255, 179, 0, .12), rgba(8, 13, 22, .78));
}

.sector.ok {
  border-color: rgba(94, 224, 146, .28);
}

.sector b {
  font-size: 12px;
}

.sector span {
  color: var(--muted);
  font-size: 11px;
}

.brand-mark {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #ffe1a0;
  background: var(--gold-soft);
  border: 1px solid rgba(255, 179, 0, .34);
  font-weight: 950;
}

.brand-mark b {
  display: block;
  font-size: 17px;
  letter-spacing: .08em;
}

.brand-mark span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.auth-panel h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.04;
  max-width: 460px;
}

.auth-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.58;
  max-width: 470px;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  max-width: 340px;
}

.login-page {
  min-height: 100vh;
  padding: 26px 40px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(0, 170, 190, .12), transparent 38%),
    linear-gradient(135deg, #03070a 0%, #070b12 56%, #111425 100%);
}

.login-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .8fr);
  gap: 22px;
}

.login-info,
.login-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 25, 36, .72), rgba(7, 11, 18, .78));
  box-shadow: var(--shadow);
}

.login-info {
  padding: 42px;
}

.login-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(56, 201, 255, .34);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(56, 201, 255, .1);
  color: #66d6ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-info h1 {
  margin: 22px 0 10px;
  font-size: clamp(42px, 5vw, 58px);
  line-height: .98;
}

.login-info > p {
  max-width: 650px;
  margin: 0;
  color: #b6c1d0;
  font-size: 16px;
  line-height: 1.65;
}

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

.login-feature {
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 31, 43, .78), rgba(11, 16, 24, .74));
  padding: 18px;
}

.login-feature span,
.login-globe {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(56, 201, 255, .28);
  background: rgba(56, 201, 255, .1);
  color: #75d8ff;
  font-weight: 950;
}

.login-feature h3 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.login-feature p,
.oauth-box p,
.discord-help p {
  margin: 0;
  color: #aeb8c7;
  font-size: 13px;
  line-height: 1.55;
}

.login-card {
  padding: 48px 24px 36px;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 2px 26px;
}

.login-brand-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.login-brand-row strong span {
  color: var(--blue);
}

.login-brand-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.oauth-box,
.discord-help {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
  padding: 20px 22px;
}

.oauth-box h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.oauth-button {
  width: 100%;
  min-height: 48px;
  margin: 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-weight: 900;
}

.login-checks {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b6c1d0;
  font-size: 13px;
}

.login-checks li::before {
  content: "✓";
  color: var(--green);
  margin-right: 10px;
  font-weight: 950;
}

.discord-help {
  margin-top: 14px;
}

.discord-help h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.link-button {
  border: 0;
  background: transparent;
  color: #66d6ff;
  padding: 13px 0 0;
  font-weight: 900;
}

.discord-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(88, 101, 242, .45);
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(180deg, #5865f2, #4450d7);
  font-weight: 850;
}

.ghost-btn,
.btn,
.icon-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  text-decoration: none;
}

.ghost-btn {
  min-height: 42px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  transition: grid-template-columns .18s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: rgba(4, 6, 11, .88);
  overflow: hidden;
  position: sticky;
}

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

.sidebar-brand {
  min-width: 0;
  margin-bottom: 0;
}

.brand-text {
  min-width: 0;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.server-select-wrap {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  padding: 10px;
  color: var(--text);
  text-align: left;
}

.server-bot,
.collapsed-server {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(56, 201, 255, .24);
  background: rgba(56, 201, 255, .1);
}

.server-selected {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.server-caret {
  color: var(--muted);
  font-size: 12px;
}

.server-picker {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, .018);
}

.server-picker.open {
  border-color: rgba(56, 201, 255, .25);
  box-shadow: inset 0 0 0 1px rgba(56, 201, 255, .1);
}

.server-picker.open .server-select-wrap {
  border-color: rgba(56, 201, 255, .48);
  background: rgba(56, 201, 255, .08);
  box-shadow: 0 0 0 1px rgba(56, 201, 255, .12);
}

.server-menu {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 10px;
}

.server-menu-label {
  color: var(--muted);
  font-size: 12px;
  margin: 0 6px 8px;
}

.server-options {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 4px;
}

.server-options::-webkit-scrollbar,
.nav::-webkit-scrollbar {
  width: 5px;
}

.server-options::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .28);
  border-radius: 99px;
}

.server-option {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
}

.server-option span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-option.active,
.server-option:hover {
  border-color: rgba(56, 201, 255, .35);
  background: rgba(56, 201, 255, .12);
}

.server-option b {
  color: var(--blue);
}

.server-option-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
}

.collapsed-server {
  display: none;
  margin: 0 auto;
}

.nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav h3 {
  margin: 12px 8px 3px;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: #ffe2a0;
  border-color: rgba(255, 179, 0, .24);
  background: var(--gold-soft);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #dce8fb;
  background: rgba(255, 255, 255, .045);
  font-size: 12px;
  font-weight: 900;
}


.nav-icon i{font-size:13px;line-height:1;}
.btn i{line-height:1;flex:0 0 auto;}
.nav small {
  color: var(--soft);
  font-size: 11px;
}

.sidebar-foot {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  text-align: left;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sidebar-foot:hover {
  border-color: rgba(255, 179, 0, .26);
  background: rgba(255, 179, 0, .055);
}

.profile-popover {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 108px;
  z-index: 10;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #070c16;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  padding: 8px;
}

.profile-popover button,
.profile-popover-link {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.profile-popover button:hover,
.profile-popover-link:hover {
  background: rgba(56, 201, 255, .08);
  color: var(--text);
}

.sidebar-foot b {
  display: block;
  font-size: 13px;
}

.sidebar-foot span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-foot small {
  color: var(--muted);
}

.user-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 179, 0, .3);
  background: radial-gradient(circle, rgba(255, 179, 0, .24), rgba(56, 201, 255, .08));
  color: #ffe1a0;
  font-weight: 950;
  font-size: 12px;
}

.sidebar-collapsed .sidebar {
  align-items: center;
  padding: 14px 10px;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .server-picker,
  .sidebar-collapsed .nav h3,
.sidebar-collapsed .nav a span:not(.nav-icon),
.sidebar-collapsed .nav small,
.sidebar-collapsed .sidebar-foot,
.sidebar-collapsed .profile-popover {
  display: none;
}

.sidebar-collapsed .sidebar-top {
  flex-direction: column;
}

.sidebar-collapsed .sidebar-toggle {
  width: 38px;
  height: 30px;
  border-radius: 12px;
}

.sidebar-collapsed .collapsed-server {
  display: grid;
}

.sidebar-collapsed .nav {
  width: 100%;
  align-items: center;
  overflow: visible;
  padding-right: 0;
}

.sidebar-collapsed .nav a {
  width: 48px;
  height: 48px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 9px;
}

.main {
  min-width: 0;
  padding: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.eyebrow {
  color: #ffd777;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.btn,
.icon-btn {
  min-height: 38px;
  padding: 8px 11px;
}

.icon-btn {
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  font-weight: 900;
}

.btn.primary {
  border-color: rgba(255, 179, 0, .34);
  background: linear-gradient(180deg, rgba(255, 179, 0, .2), rgba(255, 179, 0, .08));
  color: #ffe1a0;
  font-weight: 800;
}

.btn.blue {
  border-color: rgba(56, 201, 255, .34);
  background: var(--blue-soft);
  color: #d9f8ff;
}

.btn.danger {
  border-color: rgba(255, 91, 119, .36);
  background: var(--red-soft);
  color: #ffc7d0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}

.ops-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .95fr);
  gap: 12px;
  margin-bottom: 14px;
}

.ops-hero-card {
  min-height: 174px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(10, 16, 26, .72));
  box-shadow: var(--shadow);
  padding: 18px;
}

.ops-hero-card .kicker {
  border-color: rgba(255, 179, 0, .34);
  background: var(--gold-soft);
  color: #ffe1a0;
}

.ops-hero-card h2 {
  max-width: 820px;
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.ops-hero-card p {
  max-width: 890px;
  margin: 0;
  color: #b7c8df;
  font-size: 13px;
  line-height: 1.55;
}

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

.ops-metric {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ops-region-list {
  gap: 12px;
}

.ops-region {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 9, 16, .34);
  overflow: hidden;
}

.ops-region-head {
  min-height: 50px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.ops-region-head h3 {
  margin: 0;
  font-size: 15px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 14px;
}

.panel,
.metric,
.module-card,
.profile-block,
.tool-card,
.user-card,
.admin-row,
.task-row,
.stock-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(10, 16, 26, .72));
  box-shadow: var(--shadow);
}

.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.panel-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.panel-body {
  padding: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  padding: 13px;
  box-shadow: none;
}

.metric strong {
  display: block;
  font-size: 26px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

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

.module-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  min-height: 130px;
  text-decoration: none;
  color: var(--text);
  box-shadow: none;
}

.module-card:hover,
.tool-card:hover,
.stock-row:hover,
.task-row:hover {
  border-color: rgba(255, 179, 0, .25);
  background: linear-gradient(180deg, rgba(255, 179, 0, .08), rgba(10, 16, 26, .74));
}

.module-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.module-card h3,
.tool-card h3,
.profile-block h3 {
  margin: 0;
  font-size: 15px;
}

.module-card p,
.tool-card p,
.profile-block p,
.admin-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(94, 224, 146, .8);
}

.map-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.map-cell {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, .025);
}

.map-cell b {
  display: block;
  font-size: 12px;
}

.map-cell span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.map-cell.alert {
  border-color: rgba(255, 179, 0, .34);
  background: rgba(255, 179, 0, .08);
}

.activity {
  display: grid;
  gap: 9px;
}

.activity-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

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

.activity-line {
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--gold);
}

.activity-item.blue .activity-line {
  background: var(--blue);
}

.activity-item.green .activity-line {
  background: var(--green);
}

.activity-item.red .activity-line {
  background: var(--red);
}

.activity-item b {
  display: block;
  font-size: 13px;
}

.activity-item span,
.activity-item time {
  color: var(--muted);
  font-size: 12px;
}

.search,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 7, 12, .55);
  color: var(--text);
  outline: 0;
  padding: 10px 11px;
}

.search {
  margin-bottom: 10px;
}

.filter-list {
  display: grid;
  gap: 7px;
}

.filter-btn {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  padding: 8px 10px;
}

.filter-btn.active {
  color: #ffe1a0;
  border-color: rgba(255, 179, 0, .28);
  background: var(--gold-soft);
}

.filter-btn span {
  color: var(--soft);
  font-size: 12px;
}

.table-head,
.stock-row {
  display: grid;
  grid-template-columns: 78px minmax(150px, 1.2fr) minmax(104px, .75fr) minmax(118px, .85fr) minmax(82px, .62fr) minmax(104px, .75fr) 44px;
  gap: 10px;
  align-items: center;
}

.table-head {
  padding: 9px 12px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stock-list,
.task-list,
.tool-list,
.admin-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.stock-row {
  min-height: 66px;
  padding: 11px 12px;
  box-shadow: none;
}

.ops-stock-head,
.ops-stock-row {
  grid-template-columns: 112px minmax(142px, 1.1fr) minmax(112px, .78fr) minmax(116px, .82fr) minmax(74px, .58fr) minmax(104px, .78fr) minmax(112px, .78fr) 72px;
}

.ops-stock-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  background: rgba(0, 0, 0, .12);
}

.ops-stock-row {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .08);
  box-shadow: none;
}

.ops-stock-row:last-child {
  border-bottom: 0;
}

.ops-stock-row.danger-row {
  background: linear-gradient(90deg, rgba(255, 91, 119, .18), rgba(10, 16, 26, .72));
  box-shadow: inset 4px 0 0 var(--red);
}

.stock-code-cell,
.task-id-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.letter-chip {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 179, 0, .28);
  background: var(--gold-soft);
  color: #ffe1a0;
  font-size: 12px;
  font-weight: 950;
}

.group-chip {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  min-height: 26px;
  border: 1px solid rgba(255, 179, 0, .3);
  border-radius: 999px;
  background: rgba(255, 179, 0, .12);
  color: #ffe1a0;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extend-btn {
  min-height: 34px;
  padding: 7px 10px;
  color: #ffe1a0;
  border-color: rgba(255, 179, 0, .28);
  background: rgba(255, 179, 0, .1);
  font-weight: 950;
}

.code-chip,
.id-chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.code-chip,
.id-chip {
  min-height: 30px;
  padding: 0 8px;
  color: #ffe1a0;
  background: var(--gold-soft);
  border-color: rgba(255, 179, 0, .25);
  font-weight: 900;
  font-size: 12px;
}

.main-line b,
.meta-line b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-line span,
.meta-line span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pill.gold {
  color: #ffe1a0;
  border-color: rgba(255, 179, 0, .25);
  background: var(--gold-soft);
}

.pill.green {
  color: #baffd4;
  border-color: rgba(94, 224, 146, .25);
  background: var(--green-soft);
}

.pill.blue {
  color: #c8f4ff;
  border-color: rgba(56, 201, 255, .25);
  background: var(--blue-soft);
}

.pill.red {
  color: #ffc7d0;
  border-color: rgba(255, 91, 119, .28);
  background: var(--red-soft);
}

.pill.violet {
  color: #e5d8ff;
  border-color: rgba(185, 156, 255, .28);
  background: var(--violet-soft);
}

.expiry {
  position: relative;
  padding-left: 10px;
}

.expiry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: var(--green);
}

.expiry.soon::before {
  background: var(--gold);
}

.expiry.expired::before {
  background: var(--red);
}

.task-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) minmax(170px, .8fr) minmax(130px, .65fr) 120px 128px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  box-shadow: none;
}

.task-table-head,
.ops-task-row {
  display: grid;
  grid-template-columns: 86px minmax(142px, 1fr) minmax(138px, .85fr) minmax(106px, .68fr) 104px 184px;
  gap: 12px;
  align-items: center;
}

.task-table-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  color: var(--soft);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .12);
}

.ops-task-row {
  min-height: 62px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .08);
  box-shadow: none;
}

.ops-task-row:last-child {
  border-bottom: 0;
}

.select-visible {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  color: var(--text);
  font-weight: 800;
}

.priority-line {
  position: relative;
  padding-left: 10px;
}

.priority-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 4px;
  background: var(--blue);
}

.priority-line.urgent::before {
  background: var(--red);
}

.priority-line.high::before {
  background: var(--gold);
}

.priority-line.long::before {
  background: var(--violet);
}

.task-row.done {
  opacity: .64;
}

.tool-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}

.tool-card {
  padding: 13px;
  box-shadow: none;
}

.tool-card.active {
  border-color: rgba(56, 201, 255, .34);
  background: var(--blue-soft);
}

.iframe-frame {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #060a11;
}

.iframe-frame iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
  display: block;
  background: #07101b;
}

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

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 14px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(10, 16, 26, .72));
}

.avatar-large {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 179, 0, .28);
  color: #ffe1a0;
  background: var(--gold-soft);
  font-size: 24px;
  font-weight: 950;
}

.profile-card h2 {
  margin: 13px 0 4px;
  font-size: 22px;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
}

.profile-block {
  padding: 14px;
  box-shadow: none;
}

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

.user-card {
  padding: 13px;
  box-shadow: none;
}

.user-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.user-card h3 {
  margin: 0;
  font-size: 14px;
}

.user-card small {
  color: var(--muted);
}

.access-matrix {
  display: grid;
  gap: 8px;
}

.matrix-row,
.admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(72px, auto));
  gap: 8px;
  align-items: center;
  padding: 10px;
  box-shadow: none;
}

.matrix-row.header {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: transparent;
  border: 0;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--soft);
}

.check.on {
  color: #baffd4;
  border-color: rgba(94, 224, 146, .28);
  background: var(--green-soft);
}

.admin-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  min-height: 38px;
  padding: 8px 10px;
}

.admin-tab.active {
  color: #d9f8ff;
  border-color: rgba(56, 201, 255, .32);
  background: var(--blue-soft);
}

.user-admin-console {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-server-rail {
  position: sticky;
  top: 18px;
}

.admin-server-list {
  display: grid;
  gap: 8px;
}

.admin-server-card {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.admin-server-card.active,
.admin-server-card:hover {
  border-color: rgba(56, 201, 255, .36);
  background: rgba(56, 201, 255, .1);
}

.admin-server-card b,
.admin-server-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-server-card small {
  color: var(--muted);
  margin-top: 2px;
}

.admin-server-card strong {
  color: var(--blue);
}

.danger-zone-lite {
  margin-top: 14px;
  border: 1px solid rgba(255, 91, 119, .25);
  border-radius: var(--radius);
  background: rgba(255, 91, 119, .065);
  padding: 12px;
}

.danger-zone-lite b {
  display: block;
  color: #ffc7d0;
}

.danger-zone-lite p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-workspace {
  min-width: 0;
}

.admin-workspace-head {
  align-items: flex-start;
}

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

.admin-tabs-modern {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(0, 0, 0, .16);
}

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

.admin-panel-block,
.admin-module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  padding: 14px;
}

.admin-panel-block.span-2 {
  grid-column: 1 / -1;
}

.admin-panel-block h3,
.admin-module-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.admin-panel-block p,
.admin-module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-linked-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.admin-linked-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  background: rgba(0, 0, 0, .12);
  padding: 9px 10px;
}

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

.admin-user-table,
.role-map-list {
  display: grid;
  gap: 7px;
}

.admin-user-row,
.role-map-row {
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .12);
  padding: 10px;
}

.admin-user-row {
  grid-template-columns: minmax(170px, 1.1fr) 120px 96px minmax(160px, 1fr) 86px;
}

.role-map-row {
  grid-template-columns: minmax(150px, 1fr) 22px 150px minmax(180px, 1fr) 70px;
}

.admin-user-row.head {
  color: var(--soft);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 0;
}

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

.admin-user-main b,
.admin-user-main small,
.role-map-row b,
.role-map-row small {
  display: block;
}

.admin-user-main small,
.role-map-row small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.user-avatar.mini {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 11px;
  flex: 0 0 auto;
}

.admin-module-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-module-card.disabled {
  opacity: .58;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: .16s ease;
}

.toggle input:checked + span {
  border-color: rgba(94, 224, 146, .34);
  background: rgba(94, 224, 146, .14);
}

.toggle input:checked + span::after {
  left: 24px;
  background: var(--green);
}

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

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.form-grid {
  display: grid;
  gap: 11px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .48);
}

.drawer {
  position: fixed;
  inset: 16px 16px 16px auto;
  z-index: 21;
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0a1019;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .64);
  overflow: auto;
}

.drawer .panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101824;
}

.detail-stack {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-value {
  color: #dce8fb;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.38;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border: 1px solid rgba(255, 179, 0, .28);
  border-radius: var(--radius);
  background: #0d1420;
  color: #ffe1a0;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: .18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(7, 11, 19, .28);
}

.concept-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(7, 11, 19, .28);
}

.admin-live-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-live-servers {
  position: sticky;
  top: 18px;
}

.admin-live-card,
.admin-live-main,
.admin-live-panel,
.admin-modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 39, .96), rgba(8, 14, 22, .96));
  box-shadow: var(--shadow);
}

.admin-live-card {
  padding: 16px;
}

.admin-live-kicker {
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.admin-search {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--soft);
}

.admin-search.wide {
  margin-bottom: 12px;
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.admin-live-server-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.admin-live-server {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(5, 11, 18, .42);
  color: var(--text);
  text-align: left;
}

.admin-live-server:hover,
.admin-live-server.active {
  border-color: rgba(56, 201, 255, .45);
  background: rgba(56, 201, 255, .12);
}

.admin-live-server-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .055);
}

.admin-live-server b,
.admin-live-server small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-live-server small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.admin-live-server em {
  color: var(--blue);
  font-style: normal;
}

.admin-add-server {
  width: 100%;
  justify-content: center;
}

.admin-live-main {
  min-width: 0;
  padding: 20px;
}

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

.admin-live-header h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.admin-live-header h2 span {
  color: var(--blue);
}

.admin-live-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-live-status {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .16);
  padding: 12px;
}

.admin-live-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(94, 224, 146, .65);
}

.admin-live-status b,
.admin-live-status small {
  display: block;
}

.admin-live-status small {
  color: var(--muted);
  font-size: 12px;
}

.admin-live-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .12));
  padding: 10px;
  margin-bottom: 28px;
}

.admin-live-tabs .admin-tab {
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 850;
  font-size: 13px;
  white-space: nowrap;
}

.admin-live-panel {
  padding: 16px;
}

.admin-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel-title h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-panel-title p,
.admin-panel-title span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.role-access-table {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .12);
}

.role-access-head,
.role-access-row {
  display: grid;
  grid-template-columns: 135px minmax(135px, 1fr) 150px 175px;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
}

.role-access-head {
  color: var(--soft);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.role-access-row {
  min-height: 60px;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.role-access-row > span:first-child {
  color: var(--soft);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.access-pill {
  width: fit-content;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, .18);
  font-size: 12px;
  font-weight: 850;
}

.access-pill.green {
  color: #bfffe1;
  border-color: rgba(94, 224, 146, .32);
  background: rgba(94, 224, 146, .12);
}

.access-pill.violet {
  color: #ded0ff;
  border-color: rgba(167, 139, 250, .34);
  background: rgba(167, 139, 250, .12);
}

.access-pill.red {
  color: #ffd1d9;
  border-color: rgba(255, 91, 119, .34);
  background: rgba(255, 91, 119, .12);
}

.access-select,
.select-like,
.server-select-large {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  text-align: left;
}

.admin-stock-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-stock-group,
.admin-subpanel,
.reset-card,
.role-picker-demo {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(5, 11, 18, .36);
  padding: 14px;
}

.admin-stock-group {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.admin-stock-group h4 {
  margin: 0 0 14px;
  font-size: 16px;
}

.admin-stock-group span,
.admin-subpanel p,
.reset-card p {
  color: var(--muted);
  font-size: 12px;
}

.admin-tip,
.admin-warning {
  margin-top: 14px;
  border-radius: 8px;
  padding: 13px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.admin-tip {
  border: 1px solid rgba(56, 201, 255, .26);
  background: rgba(56, 201, 255, .1);
}

.admin-warning {
  border: 1px solid rgba(255, 179, 0, .35);
  background: rgba(255, 179, 0, .1);
}

.admin-tip span,
.admin-warning span {
  color: var(--muted);
  font-size: 12px;
}

.task-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.admin-setting-block label,
.modal-grid label,
.admin-modal > label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.admin-setting-block input,
.modal-grid input,
.xp-row input,
.extra-setting input {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  padding: 0 12px;
}

.admin-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
}

.admin-subpanel {
  margin-top: 14px;
}

.xp-row,
.extra-setting {
  display: grid;
  grid-template-columns: 220px 120px minmax(180px, 1fr) 92px 34px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.xp-row label {
  display: grid;
  gap: 4px;
  color: var(--soft);
  font-size: 11px;
}

.extra-setting {
  grid-template-columns: 220px minmax(180px, 1fr) 100px 100px;
}

.extra-setting span {
  justify-self: end;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
}

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

.reset-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.reset-card h4 {
  margin: 0;
  font-size: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(7px);
  padding: 18px;
}

.admin-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  position: relative;
}

.admin-modal.compact {
  width: min(560px, 100%);
}

.admin-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.admin-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 22px;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 18px;
}

.role-picker-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.role-picker-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  padding: 7px 12px;
  font-weight: 850;
}

.role-picker-tabs button.active {
  border-color: rgba(56, 201, 255, .34);
  color: #d9f8ff;
  background: rgba(56, 201, 255, .13);
}

.role-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: var(--text);
}

.server-select-large {
  margin: 8px 0;
}

.modal-server-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.modal-server-list .admin-search {
  border-radius: 0;
  border-width: 0 0 1px;
}

.modal-server-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.modal-server-list b,
.modal-server-list small {
  display: block;
}

.modal-server-list small {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

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

  .dashboard-grid,
  .split-grid,
  .profile-grid,
  .tool-shell,
  .ops-hero-grid,
  .user-admin-console,
  .admin-live-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-server-rail,
  .admin-live-servers {
    position: static;
  }

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

  .admin-user-row,
  .role-map-row,
  .role-access-head,
  .role-access-row,
  .xp-row,
  .extra-setting {
    grid-template-columns: 1fr;
  }

  .admin-user-row.head,
  .role-access-head {
    display: none;
  }

  .admin-stock-group-grid,
  .task-settings-grid,
  .reset-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-live-tabs {
    flex-wrap: wrap;
  }

  .admin-live-tabs .admin-tab {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 920px) {
  .auth-shell,
  .app-shell,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    border-right: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 10px;
    padding: 12px;
  }

  .sidebar .brand-mark {
    margin-bottom: 4px;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav h3,
  .nav small,
  .sidebar-foot {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    grid-template-columns: 28px auto;
    min-width: max-content;
  }

  .main {
    padding: 12px;
  }

  .table-head {
    display: none;
  }

  .task-table-head,
  .ops-stock-head {
    display: none;
  }

  .stock-row,
  .task-row,
  .ops-stock-row,
  .ops-task-row,
  .matrix-row,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .stock-row > *,
  .task-row > * {
    min-width: 0;
  }

  .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .dashboard-today-list.compact {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-card-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 28px 18px;
  }

  .login-page {
    padding: 14px;
  }

  .login-info,
  .login-card {
    border-radius: 18px;
    padding: 22px;
  }

  .login-feature-grid,
  .ops-stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .metrics,
  .module-grid,
  .user-grid,
  .map-board,
  .admin-summary-grid,
  .admin-section-grid {
    grid-template-columns: 1fr;
  }

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

/* Dashboard modernization v2 */
.dash-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  margin-bottom: 14px;
}

.dash-command-main,
.dash-status-card,
.ops-module-row,
.attention-item,
.priority-row,
.stock-alert {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 36, .86), rgba(10, 16, 26, .72));
  border-radius: var(--radius);
}

.dash-command-main {
  min-height: 190px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.dash-command-main::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 179, 0, .15), transparent 68%);
  pointer-events: none;
}

.dash-command-main h2 {
  margin: 10px 0 6px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.05em;
}

.dash-command-main p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dash-command-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.dash-status-stack {
  display: grid;
  gap: 10px;
}

.dash-status-card {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 13px 14px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.dash-status-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 99px;
  background: var(--green);
}

.dash-status-card.warning::before { background: var(--gold); }
.dash-status-card.danger::before { background: var(--red); }
.dash-status-card.ok::before { background: var(--green); }

.dash-status-card b {
  font-size: 23px;
  line-height: 1;
}

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

.modern-dashboard-grid {
  align-items: start;
}

.dash-panel-wide {
  min-width: 0;
}

.ops-module-list,
.attention-list,
.priority-board,
.stock-alert-list {
  display: grid;
  gap: 9px;
}

.ops-module-row,
.attention-item,
.priority-row,
.stock-alert {
  display: grid;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
}

.ops-module-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 12px;
}

.ops-module-row:hover,
.attention-item:hover,
.priority-row:hover,
.stock-alert:hover {
  border-color: rgba(255, 179, 0, .28);
  background: linear-gradient(180deg, rgba(255, 179, 0, .075), rgba(10, 16, 26, .74));
}

.ops-module-row b,
.attention-item b,
.priority-row b,
.stock-alert b {
  display: block;
  font-size: 13px;
}

.ops-module-row small,
.attention-item small,
.priority-row small,
.stock-alert span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ops-module-row em {
  font-style: normal;
  color: #ffe0a0;
  border: 1px solid rgba(255, 179, 0, .22);
  background: rgba(255, 179, 0, .08);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.attention-item {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  padding: 12px;
}

.attention-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(94, 224, 146, .8);
}

.attention-item.warning .attention-dot { background: var(--gold); box-shadow: 0 0 14px rgba(255, 179, 0, .7); }
.attention-item.danger .attention-dot { background: var(--red); box-shadow: 0 0 14px rgba(255, 77, 106, .65); }

.attention-arrow {
  color: var(--muted);
  font-size: 22px;
}

.priority-row {
  grid-template-columns: 4px minmax(0, 1fr) auto;
  padding: 12px 13px;
}

.priority-marker {
  width: 4px;
  height: 100%;
  min-height: 42px;
  border-radius: 99px;
  background: var(--gold);
}

.priority-row.blue .priority-marker { background: var(--blue); }
.priority-row.green .priority-marker { background: var(--green); }
.priority-row.red .priority-marker { background: var(--red); }

.priority-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.stock-alert {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.stock-alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 99px;
  background: var(--green);
}

.stock-alert.soon::before { background: var(--gold); }
.stock-alert.expired::before { background: var(--red); }

.stock-alert small {
  color: #ffe0a0;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .dash-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ops-module-row,
  .attention-item,
  .priority-row,
  .stock-alert {
    grid-template-columns: 1fr;
  }

  .priority-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


.dashboard-hero-grid,
.dashboard-overview-grid {
  display: grid;
  gap: 16px;
}

.dashboard-hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
  margin-bottom: 16px;
}

.dashboard-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 16px;
}

.dashboard-hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at top right, rgba(56, 201, 255, .1), transparent 34%),
    linear-gradient(135deg, rgba(255, 179, 0, .12), rgba(16, 24, 36, .92) 34%, rgba(8, 12, 18, .96) 100%);
  display: grid;
  gap: 18px;
}

.dashboard-hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-server-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-hero-copy h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.dashboard-hero-copy p {
  margin: 12px 0 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.64;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dash-mini-card {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(7, 11, 18, .56);
}

.dash-mini-card strong,
.dashboard-metric-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.dash-mini-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-side-status .panel-body {
  padding-top: 0;
}

.dashboard-health-list,
.dashboard-quick-list {
  display: grid;
  gap: 10px;
}

.dashboard-health-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 24, 36, .8), rgba(8, 13, 22, .72));
}

.dashboard-health-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 179, 0, .65);
}

.dashboard-health-item.green .dashboard-health-dot { background: var(--green); box-shadow: 0 0 14px rgba(94, 224, 146, .75); }
.dashboard-health-item.red .dashboard-health-dot { background: var(--red); box-shadow: 0 0 14px rgba(255, 91, 119, .7); }
.dashboard-health-item.blue .dashboard-health-dot { background: var(--blue); box-shadow: 0 0 14px rgba(56, 201, 255, .75); }

.dashboard-health-item b,
.dashboard-quick-item b,
.dashboard-metric-card b,
.dashboard-module-tile b {
  display: block;
  font-size: 13px;
}

.dashboard-health-item small,
.dashboard-quick-item small,
.dashboard-metric-card span,
.dashboard-module-tile small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metric-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(8, 13, 22, .74));
}

.dashboard-metric-card b {
  margin-top: 9px;
}

.dashboard-quick-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(8, 13, 22, .74));
}

.dashboard-quick-bar {
  width: 4px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--gold);
}

.dashboard-quick-item.danger .dashboard-quick-bar { background: var(--red); }
.dashboard-quick-item.warning .dashboard-quick-bar { background: var(--gold); }
.dashboard-quick-item.ok .dashboard-quick-bar { background: var(--green); }
.dashboard-quick-item.info .dashboard-quick-bar { background: var(--blue); }

.dashboard-quick-item:hover,
.dashboard-module-tile:hover {
  border-color: rgba(255, 179, 0, .28);
  background: linear-gradient(180deg, rgba(255, 179, 0, .075), rgba(10, 16, 26, .74));
}

.dashboard-quick-arrow {
  color: var(--muted);
  font-size: 24px;
}

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

.dashboard-module-tile {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(8, 13, 22, .74));
}

.dashboard-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-module-top em {
  font-style: normal;
  color: #ffe0a0;
  border: 1px solid rgba(255, 179, 0, .22);
  background: rgba(255, 179, 0, .08);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-priority-board,
.dashboard-stock-alerts {
  gap: 10px;
}

@media (max-width: 1240px) {
  .dashboard-hero-grid,
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-mini-metrics,
  .dashboard-metric-grid,
  .dashboard-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dashboard-hero-card {
    padding: 20px;
  }

  .dashboard-mini-metrics,
  .dashboard-metric-grid,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-item {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-bar {
    width: 100%;
    min-height: 4px;
  }
}







.dashboard-stage,
.dashboard-main-grid,
.dashboard-changelog-wrap {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-main-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start;
}

.dashboard-banner {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at top right, rgba(255, 179, 0, .12), transparent 28%),
    radial-gradient(circle at left bottom, rgba(56, 201, 255, .08), transparent 26%),
    linear-gradient(135deg, rgba(14, 22, 34, .98), rgba(8, 12, 20, .98));
  overflow: hidden;
}

.dashboard-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .95fr);
  gap: 20px;
  align-items: start;
}

.dashboard-banner-copy,
.dashboard-banner-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dashboard-banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-server-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-banner-copy h2 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 42px);
  line-height: 1.04;
}

.dashboard-banner-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-hero-list-wrap {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 24, 36, .75), rgba(8, 13, 22, .7));
}

.dashboard-hero-rotator {
  position: relative;
}

.dashboard-hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-hero-stat-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.dashboard-hero-stat-card.is-swapping {
  opacity: .08;
  transform: translateY(2px);
}

.dashboard-hero-stat-card.empty {
  visibility: hidden;
}

.dashboard-hero-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 179, 0, .55);
}

.dashboard-hero-stat-card.blue .dashboard-hero-stat-dot { background: var(--blue); box-shadow: 0 0 12px rgba(56,201,255,.7); }
.dashboard-hero-stat-card.gold .dashboard-hero-stat-dot { background: var(--gold); box-shadow: 0 0 12px rgba(255,179,0,.7); }
.dashboard-hero-stat-card.green .dashboard-hero-stat-dot { background: var(--green); box-shadow: 0 0 12px rgba(94,224,146,.7); }
.dashboard-hero-stat-card.violet .dashboard-hero-stat-dot { background: var(--violet); box-shadow: 0 0 12px rgba(185,156,255,.7); }
.dashboard-hero-stat-card.red .dashboard-hero-stat-dot { background: var(--red); box-shadow: 0 0 12px rgba(255,91,119,.7); }

.dashboard-hero-stat-card b {
  display: block;
  font-size: 13px;
}

.dashboard-hero-stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-hero-stat-card strong {
  font-size: 15px;
}

.dashboard-inline-head--hero {
  margin-bottom: 10px;
}

.dashboard-card .panel-body {
  padding-top: 10px;
}

.dashboard-today-list,
.dashboard-focus-list,
.dashboard-mini-queue,
.dashboard-release-list {
  display: grid;
  gap: 10px;
}

.dashboard-today-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-today-list-item,
.dashboard-focus-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(8, 13, 22, .74));
}

.dashboard-today-list-item {
  grid-template-columns: 54px minmax(0, 1fr);
}

.dashboard-today-list.compact .dashboard-today-list-item {
  padding: 10px;
}

.dashboard-today-list.compact .dashboard-today-count {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.dashboard-today-list.compact .dashboard-today-list-item {
  min-height: 88px;
}

.dashboard-today-count {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 26px;
  font-weight: 900;
  background: rgba(255,255,255,.03);
}

.dashboard-today-list-item.blue .dashboard-today-count { border-color: rgba(56, 201, 255, .22); }
.dashboard-today-list-item.gold .dashboard-today-count { border-color: rgba(255, 179, 0, .22); }
.dashboard-today-list-item.green .dashboard-today-count { border-color: rgba(94, 224, 146, .22); }
.dashboard-today-list-item.violet .dashboard-today-count { border-color: rgba(185, 156, 255, .22); }

.dashboard-today-list-item b,
.dashboard-focus-row b,
.dashboard-mini-queue-item b {
  display: block;
  font-size: 13px;
}

.dashboard-today-list-item small,
.dashboard-focus-row small,
.dashboard-mini-queue-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-info-note {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 21, 34, .72), rgba(8, 13, 22, .68));
}

.dashboard-info-note b {
  display: block;
  font-size: 12px;
  color: #ffe0a0;
  margin-bottom: 5px;
}

.dashboard-info-note small {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-inline-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dashboard-inline-head {
  margin-bottom: 10px;
}

.dashboard-inline-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-inline-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.dashboard-focus-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.dashboard-focus-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 179, 0, .65);
}

.dashboard-focus-row.green .dashboard-focus-dot { background: var(--green); box-shadow: 0 0 14px rgba(94,224,146,.75); }
.dashboard-focus-row.red .dashboard-focus-dot { background: var(--red); box-shadow: 0 0 14px rgba(255,91,119,.75); }
.dashboard-focus-row.violet .dashboard-focus-dot { background: var(--violet); box-shadow: 0 0 14px rgba(185,156,255,.75); }
.dashboard-focus-row.blue .dashboard-focus-dot { background: var(--blue); box-shadow: 0 0 14px rgba(56,201,255,.75); }

.dashboard-focus-row strong {
  font-size: 15px;
}

.dashboard-mini-queue-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(16, 24, 36, .82), rgba(8, 13, 22, .74));
}

.dashboard-mini-queue-item:hover,
.dashboard-release-card:hover,
.stock-alert:hover,
.dashboard-today-list-item:hover,
.dashboard-focus-row:hover,
.dashboard-hero-stat-card:hover {
  border-color: rgba(255, 179, 0, .28);
  background: linear-gradient(180deg, rgba(255, 179, 0, .075), rgba(10, 16, 26, .74));
}

.dashboard-mini-queue-bar {
  width: 4px;
  min-height: 44px;
  border-radius: 99px;
  background: var(--gold);
}

.dashboard-mini-queue-item.red .dashboard-mini-queue-bar { background: var(--red); }
.dashboard-mini-queue-item.blue .dashboard-mini-queue-bar { background: var(--blue); }
.dashboard-mini-queue-item.green .dashboard-mini-queue-bar { background: var(--green); }
.dashboard-mini-queue-item.violet .dashboard-mini-queue-bar { background: var(--violet); }

.dashboard-release-card {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 17px;
  background: rgba(5,9,16,.34);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.dashboard-release-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
}

.dashboard-release-card.added::before { background: var(--green); }
.dashboard-release-card.updated::before { background: var(--gold); }
.dashboard-release-card.fixed::before { background: var(--blue); }
.dashboard-release-card.removed::before { background: var(--red); }

.dashboard-release-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.dashboard-release-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,179,0,.25);
  background: var(--gold-soft);
  color: #ffe1a0;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-release-card h3 {
  margin: 9px 0 5px;
  color: #f1f6ff;
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-release-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-release-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.dashboard-release-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #dce8fb;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-release-card li::marker {
  color: var(--gold);
}

@media (max-width: 1240px) {
  .dashboard-banner-grid,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-release-head {
    grid-template-columns: 1fr;
  }

  .dashboard-release-meta {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .dashboard-banner {
    padding: 20px;
  }

  .dashboard-today-list-item,
  .dashboard-focus-row,
  .dashboard-hero-stat-card,
  .dashboard-mini-queue-item,
  .stock-alert {
    grid-template-columns: 1fr;
  }

  .dashboard-today-count {
    width: 100%;
  }

  .priority-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Global iframe tools v1 */
.global-tool-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 36, .86), rgba(10, 16, 26, .72));
  overflow: hidden;
  position: relative;
}
.global-tool-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 201, 255, .14), transparent 68%);
  pointer-events: none;
}
.global-tool-hero h2 {
  margin: 9px 0 5px;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.04em;
}
.global-tool-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.global-tool-hero .btn { position: relative; z-index: 1; white-space: nowrap; }
.global-tools-shell { grid-template-columns: 340px minmax(0, 1fr); }
.tool-preview-panel { min-width: 0; }
.iframe-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.live-tool-frame { min-height: 680px; }
.live-tool-frame iframe { min-height: 680px; }
@media (max-width: 980px) {
  .global-tool-hero { flex-direction: column; align-items: flex-start; }
  .global-tools-shell { grid-template-columns: 1fr; }
}

/* Neutral demo refinements */
.topbar .top-actions:empty { display: none; }

/* Modern profile demo */
.profile-modern-page {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-identity-card {
  padding: 28px;
  text-align: center;
}
.profile-orbit-avatar {
  display: grid;
  place-items: center;
  margin: 4px 0 18px;
}
.profile-avatar-ring {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(56,201,255,.2), transparent 58%),
    rgba(56,201,255,.08);
  border: 1px solid rgba(56,201,255,.26);
  box-shadow: 0 0 0 7px rgba(56,201,255,.07), inset 0 0 22px rgba(56,201,255,.1);
}
.profile-avatar-ring span {
  width: 74px;
  height: 74px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,179,0,.24), rgba(56,201,255,.14));
  border: 1px solid rgba(255,255,255,.14);
  font-size: 28px;
  font-weight: 950;
  color: #f2f7ff;
}
.profile-identity-card h2 {
  margin: 0;
  font-size: 24px;
}
.profile-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94,224,146,.28);
  background: rgba(94,224,146,.12);
  color: #8ef1b4;
  font-size: 12px;
  font-weight: 800;
}
.profile-meta-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}
.profile-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.profile-meta-list span,
.profile-meta-list b {
  font-size: 13px;
}
.profile-meta-list span { color: var(--muted); }
.profile-identity-card blockquote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  font-style: italic;
}
.profile-focus {
  margin-top: 18px;
  color: #7adfff;
  font-weight: 850;
}
.profile-xp-card {
  padding: 0;
}
.profile-xp-card .panel-head.no-border,
.profile-specialization .panel-head.no-border {
  border-bottom: 0;
}
.profile-xp-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 0 24px 22px;
}
.level-badge {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(56,201,255,.42);
  background: rgba(56,201,255,.08);
  box-shadow: inset 0 0 28px rgba(56,201,255,.08);
}
.level-badge strong {
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
}
.level-badge span { color: var(--muted); font-size: 12px; }
.xp-progress-area { display: grid; gap: 8px; }
.xp-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.xp-progress {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.xp-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(56,201,255,.72));
}
.xp-progress-area small { color: var(--muted); }
.profile-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 24px 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.profile-stat-row div {
  min-height: 74px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(255,255,255,.035);
}
.profile-stat-row strong { font-size: 24px; }
.profile-stat-row span { color: var(--muted); font-size: 12px; }
.profile-xp-card > .btn { margin: 0 24px 24px; }
.profile-mini-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.profile-mini-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.profile-mini-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
}
.profile-mini-card.green > span { background: rgba(94,224,146,.14); color: #67ef9a; }
.profile-mini-card.gold > span { background: rgba(255,179,0,.14); color: #ffd36c; }
.profile-mini-card.blue > span { background: rgba(56,201,255,.14); color: #5dd4ff; }
.profile-mini-card.muted > span { background: rgba(255,255,255,.06); color: var(--muted); }
.profile-mini-card strong { display:block; font-size: 24px; }
.profile-mini-card small { color: var(--muted); }
.profile-specialization {
  grid-column: 1 / -1;
}
.specialization-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}
.specialization-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.specialization-card div:first-child {
  display:flex;
  justify-content:space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.specialization-card span { color: var(--blue); font-weight: 900; }
.specialization-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.specialization-bar i {
  display:block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(255,179,0,.78));
}
@media (max-width: 1100px) {
  .profile-modern-page { grid-template-columns: 1fr; }
  .profile-mini-stats,
  .specialization-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .profile-xp-body,
  .profile-stat-row,
  .profile-mini-stats,
  .specialization-grid { grid-template-columns: 1fr; }
  .xp-progress-top { flex-direction: column; }
}

/* FLOXi profile + admin modal redesign */
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,179,0,.28);
  background: rgba(255,179,0,.11);
  color: #ffe08f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-kicker.cyan {
  border-color: rgba(56,201,255,.34);
  background: rgba(56,201,255,.12);
  color: #8ce9ff;
}
.section-kicker.gold {
  border-color: rgba(255,179,0,.32);
  background: rgba(255,179,0,.12);
  color: #ffe08f;
}
.profile-flox-page {
  display: grid;
  gap: 18px;
}
.profile-hero-modern {
  padding: 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(circle at 6% 0%, rgba(56,201,255,.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255,179,0,.12), transparent 32%),
    linear-gradient(180deg, rgba(17,25,36,.92), rgba(8,13,21,.92));
}
.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.profile-avatar-modern {
  width: 110px;
  height: 110px;
  border-radius: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(56,201,255,.2), rgba(255,179,0,.16)),
    rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 26px rgba(56,201,255,.1), 0 16px 34px rgba(0,0,0,.32);
  position: relative;
}
.profile-avatar-modern:before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(56,201,255,.22);
}
.profile-avatar-modern span {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 950;
  color: #f3f8ff;
}
.profile-hero-copy {
  min-width: 0;
  max-width: 760px;
}
.profile-hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.055em;
}
.profile-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 780px;
}
.profile-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.profile-hero-right {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  align-content: center;
}
.profile-hero-right > div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,.16);
}
.profile-hero-right span,
.profile-hero-right b {
  display: block;
}
.profile-hero-right span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850;
}
.profile-hero-right b {
  margin-top: 4px;
  color: var(--text);
}
.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  align-items: stretch;
}
.profile-overview-grid.bottom {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .55fr);
}
.profile-command-card,
.profile-access-card,
.profile-activity-card,
.profile-note-card {
  padding: 0;
  overflow: hidden;
}
.profile-command-card .panel-head,
.profile-access-card .panel-head,
.profile-activity-card .panel-head {
  padding: 18px 20px 8px;
}
.profile-level-layout {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 8px 20px 20px;
}
.profile-level-orb {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(56,201,255,.36);
  background: rgba(56,201,255,.09);
  box-shadow: inset 0 0 28px rgba(56,201,255,.08);
}
.profile-level-orb strong {
  font-size: 30px;
  color: var(--blue);
  line-height: 1;
}
.profile-level-orb span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.profile-progress-copy { display: grid; gap: 8px; }
.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}
.profile-data-grid div {
  min-height: 82px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(255,255,255,.03);
}
.profile-data-grid strong { font-size: 25px; }
.profile-data-grid span { color: var(--muted); font-size: 12px; }
.profile-permission-list,
.profile-activity-list {
  display: grid;
  gap: 10px;
  padding: 8px 20px 20px;
}
.profile-permission-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
}
.profile-permission-row span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #8ce9ff;
  background: rgba(56,201,255,.1);
  border: 1px solid rgba(56,201,255,.18);
  font-size: 11px;
  font-weight: 950;
}
.profile-permission-row em {
  font-style: normal;
  color: #88efb5;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.profile-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255,255,255,.03);
}
.profile-activity-row b,
.profile-activity-row small { display: block; }
.profile-activity-row small { color: var(--muted); margin-top: 3px; }
.profile-activity-row > span { font-weight: 950; color: var(--blue); text-align: right; }
.profile-activity-bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.profile-activity-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(255,179,0,.8));
}
.profile-note-card {
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,179,0,.13), transparent 38%),
    linear-gradient(180deg, rgba(17,25,36,.92), rgba(8,13,21,.92));
}
.profile-note-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
}
.profile-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.profile-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.flox-modal {
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 0 0, rgba(56,201,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(18,27,39,.98), rgba(7,12,20,.98)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.68) !important;
}
.flox-modal-head { padding-right: 28px; }
.flox-modal-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.03em;
}
.flox-modal-head p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.server-add-modal { width: min(620px, 100%) !important; }
.server-add-selected {
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;
  padding: 12px;
  background: rgba(255,255,255,.035);
  margin-bottom: 12px;
}
.server-add-selected b,
.server-add-selected small { display: block; }
.server-add-selected small { color: var(--muted); margin-top: 2px; }
.server-add-search { margin-bottom: 12px !important; }
.server-add-list {
  display: grid;
  gap: 9px;
  max-height: 340px;
  overflow: auto;
  padding: 3px 6px 3px 0;
}
.server-add-list::-webkit-scrollbar { width: 8px; }
.server-add-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
.server-add-item {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  padding: 11px 12px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.server-add-item:hover {
  border-color: rgba(255,179,0,.28);
  background: rgba(255,179,0,.055);
}
.server-add-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(56,201,255,.22);
  background: rgba(56,201,255,.09);
}
.server-add-copy b,
.server-add-copy small { display: block; }
.server-add-copy small { color: var(--muted); margin-top: 3px; }
.server-add-item em {
  font-style: normal;
  color: #ffe08f;
  border: 1px solid rgba(255,179,0,.22);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,179,0,.09);
  font-size: 11px;
  font-weight: 900;
}
.server-add-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed rgba(56,201,255,.20);
  border-radius: 14px;
  background: rgba(56,201,255,.055);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.server-add-note b { color: #8ce9ff; white-space: nowrap; }
@media (max-width: 1100px) {
  .profile-hero-modern,
  .profile-hero-left { flex-direction: column; align-items: flex-start; }
  .profile-hero-right { width: 100%; }
  .profile-overview-grid,
  .profile-overview-grid.bottom { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .profile-level-layout,
  .profile-data-grid { grid-template-columns: 1fr; }
  .profile-hero-modern { padding: 18px; }
  .server-add-item,
  .server-add-selected { grid-template-columns: 38px minmax(0, 1fr); }
  .server-add-item em,
  .server-add-selected > span:last-child { display: none; }
}

/* Access role widgets */
.access-roles-strip {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 820px;
  padding: 12px;
  border: 1px solid rgba(56,201,255,.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(56,201,255,.075), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.access-roles-strip.dashboard {
  max-width: 760px;
  margin-top: 16px;
}
.access-roles-strip.profile {
  max-width: 760px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(255,179,0,.06), rgba(56,201,255,.025));
  border-color: rgba(255,179,0,.16);
}
.access-roles-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.access-roles-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56,201,255,.10);
  border: 1px solid rgba(56,201,255,.22);
  box-shadow: 0 0 22px rgba(56,201,255,.08);
}
.access-roles-head b,
.access-roles-head small {
  display: block;
}
.access-roles-head b {
  color: var(--text);
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.access-roles-head small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.access-roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.access-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: #dceaff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
  white-space: nowrap;
}
.access-role-chip i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}
.access-role-chip.blue { color: #8edfff; border-color: rgba(56,201,255,.26); background: rgba(56,201,255,.08); }
.access-role-chip.green { color: #91efb7; border-color: rgba(83,211,141,.26); background: rgba(83,211,141,.08); }
.access-role-chip.gold { color: #ffd777; border-color: rgba(255,179,0,.30); background: rgba(255,179,0,.10); }
.access-role-chip.violet { color: #dac7ff; border-color: rgba(181,140,255,.28); background: rgba(181,140,255,.08); }
.profile-access-note {
  margin: 0 20px 12px;
  padding: 12px 13px;
  border: 1px solid rgba(56,201,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.14);
}
.profile-access-note b,
.profile-access-note span { display:block; }
.profile-access-note b { color: var(--text); font-size: 13px; }
.profile-access-note span { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.45; }
@media(max-width: 720px) {
  .access-roles-strip { padding: 11px; }
  .access-roles-head { align-items: flex-start; }
  .access-role-chip { width: 100%; justify-content: flex-start; }
}

/* Modern compact access roles - topbar status */
.top-access-roles{
  appearance:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  max-width:min(680px,48vw);
  padding:6px 8px;
  border:1px solid rgba(56,201,255,.22);
  background:linear-gradient(180deg,rgba(12,18,28,.76),rgba(7,10,16,.62));
  border-radius:999px;
  box-shadow:0 10px 26px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.025);
  white-space:nowrap;
  overflow:hidden;
  color:inherit;
}
.top-access-label{
  color:#8edfff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:0 4px 0 2px;
  opacity:.95;
}
.top-access-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 8px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.025);
}
.top-access-chip:before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 12px currentColor;
  flex:0 0 auto;
}
.top-access-chip.blue{color:#8edfff;border-color:rgba(56,201,255,.22);background:rgba(56,201,255,.06)}
.top-access-chip.green{color:#91efb7;border-color:rgba(83,211,141,.22);background:rgba(83,211,141,.06)}
.top-access-chip.gold{color:#ffd777;border-color:rgba(255,179,0,.24);background:rgba(255,179,0,.08)}
.top-access-chip.violet{color:#dac7ff;border-color:rgba(181,140,255,.22);background:rgba(181,140,255,.06)}

.profile-hero-modern .profile-hero-copy .access-roles-strip,
.dash-command .access-roles-strip{display:none!important;}

.profile-access-card .profile-access-note{
  border-color:rgba(56,201,255,.16)!important;
  background:linear-gradient(180deg,rgba(56,201,255,.07),rgba(255,255,255,.018))!important;
}
.profile-permission-row{
  position:relative;
  overflow:hidden;
}
.profile-permission-row:before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:99px;
  background:rgba(56,201,255,.55);
}

@media(max-width:1100px){
  .top-access-roles{max-width:46vw;}
  .top-access-chip{max-width:120px;overflow:hidden;text-overflow:ellipsis;}
}
@media(max-width:820px){
  .top-access-roles{display:none;}
}

/* Unified FLOXi role colors */
.top-access-chip.cyan{color:#8edfff;border-color:rgba(56,201,255,.22);background:rgba(56,201,255,.06)}
.top-access-chip.orange{color:#ffc57d;border-color:rgba(255,153,64,.24);background:rgba(255,153,64,.08)}
.top-access-chip.red{color:#ff9cad;border-color:rgba(255,77,106,.24);background:rgba(255,77,106,.08)}
.top-access-chip.muted{color:#9aa7bb;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.035)}
.top-access-chip.more{color:#dbe7f7;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.045)}
.access-role-chip.cyan{color:#8edfff;border-color:rgba(56,201,255,.26);background:rgba(56,201,255,.08)}
.access-role-chip.orange{color:#ffc57d;border-color:rgba(255,153,64,.28);background:rgba(255,153,64,.08)}
.access-role-chip.red{color:#ff9cad;border-color:rgba(255,77,106,.28);background:rgba(255,77,106,.08)}
.access-role-chip.muted{color:#9aa7bb;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.035)}
.access-pill.cyan{color:#8edfff;border-color:rgba(56,201,255,.24);background:rgba(56,201,255,.08)}
.access-pill.orange{color:#ffc57d;border-color:rgba(255,153,64,.28);background:rgba(255,153,64,.08)}
.access-pill.gold{color:#ffd777;border-color:rgba(255,179,0,.28);background:rgba(255,179,0,.10)}
.access-pill.blue{color:#8edfff;border-color:rgba(56,201,255,.24);background:rgba(56,201,255,.08)}
.access-pill.red{color:#ff9cad;border-color:rgba(255,77,106,.28);background:rgba(255,77,106,.08)}
.access-pill.muted{color:#9aa7bb;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.035)}
.top-access-roles{max-width:min(760px,56vw)}


/* =========================================================
   Profile-only FLOXi color tuning
   Scoped by .route-profile so dashboard / stockpiles / tasks / admin keep their original colors.
   ========================================================= */
.route-profile .topbar {
  border-color: rgba(255,255,255,.08);
}

.route-profile .page-title .eyebrow {
  color: #f0bf55;
}

.route-profile .page-title h1 {
  color: #f7f9fc;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.route-profile .page-title p {
  color: #9fb0c4;
}

.route-profile .profile-flox-page {
  gap: 16px;
}

.route-profile .profile-hero-modern {
  border-color: rgba(224, 169, 47, .18);
  background:
    radial-gradient(circle at 0% 0%, rgba(73, 184, 218, .075), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(224, 169, 47, .075), transparent 34%),
    linear-gradient(180deg, rgba(17, 21, 28, .94), rgba(8, 11, 16, .94));
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
}

.route-profile .profile-command-card,
.route-profile .profile-access-card,
.route-profile .profile-activity-card,
.route-profile .profile-note-card {
  border-color: rgba(255,255,255,.085);
  background: linear-gradient(180deg, rgba(18, 22, 30, .88), rgba(8, 11, 17, .86));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .30);
}

.route-profile .profile-command-card .panel-head,
.route-profile .profile-access-card .panel-head,
.route-profile .profile-activity-card .panel-head {
  background: rgba(255,255,255,.018);
  border-bottom-color: rgba(255,255,255,.08);
}

.route-profile .profile-avatar-modern {
  background:
    linear-gradient(145deg, rgba(224, 169, 47, .16), rgba(73, 184, 218, .10)),
    rgba(255,255,255,.028);
  border-color: rgba(224, 169, 47, .18);
  box-shadow: inset 0 0 26px rgba(73,184,218,.06), 0 16px 34px rgba(0,0,0,.30);
}

.route-profile .profile-avatar-modern:before {
  border-color: rgba(224, 169, 47, .20);
}

.route-profile .section-kicker.cyan,
.route-profile .section-kicker.gold {
  border-color: rgba(224, 169, 47, .26);
  background: rgba(224, 169, 47, .095);
  color: #f5cf76;
}

.route-profile .profile-hero-copy h2,
.route-profile .profile-note-card h2 {
  color: #f7f9fc;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.route-profile .profile-hero-copy p,
.route-profile .profile-note-card p,
.route-profile .profile-activity-row small,
.route-profile .profile-data-grid span,
.route-profile .profile-meta-list span,
.route-profile .panel-head small {
  color: #9fb0c4;
}

.route-profile .profile-hero-right > div,
.route-profile .profile-data-grid div,
.route-profile .profile-permission-row,
.route-profile .profile-activity-row,
.route-profile .specialization-card,
.route-profile .profile-mini-card,
.route-profile .profile-access-note {
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.026);
}

.route-profile .profile-hero-right > div {
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}

.route-profile .profile-access-note {
  border-left: 3px solid rgba(73,184,218,.55);
  background: rgba(73,184,218,.055);
}

.route-profile .profile-level-orb,
.route-profile .level-badge {
  border-color: rgba(73,184,218,.30);
  background: rgba(73,184,218,.065);
  box-shadow: inset 0 0 24px rgba(73,184,218,.055);
}

.route-profile .profile-level-orb strong,
.route-profile .level-badge strong,
.route-profile .profile-activity-row > span,
.route-profile .specialization-card span,
.route-profile .profile-focus {
  color: #62c4e6;
}

.route-profile .xp-progress,
.route-profile .profile-activity-bar,
.route-profile .specialization-bar {
  background: rgba(255,255,255,.075);
}

.route-profile .xp-progress span,
.route-profile .profile-activity-bar i,
.route-profile .specialization-bar i {
  background: linear-gradient(90deg, #49b8da, rgba(224,169,47,.72));
}

.route-profile .profile-permission-row {
  position: relative;
}

.route-profile .profile-permission-row:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: rgba(73,184,218,.65);
}

.route-profile .profile-permission-row span {
  color: #a9e6f7;
  background: rgba(73,184,218,.075);
  border-color: rgba(73,184,218,.20);
}

.route-profile .profile-permission-row em {
  color: #97e8b9;
}

.route-profile .profile-note-card {
  border-color: rgba(224,169,47,.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(224,169,47,.08), transparent 38%),
    linear-gradient(180deg, rgba(17,21,28,.94), rgba(8,11,16,.94));
}

.route-profile .profile-data-grid div:hover,
.route-profile .profile-permission-row:hover,
.route-profile .profile-activity-row:hover {
  border-color: rgba(224,169,47,.18);
  background: rgba(224,169,47,.035);
}

.route-profile .profile-quick-tags .pill {
  box-shadow: none;
}

.route-profile .profile-quick-tags .pill.gold,
.route-profile .profile-quick-tags .pill.yellow,
.route-profile .profile-quick-tags .pill.orange {
  border-color: rgba(224,169,47,.32);
  background: rgba(224,169,47,.105);
  color: #f5d27f;
}

.route-profile .profile-quick-tags .pill.blue,
.route-profile .profile-quick-tags .pill.cyan {
  border-color: rgba(73,184,218,.24);
  background: rgba(73,184,218,.085);
  color: #ace9fb;
}

.route-profile .profile-quick-tags .pill.green {
  border-color: rgba(127,226,170,.24);
  background: rgba(127,226,170,.085);
  color: #aaf1c8;
}

.route-profile .profile-note-actions .btn.blue {
  border-color: rgba(73, 184, 218, .24);
  background: rgba(73, 184, 218, .075);
  color: #cdeefd;
}


/* Developer bot guild management */
.developer-stack{display:grid;gap:14px}
.dev-bot-hero{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(16,24,36,.86),rgba(10,16,26,.76));box-shadow:var(--shadow);padding:18px}
.dev-bot-hero h2{margin:14px 0 8px;font-size:24px;line-height:1.2}
.dev-bot-hero p{margin:0;max-width:860px;color:var(--muted);font-size:13px;line-height:1.55}
.dev-bot-status{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dev-bot-panel{grid-column:1/-1}
.dev-api-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.45fr);gap:10px;margin-bottom:12px}
.dev-api-grid .field{display:grid;gap:6px}
.dev-api-grid input{width:100%;border:1px solid var(--line);background:#080d16;color:var(--text);border-radius:12px;padding:10px 11px;outline:0}
.dev-api-grid input:focus{border-color:rgba(255,179,0,.32);box-shadow:0 0 0 1px rgba(255,179,0,.14)}
.dev-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.07);border-radius:16px;background:rgba(5,7,13,.24)}
.dev-bot-table{width:100%;border-collapse:collapse;min-width:760px}
.dev-bot-table th,.dev-bot-table td{padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.055);text-align:left;vertical-align:middle}
.dev-bot-table tr:last-child td{border-bottom:0}
.dev-bot-table th{color:#7f8da7;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.dev-bot-table td code{color:#ffe1a0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.dev-bot-table td b{display:block;color:#f1f6ff;font-size:13px}
.dev-bot-table td span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.btn.compact{min-height:32px;padding:6px 9px;font-size:12px}
.dev-note{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.dev-note code{color:#ffe1a0}
.dev-error,.dev-success{border-radius:12px;padding:10px 11px;margin-bottom:10px;font-size:12px;font-weight:700}
.dev-error{border:1px solid rgba(255,91,119,.28);background:rgba(255,91,119,.10);color:#ffc7d0}
.dev-success{border:1px solid rgba(83,211,141,.25);background:rgba(83,211,141,.10);color:#a4efc3}
@media(max-width:760px){.dev-bot-hero{flex-direction:column}.dev-api-grid{grid-template-columns:1fr}.dev-bot-status{justify-content:flex-start}}

.dev-changelog-panel{grid-column:1/-1}
.dev-changelog-panel .dev-bot-table td:nth-child(3) b{display:block;color:#f1f6ff;font-size:13px}
.dev-changelog-panel .dev-bot-table td:nth-child(3) span{display:block;color:var(--muted);font-size:11px;margin-top:3px}


/* FLOXi modular popout */
.flox-popout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .54);
  backdrop-filter: blur(8px);
}

.flox-popout {
  position: fixed;
  z-index: 81;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 24, 36, .98), rgba(7, 11, 19, .98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flox-popout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.flox-popout-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flox-popout-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(56, 201, 255, .12);
}

.flox-popout-title h2 {
  margin: 0;
  font-size: 20px;
}

.flox-popout-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.flox-popout-body {
  padding: 18px;
}

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

.language-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(11, 17, 27, .82);
  text-align: left;
}

.language-choice:hover,
.language-choice.active {
  border-color: rgba(56, 201, 255, .9);
  background: rgba(56, 201, 255, .12);
}

.language-choice-flag {
  display: grid;
  place-items: center;
}

.language-choice-flag .fi {
  width: 30px;
  height: 22px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

.language-choice-main b,
.language-choice-main small {
  display: block;
}

.language-choice-main small {
  color: var(--muted);
  margin-top: 2px;
}

.language-choice-code {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 680px) {
  .language-choice-grid {
    grid-template-columns: 1fr;
  }
}


/* FLOXi legal and error pages */
.legal-page {
  display: grid;
  gap: 16px;
}

.legal-hero {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-color: rgba(56, 201, 255, .16);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 201, 255, .11), transparent 32%),
    linear-gradient(180deg, rgba(16, 24, 36, .92), rgba(8, 14, 22, .88));
}

.legal-hero-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(56, 201, 255, .24);
  background: rgba(56, 201, 255, .1);
  font-size: 25px;
}

.legal-hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.legal-hero p {
  margin: 0;
  color: #b7c8df;
  line-height: 1.6;
  max-width: 820px;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.legal-meta-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .035);
}

.legal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.legal-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 36, .72), rgba(8, 14, 22, .66));
  padding: 16px;
}

.legal-section h3 {
  margin: 0 0 8px;
  color: #ffe1a0;
  font-size: 15px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.flox-error-page {
  min-height: calc(100vh - 210px);
  display: grid;
  place-items: center;
  padding: 28px 0 60px;
}

.flox-error-panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-color: rgba(255, 91, 119, .2);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 91, 119, .14), transparent 32%),
    linear-gradient(180deg, rgba(16, 24, 36, .94), rgba(8, 14, 22, .9));
}

.flox-error-side {
  min-height: 310px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 91, 119, .18), transparent 46%),
    rgba(0, 0, 0, .16);
}

.error-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 91, 119, .16);
  border: 1px solid rgba(255, 91, 119, .42);
  color: #ffbac6;
  font-size: 12px;
  font-weight: 950;
}

.flox-error-side strong {
  font-size: clamp(54px, 8vw, 96px);
  line-height: .92;
  letter-spacing: .04em;
  color: var(--text);
  text-shadow: 0 0 28px rgba(255, 91, 119, .24);
}

.flox-error-side small {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.flox-error-main {
  padding: 34px;
  display: grid;
  align-content: center;
}

.flox-error-main h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.flox-error-subtitle {
  margin: 8px 0 22px;
  color: #b7c8df;
  line-height: 1.55;
}

.flox-error-message {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(5, 8, 14, .34);
}

.flox-error-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffb8c2;
  font-size: 24px;
}

.flox-error-message p {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.55;
}

.flox-error-message small {
  display: block;
  color: var(--muted);
}

.flox-error-message code {
  color: var(--soft);
}

.flox-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.flox-error-tip {
  display: block;
  margin-top: 16px;
  color: var(--soft);
}

.flox-error-403 .flox-error-panel {
  border-color: rgba(255, 179, 0, .24);
}

.flox-error-403 .flox-error-side {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 179, 0, .18), transparent 46%),
    rgba(0, 0, 0, .16);
}

.flox-error-403 .error-badge {
  background: rgba(255, 179, 0, .14);
  border-color: rgba(255, 179, 0, .38);
  color: #ffe1a0;
}

.flox-error-500 .flox-error-panel {
  border-color: rgba(185, 156, 255, .24);
}

.flox-error-500 .flox-error-side {
  background:
    radial-gradient(circle at 50% 0%, rgba(185, 156, 255, .18), transparent 46%),
    rgba(0, 0, 0, .16);
}

.flox-error-500 .error-badge {
  background: rgba(185, 156, 255, .14);
  border-color: rgba(185, 156, 255, .38);
  color: #dacbff;
}

@media (max-width: 860px) {
  .legal-hero,
  .flox-error-panel {
    grid-template-columns: 1fr;
  }

  .legal-actions {
    justify-content: flex-start;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .flox-error-side {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flox-error-main {
    padding: 22px;
  }
}


.top-access-roles:hover {
  border-color: rgba(56,201,255,.42);
  background: linear-gradient(180deg,rgba(56,201,255,.10),rgba(7,10,16,.66));
}

.top-access-chip.more {
  color: #dce8ff;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

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

.access-popout-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(7, 11, 19, .38);
}

.access-popout-card.highlight {
  border-color: rgba(255, 179, 0, .28);
  background: linear-gradient(180deg, rgba(255, 179, 0, .10), rgba(7, 11, 19, .42));
}

.access-popout-card.wide {
  grid-column: 1 / -1;
}

.access-popout-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.access-popout-role {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.access-popout-role b,
.access-popout-card > b {
  display: block;
  color: var(--text);
}

.access-popout-role small,
.access-popout-card > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.access-role-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.access-role-dot.green { color: var(--green); }
.access-role-dot.gold { color: var(--gold); }
.access-role-dot.violet { color: var(--violet); }
.access-role-dot.blue,
.access-role-dot.cyan { color: var(--blue); }
.access-role-dot.orange { color: #ffb35c; }
.access-role-dot.red { color: var(--red); }
.access-role-dot.muted { color: var(--muted); }

.access-popout-roles,
.access-permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-permission-grid span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
}

@media (max-width: 680px) {
  .access-popout-grid {
    grid-template-columns: 1fr;
  }
}


.server-menu-status {
  margin: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255,255,255,.035);
}

.server-menu-status.error {
  color: #ffb8c2;
  border-color: rgba(255,91,119,.32);
  background: rgba(255,91,119,.08);
}


.user-avatar.has-image {
  overflow: hidden;
  padding: 0;
}

.user-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.app-boot-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(50, 210, 255, .08), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(255, 209, 102, .06), transparent 26%),
    var(--bg);
}


.server-option span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}


.server-option-icon {
  overflow: hidden;
}

.server-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}


.server-bot,
.server-option-icon,
.collapsed-server span {
  overflow: hidden;
}

.server-bot img,
.server-option-icon img,
.collapsed-server img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}


.access-popout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 16px;
  background: rgba(8, 14, 24, .72);
}

.access-popout-actions span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.access-popout-actions .btn {
  white-space: nowrap;
}


.admin-overview-grid.compact-metrics {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.admin-metric-card.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: auto;
  padding: 14px 16px;
}

.admin-metric-card.mini strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.admin-metric-card.mini span:not(.metric-dot) {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.metric-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
  flex: 0 0 auto;
}

.metric-dot.cyan { color: #38bdf8; background: #38bdf8; }
.metric-dot.green { color: #4ade80; background: #4ade80; }
.metric-dot.violet { color: #a78bfa; background: #a78bfa; }
.metric-dot.gold { color: #facc15; background: #facc15; }

.admin-module-card-modern.locked {
  opacity: .62;
  border-style: dashed;
}

.admin-module-card-modern.locked h4,
.admin-module-card-modern.locked p {
  color: var(--muted);
}

.module-state-note {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.admin-module-card-modern.enabled .module-state-note {
  color: #86efac;
}

.admin-module-card-modern.locked .module-state-note {
  color: #fbbf24;
}

.modern-toggle.locked {
  opacity: .45;
  cursor: not-allowed;
}

.modern-toggle.locked input,
.modern-toggle.locked span {
  cursor: not-allowed;
}


.admin-module-pill.locked {
  border-color: rgba(251, 191, 36, .28);
  background: rgba(251, 191, 36, .08);
}

.admin-module-pill.locked b {
  color: #fbbf24;
}

.module-state-note.enabled {
  color: #86efac;
}

.module-state-note.disabled {
  color: #cbd5e1;
}

.module-state-note.locked {
  color: #fbbf24;
}


/* v103 module status badges: color only the status chip, not the whole pill */
.admin-module-pill.locked {
  border-color: rgba(255, 255, 255, .09) !important;
  background: rgba(255, 255, 255, .03) !important;
}

.admin-module-pill.disabled {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
}

.admin-module-pill.disabled b {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .08);
}

.admin-module-pill.locked b {
  color: #ff8fa3 !important;
  border: 1px solid rgba(244, 63, 94, .34);
  background: rgba(244, 63, 94, .10) !important;
}

.admin-module-pill.green b {
  border: 1px solid rgba(94, 224, 146, .24);
}

.module-state-note.locked {
  color: #ff8fa3 !important;
}

.module-state-note.disabled {
  color: #cbd5e1;
}


.sidebar-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 7px 2px 0;
  padding: 0 4px;
  color: var(--soft);
  font-size: 10.5px;
  line-height: 1.3;
  opacity: .72;
}

.sidebar-legal-links a {
  color: var(--soft);
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-legal-links a:hover {
  color: #cfe9ff;
  text-decoration: underline;
}

.sidebar-legal-links span {
  color: rgba(148, 163, 184, .45);
}

.sidebar-collapsed .sidebar-legal-links {
  display: none;
}


.stockpile-settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stockpile-settings-card {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 18px;
  background: rgba(5, 9, 16, .34);
  padding: 16px;
}

.stockpile-settings-card.span-2 {
  grid-column: 1 / -1;
}

.stockpile-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stockpile-settings-head h4 {
  margin: 0;
  font-size: 16px;
}

.stockpile-settings-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(56, 201, 255, .18);
  background: rgba(56, 201, 255, .075);
  flex: 0 0 auto;
}

.admin-group-grid-modern.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stockpile-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stockpile-type-pill {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  padding: 12px;
}

.stockpile-type-pill b {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.stockpile-type-pill span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .stockpile-settings-layout,
  .admin-group-grid-modern.compact,
  .stockpile-type-grid {
    grid-template-columns: 1fr;
  }

  .stockpile-settings-card.span-2 {
    grid-column: auto;
  }
}


.admin-group-grid-modern.access-only {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stockpile-group-modal {
  width: min(840px, calc(100vw - 28px));
}

.stockpile-role-picker {
  margin-top: 14px;
}

.stockpile-role-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.role-check.modern {
  display: grid;
  grid-template-columns: auto 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  padding: 9px 10px;
}

.role-check.modern:hover {
  border-color: rgba(56, 201, 255, .22);
  background: rgba(56, 201, 255, .055);
}

.role-check.modern b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-check.modern small {
  color: var(--soft);
  font-size: 10px;
}

@media (max-width: 1100px) {
  .admin-group-grid-modern.access-only {
    grid-template-columns: 1fr;
  }
}


.stockpile-group-modal .modal-grid.single {
  grid-template-columns: 1fr;
}

.group-description-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.group-description-field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 9, 16, .74);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.group-description-field input:focus {
  border-color: rgba(56, 201, 255, .28);
  box-shadow: 0 0 0 1px rgba(56, 201, 255, .12);
}

.stockpile-role-picker .role-picker-tabs button {
  cursor: pointer;
}

.stockpile-role-picker .role-picker-tabs small {
  min-width: 20px;
  display: inline-flex;
  justify-content: center;
}


.stockpile-groups-empty {
  align-items: flex-start;
  text-align: left;
  margin: 0;
  padding: 22px;
}

.stockpile-groups-empty .btn {
  margin-top: 12px;
}

.admin-info-note span {
  line-height: 1.45;
}


.stockpile-groups-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px dashed rgba(56, 201, 255, .25);
  background: linear-gradient(135deg, rgba(56, 201, 255, .065), rgba(255, 210, 77, .035));
  border-radius: 18px;
}

.stockpile-groups-empty .empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(56, 201, 255, .18);
  background: rgba(56, 201, 255, .08);
  font-size: 20px;
}

.stockpile-groups-empty b {
  display: block;
  margin-bottom: 4px;
}

.stockpile-groups-empty span:not(.empty-icon) {
  color: var(--muted);
}

.role-list-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(56, 201, 255, .22);
  background: rgba(56, 201, 255, .08);
  color: #9be7ff;
  font-size: 11px;
}

.role-check.modern.compact {
  grid-template-columns: auto 12px minmax(0, 1fr) auto;
}

.role-check.modern.compact em {
  font-style: normal;
  font-size: 10px;
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, .25);
  background: rgba(34, 197, 94, .08);
  border-radius: 999px;
  padding: 3px 7px;
}

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


.flox-confirm {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 77, .12), transparent 38%),
    linear-gradient(180deg, rgba(16, 24, 36, .98), rgba(7, 12, 20, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  padding: 22px;
  position: relative;
}

.flox-confirm.danger {
  border-color: rgba(244, 63, 94, .26);
}

.flox-confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(244, 63, 94, .22);
  background: rgba(244, 63, 94, .08);
  margin-bottom: 14px;
}

.flox-confirm-copy h3 {
  margin: 5px 0 8px;
  font-size: 22px;
}

.flox-confirm-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-backdrop {
  z-index: 90;
}


.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
}

.flox-confirm {
  animation: floxConfirmIn .16s ease-out both;
}

@keyframes floxConfirmIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.flox-dialog {
  width: min(560px, calc(100vw - 28px));
  border-radius: 24px;
  padding: 24px;
  overflow: hidden;
}

.flox-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.055), transparent 32%),
    radial-gradient(circle at 20% 0%, rgba(56, 201, 255, .09), transparent 28%);
}

.flox-dialog.danger::before {
  background:
    linear-gradient(90deg, rgba(244, 63, 94, .09), transparent 34%),
    radial-gradient(circle at 20% 0%, rgba(255, 210, 77, .10), transparent 30%);
}

.flox-dialog.warning {
  border-color: rgba(255, 210, 77, .30);
}

.flox-dialog.info {
  border-color: rgba(56, 201, 255, .28);
}

.flox-dialog.success {
  border-color: rgba(34, 197, 94, .30);
}

.flox-dialog-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}

.flox-dialog-icon {
  margin: 0;
  font-weight: 950;
  font-size: 18px;
  color: #ffd24d;
}

.flox-dialog.info .flox-dialog-icon {
  color: #7dd3fc;
  border-color: rgba(56, 201, 255, .25);
  background: rgba(56, 201, 255, .08);
}

.flox-dialog.success .flox-dialog-icon {
  color: #86efac;
  border-color: rgba(34, 197, 94, .25);
  background: rgba(34, 197, 94, .08);
}

.flox-dialog-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(255, 210, 77, .25);
  border-radius: 999px;
  background: rgba(255, 210, 77, .075);
  color: #ffe7a5;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.flox-dialog-copy {
  position: relative;
}

.flox-dialog-copy h3 {
  font-size: 26px;
  line-height: 1.1;
}

.flox-dialog-details {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
  padding: 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.flox-dialog-actions {
  margin-top: 22px;
  position: relative;
}


/* FLOXi dialog polish v124 */
.confirm-backdrop {
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 201, 255, .08), transparent 30%),
    rgba(0, 0, 0, .66);
  backdrop-filter: blur(10px) saturate(1.08);
}

.flox-dialog,
.flox-confirm {
  width: min(570px, calc(100vw - 28px));
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .085);
  background:
    linear-gradient(180deg, rgba(17, 27, 40, .985), rgba(8, 13, 22, .985));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .62),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.flox-dialog.danger,
.flox-confirm.danger {
  border-color: rgba(244, 63, 94, .34);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(244, 63, 94, .08),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.flox-dialog::before,
.flox-confirm::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 210, 77, .14), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(56, 201, 255, .07), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 42%);
}

.flox-dialog.danger::before,
.flox-confirm.danger::before {
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 63, 94, .18), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 210, 77, .09), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 42%);
}

.flox-dialog .modal-close,
.flox-confirm .modal-close {
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.035);
  color: rgba(203, 213, 225, .78);
  transition: .16s ease;
}

.flox-dialog .modal-close:hover,
.flox-confirm .modal-close:hover {
  color: #fff;
  border-color: rgba(244, 63, 94, .28);
  background: rgba(244, 63, 94, .08);
}

.flox-dialog-top {
  padding: 24px 24px 0;
  margin-bottom: 16px;
}

.flox-dialog-icon,
.flox-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 77, .26);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 210, 77, .18), rgba(255, 210, 77, .065));
  color: #ffd24d;
  box-shadow: 0 0 28px rgba(255, 210, 77, .08);
  font-size: 20px;
  font-weight: 950;
}

.flox-dialog.danger .flox-dialog-icon,
.flox-confirm.danger .flox-confirm-icon {
  border-color: rgba(244, 63, 94, .30);
  background:
    radial-gradient(circle at 50% 35%, rgba(244, 63, 94, .18), rgba(244, 63, 94, .07));
  color: #ffd24d;
  box-shadow: 0 0 28px rgba(244, 63, 94, .10);
}

.flox-dialog-kicker {
  min-height: 28px;
  padding: 0 13px;
  border-color: rgba(255, 210, 77, .30);
  background:
    linear-gradient(180deg, rgba(255, 210, 77, .11), rgba(255, 210, 77, .045));
  color: #ffe8a8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.flox-dialog-copy,
.flox-confirm-copy {
  padding: 0 24px;
}

.flox-dialog-copy h3,
.flox-confirm-copy h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.flox-dialog-copy p,
.flox-confirm-copy p {
  max-width: 94%;
  color: #aebbd0;
  font-size: 15px;
  line-height: 1.58;
}

.flox-dialog-details {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .075);
  background: rgba(0, 0, 0, .20);
  padding: 13px 14px;
  color: #9facbf;
}

.flox-dialog-actions,
.flox-confirm .modal-actions {
  margin: 24px 0 0;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: rgba(0, 0, 0, .12);
}

.flox-dialog-actions .btn,
.flox-confirm .modal-actions .btn {
  min-width: 82px;
  min-height: 40px;
  border-radius: 12px;
}

.flox-dialog-actions .btn.danger,
.flox-confirm .modal-actions .btn.danger {
  border-color: rgba(244, 63, 94, .42);
  background:
    linear-gradient(180deg, rgba(244, 63, 94, .13), rgba(244, 63, 94, .06));
  color: #ffd4dc;
}

.flox-dialog-actions .btn.danger:hover,
.flox-confirm .modal-actions .btn.danger:hover {
  border-color: rgba(244, 63, 94, .62);
  background:
    linear-gradient(180deg, rgba(244, 63, 94, .20), rgba(244, 63, 94, .09));
  color: #fff;
}

@media (max-width: 620px) {
  .flox-dialog-actions,
  .flox-confirm .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .flox-dialog-actions .btn,
  .flox-confirm .modal-actions .btn {
    width: 100%;
  }
}


/* FLOXi dialog close/access/admin module guard v126 */
.flox-dialog .modal-close,
.flox-confirm .modal-close {
  z-index: 5;
  cursor: pointer;
}

.admin-module-inactive {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 150px;
  border-color: rgba(244, 63, 94, .20);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 63, 94, .09), transparent 30%),
    linear-gradient(180deg, rgba(16, 24, 36, .78), rgba(8, 13, 22, .78));
}

.module-inactive-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(244, 63, 94, .26);
  background: rgba(244, 63, 94, .08);
  font-size: 22px;
}

.admin-module-inactive h3 {
  margin: 4px 0 8px;
}

.admin-module-inactive p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}


/* Stockpile list access groups v129 */
.stockpile-empty-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  border: 1px dashed rgba(56, 201, 255, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 201, 255, .08), transparent 34%),
    rgba(255, 255, 255, .018);
  padding: 26px;
}

.stockpile-empty-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(56, 201, 255, .18);
  background: rgba(56, 201, 255, .07);
  font-size: 21px;
}

.stockpile-empty-card.warning {
  border-color: rgba(255, 210, 77, .25);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 77, .08), transparent 34%),
    rgba(255, 255, 255, .018);
}

.stockpile-empty-card.warning span {
  border-color: rgba(255, 210, 77, .24);
  background: rgba(255, 210, 77, .08);
}

.stockpile-empty-card b {
  font-size: 18px;
}

.stockpile-empty-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}


/* Stockpile form location + purposes v134 */
.selected-location-preview {
  border: 1px dashed rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  margin-top: -4px;
}

.selected-location-preview b {
  color: var(--text);
  font-size: 13px;
}

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

.selected-location-preview.is-selected {
  border-style: solid;
  border-color: rgba(56, 201, 255, .22);
  background: rgba(56, 201, 255, .055);
}

.location-option span {
  text-transform: none;
}


/* Stockpile location icons + create fix v136 */
.location-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.location-type-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(56, 201, 255, .12));
}

.location-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.location-option-copy small {
  color: var(--muted);
  font-size: 11px;
}

.selected-location-preview.is-selected {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
}

.selected-location-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

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


/* Stockpile v137: location search icon sizing */
.location-option .location-type-icon {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  object-fit: contain;
}

.location-option {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 48px;
}

.selected-location-preview .location-type-icon {
  width: 30px;
  height: 30px;
}


/* Stockpile location preview polish v138 */
.location-option {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 44px;
}

.location-option .location-type-icon {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.selected-location-preview.is-selected {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  text-align: left;
  gap: 12px;
  place-items: unset;
}

.selected-location-preview.is-selected .location-type-icon {
  width: 32px;
  height: 32px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  object-fit: contain;
}

.selected-location-preview.is-selected .selected-location-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.selected-location-preview.is-selected .selected-location-copy b {
  display: block;
  line-height: 1.1;
}

.selected-location-preview.is-selected .selected-location-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}


/* Stockpile v140: location search without icons */
.location-results .location-option {
  grid-template-columns: minmax(0, 1fr);
}

.location-results .location-option .location-type-icon {
  display: none;
}

.location-results .location-option-copy {
  padding-left: 0;
}


/* Stockpile purpose chips v146 */
.kind-row .purpose-general,
.kind-choice[data-stock-kind="general"] {
  border-color: rgba(148, 163, 184, .34);
  background: rgba(148, 163, 184, .10);
  color: #cbd5e1;
}

.kind-row .purpose-resources,
.kind-choice[data-stock-kind="resources"] {
  border-color: rgba(34, 197, 94, .38);
  background: rgba(34, 197, 94, .12);
  color: #86efac;
}

.kind-row .purpose-vehicles,
.kind-choice[data-stock-kind="vehicles"] {
  border-color: rgba(56, 189, 248, .38);
  background: rgba(56, 189, 248, .12);
  color: #7dd3fc;
}

.kind-row .purpose-tanks,
.kind-choice[data-stock-kind="tanks"] {
  border-color: rgba(244, 63, 94, .42);
  background: rgba(244, 63, 94, .13);
  color: #fda4af;
}

.kind-row .purpose-ammo,
.kind-choice[data-stock-kind="ammo"] {
  border-color: rgba(251, 191, 36, .42);
  background: rgba(251, 191, 36, .13);
  color: #fde68a;
}

.kind-row .purpose-infantry,
.kind-choice[data-stock-kind="infantry"] {
  border-color: rgba(132, 204, 22, .38);
  background: rgba(132, 204, 22, .12);
  color: #bef264;
}

.kind-row .purpose-facility,
.kind-choice[data-stock-kind="facility"] {
  border-color: rgba(168, 85, 247, .42);
  background: rgba(168, 85, 247, .13);
  color: #d8b4fe;
}

.kind-row .purpose-logistics,
.kind-choice[data-stock-kind="logistics"] {
  border-color: rgba(251, 146, 60, .42);
  background: rgba(251, 146, 60, .13);
  color: #fdba74;
}

.kind-row .purpose-reserve,
.kind-choice[data-stock-kind="reserve"] {
  border-color: rgba(250, 204, 21, .38);
  background: rgba(250, 204, 21, .12);
  color: #fef08a;
}

.kind-row .purpose-public,
.kind-choice[data-stock-kind="public"] {
  border-color: rgba(45, 212, 191, .38);
  background: rgba(45, 212, 191, .12);
  color: #99f6e4;
}

.kind-row .purpose-operation,
.kind-choice[data-stock-kind="operation"] {
  border-color: rgba(239, 68, 68, .42);
  background: rgba(239, 68, 68, .13);
  color: #fca5a5;
}

.kind-row .purpose-coalition,
.kind-choice[data-stock-kind="coalition"] {
  border-color: rgba(59, 130, 246, .42);
  background: rgba(59, 130, 246, .13);
  color: #93c5fd;
}

.kind-row .purpose-diplomatic,
.kind-choice[data-stock-kind="diplomatic"] {
  border-color: rgba(236, 72, 153, .42);
  background: rgba(236, 72, 153, .13);
  color: #f9a8d4;
}


/* Stockpile purpose chips v147 - stronger picker/display color overrides */
.kind-row .purpose-general,
.kind-choice.purpose-general,
.kind-choice.active.purpose-general {
  border-color: rgba(148, 163, 184, .34) !important;
  background: rgba(148, 163, 184, .10) !important;
  color: #cbd5e1 !important;
}

.kind-row .purpose-resources,
.kind-choice.purpose-resources,
.kind-choice.active.purpose-resources {
  border-color: rgba(34, 197, 94, .42) !important;
  background: rgba(34, 197, 94, .14) !important;
  color: #86efac !important;
}

.kind-row .purpose-vehicles,
.kind-choice.purpose-vehicles,
.kind-choice.active.purpose-vehicles {
  border-color: rgba(56, 189, 248, .42) !important;
  background: rgba(56, 189, 248, .14) !important;
  color: #7dd3fc !important;
}

.kind-row .purpose-tanks,
.kind-choice.purpose-tanks,
.kind-choice.active.purpose-tanks {
  border-color: rgba(244, 63, 94, .46) !important;
  background: rgba(244, 63, 94, .15) !important;
  color: #fda4af !important;
}

.kind-row .purpose-ammo,
.kind-choice.purpose-ammo,
.kind-choice.active.purpose-ammo {
  border-color: rgba(251, 191, 36, .46) !important;
  background: rgba(251, 191, 36, .15) !important;
  color: #fde68a !important;
}

.kind-row .purpose-infantry,
.kind-choice.purpose-infantry,
.kind-choice.active.purpose-infantry {
  border-color: rgba(132, 204, 22, .42) !important;
  background: rgba(132, 204, 22, .14) !important;
  color: #bef264 !important;
}

.kind-row .purpose-facility,
.kind-choice.purpose-facility,
.kind-choice.active.purpose-facility {
  border-color: rgba(168, 85, 247, .48) !important;
  background: rgba(168, 85, 247, .16) !important;
  color: #d8b4fe !important;
}

.kind-row .purpose-logistics,
.kind-choice.purpose-logistics,
.kind-choice.active.purpose-logistics {
  border-color: rgba(251, 146, 60, .46) !important;
  background: rgba(251, 146, 60, .15) !important;
  color: #fdba74 !important;
}

.kind-row .purpose-reserve,
.kind-choice.purpose-reserve,
.kind-choice.active.purpose-reserve {
  border-color: rgba(250, 204, 21, .42) !important;
  background: rgba(250, 204, 21, .14) !important;
  color: #fef08a !important;
}

.kind-row .purpose-public,
.kind-choice.purpose-public,
.kind-choice.active.purpose-public {
  border-color: rgba(45, 212, 191, .42) !important;
  background: rgba(45, 212, 191, .14) !important;
  color: #99f6e4 !important;
}

.kind-row .purpose-operation,
.kind-choice.purpose-operation,
.kind-choice.active.purpose-operation {
  border-color: rgba(239, 68, 68, .46) !important;
  background: rgba(239, 68, 68, .15) !important;
  color: #fca5a5 !important;
}

.kind-row .purpose-coalition,
.kind-choice.purpose-coalition,
.kind-choice.active.purpose-coalition {
  border-color: rgba(59, 130, 246, .48) !important;
  background: rgba(59, 130, 246, .16) !important;
  color: #93c5fd !important;
}

.kind-row .purpose-diplomatic,
.kind-choice.purpose-diplomatic,
.kind-choice.active.purpose-diplomatic {
  border-color: rgba(236, 72, 153, .48) !important;
  background: rgba(236, 72, 153, .16) !important;
  color: #f9a8d4 !important;
}


/* Stockpile purpose chip overflow v148 */
.kind-row .kind-more {
  border-color: rgba(148, 163, 184, .32) !important;
  background: rgba(148, 163, 184, .10) !important;
  color: #cbd5e1 !important;
  min-width: 34px;
  text-align: center;
}


/* Stockpile purpose state colors v149
   Picker: gray = off, colored = selected.
   Display chips in list/detail: always colored by purpose. */
.kind-picker .kind-choice {
  border-color: rgba(148, 163, 184, .28) !important;
  background: rgba(148, 163, 184, .07) !important;
  color: #94a3b8 !important;
  opacity: .78;
}

.kind-picker .kind-choice.is-off {
  border-color: rgba(148, 163, 184, .24) !important;
  background: rgba(148, 163, 184, .055) !important;
  color: #94a3b8 !important;
}

.kind-picker .kind-choice.active {
  opacity: 1;
}

/* Display chips + active picker chips */
.purpose-display-row .purpose-general,
.kind-picker .kind-choice.active.purpose-general {
  border-color: rgba(148, 163, 184, .38) !important;
  background: rgba(148, 163, 184, .12) !important;
  color: #e2e8f0 !important;
}

.purpose-display-row .purpose-resources,
.kind-picker .kind-choice.active.purpose-resources {
  border-color: rgba(34, 197, 94, .48) !important;
  background: rgba(34, 197, 94, .16) !important;
  color: #86efac !important;
}

.purpose-display-row .purpose-vehicles,
.kind-picker .kind-choice.active.purpose-vehicles {
  border-color: rgba(56, 189, 248, .48) !important;
  background: rgba(56, 189, 248, .16) !important;
  color: #7dd3fc !important;
}

.purpose-display-row .purpose-tanks,
.kind-picker .kind-choice.active.purpose-tanks {
  border-color: rgba(244, 63, 94, .50) !important;
  background: rgba(244, 63, 94, .17) !important;
  color: #fda4af !important;
}

.purpose-display-row .purpose-ammo,
.kind-picker .kind-choice.active.purpose-ammo {
  border-color: rgba(251, 191, 36, .50) !important;
  background: rgba(251, 191, 36, .17) !important;
  color: #fde68a !important;
}

.purpose-display-row .purpose-infantry,
.kind-picker .kind-choice.active.purpose-infantry {
  border-color: rgba(132, 204, 22, .48) !important;
  background: rgba(132, 204, 22, .16) !important;
  color: #bef264 !important;
}

.purpose-display-row .purpose-facility,
.kind-picker .kind-choice.active.purpose-facility {
  border-color: rgba(168, 85, 247, .52) !important;
  background: rgba(168, 85, 247, .18) !important;
  color: #d8b4fe !important;
}

.purpose-display-row .purpose-logistics,
.kind-picker .kind-choice.active.purpose-logistics {
  border-color: rgba(251, 146, 60, .50) !important;
  background: rgba(251, 146, 60, .17) !important;
  color: #fdba74 !important;
}

.purpose-display-row .purpose-reserve,
.kind-picker .kind-choice.active.purpose-reserve {
  border-color: rgba(250, 204, 21, .48) !important;
  background: rgba(250, 204, 21, .16) !important;
  color: #fef08a !important;
}

.purpose-display-row .purpose-public,
.kind-picker .kind-choice.active.purpose-public {
  border-color: rgba(45, 212, 191, .48) !important;
  background: rgba(45, 212, 191, .16) !important;
  color: #99f6e4 !important;
}

.purpose-display-row .purpose-operation,
.kind-picker .kind-choice.active.purpose-operation {
  border-color: rgba(239, 68, 68, .50) !important;
  background: rgba(239, 68, 68, .17) !important;
  color: #fca5a5 !important;
}

.purpose-display-row .purpose-coalition,
.kind-picker .kind-choice.active.purpose-coalition {
  border-color: rgba(59, 130, 246, .52) !important;
  background: rgba(59, 130, 246, .18) !important;
  color: #93c5fd !important;
}

.purpose-display-row .purpose-diplomatic,
.kind-picker .kind-choice.active.purpose-diplomatic {
  border-color: rgba(236, 72, 153, .52) !important;
  background: rgba(236, 72, 153, .18) !important;
  color: #f9a8d4 !important;
}

.purpose-display-row .kind-more {
  border-color: rgba(148, 163, 184, .34) !important;
  background: rgba(148, 163, 184, .11) !important;
  color: #cbd5e1 !important;
}


/* Stockpile purpose max-two display fix v150 */
.purpose-display-row .kind-more {
  border-color: rgba(148, 163, 184, .34) !important;
  background: rgba(148, 163, 184, .11) !important;
  color: #cbd5e1 !important;
  min-width: 34px;
  text-align: center;
}


/* Admin task settings v156 */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-setting-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.admin-setting-card h4 {
  margin: 0 0 4px;
}

.admin-setting-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.admin-form-grid.compact label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.admin-form-grid.compact input[type="number"] {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.admin-checkline {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.task-priority-preview .priority-urgent {
  border-color: rgba(239,68,68,.45);
  background: rgba(239,68,68,.14);
  color: #fca5a5;
}

.task-priority-preview .priority-high {
  border-color: rgba(251,146,60,.45);
  background: rgba(251,146,60,.14);
  color: #fdba74;
}

.task-priority-preview .priority-normal {
  border-color: rgba(56,189,248,.38);
  background: rgba(56,189,248,.12);
  color: #7dd3fc;
}

.task-priority-preview .priority-low {
  border-color: rgba(34,197,94,.38);
  background: rgba(34,197,94,.12);
  color: #86efac;
}

@media (max-width: 980px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}


/* Admin task settings functional v157 */
.admin-form-grid.compact select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.admin-form-grid.compact select:focus,
.admin-form-grid.compact input:focus {
  outline: none;
  border-color: rgba(56, 201, 255, .35);
  box-shadow: 0 0 0 3px rgba(56, 201, 255, .08);
}


/* Admin task category XP v163 */
.task-xp-panel {
  margin-top: 14px;
}

.task-xp-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.task-xp-enable {
  min-width: 190px;
  justify-content: flex-end;
}

.task-xp-note {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(56, 201, 255, .15);
  background: rgba(56, 201, 255, .055);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.task-xp-note b {
  color: var(--text);
  white-space: nowrap;
}

.task-xp-table {
  display: grid;
  gap: 8px;
}

.task-xp-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 2fr) 130px 130px 42px;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 10px 0;
}

.task-xp-label {
  display: grid;
  gap: 2px;
}

.task-xp-label small,
.task-xp-value span,
.task-xp-final span {
  color: var(--muted);
  font-size: 11px;
}

.task-xp-value,
.task-xp-final {
  display: grid;
  gap: 4px;
}

.task-xp-value input,
.task-xp-final input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 10px;
}

.task-xp-slider {
  width: 100%;
  accent-color: var(--accent);
}

@media (max-width: 1180px) {
  .task-xp-row {
    grid-template-columns: 1fr 1fr;
  }

  .task-xp-row .icon-btn {
    width: 100%;
  }

  .task-xp-head {
    flex-direction: column;
  }
}


/* Admin task settings polish v164 */
.task-settings-wide {
  margin-bottom: 14px;
}

.task-choice-section {
  display: grid;
  gap: 8px;
}

.task-choice-section h5 {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

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

.task-setting-choice {
  text-align: left;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: var(--text);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.task-setting-choice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.task-setting-choice.active {
  border-color: rgba(56,201,255,.58);
  background: rgba(56,201,255,.12);
  box-shadow: inset 0 0 0 1px rgba(56,201,255,.12);
}

.admin-inline-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-inline-add input {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.task-setting-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-setting-tags button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.task-category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-category-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 10px;
  align-items: center;
}

.task-category-card > span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
}

.task-category-card small {
  color: var(--muted);
}

.task-xp-row {
  touch-action: pan-y;
}

@media (max-width: 1180px) {
  .task-choice-grid,
  .task-category-card-grid {
    grid-template-columns: 1fr;
  }
}


/* Admin task settings switches/categories v165 */
.task-toggle-line {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}

.task-toggle-line span {
  font-weight: 700;
}

.task-toggle-line i {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148,163,184,.16);
  border: 1px solid rgba(148,163,184,.22);
  position: relative;
  flex: 0 0 auto;
  transition: .18s ease;
}

.task-toggle-line i::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #94a3b8;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: .18s ease;
}

.task-toggle-line.active {
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.055);
}

.task-toggle-line.active i {
  background: rgba(34,197,94,.24);
  border-color: rgba(34,197,94,.38);
}

.task-toggle-line.active i::after {
  left: 24px;
  background: #86efac;
}

.task-category-card {
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: .18s ease;
}

.task-category-card.active {
  border-color: rgba(56,201,255,.48);
  background: rgba(56,201,255,.075);
}

.task-category-card.disabled {
  opacity: .52;
  background: rgba(255,255,255,.018);
}

.task-category-card em {
  grid-column: 2;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.task-category-card.active em {
  color: #86efac;
}

.task-setting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.task-setting-tags span {
  width: fit-content !important;
  min-width: 0 !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

.task-setting-tags button {
  line-height: 1;
  padding: 0;
}

.task-xp-slider {
  min-height: 28px;
  cursor: grab;
}

.task-xp-slider:active {
  cursor: grabbing;
}


/* Admin task XP/icon layout v166 */
.task-xp-head.compact {
  display: block;
}

.task-xp-enable.inline {
  margin-top: 10px;
  max-width: 360px;
  min-height: 44px;
}

.task-xp-panel .task-xp-note {
  margin-top: 12px;
}

.task-category-icon {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  overflow: hidden;
}

.task-category-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .9;
  display: block;
}

.task-category-card > span:not(.task-category-icon) {
  grid-row: span 3;
}

.task-category-card em {
  align-self: start;
}

.tag-list.task-setting-tags,
.task-setting-tags {
  align-content: flex-start !important;
}

.task-setting-tags span {
  flex: 0 0 auto !important;
  max-width: 100%;
  min-height: 0 !important;
  max-height: 34px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.admin-setting-card .task-setting-tags {
  min-height: 0 !important;
}

.admin-setting-card:has([data-task-list-input="mpf_squads"]) {
  align-content: start;
}

.admin-setting-card:has([data-task-list-input="mpf_squads"]) .task-setting-tags {
  min-height: 42px !important;
}

.admin-setting-card:has([data-task-list-input="mpf_squads"]) .task-setting-tags span {
  height: 32px !important;
}


/* Font Awesome task category icons v167 */
.task-category-icon.fa-ready {
  font-size: 16px;
}

.task-category-icon.fa-ready i {
  display: block;
  line-height: 1;
  color: currentColor;
}

.task-category-card.active .task-category-icon.fa-ready {
  color: #7dd3fc;
}

.task-category-card.disabled .task-category-icon.fa-ready {
  color: var(--muted);
}


/* Admin task XP block layout v168 */
.task-settings-grid {
  align-items: start;
}

.task-settings-grid > .admin-setting-card {
  align-self: start;
}

.task-xp-panel {
  margin-top: 0 !important;
}

.task-xp-panel .task-xp-enable.inline {
  margin-top: 10px;
  max-width: 100%;
}

.task-xp-panel .admin-info-note.muted {
  margin-top: 12px;
  border-color: rgba(148,163,184,.14);
  background: rgba(148,163,184,.045);
}

.task-xp-table {
  max-height: none;
}

.task-logistics-squads-card {
  min-height: 0 !important;
}

.task-logistics-squads-card .task-setting-tags {
  min-height: 36px !important;
  max-height: 52px !important;
  overflow: visible;
}

.task-logistics-squads-card .task-setting-tags span {
  height: 30px !important;
  max-height: 30px !important;
}

@media (min-width: 981px) {
  .task-settings-grid .task-xp-panel {
    grid-column: 1;
  }

  .task-settings-grid .task-logistics-squads-card {
    grid-column: 1;
  }
}


/* Admin task corrected locations layout v169 */
@media (min-width: 981px) {
  .task-settings-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .task-settings-grid .task-claim-card {
    grid-column: 1;
    grid-row: 1;
  }

  .task-settings-grid .task-locations-card {
    grid-column: 1;
    grid-row: 2;
  }

  .task-settings-grid .task-logistics-squads-card {
    grid-column: 1;
    grid-row: 3;
  }

  .task-settings-grid .task-categories-card {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .task-settings-grid .task-xp-panel {
    grid-column: 2;
    grid-row: 3;
  }
}

.task-locations-card,
.task-logistics-squads-card {
  min-height: 0 !important;
}

.task-locations-card .task-setting-tags,
.task-logistics-squads-card .task-setting-tags {
  min-height: 36px !important;
  max-height: 52px !important;
}


/* Admin task XP full-width layout v170 */
@media (min-width: 981px) {
  .task-settings-grid .task-claim-card {
    grid-column: 1;
    grid-row: 1;
  }

  .task-settings-grid .task-locations-card {
    grid-column: 1;
    grid-row: 2;
  }

  .task-settings-grid .task-logistics-squads-card {
    grid-column: 1;
    grid-row: 3;
  }

  .task-settings-grid .task-categories-card {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .task-settings-grid .task-xp-panel {
    grid-column: 1 / -1 !important;
    grid-row: 4;
  }
}

.task-xp-panel {
  width: 100%;
}

.task-xp-panel .task-xp-table {
  width: 100%;
}

@media (min-width: 1181px) {
  .task-xp-panel .task-xp-row {
    grid-template-columns: minmax(190px, 1fr) minmax(240px, 2.5fr) 140px 140px 44px;
  }
}


/* Admin forbidden/loading panels v172 */
.admin-access-denied .admin-info-note {
  margin-top: 18px;
  max-width: 760px;
}


/* Admin forbidden add-server action v173 */
.admin-access-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* Admin add-server auto refresh v174 */
.server-add-refresh-note {
  border: 1px solid rgba(56,201,255,.18);
  background: rgba(56,201,255,.055);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.server-add-refresh-note b {
  color: var(--text);
}

.server-add-refresh-note span {
  color: var(--muted);
  font-size: 13px;
}

.server-add-refresh-note .btn.small {
  width: fit-content;
  padding: 7px 10px;
  font-size: 12px;
}


/* Admin inline module toggles v176 */
.admin-module-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(56,201,255,.14);
  background: rgba(56,201,255,.045);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}

.admin-module-settings-head.disabled {
  border-color: rgba(251,191,36,.18);
  background: rgba(251,191,36,.045);
}

.admin-module-settings-head.locked {
  border-color: rgba(244,63,94,.20);
  background: rgba(244,63,94,.045);
}

.admin-module-settings-head h3 {
  margin: 2px 0 4px;
}

.admin-module-settings-head p {
  margin: 0;
  color: var(--muted);
}

.module-inline-toggle {
  max-width: 190px;
  min-width: 155px;
  flex: 0 0 auto;
}

.module-inline-toggle[disabled],
.module-inline-toggle.locked {
  opacity: .6;
  cursor: not-allowed;
}

.admin-module-inactive {
  align-items: center;
}


/* Admin XP settings cards v177 */
.task-xp-table {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  margin-top: 12px;
}

.task-xp-card {
  border: 1px solid rgba(56, 201, 255, .14);
  background:
    radial-gradient(circle at top right, rgba(56,201,255,.075), transparent 34%),
    rgba(255,255,255,.025);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.task-xp-card:hover {
  border-color: rgba(56, 201, 255, .28);
  background:
    radial-gradient(circle at top right, rgba(56,201,255,.10), transparent 34%),
    rgba(255,255,255,.035);
}

.task-xp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-xp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.task-xp-title .task-category-icon {
  grid-row: auto;
  flex: 0 0 auto;
}

.task-xp-title b {
  display: block;
  color: var(--text);
}

.task-xp-title small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.task-xp-result-pill {
  min-width: 92px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.075);
  border-radius: 14px;
  padding: 8px 10px;
  text-align: right;
}

.task-xp-result-pill span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.task-xp-result-pill strong {
  display: block;
  color: #86efac;
  font-size: 17px;
}

.task-xp-slider-wrap {
  display: grid;
  gap: 6px;
}

.task-xp-slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  padding: 0 2px;
}

.task-xp-card .task-xp-slider {
  width: 100%;
  min-height: 24px;
}

.task-xp-card .task-xp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.task-xp-card .task-xp-value,
.task-xp-card .task-xp-final {
  display: grid;
  gap: 5px;
}

.task-xp-card .task-xp-value span,
.task-xp-card .task-xp-final span {
  color: var(--muted);
  font-size: 11px;
}

.task-xp-card .task-xp-value input,
.task-xp-card .task-xp-final input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 10px;
}

.task-xp-reset {
  height: 39px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  white-space: nowrap;
}

.task-xp-reset i {
  font-size: 12px;
}

@media (max-width: 1280px) {
  .task-xp-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .task-xp-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-xp-result-pill {
    width: 100%;
    text-align: left;
  }

  .task-xp-card .task-xp-fields {
    grid-template-columns: 1fr;
  }

  .task-xp-reset {
    width: 100%;
  }
}


/* Soft route rendering v179 */
.app-shell .sidebar {
  contain: layout paint;
}

.app-shell .main {
  min-width: 0;
}

.nav a {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}


/* v254 profile foundation */
.profile-v254 .profile-avatar-modern.has-image { overflow: hidden; }
.profile-v254 .profile-avatar-modern.has-image img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.profile-v254 .profile-account-hero { align-items: center; }
.profile-v254 .profile-card-padded { padding: 0; }
.profile-v254 .profile-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 20px 20px;
}
.profile-v254 .profile-info-tile,
.profile-v254 .profile-setting-list > div {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255,255,255,.026);
  min-width: 0;
}
.profile-v254 .profile-info-tile span,
.profile-v254 .profile-setting-list span {
  display: block;
  color: #9fb0c4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.profile-v254 .profile-info-tile b,
.profile-v254 .profile-setting-list b {
  display: block;
  color: #f7f9fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-v254 .profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}
.profile-v254 .btn.danger-soft {
  border-color: rgba(255, 106, 106, .22);
  background: rgba(255, 106, 106, .075);
  color: #ffd2d2;
}
.profile-v254 .profile-role-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 20px 20px;
}
.profile-v254 .profile-role-cloud.compact { padding: 14px 0 0; }
.profile-v254 .profile-role-chip,
.profile-v254 .profile-empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: #dce8f4;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}
.profile-v254 .profile-empty-chip { color: #9fb0c4; border-style: dashed; }
.profile-v254 .profile-role-chip.tone-0 { border-color: rgba(73,184,218,.25); background: rgba(73,184,218,.08); color: #ace9fb; }
.profile-v254 .profile-role-chip.tone-1 { border-color: rgba(224,169,47,.28); background: rgba(224,169,47,.09); color: #f5d27f; }
.profile-v254 .profile-role-chip.tone-2 { border-color: rgba(127,226,170,.24); background: rgba(127,226,170,.08); color: #aaf1c8; }
.profile-v254 .profile-role-chip.tone-3 { border-color: rgba(174,135,255,.24); background: rgba(174,135,255,.08); color: #d7c7ff; }
.profile-v254 .profile-role-chip.tone-4 { border-color: rgba(255,145,95,.24); background: rgba(255,145,95,.08); color: #ffd2bb; }
.profile-v254 .profile-permission-row.blocked { opacity: .68; }
.profile-v254 .profile-permission-row.blocked:before { background: rgba(255,255,255,.20); }
.profile-v254 .profile-permission-row.blocked em { color: #c5cfdb; }
.profile-v254 .profile-setting-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.profile-v254 .profile-wide-card { overflow: hidden; }
.profile-v254 .profile-wide-card .panel-head { padding: 18px 20px 4px; }
.profile-v254 .discord-roles { padding-top: 8px; }
@media (max-width: 900px) {
  .profile-v254 .profile-account-hero,
  .profile-v254 .profile-hero-left { flex-direction: column; align-items: flex-start; }
  .profile-v254 .profile-hero-right { width: 100%; }
  .profile-v254 .profile-account-grid,
  .profile-v254 .profile-setting-list { grid-template-columns: 1fr; }
}

/* v255 Profile settings foundation */
.profile-v255 .profile-settings-live {
  min-height: 100%;
}
.profile-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 20px 18px;
}
.profile-info-tile {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255,255,255,.03);
  min-width: 0;
}
.profile-info-tile span,
.profile-info-tile b { display: block; }
.profile-info-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-info-tile b {
  margin-top: 5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}
.profile-role-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}
.profile-role-cloud.compact { padding: 12px 0 0; }
.profile-role-chip,
.profile-empty-chip,
.profile-dirty-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.profile-role-chip:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.profile-role-chip.tone-0 { color: #8edfff; border-color: rgba(56,201,255,.22); background: rgba(56,201,255,.06); }
.profile-role-chip.tone-1 { color: #91efb7; border-color: rgba(83,211,141,.22); background: rgba(83,211,141,.06); }
.profile-role-chip.tone-2 { color: #ffd777; border-color: rgba(255,179,0,.24); background: rgba(255,179,0,.08); }
.profile-role-chip.tone-3 { color: #dac7ff; border-color: rgba(181,140,255,.22); background: rgba(181,140,255,.06); }
.profile-role-chip.tone-4 { color: #ffb5a8; border-color: rgba(255,120,90,.22); background: rgba(255,120,90,.06); }
.profile-empty-chip { color: var(--muted); }
.profile-dirty-chip {
  color: #ffd777;
  border-color: rgba(255,179,0,.26);
  background: rgba(255,179,0,.10);
}
.profile-settings-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.profile-settings-section h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text);
}
.profile-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.profile-choice {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 76px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.profile-choice:hover,
.profile-choice.active {
  border-color: rgba(56,201,255,.28);
  background: rgba(56,201,255,.075);
  transform: translateY(-1px);
}
.profile-choice input { display: none; }
.profile-choice span { font-size: 23px; }
.profile-choice b { font-size: 12px; color: var(--text); }
.profile-select-wrap {
  position: relative;
  display: grid;
}
.profile-select-wrap select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 0 46px 0 14px;
  font-weight: 800;
  outline: none;
}
.profile-select-wrap span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
}
.profile-settings-help {
  color: var(--muted);
  line-height: 1.45;
}
.profile-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0 48px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.profile-toggle-row span b,
.profile-toggle-row span small { display: block; }
.profile-toggle-row span b { color: var(--text); font-size: 13px; }
.profile-toggle-row span small { color: var(--muted); margin-top: 4px; line-height: 1.35; }
.profile-toggle-row input { opacity: 0; width: 0; height: 0; }
.profile-toggle-row i {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.26);
  position: relative;
}
.profile-toggle-row i:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 4px;
  top: 3px;
  background: rgba(255,255,255,.52);
  transition: transform .16s ease, background .16s ease;
}
.profile-toggle-row.active {
  border-color: rgba(83,211,141,.22);
  background: rgba(83,211,141,.055);
}
.profile-toggle-row.active i {
  border-color: rgba(83,211,141,.30);
  background: rgba(83,211,141,.16);
}
.profile-toggle-row.active i:before {
  transform: translateX(20px);
  background: #91efb7;
}
.profile-settings-actions { padding: 18px 0 0; }
.profile-inline-alert {
  margin-top: 14px;
  border: 1px solid rgba(255,120,90,.22);
  border-radius: 14px;
  padding: 10px 12px;
  color: #ffb5a8;
  background: rgba(255,120,90,.08);
  font-size: 12px;
  font-weight: 800;
}
.profile-inline-alert.neutral {
  color: #8edfff;
  border-color: rgba(56,201,255,.22);
  background: rgba(56,201,255,.08);
}
.profile-summary-strip {
  padding: 18px 20px;
}
.profile-setting-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-setting-list > div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255,255,255,.03);
}
.profile-setting-list span,
.profile-setting-list b { display: block; }
.profile-setting-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-setting-list b { margin-top: 5px; color: var(--text); }
@media(max-width: 860px) {
  .profile-account-grid,
  .profile-choice-grid,
  .profile-setting-list { grid-template-columns: 1fr; }
}

/* v256: Profile page layout rebuild */
.profile-v256 .profile-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}
.profile-v256 .profile-main-column,
.profile-v256 .profile-side-column {
  display: grid;
  gap: 18px;
}
.profile-v256 .profile-card-padded {
  padding: 20px;
  overflow: hidden;
}
.profile-v256 .panel-head.no-border {
  padding: 0 0 14px;
  align-items: flex-start;
}
.profile-v256 .panel-head h2 {
  margin: 0;
  letter-spacing: -.035em;
}
.profile-v256 .panel-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}
.profile-xp-sketch-card {
  background:
    radial-gradient(circle at 0 0, rgba(255,179,0,.12), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(56,201,255,.10), transparent 34%),
    linear-gradient(180deg, rgba(18,27,39,.94), rgba(8,13,21,.94));
}
.profile-soft-chip,
.profile-dirty-chip {
  border-radius: 999px;
  border: 1px solid rgba(255,179,0,.24);
  background: rgba(255,179,0,.09);
  color: #ffe08f;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.profile-xp-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 6px 0 18px;
}
.profile-rank-orb {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255,179,0,.34);
  background: rgba(255,179,0,.08);
  box-shadow: inset 0 0 30px rgba(255,179,0,.07), 0 18px 34px rgba(0,0,0,.20);
}
.profile-rank-orb strong {
  font-size: 34px;
  color: #ffe08f;
  line-height: 1;
}
.profile-rank-orb span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.profile-xp-copy { display: grid; gap: 10px; }
.profile-xp-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-xp-topline b { font-size: 20px; }
.profile-xp-topline span { color: var(--muted); font-weight: 800; }
.profile-xp-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}
.profile-xp-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56,201,255,.95), rgba(255,179,0,.9));
}
.profile-xp-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.profile-mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.profile-mini-stat {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255,255,255,.03);
}
.profile-mini-stat span,
.profile-account-mini-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 850;
}
.profile-mini-stat b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}
.profile-mini-stat.green b { color: #88efb5; }
.profile-mini-stat.gold b { color: #ffe08f; }
.profile-mini-stat.cyan b { color: #8ce9ff; }
.profile-mini-stat.blue b { color: #9ab7ff; }
.profile-v256 .profile-settings-card {
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(56,201,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(17,25,36,.88), rgba(8,13,21,.92));
}
.profile-v256 .profile-settings-section {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.025);
  margin-top: 12px;
}
.profile-v256 .profile-settings-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #d9e8ff;
}
.profile-v256 .profile-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-v256 .profile-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.profile-v256 .profile-choice.active {
  border-color: rgba(56,201,255,.34);
  background: rgba(56,201,255,.08);
}
.profile-v256 .profile-choice input { display: none; }
.profile-v256 .profile-select-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}
.profile-v256 .profile-select-wrap select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 0 12px;
}
.profile-v256 .profile-select-wrap span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  font-size: 20px;
}
.profile-settings-help { display: block; margin-top: 8px; color: var(--muted); }
.profile-v256 .profile-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  margin-top: 10px;
}
.profile-v256 .profile-toggle-row:first-child { margin-top: 0; }
.profile-v256 .profile-toggle-row b,
.profile-v256 .profile-toggle-row small { display: block; }
.profile-v256 .profile-toggle-row small { color: var(--muted); margin-top: 3px; }
.profile-v256 .profile-toggle-row input { accent-color: var(--blue); }
.profile-v256 .profile-toggle-row i {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  position: relative;
}
.profile-v256 .profile-toggle-row i:before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  top: 2px;
  left: 3px;
  background: rgba(255,255,255,.6);
  transition: transform .18s ease;
}
.profile-v256 .profile-toggle-row.active i { background: rgba(56,201,255,.18); border-color: rgba(56,201,255,.30); }
.profile-v256 .profile-toggle-row.active i:before { transform: translateX(13px); background: #8ce9ff; }
.profile-v256 .profile-inline-alert {
  border: 1px solid rgba(255,179,0,.24);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(255,179,0,.08);
  color: #ffe08f;
  margin-bottom: 12px;
}
.profile-v256 .profile-inline-alert.neutral {
  border-color: rgba(56,201,255,.22);
  background: rgba(56,201,255,.07);
  color: #8ce9ff;
}
.profile-v256 .profile-action-row,
.profile-v256 .profile-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.profile-action-stack {
  display: grid;
  gap: 10px;
}
.profile-action-stack .btn { justify-content: center; width: 100%; }
.profile-access-note.compact {
  border: 1px solid rgba(255,179,0,.18);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255,179,0,.06);
  margin-bottom: 12px;
}
.profile-access-note.compact b,
.profile-access-note.compact span { display: block; }
.profile-access-note.compact b { color: #ffe08f; }
.profile-access-note.compact span { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.profile-role-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-role-chip,
.profile-empty-chip {
  border-radius: 999px;
  border: 1px solid rgba(56,201,255,.20);
  background: rgba(56,201,255,.08);
  color: #bdefff;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
}
.profile-empty-chip {
  color: var(--muted);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.profile-action-timeline {
  display: grid;
  gap: 10px;
}
.profile-action-timeline-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 11px;
  background: rgba(255,255,255,.025);
}
.profile-action-timeline-row i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56,201,255,.09);
  border: 1px solid rgba(56,201,255,.18);
}
.profile-action-timeline-row i:before { content: "•"; color: #8ce9ff; font-size: 22px; line-height: 1; }
.profile-action-timeline-row b,
.profile-action-timeline-row small { display: block; }
.profile-action-timeline-row small { color: var(--muted); margin-top: 3px; }
.profile-compact-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.profile-compact-column h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.profile-v256 .profile-permission-list.compact {
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-v256 .profile-permission-row {
  min-height: 46px;
  padding: 9px 10px;
}
.profile-account-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-account-mini-list div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  min-width: 0;
}
.profile-account-mini-list b {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-roles-preview-card .panel-head.no-border { padding-bottom: 12px; }

@media (max-width: 1180px) {
  .profile-v256 .profile-body-grid,
  .profile-compact-overview { grid-template-columns: 1fr; }
  .profile-v256 .profile-side-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-v256 .profile-side-column,
  .profile-mini-stat-grid,
  .profile-account-mini-list,
  .profile-v256 .profile-permission-list.compact { grid-template-columns: 1fr; }
  .profile-xp-layout { grid-template-columns: 1fr; }
  .profile-rank-orb { width: 96px; height: 96px; }
  .profile-v256 .profile-choice-grid { grid-template-columns: 1fr; }
}
.profile-avatar-modern img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* v257: Profile rebuild - FLOXi aligned private profile layout */
.profile-v257 {
  gap: 16px;
}

.profile-v257 .profile-v257-hero {
  padding: 22px 24px;
  border-color: rgba(255, 255, 255, .075);
  background:
    linear-gradient(90deg, rgba(56, 201, 255, .09), transparent 34%),
    radial-gradient(circle at 96% 0%, rgba(255, 179, 0, .10), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 28, .96), rgba(7, 11, 18, .96));
}

.profile-v257 .profile-avatar-modern {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.profile-v257 .profile-avatar-modern:before { inset: 8px; border-radius: 19px; }
.profile-v257 .profile-avatar-modern img { border-radius: 22px; }

.profile-v257 .profile-hero-copy h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 7px;
}

.profile-v257 .profile-hero-copy p {
  max-width: 720px;
  color: #bed0e7;
}

.profile-v257-identity {
  width: min(360px, 100%);
}

.profile-v257-identity > div {
  border-radius: 13px;
  background: rgba(0, 0, 0, .20);
}

.profile-v257-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-v257-sidebar {
  position: sticky;
  top: 18px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 179, 0, .10), transparent 34%),
    linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94));
}

.profile-v257-sidebar-head {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, .025);
}

.profile-v257-sidebar-head span,
.profile-v257-card-title .section-kicker {
  color: #ffd24d;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.profile-v257-sidebar-head b {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.03em;
}

.profile-v257-sidebar-head small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-v257-menu {
  display: grid;
  gap: 7px;
}

.profile-v257-menu a {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 0 11px;
  color: #cfe2f7;
  background: rgba(255, 255, 255, .018);
  font-weight: 850;
  font-size: 13px;
}

.profile-v257-menu a i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(56, 201, 255, .45);
  box-shadow: 0 0 0 4px rgba(56, 201, 255, .07);
}

.profile-v257-menu a.active {
  border-color: rgba(56, 201, 255, .24);
  background: rgba(56, 201, 255, .07);
  color: #f4fbff;
}

.profile-v257-side-actions {
  display: grid;
  gap: 9px;
}

.profile-v257-side-actions .btn {
  justify-content: center;
  width: 100%;
}

.profile-v257-main,
.profile-v257-left-stack,
.profile-v257-right-stack {
  display: grid;
  gap: 16px;
}

.profile-v257-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 16px;
}

.profile-v257-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 16px;
  align-items: start;
}

.profile-v257 .profile-card-padded {
  padding: 18px;
  overflow: hidden;
}

.profile-v257-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-v257-card-title.compact {
  margin-bottom: 12px;
}

.profile-v257-card-title h2 {
  margin: 3px 0 0;
  font-size: 21px;
  letter-spacing: -.035em;
}

.profile-v257-card-title small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-v257-xp-card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 179, 0, .12), transparent 34%),
    linear-gradient(180deg, rgba(16, 24, 36, .94), rgba(8, 13, 21, .94));
}

.profile-v257-xp-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-v257-xp-content {
  display: grid;
  gap: 10px;
}

.profile-v257-xp-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-v257-stats {
  margin-top: 16px;
}

.profile-v257-access-top {
  border: 1px solid rgba(255, 179, 0, .18);
  border-radius: 16px;
  background: rgba(255, 179, 0, .055);
  padding: 14px;
  margin-bottom: 12px;
}

.profile-v257-access-top span,
.profile-v257-access-top b,
.profile-v257-access-top small {
  display: block;
}

.profile-v257-access-top span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
  font-weight: 900;
}

.profile-v257-access-top b {
  margin-top: 5px;
  color: #ffe08f;
  font-size: 20px;
}

.profile-v257-access-top small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-v257-activity-list {
  display: grid;
  gap: 10px;
}

.profile-v257-activity-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .025);
}

.profile-v257-activity-row i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(56, 201, 255, .18);
  background: rgba(56, 201, 255, .08);
  position: relative;
}

.profile-v257-activity-row i:after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #8ce9ff;
}

.profile-v257-activity-row b,
.profile-v257-activity-row small {
  display: block;
}

.profile-v257-activity-row small {
  margin-top: 3px;
  color: var(--muted);
}

.profile-v257-activity-row em {
  font-style: normal;
  color: #8ce9ff;
  border: 1px solid rgba(56, 201, 255, .20);
  background: rgba(56, 201, 255, .075);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 950;
}

.profile-v257 .profile-settings-card {
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 201, 255, .08), transparent 35%),
    linear-gradient(180deg, rgba(15, 22, 33, .92), rgba(8, 13, 21, .94));
}

.profile-v257 .profile-settings-card .panel-head.no-border {
  padding: 0 0 12px;
}

.profile-v257 .profile-settings-section {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255, 255, 255, .022);
  margin-top: 10px;
}

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

.profile-v257-permissions {
  padding: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

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

.profile-v257-roles-card .profile-role-cloud {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 1250px) {
  .profile-v257-shell,
  .profile-v257-overview-grid,
  .profile-v257-content-grid {
    grid-template-columns: 1fr;
  }

  .profile-v257-sidebar {
    position: static;
  }

  .profile-v257-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-v257-side-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .profile-v257-menu,
  .profile-v257-side-actions,
  .profile-v257-xp-line,
  .profile-v257-stats,
  .profile-v257-permissions,
  .profile-v257-account-list,
  .profile-v257 .profile-choice-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-v257 .profile-v257-hero,
  .profile-v257 .profile-hero-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-v257-activity-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .profile-v257-activity-row em {
    grid-column: 2;
    width: fit-content;
  }
}

/* v258 profile rebuild - flatter FLOXi dashboard layout */
.profile-v258 {
  --profile-panel: rgba(7, 11, 18, .72);
  --profile-line: rgba(255,255,255,.075);
  gap: 18px;
}
.profile-v258 .profile-hero-modern {
  border-color: rgba(255,179,0,.18);
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
}
.profile-v258-layout {
  display: grid;
  gap: 18px;
}
.profile-v258-private-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(255,179,0,.075), transparent 44%),
    var(--profile-panel);
  border-color: rgba(255,179,0,.14);
}
.profile-v258-private-card h2 {
  margin: 6px 0 7px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.profile-v258-private-card p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
}
.profile-v258-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.profile-v258-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, .58fr);
  gap: 18px;
  align-items: stretch;
}
.profile-v258-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .42fr);
  gap: 18px;
  align-items: start;
}
.profile-v258-main-stack,
.profile-v258-settings-stack {
  display: grid;
  gap: 18px;
}
.profile-v258-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.profile-v258-card-head h2 {
  margin: 5px 0 4px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.profile-v258-card-head.compact h2 { margin-top: 0; font-size: 21px; }
.profile-v258-card-head small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.profile-v258-xp-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.profile-v258-xp-row p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.profile-v258-stats {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.profile-v258-activity-list {
  display: grid;
  gap: 10px;
}
.profile-v258-activity-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  padding: 12px 13px;
  background: rgba(255,255,255,.028);
}
.profile-v258-activity-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(56,201,255,.09);
}
.profile-v258-activity-row b,
.profile-v258-activity-row small { display: block; }
.profile-v258-activity-row small { color: var(--muted); margin-top: 2px; }
.profile-v258-activity-row em {
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  color: #ffe08f;
  border: 1px solid rgba(255,179,0,.18);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255,179,0,.08);
}
.profile-v258-access-summary {
  display: grid;
  grid-template-columns: minmax(260px, .35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.profile-v258-access-summary > div:first-child {
  border: 1px solid rgba(255,179,0,.14);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255,179,0,.055);
}
.profile-v258-access-summary span,
.profile-v258-access-summary b,
.profile-v258-access-summary small { display: block; }
.profile-v258-access-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-v258-access-summary b {
  margin: 6px 0;
  font-size: 22px;
}
.profile-v258-access-summary small {
  color: var(--muted);
  line-height: 1.45;
}
.profile-v258-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-v258-account-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.profile-v258-account-list div {
  min-width: 0;
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255,255,255,.03);
}
.profile-v258-account-list span,
.profile-v258-account-list b { display: block; }
.profile-v258-account-list span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 900;
}
.profile-v258-account-list b {
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-v258-settings-stack .profile-settings-card {
  position: sticky;
  top: 18px;
}
.profile-v258-settings-stack .profile-note-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,179,0,.09), transparent 36%),
    rgba(7, 11, 18, .76);
}
.profile-v258-settings-stack .profile-settings-card .panel-head {
  padding: 0;
  margin-bottom: 16px;
}
.profile-v258-settings-stack .profile-settings-card .panel-head h2 {
  font-size: 22px;
}
.profile-v258 .profile-role-cloud {
  align-content: start;
}

@media (max-width: 1180px) {
  .profile-v258-dashboard-grid,
  .profile-v258-lower-grid {
    grid-template-columns: 1fr;
  }
  .profile-v258-settings-stack .profile-settings-card {
    position: static;
  }
}
@media (max-width: 760px) {
  .profile-v258-private-card,
  .profile-v258-access-summary,
  .profile-v258-xp-row {
    grid-template-columns: 1fr;
  }
  .profile-v258-actions { justify-content: flex-start; }
  .profile-v258-stats,
  .profile-v258-permission-grid,
  .profile-v258-account-list {
    grid-template-columns: 1fr;
  }
}

/* v259: Profile rebuilt from scratch - FLOXi dashboard layout, no repeated profile blocks */
.profile-v259 {
  display: grid;
  gap: 16px;
}

.profile-v259 .panel {
  border-color: rgba(255, 255, 255, .075);
  background: linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94));
}

.profile-v259-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(56, 201, 255, .10), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(255, 179, 0, .12), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 28, .96), rgba(7, 11, 18, .96)) !important;
}

.profile-v259-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 201, 255, .20);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 179, 0, .18), transparent 46%),
    rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 28px rgba(56, 201, 255, .10), 0 18px 36px rgba(0, 0, 0, .32);
}

.profile-v259-avatar::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, .10);
  pointer-events: none;
}

.profile-v259-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-v259-avatar span {
  font-size: 30px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -.04em;
}

.profile-v259-title h2 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
  letter-spacing: -.055em;
}

.profile-v259-title p {
  max-width: 720px;
  margin: 0;
  color: #bcd0e8;
  line-height: 1.55;
}

.profile-v259-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.profile-v259-identity-card {
  display: grid;
  gap: 10px;
}

.profile-v259-identity-card > div {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .20);
}

.profile-v259-identity-card span,
.profile-v259-strip span,
.profile-v259-tech-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.profile-v259-identity-card b {
  display: block;
  margin-top: 5px;
  color: var(--text);
  word-break: break-word;
}

.profile-v259-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-v259-strip article {
  padding: 15px 16px;
  min-height: 92px;
  display: grid;
  align-content: center;
}

.profile-v259-strip b {
  display: block;
  margin-top: 8px;
  font-size: 23px;
  letter-spacing: -.035em;
}

.profile-v259-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-v259-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 16px;
  align-items: start;
}

.profile-v259-main,
.profile-v259-side {
  display: grid;
  gap: 16px;
}

.profile-v259-xp,
.profile-v259-panel-pad,
.profile-v259-actions-card {
  padding: 20px;
}

.profile-v259-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-v259-card-head h2,
.profile-v259-actions-card h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -.035em;
}

.profile-v259-card-head p,
.profile-v259-actions-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-v259-card-head.compact {
  margin-bottom: 14px;
}

.profile-v259-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 179, 0, .22);
  background: rgba(255, 179, 0, .10);
  color: #ffd36c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.profile-v259-xp-content {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-v259-rank {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(56, 201, 255, .28);
  background:
    radial-gradient(circle at 50% 20%, rgba(56, 201, 255, .18), transparent 54%),
    rgba(56, 201, 255, .07);
}

.profile-v259-rank strong {
  font-size: 34px;
  line-height: 1;
  color: var(--blue);
}

.profile-v259-rank span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.profile-v259-xp-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.profile-v259-xp-line span { color: var(--muted); }

.profile-v259-progress {
  height: 10px;
  border-radius: 999px;
  margin: 10px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .06);
}

.profile-v259-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(255, 179, 0, .86));
}

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

.profile-v259 .profile-mini-stat {
  min-height: 72px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
}

.profile-v259 .profile-mini-stat span {
  color: var(--muted);
  font-size: 12px;
}

.profile-v259 .profile-mini-stat b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.profile-v259-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: 16px;
}

.profile-v259-role-cloud,
.profile-v259-module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-v259-role-cloud {
  margin-bottom: 14px;
}

.profile-v259-role-cloud.small {
  margin: 8px 0 0;
}

.profile-v259-module-cloud span,
.profile-v259-role-cloud .profile-role-chip,
.profile-v259-role-cloud .profile-empty-chip {
  max-width: 100%;
}

.profile-v259-module-cloud span {
  border: 1px solid rgba(56, 201, 255, .16);
  background: rgba(56, 201, 255, .08);
  color: #9beaff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.profile-v259-permissions,
.profile-v259-timeline {
  display: grid;
  gap: 9px;
}

.profile-v259-permission {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .03);
}

.profile-v259-permission span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(56, 201, 255, .10);
  color: #8ce9ff;
  font-size: 11px;
  font-weight: 950;
}

.profile-v259-permission b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-v259-permission em {
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.profile-v259-permission.allowed em { color: #7ff0ae; }
.profile-v259-permission.blocked em { color: #ff8f8f; }

.profile-v259-timeline > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .03);
}

.profile-v259-timeline i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(56, 201, 255, .36);
}

.profile-v259-timeline b,
.profile-v259-timeline small {
  display: block;
}

.profile-v259-timeline small {
  margin-top: 3px;
  color: var(--muted);
}

.profile-v259-timeline em {
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  color: #ffd36c;
  letter-spacing: .08em;
}

.profile-v259-tech-grid {
  display: grid;
  grid-template-columns: .55fr .8fr 1.2fr;
  gap: 12px;
}

.profile-v259-tech-grid > div {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255, 255, 255, .025);
  min-width: 0;
}

.profile-v259-tech-grid b {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-v259-actions-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 179, 0, .12), transparent 40%),
    linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94)) !important;
}

.profile-v259-action-buttons {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.profile-v259-action-buttons .btn {
  justify-content: center;
  width: 100%;
}

.profile-v259-side .profile-settings-card {
  padding: 18px;
}

.profile-v259-side .profile-settings-card .panel-head {
  padding: 0;
}

.profile-v259-side .profile-settings-card .panel-head h2 {
  font-size: 22px;
}

.profile-v259-side .profile-choice-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1280px) {
  .profile-v259-board,
  .profile-v259-two {
    grid-template-columns: 1fr;
  }
  .profile-v259-side {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

@media (max-width: 1050px) {
  .profile-v259-hero {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .profile-v259-identity-card {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-v259-strip,
  .profile-v259-stats,
  .profile-v259-tech-grid,
  .profile-v259-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-v259-hero,
  .profile-v259-identity-card,
  .profile-v259-strip,
  .profile-v259-xp-content,
  .profile-v259-stats,
  .profile-v259-tech-grid,
  .profile-v259-side {
    grid-template-columns: 1fr;
  }
  .profile-v259-hero {
    text-align: left;
  }
  .profile-v259-avatar {
    width: 88px;
    height: 88px;
  }
  .profile-v259-card-head {
    display: grid;
  }
}

/* v260: Profile simplified layout - less repetition, clearer FLOXi dashboard composition */
.profile-v260 {
  display: grid;
  gap: 16px;
}

.profile-v260 .panel {
  border-color: rgba(255,255,255,.075);
  background: linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94));
}

.profile-v260-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(56, 201, 255, .10), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(255, 179, 0, .12), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 28, .96), rgba(7, 11, 18, .96)) !important;
}

.profile-v260-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 201, 255, .20);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 179, 0, .18), transparent 46%),
    rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 28px rgba(56, 201, 255, .10), 0 18px 36px rgba(0, 0, 0, .32);
}
.profile-v260-avatar::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, .10);
  pointer-events: none;
}
.profile-v260-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v260-avatar span {
  font-size: 30px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -.04em;
}
.profile-v260-title h2 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
  letter-spacing: -.055em;
}
.profile-v260-title p {
  max-width: 720px;
  margin: 0;
  color: #bcd0e8;
  line-height: 1.55;
}
.profile-v260-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.profile-v260-identity-card { display: grid; gap: 10px; }
.profile-v260-identity-card > div,
.profile-v260-status-list > div,
.profile-v260-tech-grid > div {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,.18);
  min-width: 0;
}
.profile-v260-identity-card span,
.profile-v260-status-list span,
.profile-v260-tech-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.profile-v260-identity-card b,
.profile-v260-status-list b,
.profile-v260-tech-grid b {
  display: block;
  margin-top: 5px;
  color: var(--text);
  word-break: break-word;
}

.profile-v260-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 16px;
  align-items: start;
}
.profile-v260-main,
.profile-v260-side { display: grid; gap: 16px; }
.profile-v260-card { padding: 20px; }
.profile-v260-card-head,
.profile-v260-xp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.profile-v260-card-head.compact {
  display: block;
  margin-bottom: 14px;
}
.profile-v260-card-head h2,
.profile-v260-xp-top h2,
.profile-v260-status-card h2,
.profile-v260-quick-card h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.profile-v260-card-head p,
.profile-v260-xp-top p,
.profile-v260-quick-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.profile-v260-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 179, 0, .22);
  background: rgba(255, 179, 0, .10);
  color: #ffd36c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-v260-xp-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 201, 255, .13), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255, 179, 0, .08), transparent 38%),
    linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94)) !important;
}
.profile-v260-xp-body {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.profile-v260-level-ring {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(56, 201, 255, .28);
  background:
    radial-gradient(circle at 50% 18%, rgba(56, 201, 255, .20), transparent 56%),
    rgba(56, 201, 255, .07);
  box-shadow: inset 0 0 26px rgba(56, 201, 255, .07);
}
.profile-v260-level-ring strong {
  font-size: 36px;
  line-height: 1;
  color: var(--blue);
}
.profile-v260-level-ring span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.profile-v260-xp-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.profile-v260-xp-line span { color: var(--muted); }
.profile-v260-progress {
  height: 10px;
  border-radius: 999px;
  margin: 10px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.06);
}
.profile-v260-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(255, 179, 0, .86));
}
.profile-v260-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.profile-v260 .profile-mini-stat {
  min-height: 70px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.profile-v260 .profile-mini-stat span {
  color: var(--muted);
  font-size: 12px;
}
.profile-v260 .profile-mini-stat b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.profile-v260-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: start;
}
.profile-v260-split .profile-settings-card {
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 179, 0, .08), transparent 34%),
    linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94));
}
.profile-v260-split .profile-settings-card .panel-head { padding: 0; }
.profile-v260-split .profile-settings-card .panel-head h2 { font-size: 24px; }
.profile-v260-split .profile-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-v260-role-cloud,
.profile-v260-module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-v260-role-cloud { margin-bottom: 14px; }
.profile-v260-role-cloud.small { margin: 8px 0 0; }
.profile-v260-module-cloud {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.profile-v260-module-cloud span {
  border: 1px solid rgba(56, 201, 255, .16);
  background: rgba(56, 201, 255, .08);
  color: #9beaff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}
.profile-v260-permission-list { display: grid; gap: 8px; }
.profile-v260-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255,255,255,.03);
}
.profile-v260-permission em {
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.profile-v260-permission.allowed em { color: #7ff0ae; }
.profile-v260-permission.blocked em { color: #ff8f8f; }

.profile-v260-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 16px;
}
.profile-v260-timeline { display: grid; gap: 9px; }
.profile-v260-timeline > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255,255,255,.03);
}
.profile-v260-timeline i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(56,201,255,.36);
}
.profile-v260-timeline b,
.profile-v260-timeline small { display: block; }
.profile-v260-timeline small { margin-top: 3px; color: var(--muted); }
.profile-v260-timeline em {
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  color: #ffd36c;
  letter-spacing: .08em;
}
.profile-v260-tech-details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -.02em;
  list-style: none;
}
.profile-v260-tech-details summary::-webkit-details-marker { display: none; }
.profile-v260-tech-details summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}
.profile-v260-tech-details[open] summary::after { content: "−"; }
.profile-v260-tech-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.profile-v260-status-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,179,0,.10), transparent 42%),
    linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94)) !important;
}
.profile-v260-status-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.profile-v260-action-buttons {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.profile-v260-action-buttons .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1280px) {
  .profile-v260-layout,
  .profile-v260-split,
  .profile-v260-bottom-grid {
    grid-template-columns: 1fr;
  }
  .profile-v260-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 1050px) {
  .profile-v260-hero {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .profile-v260-identity-card {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-v260-stat-row,
  .profile-v260-split .profile-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .profile-v260-hero,
  .profile-v260-identity-card,
  .profile-v260-xp-body,
  .profile-v260-stat-row,
  .profile-v260-side,
  .profile-v260-split .profile-choice-grid {
    grid-template-columns: 1fr;
  }
  .profile-v260-avatar {
    width: 88px;
    height: 88px;
  }
  .profile-v260-card-head,
  .profile-v260-xp-top {
    display: grid;
  }
}

/* v261: Profile straight-line layout - no right column, no repeated sections */
.profile-v261 {
  display: grid;
  gap: 16px;
  max-width: 1480px;
}

.profile-v261 .panel {
  border-color: rgba(255,255,255,.075);
  background: linear-gradient(180deg, rgba(13, 19, 29, .94), rgba(7, 11, 18, .94));
}

.profile-v261-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(56, 201, 255, .10), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(255, 179, 0, .12), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 28, .96), rgba(7, 11, 18, .96)) !important;
}

.profile-v261-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(56, 201, 255, .20);
  background: radial-gradient(circle at 35% 20%, rgba(255, 179, 0, .18), transparent 46%), rgba(255,255,255,.04);
  box-shadow: inset 0 0 28px rgba(56, 201, 255, .10), 0 18px 36px rgba(0,0,0,.32);
}
.profile-v261-avatar::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 21px;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
.profile-v261-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v261-avatar span { font-size: 30px; font-weight: 950; color: var(--text); letter-spacing: -.04em; }

.profile-v261-title h2 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
  letter-spacing: -.055em;
}
.profile-v261-title p { max-width: 760px; margin: 0; color: #bcd0e8; line-height: 1.55; }
.profile-v261-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.profile-v261-hero-facts,
.profile-v261-overview,
.profile-v261-actions,
.profile-v261-two-col,
.profile-v261-stat-row,
.profile-v261-tech-grid {
  display: grid;
  gap: 12px;
}
.profile-v261-hero-facts > div,
.profile-v261-overview-item,
.profile-v261-tech-grid > div {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 15px;
  padding: 12px 14px;
  background: rgba(0,0,0,.18);
  min-width: 0;
}
.profile-v261-hero-facts span,
.profile-v261-overview-item span,
.profile-v261-tech-grid span,
.profile-v261-mini-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.profile-v261-hero-facts b,
.profile-v261-overview-item b,
.profile-v261-tech-grid b {
  display: block;
  margin-top: 5px;
  color: var(--text);
  word-break: break-word;
}
.profile-v261-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}
.profile-v261-overview-item { position: relative; overflow: hidden; }
.profile-v261-overview-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: inherit;
  opacity: .75;
}
.profile-v261-overview-item.accent-gold::before { background: var(--gold); }
.profile-v261-overview-item.accent-cyan::before { background: var(--cyan, #38c9ff); }
.profile-v261-overview-item.accent-blue::before { background: var(--blue); }
.profile-v261-overview-item.accent-green::before { background: #7ff0ae; }
.profile-v261-overview-item small { display: block; margin-top: 4px; color: var(--muted); }

.profile-v261-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 18px;
}
.profile-v261-actions h2,
.profile-v261-section-head h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.profile-v261-action-buttons { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.profile-v261-card { padding: 20px; }
.profile-v261-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.profile-v261-section-head.compact { display: block; margin-bottom: 14px; }
.profile-v261-section-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.profile-v261-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,179,0,.22);
  background: rgba(255,179,0,.10);
  color: #ffd36c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-v261-xp-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(56,201,255,.13), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255,179,0,.08), transparent 38%),
    linear-gradient(180deg, rgba(13,19,29,.94), rgba(7,11,18,.94)) !important;
}
.profile-v261-xp-body { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; align-items: center; }
.profile-v261-level-card {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(56,201,255,.28);
  background: radial-gradient(circle at 50% 18%, rgba(56,201,255,.20), transparent 56%), rgba(56,201,255,.07);
}
.profile-v261-level-card strong { font-size: 36px; line-height: 1; color: var(--blue); }
.profile-v261-level-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.profile-v261-xp-line { display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.profile-v261-xp-line span { color: var(--muted); }
.profile-v261-progress {
  height: 10px;
  border-radius: 999px;
  margin: 10px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.06);
}
.profile-v261-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), rgba(255,179,0,.86)); }
.profile-v261-stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-v261 .profile-mini-stat {
  min-height: 70px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.profile-v261 .profile-mini-stat span { color: var(--muted); font-size: 12px; }
.profile-v261 .profile-mini-stat b { display: block; margin-top: 6px; font-size: 24px; }

.profile-v261-two-col { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); align-items: start; }
.profile-v261-two-col.low-priority { grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); }
.profile-v261 .profile-settings-card {
  padding: 20px;
  background: radial-gradient(circle at 100% 0%, rgba(255,179,0,.08), transparent 34%), linear-gradient(180deg, rgba(13,19,29,.94), rgba(7,11,18,.94));
}
.profile-v261 .profile-settings-card .panel-head { padding: 0; }
.profile-v261 .profile-settings-card .panel-head h2 { font-size: 24px; }
.profile-v261 .profile-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.profile-v261-role-cloud,
.profile-v261-module-cloud > div { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-v261-role-cloud { margin-bottom: 14px; }
.profile-v261-role-cloud.small { margin: 8px 0 0; }
.profile-v261-module-cloud { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.profile-v261-module-cloud > div { margin-top: 8px; }
.profile-v261-module-cloud span:not(.profile-v261-mini-label) {
  border: 1px solid rgba(56,201,255,.16);
  background: rgba(56,201,255,.08);
  color: #9beaff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}
.profile-v261-permission-list { display: grid; gap: 8px; }
.profile-v261-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255,255,255,.03);
}
.profile-v261-permission em { font-style: normal; font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; }
.profile-v261-permission.allowed em { color: #7ff0ae; }
.profile-v261-permission.blocked em { color: #ff8f8f; }
.profile-v261-timeline { display: grid; gap: 9px; }
.profile-v261-timeline > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255,255,255,.03);
}
.profile-v261-timeline i { width: 10px; height: 10px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 18px rgba(56,201,255,.36); }
.profile-v261-timeline b,
.profile-v261-timeline small { display: block; }
.profile-v261-timeline small { margin-top: 3px; color: var(--muted); }
.profile-v261-timeline em { font-style: normal; font-size: 10px; font-weight: 950; color: #ffd36c; letter-spacing: .08em; }
.profile-v261-tech-details summary { cursor: pointer; color: var(--text); font-weight: 950; font-size: 18px; letter-spacing: -.02em; list-style: none; }
.profile-v261-tech-details summary::-webkit-details-marker { display: none; }
.profile-v261-tech-details summary::after { content: "+"; float: right; color: var(--muted); }
.profile-v261-tech-details[open] summary::after { content: "−"; }
.profile-v261-tech-grid { margin-top: 14px; }

@media (max-width: 1280px) {
  .profile-v261-overview,
  .profile-v261-two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .profile-v261-hero { grid-template-columns: 92px minmax(0, 1fr); }
  .profile-v261-hero-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-v261-actions { grid-template-columns: 1fr; }
  .profile-v261-action-buttons { justify-content: flex-start; }
  .profile-v261-stat-row,
  .profile-v261 .profile-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .profile-v261-hero,
  .profile-v261-hero-facts,
  .profile-v261-overview,
  .profile-v261-two-col,
  .profile-v261-xp-body,
  .profile-v261-stat-row,
  .profile-v261 .profile-choice-grid { grid-template-columns: 1fr; }
  .profile-v261-avatar { width: 88px; height: 88px; }
  .profile-v261-section-head { display: grid; }
  .profile-v261-action-buttons .btn { width: 100%; justify-content: center; }
}

/* v262: complete profile rebuild */
.profile-v262 {
  display: grid;
  gap: 16px;
  max-width: 1540px;
}

.profile-v262 .panel {
  border-color: rgba(255, 255, 255, .075);
  background: linear-gradient(145deg, rgba(14, 20, 30, .96), rgba(7, 11, 17, .94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.profile-v262-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  min-height: 178px;
  overflow: hidden;
  position: relative;
}

.profile-v262-identity::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 18%, rgba(56, 201, 255, .16), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(255, 179, 0, .13), transparent 30%);
  pointer-events: none;
}

.profile-v262-id-left,
.profile-v262-actions,
.profile-v262-title,
.profile-v262-pill-row { position: relative; z-index: 1; }
.profile-v262-id-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-v262-avatar {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(56, 201, 255, .16), rgba(255, 179, 0, .10));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 20px 38px rgba(0, 0, 0, .28);
}
.profile-v262-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v262-avatar span { font-size: 32px; font-weight: 950; letter-spacing: -.05em; color: var(--text); }
.profile-v262-title h2 { margin: 8px 0 8px; font-size: clamp(30px, 4vw, 52px); line-height: .95; letter-spacing: -.055em; }
.profile-v262-title p { margin: 0; color: #bcd0e8; max-width: 820px; line-height: 1.55; }
.profile-v262-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile-v262-actions { display: grid; gap: 9px; min-width: 220px; }
.profile-v262-actions .btn { justify-content: center; }

.profile-v262-snapshot,
.profile-v262-main-grid,
.profile-v262-bottom-grid {
  display: grid;
  gap: 14px;
}
.profile-v262-snapshot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-v262-snap-card { padding: 16px 18px; min-height: 92px; display: grid; align-content: center; gap: 5px; }
.profile-v262-snap-card span,
.profile-v262-section-title p,
.profile-v262-settings-group small,
.profile-v262-tech-grid span { color: var(--muted); }
.profile-v262-snap-card > span,
.profile-v262-settings-group > label > span,
.profile-v262-modules > span,
.profile-v262-tech-grid span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 950;
  color: #9eb4d3;
}
.profile-v262-snap-card b { font-size: 18px; color: var(--text); }
.profile-v262-snap-card small { color: var(--muted); }

.profile-v262-progress,
.profile-v262-settings,
.profile-v262-access,
.profile-v262-activity,
.profile-v262-tech { padding: 22px; }
.profile-v262-section-title { margin-bottom: 18px; }
.profile-v262-section-title.compact { margin-bottom: 14px; }
.profile-v262-section-title h2 { margin: 7px 0 7px; font-size: 25px; letter-spacing: -.035em; }
.profile-v262-section-title p { margin: 0; line-height: 1.55; }
.profile-v262-progress-grid { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 24px; align-items: center; }
.profile-v262-level {
  min-height: 135px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(145deg, rgba(56, 201, 255, .20), rgba(56, 201, 255, .05));
  border: 1px solid rgba(56, 201, 255, .25);
}
.profile-v262-level strong { font-size: 43px; color: var(--blue); line-height: 1; }
.profile-v262-level span { text-transform: uppercase; letter-spacing: .10em; color: var(--muted); font-weight: 950; font-size: 11px; }
.profile-v262-xp-flow { display: grid; gap: 14px; }
.profile-v262-rank-line { display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.profile-v262-rank-line span { color: var(--muted); }
.profile-v262-progressbar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.profile-v262-progressbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), rgba(255, 179, 0, .9)); }
.profile-v262-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-v262 .profile-mini-stat { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.profile-v262 .profile-mini-stat span { color: var(--muted); font-size: 12px; }
.profile-v262 .profile-mini-stat b { display: block; margin-top: 6px; font-size: 24px; }

.profile-v262-main-grid { grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); align-items: start; }
.profile-v262-settings-group { display: grid; gap: 14px; }
.profile-v262-settings-group > label { display: grid; gap: 8px; }
.profile-v262-language-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-v262 .profile-choice {
  min-height: 76px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.profile-v262 .profile-choice.active { border-color: rgba(56, 201, 255, .45); background: rgba(56, 201, 255, .08); }
.profile-v262 .profile-choice input { display: none; }
.profile-v262 .profile-choice b { display: block; font-size: 13px; }
.profile-v262-select-wrap { min-height: 54px; }
.profile-v262-switch-list { display: grid; gap: 9px; margin-top: 16px; }
.profile-v262-save-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

.profile-v262-access-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.profile-v262-access-summary > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.profile-v262-access-summary b { display:block; color: var(--text); font-size: 20px; }
.profile-v262-access-summary span { color: var(--muted); font-size: 12px; }
.profile-v262-role-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.profile-v262-role-cloud.small { margin: 8px 0 0; }
.profile-v262-permissions { display: grid; gap: 8px; }
.profile-v262-permission { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); }
.profile-v262-permission span { font-weight: 900; color: var(--text); }
.profile-v262-permission b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.profile-v262-permission.allowed b { color: #7ff0ae; }
.profile-v262-permission.blocked b { color: #ff8f8f; }
.profile-v262-modules { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.profile-v262-modules > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.profile-v262-modules b { padding: 7px 10px; border-radius: 999px; background: rgba(56,201,255,.10); border: 1px solid rgba(56,201,255,.22); color: #bfefff; font-size: 12px; }

.profile-v262-bottom-grid { grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr); align-items: start; }
.profile-v262-activity-list { display: grid; gap: 9px; }
.profile-v262-activity-list > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.profile-v262-activity-list i { width: 10px; height: 10px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 18px rgba(56,201,255,.36); }
.profile-v262-activity-list b,
.profile-v262-activity-list small { display: block; }
.profile-v262-activity-list small { color: var(--muted); margin-top: 3px; }
.profile-v262-activity-list em { font-style: normal; color: #ffd36c; font-size: 10px; font-weight: 950; letter-spacing: .08em; }
.profile-v262-tech summary { cursor: pointer; list-style: none; font-weight: 950; color: var(--text); font-size: 18px; }
.profile-v262-tech summary::-webkit-details-marker { display: none; }
.profile-v262-tech summary::after { content: "+"; float: right; color: var(--muted); }
.profile-v262-tech[open] summary::after { content: "−"; }
.profile-v262-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.profile-v262-tech-grid > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.profile-v262-tech-grid b { display: block; margin-top: 5px; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .profile-v262-identity,
  .profile-v262-main-grid,
  .profile-v262-bottom-grid { grid-template-columns: 1fr; }
  .profile-v262-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-v262-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .profile-v262-id-left { flex-direction: column; align-items: flex-start; }
  .profile-v262-avatar { width: 92px; height: 92px; border-radius: 22px; }
  .profile-v262-actions,
  .profile-v262-snapshot,
  .profile-v262-progress-grid,
  .profile-v262-stats,
  .profile-v262-language-row,
  .profile-v262-access-summary,
  .profile-v262-tech-grid { grid-template-columns: 1fr; }
  .profile-v262-actions .btn { width: 100%; }
}

/* v263: FLOXi profile dashboard with XP overview */
.profile-v263 {
  display: grid;
  gap: 16px;
  max-width: 1540px;
}

.profile-v263 .panel {
  border-color: rgba(255, 255, 255, .075);
  background: linear-gradient(145deg, rgba(14, 20, 30, .96), rgba(7, 11, 17, .94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.profile-v263-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.profile-v263-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 7% 16%, rgba(56, 201, 255, .15), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(255, 179, 0, .13), transparent 34%);
  pointer-events: none;
}
.profile-v263-hero > * { position: relative; z-index: 1; }
.profile-v263-avatar {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(56, 201, 255, .16), rgba(255, 179, 0, .10));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 38px rgba(0,0,0,.25);
}
.profile-v263-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v263-avatar span { font-size: 32px; font-weight: 950; letter-spacing: -.05em; color: var(--text); }
.profile-v263-hero-main h2 { margin: 8px 0 8px; font-size: clamp(32px, 4vw, 54px); line-height: .95; letter-spacing: -.055em; }
.profile-v263-hero-main p { margin: 0; max-width: 780px; line-height: 1.55; color: #bfd2ea; }
.profile-v263-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.profile-v263-hero-actions { display: grid; gap: 9px; min-width: 220px; }
.profile-v263-hero-actions .btn { justify-content: center; }

.profile-v263-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.profile-v263-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 18px 20px;
}
.profile-v263-stat i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(56, 201, 255, .10);
}
.profile-v263-stat.green i { color: #65f2a1; background: rgba(50, 220, 130, .12); }
.profile-v263-stat.gold i { color: #ffd36c; background: rgba(255, 179, 0, .12); }
.profile-v263-stat.cyan i { color: var(--blue); background: rgba(56, 201, 255, .12); }
.profile-v263-stat.muted i { color: #9eb4d3; background: rgba(158, 180, 211, .10); }
.profile-v263-stat b { display: block; color: var(--text); font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.profile-v263-stat span { display: block; margin-top: 5px; color: var(--muted); }

.profile-v263-xp,
.profile-v263-specialization,
.profile-v263-history,
.profile-v263-settings,
.profile-v263-access,
.profile-v263-tech { padding: 24px; }

.profile-v263-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.profile-v263-section-head.compact { margin-bottom: 16px; }
.profile-v263-section-head h2 { margin: 7px 0 6px; font-size: 25px; letter-spacing: -.035em; }
.profile-v263-section-head p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 860px; }
.profile-v263-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffd36c;
  border: 1px solid rgba(255, 179, 0, .28);
  background: rgba(255, 179, 0, .08);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.profile-v263-xp-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.profile-v263-level-ring {
  min-height: 132px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle at 50% 25%, rgba(56,201,255,.22), rgba(56,201,255,.06));
  border: 1px solid rgba(56,201,255,.25);
  box-shadow: inset 0 0 34px rgba(56, 201, 255, .08);
}
.profile-v263-level-ring strong { color: var(--blue); font-size: 44px; line-height: 1; letter-spacing: -.05em; }
.profile-v263-level-ring span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 950; font-size: 11px; }
.profile-v263-xp-content { display: grid; gap: 13px; }
.profile-v263-rank-line { display: flex; justify-content: space-between; gap: 14px; }
.profile-v263-rank-line b { color: var(--text); }
.profile-v263-rank-line span { color: var(--muted); }
.profile-v263-progressbar { height: 13px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.profile-v263-progressbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), rgba(255, 179, 0, .9)); }
.profile-v263-xp-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-v263-xp-meta span { padding: 9px 11px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); color: var(--muted); font-size: 12px; }
.profile-v263-xp-meta b { color: var(--text); }

.profile-v263-specialization-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.profile-v263-specialization-card {
  min-height: 150px;
  padding: 18px 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
}
.profile-v263-specialization-card i { color: var(--blue); width: 30px; height: 30px; margin-bottom: 8px; }
.profile-v263-specialization-card b { color: var(--text); }
.profile-v263-specialization-card strong { color: var(--text); font-size: 26px; letter-spacing: -.04em; margin-top: 4px; }
.profile-v263-specialization-card span { color: var(--muted); font-size: 12px; }
.profile-v263-specialization-card em { color: var(--blue); font-style: normal; font-size: 12px; font-weight: 900; }

.profile-v263-work-grid,
.profile-v263-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  gap: 14px;
  align-items: start;
}
.profile-v263-history-list { display: grid; gap: 11px; }
.profile-v263-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
}
.profile-v263-history-row i {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #65f2a1;
  background: rgba(50, 220, 130, .12);
}
.profile-v263-history-row b,
.profile-v263-history-row small { display: block; }
.profile-v263-history-row b { color: var(--text); }
.profile-v263-history-row small { color: var(--muted); margin-top: 3px; }
.profile-v263-history-row strong { color: #65f2a1; font-size: 18px; white-space: nowrap; }
.profile-v263-history-row em { color: var(--muted); font-style: normal; white-space: nowrap; }
.profile-v263-empty-state { padding: 22px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.14); background: rgba(255,255,255,.025); }
.profile-v263-empty-state b,
.profile-v263-empty-state span { display: block; }
.profile-v263-empty-state span { color: var(--muted); margin-top: 4px; }

.profile-v263-settings-stack { display: grid; gap: 14px; }
.profile-v263-settings-stack > label { display: grid; gap: 8px; }
.profile-v263-settings-stack > label > span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 950;
  color: #9eb4d3;
}
.profile-v263-language-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-v263 .profile-choice {
  min-height: 66px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.profile-v263 .profile-choice.active { border-color: rgba(56, 201, 255, .45); background: rgba(56, 201, 255, .08); }
.profile-v263 .profile-choice input { display: none; }
.profile-v263 .profile-choice b { display: block; font-size: 13px; }
.profile-v263-select-wrap { min-height: 52px; }
.profile-v263-switch-list { display: grid; gap: 9px; margin-top: 16px; }
.profile-v263-save-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.profile-v263-access-top { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.profile-v263-access-top > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.profile-v263-access-top span { color: var(--muted); display: block; font-size: 12px; }
.profile-v263-access-top b { color: var(--text); display: block; margin-top: 4px; font-size: 20px; }
.profile-v263-permission-list { display: grid; gap: 8px; }
.profile-v263-permission { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); }
.profile-v263-permission span { font-weight: 900; color: var(--text); }
.profile-v263-permission b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.profile-v263-permission.allowed b { color: #7ff0ae; }
.profile-v263-permission.blocked b { color: #ff8f8f; }
.profile-v263-module-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.profile-v263-module-pills b { padding: 7px 10px; border-radius: 999px; background: rgba(56,201,255,.10); border: 1px solid rgba(56,201,255,.22); color: #bfefff; font-size: 12px; }
.profile-v263-module-pills small { color: var(--muted); }

.profile-v263-tech summary { cursor: pointer; list-style: none; font-weight: 950; color: var(--text); font-size: 18px; }
.profile-v263-tech summary::-webkit-details-marker { display: none; }
.profile-v263-tech summary::after { content: "+"; float: right; color: var(--muted); }
.profile-v263-tech[open] summary::after { content: "−"; }
.profile-v263-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.profile-v263-tech-grid > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.profile-v263-tech-grid span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 950; }
.profile-v263-tech-grid b { display: block; color: var(--text); margin-top: 5px; overflow-wrap: anywhere; }

@media (max-width: 1240px) {
  .profile-v263-stat-grid,
  .profile-v263-specialization-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-v263-hero,
  .profile-v263-work-grid,
  .profile-v263-admin-grid { grid-template-columns: 1fr; }
  .profile-v263-hero-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .profile-v263-stat-grid,
  .profile-v263-specialization-grid,
  .profile-v263-xp-main,
  .profile-v263-language-row,
  .profile-v263-access-top,
  .profile-v263-tech-grid { grid-template-columns: 1fr; }
  .profile-v263-hero-actions { grid-template-columns: 1fr; }
  .profile-v263-avatar { width: 92px; height: 92px; border-radius: 22px; }
  .profile-v263-history-row { grid-template-columns: auto minmax(0,1fr); }
  .profile-v263-history-row strong,
  .profile-v263-history-row em { justify-self: start; margin-left: 50px; }
}

/* v264 - Profile clean rebuild */
.profile-v264 {
  display: grid;
  gap: 18px;
}
.profile-v264 .panel {
  background: linear-gradient(180deg, rgba(18, 24, 33, .94), rgba(12, 17, 24, .94));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.profile-v264-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
}
.profile-v264-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 201, 255, .15), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 179, 0, .10), transparent 32%);
  pointer-events: none;
}
.profile-v264-hero > * { position: relative; z-index: 1; }
.profile-v264-id {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.profile-v264-avatar {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(56,201,255,.09);
  border: 1px solid rgba(56,201,255,.24);
  box-shadow: 0 0 0 6px rgba(56,201,255,.035), 0 18px 42px rgba(0,0,0,.28);
}
.profile-v264-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v264-avatar span { font-size: 32px; font-weight: 950; color: var(--text); letter-spacing: -.05em; }
.profile-v264-id h2 { margin: 8px 0 8px; font-size: clamp(32px, 4vw, 52px); line-height: .95; letter-spacing: -.055em; }
.profile-v264-id p { margin: 0; color: #c1d2e7; max-width: 760px; line-height: 1.55; }
.profile-v264-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.profile-v264-hero-side {
  display: grid;
  gap: 10px;
  align-content: start;
}
.profile-v264-meta-box {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
}
.profile-v264-meta-box span,
.profile-v264-section-head p,
.profile-v264-category-row small,
.profile-v264-history-row small,
.profile-v264-history-row em,
.profile-v264-settings-stack > label > span,
.profile-v264-access-summary span,
.profile-v264-tech-grid span { color: var(--muted); }
.profile-v264-meta-box span,
.profile-v264-settings-stack > label > span,
.profile-v264-access-summary span,
.profile-v264-tech-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 950;
}
.profile-v264-meta-box b { display: block; margin-top: 5px; color: var(--text); overflow-wrap: anywhere; }
.profile-v264-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 4px; }
.profile-v264-actions .btn { justify-content: center; }
.profile-v264-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 18px;
  align-items: start;
}
.profile-v264-main,
.profile-v264-side { display: grid; gap: 18px; }
.profile-v264-xp,
.profile-v264-specialization,
.profile-v264-history,
.profile-v264-settings,
.profile-v264-access,
.profile-v264-tech { padding: 22px; }
.profile-v264-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.profile-v264-section-head.compact { margin-bottom: 14px; }
.profile-v264-section-head h2 { margin: 7px 0 7px; font-size: 25px; letter-spacing: -.035em; }
.profile-v264-section-head p { margin: 0; line-height: 1.55; }
.profile-v264-badge,
.profile-v264-topcat {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,179,0,.12);
  border: 1px solid rgba(255,179,0,.28);
  color: #ffd76f;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}
.profile-v264-topcat { background: rgba(56,201,255,.10); border-color: rgba(56,201,255,.24); color: #9deaff; }
.profile-v264-xp-line {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.profile-v264-level {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(56,201,255,.18), rgba(255,179,0,.07));
  border: 1px solid rgba(56,201,255,.28);
}
.profile-v264-level strong { font-size: 42px; color: #64dcff; line-height: 1; }
.profile-v264-level span { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-weight: 950; font-size: 11px; }
.profile-v264-xp-flow { display: grid; gap: 13px; }
.profile-v264-rank { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--text); }
.profile-v264-rank span { color: var(--muted); }
.profile-v264-bar { height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.profile-v264-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), rgba(255,179,0,.92)); }
.profile-v264-xp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.profile-v264-xp-stats > div,
.profile-v264-access-summary > div {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.profile-v264-xp-stats span { color: var(--muted); font-size: 12px; }
.profile-v264-xp-stats b { display: block; margin-top: 5px; color: var(--text); font-size: 23px; }
.profile-v264-subgrid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}
.profile-v264-category-list,
.profile-v264-history-list,
.profile-v264-switch-list,
.profile-v264-permission-list { display: grid; gap: 9px; }
.profile-v264-category-row,
.profile-v264-history-row,
.profile-v264-permission {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.profile-v264-category-row { grid-template-columns: 28px minmax(0,1fr) auto; }
.profile-v264-category-row i { color: var(--blue); width: 23px; height: 23px; }
.profile-v264-category-row b,
.profile-v264-history-row b { display: block; color: var(--text); }
.profile-v264-category-row em { color: #50dcff; font-style: normal; font-weight: 950; font-size: 12px; }
.profile-v264-history-row { grid-template-columns: 30px minmax(0,1fr) auto auto; }
.profile-v264-history-row i { width: 30px; height: 30px; padding: 7px; border-radius: 999px; background: rgba(66,239,143,.12); color: #6df0a9; }
.profile-v264-history-row strong { color: #70f0a8; }
.profile-v264-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px dashed rgba(255,255,255,.12);
}
.profile-v264-empty b,
.profile-v264-empty span { display: block; }
.profile-v264-empty span { color: var(--muted); margin-top: 5px; }
.profile-v264-settings-stack { display: grid; gap: 14px; }
.profile-v264-settings-stack > label { display: grid; gap: 8px; }
.profile-v264-language-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.profile-v264 .profile-choice {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.profile-v264 .profile-choice.active { background: rgba(56,201,255,.09); border-color: rgba(56,201,255,.36); }
.profile-v264 .profile-choice input { display: none; }
.profile-v264 .profile-choice b { display: block; }
.profile-v264-select-wrap { min-height: 54px; }
.profile-v264-switch-list { margin-top: 15px; }
.profile-v264-save-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.profile-v264-access-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.profile-v264-access-summary b { display: block; margin-top: 5px; font-size: 20px; color: var(--text); }
.profile-v264-permission { grid-template-columns: minmax(0,1fr) auto; }
.profile-v264-permission span { font-weight: 950; color: var(--text); }
.profile-v264-permission b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.profile-v264-permission.allowed b { color: #7ff0ae; }
.profile-v264-permission.blocked b { color: #ff8f8f; }
.profile-v264-module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.profile-v264-module-pills b { padding: 7px 10px; border-radius: 999px; background: rgba(56,201,255,.10); border: 1px solid rgba(56,201,255,.22); color: #bfefff; font-size: 12px; }
.profile-v264-module-pills small { color: var(--muted); }
.profile-v264-tech summary { cursor: pointer; list-style: none; font-weight: 950; color: var(--text); font-size: 18px; }
.profile-v264-tech summary::-webkit-details-marker { display: none; }
.profile-v264-tech summary::after { content: "+"; float: right; color: var(--muted); }
.profile-v264-tech[open] summary::after { content: "−"; }
.profile-v264-tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.profile-v264-tech-grid > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.profile-v264-tech-grid b { display: block; margin-top: 5px; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .profile-v264-hero,
  .profile-v264-grid,
  .profile-v264-subgrid { grid-template-columns: 1fr; }
  .profile-v264-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .profile-v264-tech-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .profile-v264-id { flex-direction: column; align-items: flex-start; }
  .profile-v264-avatar { width: 92px; height: 92px; }
  .profile-v264-actions,
  .profile-v264-xp-line,
  .profile-v264-xp-stats,
  .profile-v264-language-row,
  .profile-v264-access-summary,
  .profile-v264-tech-grid { grid-template-columns: 1fr; }
  .profile-v264-history-row { grid-template-columns: 30px minmax(0,1fr) auto; }
  .profile-v264-history-row em { grid-column: 2 / -1; }
}

/* v265 Account Center rebuild ------------------------------------------------ */
.profile-v265 {
  display: grid;
  gap: 18px;
  max-width: 1380px;
  margin: 0 auto;
}

.profile-v265 .panel {
  border: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(145deg, rgba(12, 18, 28, .96), rgba(7, 11, 18, .96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.profile-v265-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.profile-v265-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(44, 196, 255, .12), transparent 34%),
    linear-gradient(90deg, rgba(250, 204, 21, .08), transparent 42%);
}
.profile-v265-hero > * { position: relative; z-index: 1; }
.profile-v265-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-v265-avatar {
  width: 98px;
  height: 98px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, .94);
  border: 1px solid rgba(125, 211, 252, .18);
}
.profile-v265-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v265-avatar span { font-size: 32px; font-weight: 950; letter-spacing: -.05em; }
.profile-v265-title h2 { margin: 7px 0 8px; font-size: clamp(30px, 4vw, 50px); line-height: .95; letter-spacing: -.055em; }
.profile-v265-title p { margin: 0; max-width: 720px; color: #bdd0e6; line-height: 1.55; }
.profile-v265-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-v265-actions { display: grid; align-content: center; gap: 10px; min-width: 210px; }
.profile-v265-actions .btn { justify-content: center; }
.profile-v265-actions .btn.ghost { opacity: .86; }

.profile-v265-map { display: grid; gap: 18px; }
.profile-v265-card { padding: 20px; }
.profile-v265-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-v265-card-head h2 { margin: 4px 0 6px; font-size: 23px; letter-spacing: -.035em; }
.profile-v265-card-head p { margin: 0; color: #9fb0c6; line-height: 1.45; }
.profile-v265-step {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 950;
  letter-spacing: .08em;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .11);
  border: 1px solid rgba(125, 211, 252, .23);
}
.profile-v265-planned,
.profile-v265 .profile-dirty-chip {
  margin-left: auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #facc15;
  background: rgba(250, 204, 21, .1);
  border: 1px solid rgba(250, 204, 21, .25);
}

.profile-v265-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 14px;
}
.profile-v265-field {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .56);
  border: 1px solid rgba(148, 163, 184, .13);
}
.profile-v265-field label {
  font-size: 12px;
  color: #c8d7e8;
  font-weight: 900;
  letter-spacing: .04em;
}
.profile-v265-field small { color: #899bb2; line-height: 1.45; }
.profile-v265-language-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-v265-language-list .profile-choice {
  min-height: 74px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(8, 13, 22, .72);
}
.profile-v265-language-list .profile-choice span { font-size: 20px; }
.profile-v265-language-list .profile-choice b { display: block; margin-top: 4px; }
.profile-v265-select-wrap { min-height: 48px; }
.profile-v265-toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.profile-v265-toggle-grid .profile-toggle-row {
  min-height: 84px;
  align-items: center;
  margin: 0;
}
.profile-v265-save-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.profile-v265-access-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.profile-v265-access-top > div,
.profile-v265-module-line {
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, .56);
  border: 1px solid rgba(148, 163, 184, .13);
}
.profile-v265-access-top span,
.profile-v265-module-line > span,
.profile-v265-tech-grid span {
  display: block;
  margin-bottom: 6px;
  color: #8aa0b8;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.profile-v265-access-top b { font-size: 17px; }
.profile-v265-role-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.profile-v265-role-cloud.small { margin: 0; }
.profile-v265-permissions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.profile-v265-permission {
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(8, 13, 22, .66);
  border: 1px solid rgba(148, 163, 184, .12);
}
.profile-v265-permission span { display: block; color: #e5edf8; font-weight: 850; }
.profile-v265-permission b { display: block; margin-top: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.profile-v265-permission.allowed b { color: #6ee7a7; }
.profile-v265-permission.blocked b { color: #fca5a5; }
.profile-v265-module-line { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-v265-module-line div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.profile-v265-module-line b {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .11);
  border: 1px solid rgba(125, 211, 252, .22);
}

.profile-v265-activity-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(14, 165, 233, .11), transparent 36%),
    linear-gradient(145deg, rgba(12, 18, 28, .96), rgba(7, 11, 18, .96));
}
.profile-v265-xp-panel { display: flex; gap: 18px; align-items: stretch; }
.profile-v265-level-box {
  width: 104px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(14, 165, 233, .13);
  border: 1px solid rgba(125, 211, 252, .22);
}
.profile-v265-level-box b { font-size: 34px; line-height: 1; color: #67e8f9; }
.profile-v265-level-box span { margin-top: 5px; color: #9fd8ef; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 950; }
.profile-v265-xp-main { flex: 1; min-width: 0; }
.profile-v265-xp-title { display: flex; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.profile-v265-xp-title b { font-size: 18px; }
.profile-v265-xp-title span { color: #b7c7da; }
.profile-v265-xp-bar { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(148, 163, 184, .13); }
.profile-v265-xp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(34, 211, 238, .8), rgba(250, 204, 21, .85)); }
.profile-v265-xp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.profile-v265-xp-stats div { border-radius: 14px; padding: 12px; background: rgba(8, 13, 22, .55); border: 1px solid rgba(148, 163, 184, .11); }
.profile-v265-xp-stats span { display: block; color: #8ea4bd; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.profile-v265-xp-stats b { display: block; margin-top: 6px; font-size: 20px; }
.profile-v265-activity-list { display: grid; gap: 10px; margin-top: 16px; }
.profile-v265-activity-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  padding: 12px;
  background: rgba(8, 13, 22, .62);
  border: 1px solid rgba(148, 163, 184, .12);
}
.profile-v265-activity-row i { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #66e59b; background: rgba(34, 197, 94, .12); }
.profile-v265-activity-row b { display: block; }
.profile-v265-activity-row small { color: #96a8bf; }
.profile-v265-activity-row strong { color: #6ee7a7; }
.profile-v265-activity-row em { color: #8fa2ba; font-style: normal; }
.profile-v265-empty-state { border-radius: 16px; padding: 18px; background: rgba(8, 13, 22, .6); border: 1px dashed rgba(148, 163, 184, .22); }
.profile-v265-empty-state b { display: block; margin-bottom: 5px; }
.profile-v265-empty-state span { color: #9fb0c6; }

.profile-v265-tech { padding: 0; overflow: hidden; }
.profile-v265-tech summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #cfe0f4;
  font-weight: 950;
}
.profile-v265-tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.profile-v265-tech-grid > div { border-radius: 14px; padding: 13px; background: rgba(15, 23, 42, .55); border: 1px solid rgba(148, 163, 184, .12); min-width: 0; }
.profile-v265-tech-grid b { word-break: break-word; }

@media (max-width: 1180px) {
  .profile-v265-settings-grid,
  .profile-v265-toggle-grid,
  .profile-v265-access-top,
  .profile-v265-permissions,
  .profile-v265-xp-stats,
  .profile-v265-tech-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .profile-v265-hero,
  .profile-v265-identity,
  .profile-v265-xp-panel { flex-direction: column; align-items: stretch; }
  .profile-v265-actions { min-width: 0; }
  .profile-v265-settings-grid,
  .profile-v265-language-list,
  .profile-v265-toggle-grid,
  .profile-v265-access-top,
  .profile-v265-permissions,
  .profile-v265-xp-stats,
  .profile-v265-tech-grid { grid-template-columns: 1fr; }
  .profile-v265-level-box { width: 100%; min-height: 92px; }
  .profile-v265-activity-row { grid-template-columns: 36px minmax(0, 1fr); }
  .profile-v265-activity-row strong,
  .profile-v265-activity-row em { justify-self: start; grid-column: 2; }
}

/* v266 - Account Center + player activity split */
.profile-v266 {
  display: grid;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}
.profile-v266 .panel {
  border: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(180deg, rgba(17, 24, 39, .86), rgba(9, 13, 21, .92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.profile-v266-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  min-height: 180px;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 194, 255, .18), transparent 32%),
    linear-gradient(135deg, rgba(12, 30, 44, .95), rgba(8, 12, 18, .96));
}
.profile-v266-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 194, 255, .08), transparent 38%, rgba(255, 209, 102, .06));
  pointer-events: none;
}
.profile-v266-hero > * { position: relative; z-index: 1; }
.profile-v266-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.profile-v266-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 4px solid rgba(0, 194, 255, .35);
  background: radial-gradient(circle, rgba(0, 194, 255, .14), rgba(4, 10, 16, .95));
  color: #e7f6ff;
  box-shadow: 0 0 0 8px rgba(0, 194, 255, .07), 0 20px 50px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.profile-v266-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-v266-avatar span { font-size: 34px; font-weight: 950; letter-spacing: -.06em; }
.profile-v266-title h2 {
  margin: 8px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -.055em;
}
.profile-v266-title h2 em {
  display: inline-block;
  margin-left: 10px;
  font-size: .42em;
  font-style: normal;
  letter-spacing: .12em;
  color: #38d5ff;
  vertical-align: middle;
}
.profile-v266-title p { margin: 0; max-width: 760px; color: #bdd0e6; line-height: 1.55; }
.profile-v266-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.profile-v266-meta-row > span,
.profile-v266-mini-chip,
.profile-v266-muted-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 213, 255, .22);
  background: rgba(4, 15, 23, .58);
  color: #d9ecff;
  font-size: 12px;
  font-weight: 800;
}
.profile-v266-muted-chip { color: #93a8be; border-color: rgba(148, 163, 184, .18); }
.profile-v266-meta-row svg { width: 14px; height: 14px; color: #38d5ff; }
.profile-v266-hero-side {
  min-width: 310px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}
.profile-v266-level-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(0, 194, 255, .45);
  background: radial-gradient(circle, rgba(0, 194, 255, .13), rgba(2, 8, 14, .96));
  box-shadow: inset 0 0 28px rgba(0, 194, 255, .09), 0 0 28px rgba(0, 194, 255, .08);
}
.profile-v266-level-ring b { color: #25d5ff; font-size: 31px; line-height: 1; }
.profile-v266-level-ring span { margin-top: 5px; color: #9fb3c8; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.profile-v266-hero-xp { width: 210px; }
.profile-v266-hero-xp > span,
.profile-v266-hero-xp small { display: block; color: #8ea1b6; font-size: 12px; }
.profile-v266-hero-xp > span { text-transform: uppercase; letter-spacing: .14em; }
.profile-v266-hero-xp b { display: block; margin: 8px 0; color: #f7fbff; font-size: 26px; }
.profile-v266-hero-xp b small { display: inline; font-size: 14px; color: #8ea1b6; }
.profile-v266-bar,
.profile-v266-spec-row em,
.profile-v266-place-list em {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
}
.profile-v266-bar i,
.profile-v266-spec-row em i,
.profile-v266-place-list em i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16c7ff, #1c6de8);
}
.profile-v266-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.profile-v266-split,
.profile-v266-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  gap: 18px;
  align-items: stretch;
}
.profile-v266-card,
.profile-v266-activity { padding: 22px; }
.profile-v266-headline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-v266-headline.activity-title { align-items: center; }
.profile-v266-headline h2 { margin: 4px 0 6px; font-size: 25px; letter-spacing: -.04em; }
.profile-v266-headline p { margin: 0; color: #9fb0c6; line-height: 1.45; }
.profile-v266-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #38d5ff;
  font-weight: 950;
  background: rgba(0, 194, 255, .1);
  border: 1px solid rgba(0, 194, 255, .24);
}
.profile-v266-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-v266-field { display: grid; gap: 8px; }
.profile-v266-field label {
  color: #e6edf8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-v266-field small { color: #8fa2b8; line-height: 1.4; }
.profile-v266-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-v266-choice,
.profile-v266-language-chip {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 36, .72);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.profile-v266-choice input,
.profile-v266-language-chip input { position: absolute; opacity: 0; pointer-events: none; }
.profile-v266-choice span,
.profile-v266-language-chip span { font-size: 18px; }
.profile-v266-choice b,
.profile-v266-language-chip b { font-size: 13px; }
.profile-v266-choice:hover,
.profile-v266-language-chip:hover { transform: translateY(-1px); border-color: rgba(56, 213, 255, .34); }
.profile-v266-choice.active,
.profile-v266-language-chip.active {
  border-color: rgba(56, 213, 255, .52);
  background: linear-gradient(135deg, rgba(0, 194, 255, .14), rgba(15, 23, 36, .78));
  box-shadow: inset 0 0 0 1px rgba(0, 194, 255, .08);
}
.profile-v266-input,
.profile-v266-select-wrap select {
  min-height: 50px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(8, 13, 22, .84);
  color: #f8fbff;
  font-weight: 850;
  padding: 0 14px;
  outline: none;
}
.profile-v266-input:focus,
.profile-v266-select-wrap:focus-within { border-color: rgba(56, 213, 255, .55); }
.profile-v266-language-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.profile-v266-language-chip { min-height: 50px; justify-content: flex-start; padding: 0 12px; }
.profile-v266-toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.profile-v266-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(9, 14, 23, .72);
}
.profile-v266-toggle.active { border-color: rgba(74, 222, 128, .22); background: rgba(8, 39, 28, .35); }
.profile-v266-toggle b { display: block; color: #f6fbff; font-size: 13px; }
.profile-v266-toggle small { display: block; color: #91a5bd; line-height: 1.35; margin-top: 3px; }
.profile-v266-toggle input { display: none; }
.profile-v266-toggle i {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(148, 163, 184, .18);
  position: relative;
}
.profile-v266-toggle i::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  background: #9ca3af;
  transition: transform .15s ease, background .15s ease;
}
.profile-v266-toggle.active i { background: rgba(74, 222, 128, .24); }
.profile-v266-toggle.active i::after { transform: translateX(18px); background: #86efac; }
.profile-v266-save-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.profile-v266-access-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-v266-access-summary > div {
  min-height: 70px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, .13);
  background: rgba(9, 14, 23, .68);
}
.profile-v266-access-summary span,
.profile-v266-modules > span,
.profile-v266-tech-grid span {
  display: block;
  color: #93a8be;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-v266-access-summary b { display: block; margin-top: 6px; color: #f8fbff; }
.profile-v266-role-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.profile-v266-role-cloud.small { margin: 8px 0 0; }
.profile-v266-permissions { display: grid; gap: 8px; }
.profile-v266-permission {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 29, .72);
  border: 1px solid rgba(148, 163, 184, .12);
}
.profile-v266-permission b { color: #75f3a7; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.profile-v266-permission.blocked b { color: #fb7185; }
.profile-v266-modules { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(148, 163, 184, .12); }
.profile-v266-modules div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profile-v266-modules b {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 194, 255, .1);
  color: #9ceaff;
  font-size: 12px;
}
.profile-v266-planned,
.profile-v266 .profile-dirty-chip {
  margin-left: auto;
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, .25);
  background: rgba(255, 209, 102, .09);
  color: #ffe38a;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-v266-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.profile-v266-stat {
  min-height: 95px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon number" "icon label";
  align-items: center;
  column-gap: 14px;
  padding: 17px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(13, 20, 31, .78);
}
.profile-v266-stat svg { grid-area: icon; width: 28px; height: 28px; padding: 12px; box-sizing: content-box; border-radius: 14px; background: rgba(0, 194, 255, .1); color: #38d5ff; }
.profile-v266-stat.green svg { background: rgba(34, 197, 94, .13); color: #4ade80; }
.profile-v266-stat.gold svg { background: rgba(245, 158, 11, .12); color: #fbbf24; }
.profile-v266-stat.flame svg { background: rgba(251, 191, 36, .12); color: #f59e0b; }
.profile-v266-stat b { grid-area: number; color: #f8fbff; font-size: 26px; line-height: 1; }
.profile-v266-stat span { grid-area: label; color: #91a5bd; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.profile-v266-subpanel {
  border: 1px solid rgba(148, 163, 184, .13);
  background: rgba(10, 15, 24, .54);
  border-radius: 18px;
  padding: 22px;
}
.profile-v266-subpanel.full { margin-top: 18px; }
.profile-v266-subpanel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #f8fbff;
  font-size: 24px;
  letter-spacing: -.04em;
}
.profile-v266-subpanel h3 svg { color: #38d5ff; width: 20px; height: 20px; }
.profile-v266-subpanel p { margin: 0 0 18px; color: #9fb0c6; }
.profile-v266-spec-list,
.profile-v266-place-list,
.profile-v266-history { display: grid; gap: 12px; }
.profile-v266-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}
.profile-v266-spec-row > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-v266-spec-row svg { width: 17px; height: 17px; color: #38d5ff; }
.profile-v266-spec-row b { color: #f8fbff; }
.profile-v266-spec-row span { color: #8ea1b6; font-size: 12px; }
.profile-v266-spec-row strong { color: #38d5ff; font-size: 13px; }
.profile-v266-spec-row em { grid-column: 1 / -1; height: 7px; }
.profile-v266-place-list > div {
  display: grid;
  gap: 8px;
}
.profile-v266-place-list span { color: #f8fbff; font-weight: 850; }
.profile-v266-place-list b { color: #9fb0c6; font-size: 12px; justify-self: end; margin-top: -26px; }
.profile-v266-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(15, 23, 36, .72);
}
.profile-v266-history-row > svg {
  width: 22px;
  height: 22px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: 50%;
  color: #4ade80;
  background: rgba(34, 197, 94, .15);
}
.profile-v266-history-row b { display: block; color: #f8fbff; }
.profile-v266-history-row small { color: #8fa2b8; }
.profile-v266-history-row strong { color: #4ade80; }
.profile-v266-history-row em { color: #8fa2b8; font-style: normal; }
.profile-v266-empty-state {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, .18);
  color: #9fb0c6;
}
.profile-v266-empty-state b { color: #f8fbff; }
.profile-v266-tech { padding: 16px 18px; }
.profile-v266-tech summary { cursor: pointer; color: #dbeafe; font-weight: 900; }
.profile-v266-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.profile-v266-tech-grid > div {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(8, 13, 22, .62);
  padding: 12px;
}
.profile-v266-tech-grid > div.wide { grid-column: span 2; }
.profile-v266-tech-grid b { display: block; margin-top: 5px; overflow-wrap: anywhere; color: #f8fbff; }
@media (max-width: 1180px) {
  .profile-v266-hero,
  .profile-v266-split,
  .profile-v266-activity-grid { grid-template-columns: 1fr; }
  .profile-v266-hero-side { justify-content: flex-start; min-width: 0; }
  .profile-v266-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .profile-v266-identity { align-items: flex-start; flex-direction: column; }
  .profile-v266-avatar { width: 96px; height: 96px; }
  .profile-v266-hero-side { align-items: flex-start; flex-direction: column; }
  .profile-v266-form-grid,
  .profile-v266-toggle-grid,
  .profile-v266-access-summary,
  .profile-v266-choice-grid,
  .profile-v266-language-grid,
  .profile-v266-stat-grid,
  .profile-v266-tech-grid { grid-template-columns: 1fr; }
  .profile-v266-history-row { grid-template-columns: auto minmax(0, 1fr); }
  .profile-v266-history-row strong,
  .profile-v266-history-row em { justify-self: start; }
}

/* v267 - Profile account polish: spoken language menu, flagicons and specialization settings */
.profile-v267-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-v267-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
.profile-v266-mini-chip .profile-v267-flag,
.profile-v266-meta-row .profile-v267-flag {
  width: 18px;
  height: 13px;
}
.profile-v267-flag-fallback {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 16px;
  font-size: 14px;
}
.profile-v267-menu {
  position: relative;
  z-index: 5;
}
.profile-v267-menu[open] { z-index: 20; }
.profile-v267-menu summary {
  min-height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  list-style: none;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(8, 13, 22, .84);
  color: #f8fbff;
  font-weight: 850;
}
.profile-v267-menu summary::-webkit-details-marker { display: none; }
.profile-v267-menu summary span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-v267-menu summary svg {
  width: 17px;
  height: 17px;
  color: #38d5ff;
  transition: transform .15s ease;
}
.profile-v267-menu[open] summary {
  border-color: rgba(56, 213, 255, .5);
  box-shadow: 0 0 0 3px rgba(56, 213, 255, .08);
}
.profile-v267-menu[open] summary svg { transform: rotate(180deg); }
.profile-v267-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(56, 213, 255, .24);
  background: rgba(7, 11, 18, .98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.profile-v267-menu-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .1);
  background: rgba(15, 23, 36, .54);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.profile-v267-menu-option:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 213, 255, .32);
  background: rgba(15, 31, 46, .78);
}
.profile-v267-menu-option.active {
  border-color: rgba(56, 213, 255, .5);
  background: linear-gradient(135deg, rgba(0, 194, 255, .14), rgba(15, 23, 36, .78));
}
.profile-v267-menu-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.profile-v267-menu-option > svg {
  width: 21px;
  height: 21px;
  color: #38d5ff;
  flex: 0 0 auto;
}
.profile-v267-menu-option span { min-width: 0; }
.profile-v267-menu-option b {
  display: block;
  color: #f8fbff;
  font-size: 13px;
}
.profile-v267-menu-option small {
  display: block;
  margin-top: 2px;
  color: #8fa2b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.profile-v267-selected-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-v267-selected-specs > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 213, 255, .22);
  background: rgba(0, 194, 255, .1);
  color: #d9ecff;
  font-weight: 850;
}
.profile-v267-selected-specs svg,
.profile-v266-mini-chip svg {
  width: 16px;
  height: 16px;
  color: #38d5ff;
}
@media (max-width: 760px) {
  .profile-v267-form-grid { grid-template-columns: 1fr; }
  .profile-v267-menu-panel { position: static; margin-top: 8px; }
}

.server-refresh-btn{
  width:100%;
  margin-top:8px;
  border:1px solid rgba(250,204,21,.28);
  border-radius:10px;
  background:rgba(250,204,21,.08);
  color:#f8e08a;
  font-weight:800;
  padding:9px 10px;
  cursor:pointer;
}
.server-refresh-btn:hover{background:rgba(250,204,21,.14);}

/* v305 sidebar counters */
.nav a .nav-count {
  margin-left: auto;
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(96, 206, 255, 0.12);
  border: 1px solid rgba(96, 206, 255, 0.22);
  color: var(--accent-cyan, #7ee7ff);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}
.sidebar-collapsed .nav a .nav-count { display: none; }

/* v305 task bulk action toolbar */
.task-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.task-bulk-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.task-bulk-controls select,
.task-bulk-controls input {
  min-height: 2.25rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(129, 160, 192, 0.22);
  background: rgba(9, 15, 24, 0.7);
  color: var(--text, #f2f6ff);
  padding: 0 0.7rem;
}
.task-bulk-selected {
  color: var(--muted, #8ea0b8);
  font-size: 0.82rem;
  font-weight: 700;
}

/* v308 task bulk selection mode + safer smart drawer backdrop */
.task-form-backdrop {
  cursor: default;
}
.task-bulk-toolbar-idle {
  justify-content: flex-start;
  border: 1px dashed rgba(126, 231, 255, 0.18);
  background: rgba(6, 14, 24, 0.35);
}
.task-bulk-toolbar-active {
  border: 1px solid rgba(126, 231, 255, 0.24);
  background: rgba(6, 25, 38, 0.55);
  box-shadow: inset 0 0 0 1px rgba(126, 231, 255, 0.05);
}
.task-bulk-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.task-bulk-help {
  color: var(--muted, #8ea0b8);
  font-size: 0.82rem;
}
.task-select-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted, #8ea0b8);
  font-size: 0.86rem;
  font-weight: 700;
}
.task-row .row-check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-cyan, #7ee7ff);
}


/* v310 temporary Discord Components v2 panel builder */
.dev-discord-entry-panel{grid-column:1/-1;border-color:rgba(88,101,242,.24)}
.dev-panel-builder-page{display:grid;gap:14px}
.dev-panel-builder-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(16,24,36,.9),rgba(9,15,25,.78));box-shadow:var(--shadow);padding:18px}
.dev-panel-builder-hero h2{margin:12px 0 8px;font-size:28px;line-height:1.15;letter-spacing:-.03em}
.dev-panel-builder-hero p{margin:0;max-width:850px;color:var(--muted);font-size:13px;line-height:1.55}
.dev-panel-builder-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dev-panel-builder-grid{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr);gap:14px;align-items:start}
.dev-panel-form-grid{display:grid;gap:13px}
.dev-panel-channel-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}
.dev-panel-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.dev-panel-result{display:grid;gap:3px;margin-top:12px;padding:11px 12px;border-radius:13px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.035)}
.dev-panel-result.ok{border-color:rgba(94,224,146,.24);background:rgba(94,224,146,.08)}
.dev-panel-result.fail{border-color:rgba(255,91,119,.25);background:rgba(255,91,119,.08)}
.dev-panel-result span{color:var(--muted);font-size:12px}
.dev-panel-preview-panel .panel-body{min-height:250px}
.dev-panel-empty-preview{display:grid;place-items:center;min-height:220px;border:1px dashed rgba(255,255,255,.13);border-radius:16px;color:var(--muted);text-align:center;padding:22px;background:rgba(255,255,255,.02)}
.dev-discord-card{border-left:4px solid var(--dev-accent);border-radius:15px;background:#111822;border-top:1px solid rgba(255,255,255,.08);border-right:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);padding:14px;display:grid;gap:11px;box-shadow:0 18px 45px rgba(0,0,0,.25)}
.dev-discord-text{font-size:13px;line-height:1.45;color:#eef4ff;white-space:normal}
.dev-discord-text:first-child{font-size:14px}
.dev-discord-separator{height:1px;background:rgba(255,255,255,.12);margin:1px 0}
.dev-discord-buttons{display:flex;flex-wrap:wrap;gap:8px}
.dev-discord-buttons span{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:rgba(255,255,255,.075);color:#eef4ff;font-size:12px;font-weight:800}
.dev-discord-unknown{color:var(--muted);font-size:12px}
.dev-panel-json{max-height:430px;overflow:auto;margin:0;padding:14px;border-radius:14px;background:rgba(2,6,12,.68);border:1px solid rgba(255,255,255,.08);color:#cfe4ff;font-size:12px;line-height:1.48;white-space:pre-wrap}
@media(max-width:980px){.dev-panel-builder-hero{flex-direction:column}.dev-panel-builder-badges{justify-content:flex-start}.dev-panel-builder-grid{grid-template-columns:1fr}.dev-panel-channel-row{grid-template-columns:1fr}}

/* v313 live editable Discord payload JSON */
.dev-panel-json-panel .panel-head{align-items:center;gap:12px}
.dev-panel-json-state{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;letter-spacing:.02em;text-transform:uppercase;border:1px solid rgba(255,255,255,.12);white-space:nowrap}
.dev-panel-json-state.ok{color:#9ef5c2;background:rgba(94,224,146,.10);border-color:rgba(94,224,146,.22)}
.dev-panel-json-state.bad{color:#ff9aae;background:rgba(255,91,119,.10);border-color:rgba(255,91,119,.22)}
textarea.dev-panel-json{display:block;width:100%;min-height:460px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;outline:none}
textarea.dev-panel-json:focus{border-color:rgba(126,231,255,.34);box-shadow:0 0 0 3px rgba(126,231,255,.08)}

.dev-panel-json-hint{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.55}
.dev-panel-json-hint code{color:#cfe4ff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);padding:2px 5px;border-radius:7px}
.dev-panel-json-error{margin-top:10px;border:1px solid rgba(255,91,119,.24);background:rgba(255,91,119,.09);color:#ffc0ca;border-radius:12px;padding:10px 12px;font-size:12px;font-weight:700}
.dev-discord-section{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:13px;padding:11px 12px}
.dev-discord-section .dev-discord-text{font-size:12px}
.dev-discord-section-accessory{display:flex;align-items:center;justify-content:flex-end}
.dev-discord-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:rgba(255,255,255,.075);color:#eef4ff;font-size:12px;font-weight:900;white-space:nowrap}
.dev-discord-button.style-3{background:rgba(45,194,112,.22);border-color:rgba(45,194,112,.34)}
.dev-discord-button.style-4{background:rgba(255,91,119,.18);border-color:rgba(255,91,119,.32)}
.dev-discord-button.style-1{background:rgba(88,101,242,.24);border-color:rgba(88,101,242,.36)}
.dev-discord-select{display:grid;gap:4px;border:1px solid rgba(126,231,255,.15);background:rgba(126,231,255,.055);border-radius:10px;padding:10px 11px;color:#dff7ff;font-size:12px}
.dev-discord-select span{color:var(--muted)}
.dev-discord-select div{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.dev-discord-select em{font-style:normal;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.06);border-radius:999px;padding:3px 7px;color:#eef4ff;font-size:11px}
.dev-discord-media{border:1px dashed rgba(255,255,255,.16);border-radius:12px;padding:12px;color:var(--muted);font-size:12px;text-align:center;background:rgba(255,255,255,.025)}
.dev-discord-separator.soft{background:transparent;height:4px;margin:0}

/* v322 stockpile group shared visibility toggle */
.stockpile-group-shared-toggle{display:flex;gap:12px;align-items:flex-start;margin:12px 0;padding:12px 13px;border:1px solid rgba(126,231,255,.14);background:rgba(126,231,255,.055);border-radius:14px;color:var(--text)}
.stockpile-group-shared-toggle input{margin-top:3px;accent-color:#38c9ff}
.stockpile-group-shared-toggle span{display:grid;gap:3px;line-height:1.35}
.stockpile-group-shared-toggle b{font-size:13px}
.stockpile-group-shared-toggle small{color:var(--muted);font-size:12px;line-height:1.45}


/* v324 stockpile group shared switch polish */
.stockpile-group-shared-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border:1px solid rgba(126,231,255,.14);
  background:rgba(126,231,255,.045);
  border-radius:16px;
  padding:13px 14px;
  margin:12px 0 14px;
}
.stockpile-group-shared-card.active{
  border-color:rgba(34,197,94,.24);
  background:linear-gradient(135deg,rgba(34,197,94,.075),rgba(126,231,255,.035));
}
.stockpile-group-shared-copy{display:grid;gap:4px;min-width:0}
.stockpile-group-shared-copy b{font-size:13px;font-weight:900;color:var(--text)}
.stockpile-group-shared-copy small{font-size:11px;line-height:1.35;color:var(--muted);font-weight:700}
.task-toggle-line.stockpile-group-shared-switch{
  width:auto;
  min-width:132px;
  padding:9px 11px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
}
.task-toggle-line.stockpile-group-shared-switch span{font-size:12px;font-weight:900;white-space:nowrap}
.task-toggle-line.stockpile-group-shared-switch i{width:46px;height:24px}
.task-toggle-line.stockpile-group-shared-switch i::after{width:16px;height:16px;top:3px;left:4px}
.task-toggle-line.stockpile-group-shared-switch.active i::after{left:24px}
@media(max-width:720px){.stockpile-group-shared-card{grid-template-columns:1fr}.task-toggle-line.stockpile-group-shared-switch{width:100%;}}

/* v325 public stockpile inventory upload page */
.public-stockpile-upload-page{min-height:100vh;margin:0;background:radial-gradient(circle at top left,rgba(56,201,255,.18),transparent 36%),radial-gradient(circle at bottom right,rgba(94,224,146,.10),transparent 32%),#07111c;color:#eef4ff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.public-upload-shell{min-height:100vh;display:grid;place-items:center;padding:28px}
.public-upload-card{width:min(860px,100%);display:grid;gap:16px;border:1px solid rgba(126,231,255,.16);border-radius:26px;background:linear-gradient(180deg,rgba(14,24,37,.92),rgba(7,13,23,.94));box-shadow:0 30px 100px rgba(0,0,0,.42);padding:22px}
.public-upload-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.public-upload-brand{display:flex;align-items:center;gap:10px;font-weight:950;letter-spacing:.02em}
.public-upload-logo{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,#38c9ff,#5ee092);color:#04101a;font-weight:950;box-shadow:0 12px 35px rgba(56,201,255,.24)}
.public-upload-kicker{border:1px solid rgba(126,231,255,.18);background:rgba(126,231,255,.07);color:#9eeeff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.public-upload-target{display:flex;align-items:center;gap:13px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035);padding:14px}
.public-upload-target-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:rgba(56,201,255,.13);font-size:24px}
.public-upload-target h2{margin:0 0 4px;font-size:20px;letter-spacing:-.02em}.public-upload-target p{margin:0;color:#aeb9c8;font-size:13px}.public-upload-target code{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);border-radius:7px;padding:2px 6px;color:#dff7ff}
.public-upload-skeleton{height:22px;width:260px;max-width:70%;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.12),rgba(255,255,255,.06));animation:publicUploadPulse 1.4s infinite}.public-upload-skeleton.small{width:180px;height:14px}@keyframes publicUploadPulse{0%,100%{opacity:.45}50%{opacity:1}}
.public-upload-drop{border:1px dashed rgba(126,231,255,.28);border-radius:22px;background:linear-gradient(180deg,rgba(126,231,255,.07),rgba(255,255,255,.025));padding:22px;display:grid;gap:12px;outline:none}.public-upload-drop:focus-within,.public-upload-drop:focus{border-color:rgba(94,224,146,.42);box-shadow:0 0 0 4px rgba(94,224,146,.08)}
.public-upload-drop-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:rgba(94,224,146,.13);border:1px solid rgba(94,224,146,.22);font-weight:950;color:#bafad3}.public-upload-drop h1{margin:0;font-size:28px;letter-spacing:-.04em}.public-upload-drop p{margin:0;max-width:720px;color:#aeb9c8;line-height:1.55;font-size:14px}
.public-upload-drop textarea{width:100%;min-height:150px;resize:vertical;border-radius:17px;border:1px solid rgba(255,255,255,.10);background:rgba(1,6,13,.58);color:#eaf4ff;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:1.5;outline:none}.public-upload-drop textarea:disabled{opacity:.65}.public-upload-drop textarea:focus{border-color:rgba(126,231,255,.34);box-shadow:0 0 0 4px rgba(126,231,255,.08)}
.public-upload-preview{border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(255,255,255,.035);padding:14px;display:grid;gap:12px}.public-upload-preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.public-upload-preview h2{margin:0 0 4px;font-size:18px}.public-upload-preview p{margin:0;color:#aeb9c8;font-size:12px}.public-upload-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:340px;overflow:auto;padding-right:4px}.public-upload-item{display:flex;justify-content:space-between;gap:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.16);padding:9px 10px;font-size:13px}.public-upload-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-upload-item b{color:#bafad3}.public-upload-more{grid-column:1/-1;text-align:center;color:#aeb9c8;border:1px dashed rgba(255,255,255,.12);border-radius:12px;padding:10px}
.public-upload-warning{border:1px solid rgba(255,195,90,.24);background:rgba(255,195,90,.08);color:#ffe0a8;border-radius:16px;padding:12px}.public-upload-warning p{margin:0 0 5px}.public-upload-warning p:last-child{margin-bottom:0}.public-upload-actions{display:flex;justify-content:flex-end;gap:10px}.public-upload-result{border-radius:18px;padding:15px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.035)}.public-upload-result h2{margin:0 0 6px;font-size:19px}.public-upload-result p{margin:0;color:#aeb9c8}.public-upload-result.ok{border-color:rgba(94,224,146,.28);background:rgba(94,224,146,.10)}.public-upload-result.fail{border-color:rgba(255,91,119,.30);background:rgba(255,91,119,.10)}.public-upload-result.warn{border-color:rgba(255,195,90,.30);background:rgba(255,195,90,.10)}.is-hidden{display:none!important}
@media(max-width:680px){.public-upload-shell{padding:14px}.public-upload-card{padding:15px;border-radius:20px}.public-upload-head,.public-upload-preview-head{align-items:flex-start;flex-direction:column}.public-upload-drop h1{font-size:23px}.public-upload-actions{justify-content:stretch}.public-upload-actions .btn{width:100%}}

/* v328 public stockpile inventory view page */
.public-stockpile-view-page{background:radial-gradient(circle at 8% 0%,rgba(56,201,255,.17),transparent 34%),radial-gradient(circle at 100% 12%,rgba(88,101,242,.11),transparent 30%),#07111c}
.public-view-shell{min-height:100vh;padding:24px;display:grid;place-items:start center;background:radial-gradient(circle at top right,rgba(217,167,64,.10),transparent 28%),radial-gradient(circle at top left,rgba(42,194,255,.08),transparent 22%),linear-gradient(180deg,#070b12 0%,#050910 100%)}
.public-view-card,.public-inventory-card{width:min(1320px,100%);display:grid;gap:15px;border:1px solid rgba(255,255,255,.06);border-radius:26px;background:linear-gradient(180deg,rgba(10,16,28,.98),rgba(6,10,18,.98));box-shadow:0 28px 80px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.03);padding:22px;position:relative;overflow:hidden}.public-view-card::before,.public-inventory-card::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,rgba(42,194,255,.0),rgba(42,194,255,.45) 25%,rgba(217,167,64,.45) 78%,rgba(217,167,64,.0));pointer-events:none}
.public-view-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:22px;background:linear-gradient(90deg,rgba(12,20,35,.98),rgba(10,16,28,.96));padding:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.public-view-hero-main{display:flex;align-items:center;gap:15px;min-width:0}
.public-view-hero-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:linear-gradient(180deg,rgba(37,199,255,.22),rgba(61,232,172,.18));border:1px solid rgba(106,214,255,.18);font-size:30px;color:#dff8ff;box-shadow:0 10px 24px rgba(18,87,140,.18)}
.public-view-eyebrow{margin:0 0 5px;color:#ffcf66;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.09em}
.public-view-hero h1{margin:0 0 5px;font-size:30px;letter-spacing:-.04em;color:#f5f7fb}
.public-view-hero p{margin:0;color:#98a8be;font-size:13px}.public-view-hero code{background:rgba(30,48,76,.65);border:1px solid rgba(91,124,171,.25);border-radius:7px;padding:2px 6px;color:#dcecff;font-weight:800}
.public-view-stats{display:grid;grid-template-columns:repeat(3,auto);gap:10px}.public-view-stats div{min-width:104px;border:1px solid rgba(255,255,255,.06);border-radius:15px;background:linear-gradient(180deg,rgba(8,13,24,.95),rgba(6,10,18,.95));padding:12px 12px;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.public-view-stats b{display:block;font-size:28px;line-height:1;color:#dff8ff}.public-view-stats span{display:block;color:#b6c4d7;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;margin-top:6px}
.public-view-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 194px minmax(260px,340px);gap:12px;align-items:stretch}
.public-view-filter-panel,.public-view-control-panel{border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(8,14,26,.98),rgba(6,10,18,.98));border-radius:18px;padding:12px 14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
.public-view-control-title{display:block;color:#8ba0bc;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;margin:0 0 10px}
.public-view-filters{display:flex;gap:8px;flex-wrap:wrap;overflow:visible;padding:0}.public-view-filter{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(13,21,36,.96),rgba(9,14,26,.96));color:#d7e0ef;border-radius:13px;padding:10px 12px;font-weight:850;font-size:13px;white-space:nowrap;cursor:pointer;transition:.16s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.public-view-filter:hover{border-color:rgba(217,167,64,.26);transform:translateY(-1px)}.public-view-filter.active{border-color:rgba(217,167,64,.34);background:linear-gradient(180deg,rgba(53,38,10,.96),rgba(29,22,9,.96));color:#fff0be;box-shadow:inset 0 1px 0 rgba(255,236,183,.06),0 10px 24px rgba(217,167,64,.10)}.public-view-filter em{font-style:normal;opacity:.95}.public-view-filter span{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.06);color:#a7b7ca;font-size:12px;font-weight:900}.public-view-filter.active span{background:rgba(255,222,133,.10);color:#ffe8a5}
.public-view-sort{display:flex;align-items:center;gap:8px;color:#8ea0b8;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.public-view-sort select{width:100%;appearance:none;border:1px solid rgba(255,255,255,.07);background:linear-gradient(180deg,rgba(13,21,36,.96),rgba(8,13,23,.96));color:#eef4ff;border-radius:12px;padding:12px 38px 12px 12px;font-weight:850;font-size:13px;outline:none;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#d9a740 50%),linear-gradient(135deg,#d9a740 50%,transparent 50%);background-position:calc(100% - 16px) 54%,calc(100% - 10px) 54%;background-size:6px 6px,6px 6px;background-repeat:no-repeat;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.public-view-sort select:focus{border-color:rgba(217,167,64,.34);box-shadow:0 0 0 3px rgba(217,167,64,.08)}
.public-view-search{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(8,14,26,.98),rgba(6,10,18,.98));border-radius:18px;padding:0 14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.public-view-search>span{color:#d9a740;font-size:17px}.public-view-search input{width:100%;height:64px;border:0;background:transparent;color:#eef4ff;outline:none;font-size:15px}.public-view-search input::placeholder{color:#6d7f97}
.public-view-info{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:linear-gradient(180deg,rgba(10,16,28,.98),rgba(8,14,26,.98));padding:14px 15px;color:#9aacc3;font-size:13px}.public-view-note{font-weight:800;color:#eaf0f9}.public-view-updated b{color:#dff8ff}.public-view-inventory{display:grid;gap:14px}
.public-view-category{border:1px solid rgba(255,255,255,.06);border-radius:20px;background:linear-gradient(180deg,rgba(10,16,28,.98),rgba(8,13,22,.98));overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.public-view-category-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 16px;border-bottom:1px solid rgba(255,255,255,.06);background:linear-gradient(90deg,rgba(11,18,31,.98),rgba(9,15,26,.98));position:relative}.public-view-category-head::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#28c7ff,#d9a740)}.public-view-category-head h2{margin:0 0 3px;font-size:20px;letter-spacing:-.02em;color:#f2f6fc}.public-view-category-head p{margin:0;color:#93a6bf;font-size:12px}.public-view-category-head>span{color:#fff0be;font-size:14px;font-weight:950;border:1px solid rgba(217,167,64,.24);background:rgba(217,167,64,.10);border-radius:999px;padding:7px 10px}
.public-view-item-grid{display:grid;grid-template-columns:1fr;gap:12px;padding:12px}.public-view-item-grid.is-two-columns{grid-template-columns:1fr 1fr}
.public-view-item-card{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:14px;align-items:center;min-height:88px;border:1px solid rgba(255,255,255,.06);border-radius:18px;background:linear-gradient(90deg,rgba(9,15,27,.98),rgba(7,12,21,.98));padding:14px 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}.public-view-item-card:hover{border-color:rgba(217,167,64,.18)}.public-view-item-media{display:grid;place-items:center;width:74px;height:74px}.public-view-item-media i{display:grid;place-items:center;width:74px;height:74px;font-style:normal;background:transparent;border:0;border-radius:0;box-shadow:none}.public-view-item-media .public-item-icon-img{width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(0,0,0,.40))}.public-view-item-media .public-item-icon-fallback{font-size:34px}.public-view-item-main{min-width:0;display:grid;gap:6px}.public-view-item-main strong{font-size:16px;line-height:1.25;color:#f3f6fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-view-item-main span{display:inline-flex;align-items:center;width:max-content;border:1px solid rgba(74,95,128,.28);background:rgba(13,20,35,.95);color:#9eb0c8;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.public-view-item-qty{font-size:26px;line-height:1;color:#ffe184;font-weight:950;min-width:44px;text-align:right}
.public-view-empty{border:1px dashed rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.025);padding:28px;text-align:center;color:#aeb9c8;font-weight:800}
.public-inventory-tabs{display:flex;gap:9px;flex-wrap:wrap;border:1px solid rgba(255,255,255,.06);border-radius:18px;background:linear-gradient(180deg,rgba(10,16,28,.98),rgba(8,14,26,.98));padding:8px}.public-inventory-tab{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(13,21,36,.96),rgba(9,14,26,.96));color:#d8e8ff;border-radius:13px;padding:10px 14px;font-size:13px;font-weight:950;letter-spacing:.01em;cursor:pointer;transition:.16s ease}.public-inventory-tab:hover{border-color:rgba(217,167,64,.20);background:rgba(217,167,64,.06)}.public-inventory-tab.active{border-color:rgba(217,167,64,.30);background:linear-gradient(180deg,rgba(53,38,10,.96),rgba(29,22,9,.96));color:#fff0be;box-shadow:0 12px 34px rgba(217,167,64,.08)}.public-inventory-panel{display:grid;gap:14px}.public-inventory-upload-actions{justify-content:space-between}
@media(max-width:1050px){.public-view-toolbar{grid-template-columns:1fr}.public-view-search input{height:54px}.public-view-item-grid.is-two-columns{grid-template-columns:1fr}}
@media(max-width:850px){.public-view-shell{padding:14px}.public-view-card,.public-inventory-card{padding:15px;border-radius:20px}.public-view-hero{grid-template-columns:1fr}.public-view-stats{grid-template-columns:repeat(3,1fr)}.public-view-info{display:grid}.public-view-hero h1{font-size:24px}.public-view-stats div{min-width:0}.public-view-item-card{grid-template-columns:64px minmax(0,1fr) auto;gap:12px;min-height:80px;padding:12px}.public-view-item-media,.public-view-item-media i{width:64px;height:64px}.public-view-item-media .public-item-icon-img{width:54px;height:54px}.public-view-item-main strong{font-size:15px}.public-view-item-qty{font-size:22px}}
@media(max-width:680px){.public-inventory-tabs{display:grid}.public-inventory-tab{width:100%}.public-inventory-upload-actions{display:grid;grid-template-columns:1fr}.public-view-stats{grid-template-columns:1fr}.public-view-search input{font-size:14px;height:48px}.public-view-filter{font-size:12px;padding:9px 10px}.public-view-item-card{grid-template-columns:56px minmax(0,1fr) auto;min-height:74px}.public-view-item-media,.public-view-item-media i{width:56px;height:56px}.public-view-item-media .public-item-icon-img{width:48px;height:48px}.public-view-item-qty{font-size:20px}}
.public-upload-more{grid-column:1/-1;text-align:center;color:#aeb9c8;border:1px dashed rgba(255,255,255,.12);border-radius:12px;padding:10px}
.public-upload-warning{border:1px solid rgba(255,195,90,.24);background:rgba(255,195,90,.08);color:#ffe0a8;border-radius:16px;padding:12px}.public-upload-warning p{margin:0 0 5px}.public-upload-warning p:last-child{margin-bottom:0}.public-upload-actions{display:flex;justify-content:flex-end;gap:10px}.public-upload-result{border-radius:18px;padding:15px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.035)}.public-upload-result h2{margin:0 0 6px;font-size:19px}.public-upload-result p{margin:0;color:#aeb9c8}.public-upload-result.ok{border-color:rgba(94,224,146,.28);background:rgba(94,224,146,.10)}.public-upload-result.fail{border-color:rgba(255,91,119,.30);background:rgba(255,91,119,.10)}.public-upload-result.warn{border-color:rgba(255,195,90,.30);background:rgba(255,195,90,.10)}.is-hidden{display:none!important}
@media(max-width:680px){.public-upload-shell{padding:14px}.public-upload-card{padding:15px;border-radius:20px}.public-upload-head,.public-upload-preview-head{align-items:flex-start;flex-direction:column}.public-upload-drop h1{font-size:23px}.public-upload-actions{justify-content:stretch}.public-upload-actions .btn{width:100%}}

/* v328 public stockpile inventory view page */
.public-stockpile-view-page{background:radial-gradient(circle at 8% 0%,rgba(56,201,255,.17),transparent 34%),radial-gradient(circle at 100% 12%,rgba(88,101,242,.11),transparent 30%),#07111c}
.public-view-shell{min-height:100vh;padding:24px;display:grid;place-items:start center}
.public-view-card{width:min(1320px,100%);display:grid;gap:15px;border:1px solid rgba(126,231,255,.16);border-radius:26px;background:linear-gradient(180deg,rgba(13,23,36,.94),rgba(6,12,22,.96));box-shadow:0 30px 100px rgba(0,0,0,.42);padding:22px}
.public-view-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:linear-gradient(135deg,rgba(126,231,255,.08),rgba(94,224,146,.035));padding:18px}.public-view-hero-main{display:flex;align-items:center;gap:15px;min-width:0}.public-view-hero-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:22px;background:rgba(56,201,255,.13);border:1px solid rgba(126,231,255,.18);font-size:30px}.public-view-eyebrow{margin:0 0 5px;color:#9eeeff;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.public-view-hero h1{margin:0 0 5px;font-size:30px;letter-spacing:-.04em}.public-view-hero p{margin:0;color:#aeb9c8;font-size:13px}.public-view-hero code{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);border-radius:7px;padding:2px 6px;color:#dff7ff}.public-view-stats{display:grid;grid-template-columns:repeat(3,auto);gap:8px}.public-view-stats div{min-width:104px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(0,0,0,.18);padding:11px 12px;text-align:center}.public-view-stats b{display:block;font-size:19px;color:#bafad3}.public-view-stats span{display:block;color:#aeb9c8;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.public-view-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);gap:12px;align-items:center}.public-view-filters{display:flex;gap:8px;overflow:auto;padding-bottom:2px}.public-view-filter{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.045);color:#d8e8ff;border-radius:999px;padding:8px 11px;font-weight:900;font-size:12px;white-space:nowrap;cursor:pointer}.public-view-filter.active{border-color:rgba(126,231,255,.36);background:rgba(126,231,255,.12);color:#9eeeff}.public-view-filter span{margin-left:5px;color:#aeb9c8}.public-view-search{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);border-radius:13px;padding:0 11px}.public-view-search input{width:100%;height:40px;border:0;background:transparent;color:#eef4ff;outline:none}.public-view-search input::placeholder{color:#718096}
.public-view-info{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.035);padding:12px 13px;color:#aeb9c8;font-size:12px}.public-view-note{font-weight:800;color:#d8e8ff}.public-view-updated b{color:#bafad3}.public-view-inventory{display:grid;gap:12px}.public-view-category{border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(255,255,255,.032);overflow:hidden}.public-view-category-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 15px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035)}.public-view-category-head h2{margin:0 0 3px;font-size:18px}.public-view-category-head p{margin:0;color:#aeb9c8;font-size:12px}.public-view-category-head>span{color:#bafad3;font-size:13px;font-weight:950;border:1px solid rgba(94,224,146,.18);background:rgba(94,224,146,.08);border-radius:999px;padding:6px 9px}.public-view-tables{display:grid;grid-template-columns:1fr}.public-view-tables.is-two-columns{grid-template-columns:1fr 1fr}@media (max-width: 1180px){.public-view-tables.is-two-columns{grid-template-columns:1fr}}.public-view-table{display:grid;min-width:0}.public-view-tables.is-two-columns .public-view-table:first-child{border-right:1px solid rgba(255,255,255,.08)}@media (max-width: 1180px){.public-view-tables.is-two-columns .public-view-table:first-child{border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}}.public-view-row{display:grid;grid-template-columns:minmax(260px,1fr) 120px 110px;gap:12px;align-items:center;min-height:46px;padding:8px 15px;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px}.public-view-row:last-child{border-bottom:0}.public-view-row.head{min-height:36px;background:rgba(255,255,255,.025);color:#8ea0b8;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.public-view-row b{color:#ffdf7e;text-align:right}.public-view-row>span:nth-child(2){color:#aeb9c8;text-transform:capitalize}.public-view-item-name{display:flex;align-items:center;gap:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-view-item-name i{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:rgba(126,231,255,.08);border:1px solid rgba(126,231,255,.12);font-style:normal;flex:0 0 auto}.public-view-empty{border:1px dashed rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.025);padding:28px;text-align:center;color:#aeb9c8;font-weight:800}@media (max-width: 900px){.public-view-row{grid-template-columns:minmax(0,1fr) 100px 90px;font-size:12px;padding:8px 12px}.public-view-item-name{gap:8px}.public-view-item-name i{width:28px;height:28px}}
@media(max-width:850px){.public-view-shell{padding:14px}.public-view-card{padding:15px;border-radius:20px}.public-view-hero{grid-template-columns:1fr}.public-view-stats{grid-template-columns:repeat(3,1fr)}.public-view-toolbar{grid-template-columns:1fr}.public-view-info{display:grid}.public-view-row{grid-template-columns:minmax(0,1fr) 78px 72px;padding:8px 10px}.public-view-hero h1{font-size:24px}.public-view-stats div{min-width:0}}

/* v330 public stockpile inventory unified page */
.public-inventory-shell{place-items:start center}
.public-inventory-card{width:min(1320px,100%)}
.public-inventory-tabs{display:flex;gap:9px;flex-wrap:wrap;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.03);padding:8px}
.public-inventory-tab{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.045);color:#d8e8ff;border-radius:13px;padding:10px 14px;font-size:13px;font-weight:950;letter-spacing:.01em;cursor:pointer;transition:.16s ease}
.public-inventory-tab:hover{border-color:rgba(126,231,255,.28);background:rgba(126,231,255,.08)}
.public-inventory-tab.active{border-color:rgba(94,224,146,.35);background:linear-gradient(135deg,rgba(94,224,146,.16),rgba(126,231,255,.08));color:#bafad3;box-shadow:0 12px 34px rgba(94,224,146,.08)}
.public-inventory-panel{display:grid;gap:14px}
.public-inventory-upload-actions{justify-content:space-between}
@media(max-width:680px){.public-inventory-tabs{display:grid}.public-inventory-tab{width:100%}.public-inventory-upload-actions{display:grid;grid-template-columns:1fr}}

/* v332 public stockpile inventory icon cleanup */
.public-view-item-name{gap:14px}
.public-view-item-name i,
.public-upload-item i{display:grid;place-items:center;width:60px;height:60px;border-radius:0;background:transparent;border:0;box-shadow:none;font-style:normal;flex:0 0 60px;overflow:visible}
.public-upload-item span{display:flex;align-items:center;gap:14px}
.public-item-icon-img{width:60px;height:60px;object-fit:contain;display:block;filter:drop-shadow(0 4px 8px rgba(0,0,0,.42))}
.public-item-icon-fallback{display:grid;place-items:center;width:60px;height:60px;font-size:30px}
.public-view-row{min-height:72px}

/* v334 public inventory FLOXi table polish + paired columns */
.public-view-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(220px,320px);gap:10px;align-items:start}
.public-view-sort{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);border-radius:999px;padding:7px 9px 7px 12px;color:#8ea0b8;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.public-view-sort select{appearance:none;border:1px solid rgba(126,231,255,.14);background:rgba(7,13,23,.92);color:#dff7ff;border-radius:999px;padding:7px 30px 7px 12px;font-weight:850;font-size:12px;outline:none;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#7ee7ff 50%),linear-gradient(135deg,#7ee7ff 50%,transparent 50%);background-position:calc(100% - 15px) 52%,calc(100% - 10px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.public-view-sort select:focus{border-color:rgba(126,231,255,.38);box-shadow:0 0 0 3px rgba(126,231,255,.08)}
.public-view-category{border-color:rgba(126,231,255,.12);background:linear-gradient(180deg,rgba(13,22,34,.86),rgba(9,15,26,.78));box-shadow:0 16px 38px rgba(0,0,0,.16)}
.public-view-category-head{background:linear-gradient(90deg,rgba(126,231,255,.075),rgba(255,255,255,.025));border-bottom:1px solid rgba(126,231,255,.12)}
.public-view-category-head h2{font-size:17px;letter-spacing:.01em}.public-view-category-head p{color:#8ea0b8}.public-view-category-head>span{background:rgba(126,231,255,.08);border-color:rgba(126,231,255,.18);color:#bcefff}
.public-view-table{display:grid;min-width:0}.public-view-table.is-paired .public-view-row{grid-template-columns:minmax(260px,1.5fr) 96px 96px minmax(260px,1.5fr) 96px 96px}.public-view-table.is-single .public-view-row{grid-template-columns:minmax(260px,1fr) 120px 110px}.public-view-table.is-paired .public-view-row>span:nth-child(4){border-left:1px solid rgba(255,255,255,.08);padding-left:15px}.public-view-row{gap:12px;min-height:68px;padding:9px 14px;background:rgba(255,255,255,.012);border-bottom:1px solid rgba(255,255,255,.055)}.public-view-row:nth-child(even):not(.head){background:rgba(255,255,255,.024)}.public-view-row.head{min-height:38px;background:rgba(126,231,255,.045);color:#9fb8d4}.public-view-row b{font-size:13px;color:#ffdf7e}.public-view-row>span:nth-child(2),.public-view-row>span:nth-child(5){color:#aeb9c8;text-transform:capitalize}.public-view-item-name{font-weight:850;color:#eef4ff;gap:14px}.public-view-item-name.empty{opacity:.35}.public-view-item-name i{width:60px;height:60px;border:0;background:transparent;border-radius:0;box-shadow:none;flex:0 0 60px;overflow:visible}.public-view-item-name .public-item-icon-img{width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(0,0,0,.42))}.public-view-item-name .public-item-icon-fallback{font-size:28px}
@media(max-width:1280px){.public-view-table.is-paired .public-view-row{grid-template-columns:minmax(210px,1.5fr) 82px 80px minmax(210px,1.5fr) 82px 80px}.public-view-item-name{gap:10px}.public-view-item-name i{width:50px;height:50px;flex-basis:50px}.public-view-item-name .public-item-icon-img{width:50px;height:50px}}
@media(max-width:980px){.public-view-toolbar{grid-template-columns:1fr}.public-view-sort{justify-content:space-between;border-radius:14px}.public-view-sort select{min-width:170px}.public-view-table.is-paired .public-view-row{grid-template-columns:minmax(0,1fr) 78px 72px}.public-view-table.is-paired .public-view-row.head span:nth-child(n+4),.public-view-table.is-paired .public-view-row:not(.head)>span:nth-child(n+4),.public-view-table.is-paired .public-view-row:not(.head)>b:nth-child(n+4){display:none}.public-view-table.is-paired .public-view-row>span:nth-child(4){border-left:0;padding-left:0}.public-view-item-name i{width:42px;height:42px;flex-basis:42px}.public-view-item-name .public-item-icon-img{width:42px;height:42px}}

/* v335 public stockpile inventory FLOXi visual polish */
.public-stockpile-view-page,
.public-stockpile-inventory-page{
  background:
    radial-gradient(circle at 18% 8%, rgba(56,201,255,.10), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(94,224,146,.08), transparent 28%),
    #07111e;
}
.public-view-shell{padding:26px;background:transparent;place-items:start center}
.public-view-card{width:min(1380px,100%);gap:16px;border:1px solid rgba(126,231,255,.13);border-radius:26px;background:linear-gradient(180deg,rgba(11,20,32,.94),rgba(6,12,22,.98));box-shadow:0 32px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.04)}
.public-upload-head{border:1px solid rgba(126,231,255,.10);background:rgba(255,255,255,.025);border-radius:18px;padding:11px 13px}
.public-upload-kicker{background:rgba(126,231,255,.095);border-color:rgba(126,231,255,.22);color:#bdf5ff}
.public-view-hero{border:1px solid rgba(126,231,255,.13);background:linear-gradient(135deg,rgba(18,35,52,.96),rgba(11,21,35,.86));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.public-view-hero-icon{background:linear-gradient(135deg,rgba(126,231,255,.18),rgba(94,224,146,.10));border-color:rgba(126,231,255,.25);box-shadow:0 14px 32px rgba(0,0,0,.25)}
.public-view-stats div{background:rgba(4,10,18,.42);border-color:rgba(126,231,255,.10)}
.public-view-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(220px,320px);padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:18px;background:rgba(255,255,255,.025)}
.public-view-filters{padding:0;gap:7px;align-items:center}
.public-view-filter{border-radius:12px;background:rgba(8,16,28,.72);border-color:rgba(255,255,255,.08);color:#b9c9dd;padding:9px 11px;transition:border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease}
.public-view-filter:hover{border-color:rgba(126,231,255,.20);color:#eef8ff;transform:translateY(-1px)}
.public-view-filter.active{background:linear-gradient(135deg,rgba(56,201,255,.18),rgba(94,224,146,.10));border-color:rgba(126,231,255,.34);color:#dffbff}
.public-view-sort,.public-view-search{height:42px;border-radius:13px;background:rgba(8,16,28,.72);border-color:rgba(255,255,255,.08)}
.public-view-sort{padding:0 8px 0 12px;text-transform:none;letter-spacing:0;color:#9fb0c6}
.public-view-sort span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.public-view-sort select{height:30px;background-color:rgba(10,18,31,.98);border-color:rgba(126,231,255,.16)}
.public-view-search input{height:40px}
.public-view-info{border-color:rgba(126,231,255,.09);background:rgba(255,255,255,.025);border-radius:16px}
.public-view-category{border:1px solid rgba(126,231,255,.12);border-radius:20px;background:linear-gradient(180deg,rgba(12,22,35,.92),rgba(8,15,27,.90));box-shadow:0 18px 44px rgba(0,0,0,.20);overflow:hidden}
.public-view-category-head{position:relative;padding:14px 16px;background:linear-gradient(90deg,rgba(126,231,255,.08),rgba(255,255,255,.018));border-bottom:1px solid rgba(126,231,255,.11)}
.public-view-category-head:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#7ee7ff,#5ee092)}
.public-view-category-head h2{font-size:17px;letter-spacing:.01em;color:#eef8ff}
.public-view-category-head p{color:#8ea0b8}
.public-view-category-head>span{color:#c6f9ff;background:rgba(126,231,255,.08);border-color:rgba(126,231,255,.20)}
.public-view-item-grid{display:grid;grid-template-columns:1fr;gap:8px;padding:12px;background:rgba(3,8,15,.18)}
.public-view-item-grid.is-two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.public-view-item-card{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:78px;padding:9px 12px;border:1px solid rgba(255,255,255,.065);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.public-view-item-card:hover{border-color:rgba(126,231,255,.18);background:linear-gradient(180deg,rgba(126,231,255,.055),rgba(255,255,255,.020))}
.public-view-item-media{display:grid;place-items:center;width:70px;height:60px;min-width:70px}
.public-view-item-media i{display:grid;place-items:center;width:60px;height:60px;border:0;background:transparent;border-radius:0;box-shadow:none;font-style:normal;overflow:visible}
.public-view-item-media .public-item-icon-img{width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(0,0,0,.44))}
.public-view-item-media .public-item-icon-fallback{font-size:28px}
.public-view-item-main{min-width:0;display:grid;gap:5px}
.public-view-item-main strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eef4ff;font-size:13px;font-weight:900;letter-spacing:.005em}
.public-view-item-main span{display:inline-flex;width:max-content;max-width:100%;color:#8fa2b8;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;border:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.16);border-radius:999px;padding:3px 7px}
.public-view-item-qty{min-width:46px;text-align:right;color:#ffdf7e;font-size:14px;font-weight:950;font-variant-numeric:tabular-nums}
.public-view-table{display:none}
@media(max-width:1180px){.public-view-item-grid.is-two-columns{grid-template-columns:1fr}.public-view-toolbar{grid-template-columns:1fr}.public-view-sort{justify-content:space-between}.public-view-sort select{min-width:170px}}
@media(max-width:760px){.public-view-shell{padding:14px}.public-view-card{border-radius:20px;padding:15px}.public-view-item-card{grid-template-columns:56px minmax(0,1fr) auto;min-height:68px;padding:8px 10px}.public-view-item-media{width:56px;height:50px;min-width:56px}.public-view-item-media i,.public-view-item-media .public-item-icon-img{width:50px;height:50px}.public-view-item-main strong{font-size:12px}.public-view-item-qty{font-size:13px}}


/* v336 public inventory toolbar FLOXi alignment */
.public-view-toolbar.public-view-toolbar-floxi{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(240px,340px);
  gap:10px;
  align-items:stretch;
  padding:10px;
  border:1px solid rgba(91,145,181,.18);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,17,29,.86),rgba(5,12,21,.82));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 14px 34px rgba(0,0,0,.18);
}
.public-view-filter-panel,
.public-view-control-panel{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(91,145,181,.14);
  border-radius:14px;
  background:rgba(3,10,18,.46);
  padding:8px;
}
.public-view-filter-panel{align-items:flex-start;flex-direction:column;gap:7px;overflow:visible}
.public-view-control-title{color:#7f93ad;font-size:10px;line-height:1;font-weight:950;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.public-view-filter-panel .public-view-control-title{padding-left:3px}
.public-view-filters{width:100%;display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:0;max-height:none;scrollbar-width:none}
.public-view-filters::-webkit-scrollbar{display:none}
.public-view-filter{display:inline-flex;align-items:center;gap:6px;min-height:32px;border-radius:11px;padding:7px 10px;background:rgba(7,16,28,.88);border:1px solid rgba(91,145,181,.13);color:#b7c6d9;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.public-view-filter em{font-style:normal;font-size:11px;opacity:.82;filter:saturate(.8)}
.public-view-filter span{margin-left:2px;color:#88a0b8;font-size:11px;font-weight:950;border-radius:999px;padding:2px 6px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.055)}
.public-view-filter:hover{transform:none;color:#dcecff;border-color:rgba(91,145,181,.28);background:rgba(11,24,40,.96)}
.public-view-filter.active{color:#dff7ff;border-color:rgba(56,201,255,.32);background:linear-gradient(135deg,rgba(26,74,100,.72),rgba(13,42,58,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 0 1px rgba(56,201,255,.05)}
.public-view-filter.active span{color:#bff7ff;background:rgba(56,201,255,.12);border-color:rgba(126,231,255,.14)}
.public-view-sort-panel{flex-direction:row;white-space:nowrap}.public-view-sort{height:auto;padding:0;border:0;background:transparent;border-radius:0;color:#9fb0c6}
.public-view-sort select{height:34px;min-width:154px;border-radius:11px;background-color:rgba(7,16,28,.96);border-color:rgba(91,145,181,.22);color:#dcecff}
.public-view-search.public-view-control-panel{height:auto;min-height:50px;padding:8px 12px;background:rgba(3,10,18,.46);border-color:rgba(91,145,181,.14)}
.public-view-search input{height:34px;color:#e9f4ff}.public-view-search span{opacity:.86}
@media(max-width:1120px){.public-view-toolbar.public-view-toolbar-floxi{grid-template-columns:1fr 1fr}.public-view-filter-panel{grid-column:1/-1}.public-view-search.public-view-control-panel{min-width:0}}
@media(max-width:760px){.public-view-toolbar.public-view-toolbar-floxi{grid-template-columns:1fr;padding:8px;border-radius:16px}.public-view-filter-panel,.public-view-control-panel{border-radius:13px}.public-view-sort-panel{justify-content:space-between}.public-view-sort select{min-width:170px}.public-view-filter{padding:7px 9px;font-size:11px}}

/* v338 FINAL public inventory FLOXi color override
   This block is intentionally placed at the end of app.css to override older public inventory rules. */
.public-stockpile-inventory-page,
.public-stockpile-view-page,
.public-stockpile-upload-page{
  background:#05070d !important;
  color:#eef3fb !important;
}
.public-view-shell{
  background:radial-gradient(circle at top right,rgba(217,167,64,.10),transparent 32%),linear-gradient(180deg,#070a11 0%,#05070d 100%) !important;
}
.public-view-card,
.public-inventory-card{
  background:linear-gradient(180deg,#0b111d 0%,#070b13 100%) !important;
  border-color:rgba(255,255,255,.065) !important;
  box-shadow:0 30px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.public-view-hero{
  background:linear-gradient(90deg,#0d1524 0%,#0a101c 100%) !important;
  border-color:rgba(255,255,255,.065) !important;
}
.public-view-hero-icon{
  background:linear-gradient(180deg,rgba(217,167,64,.26),rgba(217,167,64,.10)) !important;
  border-color:rgba(217,167,64,.32) !important;
  color:#ffe7a1 !important;
}
.public-view-eyebrow,
.public-view-control-title{
  color:#d9a740 !important;
}
.public-view-stats div{
  background:linear-gradient(180deg,#0a101c,#070b13) !important;
  border-color:rgba(255,255,255,.065) !important;
}
.public-view-stats b{
  color:#f6f7fb !important;
}
.public-view-stats span{
  color:#9aaabd !important;
}
.public-inventory-tabs,
.public-view-toolbar.public-view-toolbar-floxi,
.public-view-filter-panel,
.public-view-control-panel,
.public-view-search,
.public-view-info{
  background:linear-gradient(180deg,#0b111d,#070b13) !important;
  border-color:rgba(255,255,255,.065) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.public-inventory-tab,
.public-view-filter,
.public-view-sort select{
  background:linear-gradient(180deg,#101827,#0b111d) !important;
  border-color:rgba(255,255,255,.075) !important;
  color:#dbe5f2 !important;
}
.public-inventory-tab:hover,
.public-view-filter:hover,
.public-view-sort select:hover{
  border-color:rgba(217,167,64,.30) !important;
  color:#fff3cc !important;
}
.public-inventory-tab.active,
.public-view-filter.active{
  background:linear-gradient(180deg,rgba(72,52,15,.96),rgba(34,25,9,.96)) !important;
  border-color:rgba(217,167,64,.42) !important;
  color:#ffe8a5 !important;
  box-shadow:inset 0 1px 0 rgba(255,238,188,.06),0 12px 28px rgba(217,167,64,.08) !important;
}
.public-view-filter span,
.public-view-filter.active span{
  background:rgba(255,255,255,.055) !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#f2d889 !important;
}
.public-view-search>span{
  color:#d9a740 !important;
}
.public-view-search input{
  color:#f4f7fb !important;
}
.public-view-search input::placeholder{
  color:#6f7d90 !important;
}
.public-view-sort select{
  background-image:linear-gradient(45deg,transparent 50%,#d9a740 50%),linear-gradient(135deg,#d9a740 50%,transparent 50%) !important;
  background-position:calc(100% - 16px) 54%,calc(100% - 10px) 54% !important;
  background-size:6px 6px,6px 6px !important;
  background-repeat:no-repeat !important;
}
.public-view-note{
  color:#eef3fb !important;
}
.public-view-updated b{
  color:#ffe8a5 !important;
}
.public-view-category{
  background:linear-gradient(180deg,#0b111d,#070b13) !important;
  border-color:rgba(255,255,255,.065) !important;
  box-shadow:0 18px 44px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.public-view-category-head{
  background:linear-gradient(90deg,#101827,#0b111d) !important;
  border-bottom-color:rgba(255,255,255,.065) !important;
}
.public-view-category-head::before,
.public-view-category-head:before{
  background:linear-gradient(180deg,#d9a740,#725515) !important;
}
.public-view-category-head h2{
  color:#f4f7fb !important;
}
.public-view-category-head p{
  color:#91a0b4 !important;
}
.public-view-category-head>span{
  background:rgba(217,167,64,.11) !important;
  border-color:rgba(217,167,64,.28) !important;
  color:#ffe8a5 !important;
}
.public-view-item-card{
  background:linear-gradient(90deg,#0b111d,#080d16) !important;
  border-color:rgba(255,255,255,.065) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.public-view-item-card:hover{
  border-color:rgba(217,167,64,.24) !important;
}
.public-view-item-main strong{
  color:#f4f7fb !important;
}
.public-view-item-main span{
  background:rgba(255,255,255,.035) !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#9aaabd !important;
}
.public-view-item-qty{
  color:#ffe184 !important;
}
.public-upload-drop,
.public-upload-preview,
.public-upload-warning,
.public-upload-result{
  background:linear-gradient(180deg,#0b111d,#070b13) !important;
  border-color:rgba(255,255,255,.065) !important;
}
.public-upload-drop-icon{
  background:linear-gradient(180deg,rgba(217,167,64,.24),rgba(217,167,64,.10)) !important;
  border-color:rgba(217,167,64,.30) !important;
  color:#ffe8a5 !important;
}
.public-upload-drop textarea{
  background:#070b13 !important;
  border-color:rgba(255,255,255,.075) !important;
  color:#f4f7fb !important;
}
.public-upload-item{
  background:#0b111d !important;
  border-color:rgba(255,255,255,.065) !important;
}
.public-upload-item b{
  color:#ffe184 !important;
}


/* v339 public inventory header/background cleanup */
.public-upload-kicker{display:none !important;}
.public-stockpile-inventory-page,
.public-stockpile-view-page,
.public-stockpile-upload-page{
  background:#05070d !important;
}
.public-stockpile-inventory-page .public-view-shell,
.public-stockpile-view-page .public-view-shell,
.public-stockpile-upload-page .public-view-shell{
  background:#05070d !important;
  background-image:none !important;
}
.public-stockpile-inventory-page .public-inventory-card,
.public-stockpile-inventory-page .public-view-card,
.public-stockpile-view-page .public-view-card,
.public-stockpile-upload-page .public-upload-card{
  background:linear-gradient(180deg,#0b111d 0%,#070b13 100%) !important;
}
.public-stockpile-inventory-page .public-inventory-panel[data-inventory-panel="view"],
.public-stockpile-inventory-page .public-inventory-panel[data-inventory-panel="upload"]{
  background:transparent !important;
}
.public-stockpile-inventory-page .public-view-toolbar.public-view-toolbar-floxi,
.public-stockpile-inventory-page .public-view-info,
.public-stockpile-inventory-page .public-view-category,
.public-stockpile-inventory-page .public-view-item-card{
  background-color:#0b111d !important;
}
.public-upload-head{
  grid-template-columns:1fr !important;
}
.public-upload-brand{
  width:max-content;
}


/* v366 shared Font Awesome icon polish */
.btn > i + span, .server-refresh-btn > i + span, .group-picker-all > i + span { margin-left: 7px; }
.btn > i { font-size: .95em; }
.icon-btn i, .modal-close i { pointer-events: none; }
.empty-state i, .stockpile-empty-card i { margin-right: 8px; color: #ffdf7e; }
.asset-summary-icon i, .detail-summary-mark i { font-size: 18px; line-height: 1; }
.public-view-hero-icon i, .public-upload-target-icon i { font-size: 28px; line-height: 1; }
.group-picker-all em { font-style: normal; margin-left: 6px; opacity: .75; }


/* FLOXi v368 - profile wow demo + admin icon alignment */
.general-channel-card-head{align-items:center!important;}
.general-channel-icon{display:grid!important;place-items:center!important;align-self:center!important;margin-top:0!important;}
.general-channel-icon i,.general-settings-intro-icon i{display:block;line-height:1;font-size:15px;}

.profile-v368{display:grid;gap:16px;max-width:1420px;margin:0 auto;padding-bottom:24px;}
.profile-v368 *{box-sizing:border-box;}
.profile-v368-hero{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:28px;background:linear-gradient(135deg,rgba(13,21,36,.98),rgba(7,11,19,.98));padding:22px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;box-shadow:0 22px 70px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.035);}
.profile-v368-hero-bg{position:absolute;inset:0;background:radial-gradient(circle at 12% 10%,rgba(56,201,255,.16),transparent 26%),radial-gradient(circle at 86% 0%,rgba(255,179,0,.15),transparent 28%),linear-gradient(90deg,rgba(255,255,255,.025),transparent);pointer-events:none;}
.profile-v368-identity-card,.profile-v368-rank-card{position:relative;z-index:1;}
.profile-v368-identity-card{display:flex;align-items:center;gap:18px;min-width:0;}
.profile-v368-avatar{width:96px;height:96px;border-radius:28px;display:grid;place-items:center;flex:0 0 96px;border:1px solid rgba(255,179,0,.25);background:linear-gradient(180deg,rgba(255,179,0,.22),rgba(255,179,0,.07));box-shadow:0 16px 40px rgba(0,0,0,.25);overflow:hidden;}
.profile-v368-avatar img{width:100%;height:100%;object-fit:cover;}.profile-v368-avatar span{font-size:32px;font-weight:950;color:#ffe6a8;}
.profile-v368-kicker{display:inline-flex;align-items:center;gap:8px;color:#ffdf7e;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:950;margin-bottom:8px;}
.profile-v368-title-block h1{margin:0;color:#f5f7fb;font-size:44px;line-height:1.02;letter-spacing:-.055em;}.profile-v368-title-block h1 em{font-style:normal;color:#ffdf7e;}
.profile-v368-title-block p{margin:8px 0 0;color:#aebbd0;line-height:1.5;max-width:760px;}
.profile-v368-identity-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}.profile-v368-identity-meta span{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);color:#d9e5f5;border-radius:999px;padding:8px 11px;font-weight:850;font-size:12px;}.profile-v368-identity-meta img{width:18px;border-radius:3px;}
.profile-v368-rank-card{display:grid;grid-template-columns:116px minmax(0,1fr);gap:16px;align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:rgba(4,8,15,.55);padding:16px;}
.profile-v368-rank-ring{--progress:0;width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#ffcd63 calc(var(--progress)*1%),rgba(255,255,255,.07) 0);position:relative;}.profile-v368-rank-ring::after{content:"";position:absolute;inset:8px;border-radius:50%;background:#08101d;border:1px solid rgba(255,255,255,.06);}.profile-v368-rank-ring b,.profile-v368-rank-ring span{position:relative;z-index:1}.profile-v368-rank-ring b{font-size:34px;color:#fff}.profile-v368-rank-ring span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#9eb0c8;font-weight:950;margin-top:42px;position:absolute;}
.profile-v368-rank-copy span{color:#ffdf7e;text-transform:uppercase;letter-spacing:.08em;font-weight:950;font-size:11px}.profile-v368-rank-copy strong{display:block;color:#f4f7ff;font-size:28px;margin:6px 0}.profile-v368-rank-copy small{color:#8fa3bd;font-size:14px}.profile-v368-rank-copy em{display:block;color:#9eb0c8;font-style:normal;font-size:12px;margin-top:8px}.profile-v368-xp-bar{height:10px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden}.profile-v368-xp-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#38c9ff,#ffcd63);}
.profile-v368-actions{display:flex;gap:10px;flex-wrap:wrap}.profile-v368-actions .btn,.profile-v368-save-row .btn{gap:9px;}
.profile-v368-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}.profile-v368-metric{display:flex;gap:13px;align-items:center;border:1px solid rgba(255,255,255,.07);border-radius:20px;background:linear-gradient(180deg,rgba(13,21,36,.88),rgba(7,11,19,.82));padding:16px;}.profile-v368-metric i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.08)}.profile-v368-metric b{display:block;font-size:25px;color:#fff}.profile-v368-metric span{font-size:12px;color:#9eb0c8;font-weight:850}.profile-v368-metric.cyan i{color:#bff2ff;background:rgba(56,201,255,.08)}.profile-v368-metric.gold i{color:#ffdf7e;background:rgba(255,179,0,.08)}.profile-v368-metric.green i{color:#bafad3;background:rgba(94,224,146,.08)}.profile-v368-metric.red i{color:#ffc0ca;background:rgba(255,91,119,.08)}
.profile-v368-main-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:14px;align-items:start;}.profile-v368-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}.profile-v368-panel,.profile-v368-tech{border:1px solid rgba(255,255,255,.07);border-radius:24px;background:linear-gradient(180deg,rgba(13,21,36,.9),rgba(7,11,19,.82));padding:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);}
.profile-v368-panel-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;}.profile-v368-panel-head>span{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;border:1px solid rgba(255,179,0,.20);background:rgba(255,179,0,.08);color:#ffdf7e;flex:0 0 46px;}.profile-v368-panel-head b{display:block;color:#f3f6fb;font-size:18px}.profile-v368-panel-head small{display:block;color:#9eb0c8;line-height:1.35}.profile-v368-panel-head.compact{margin-bottom:12px}.profile-v368-state{margin-left:auto;font-style:normal;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:950}.profile-v368-state.ok{color:#bafad3;background:rgba(94,224,146,.08)}.profile-v368-state.warn{color:#ffdf7e;background:rgba(255,179,0,.09)}
.profile-v368-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-v368-field{display:grid;gap:8px;border:1px solid rgba(255,255,255,.06);border-radius:18px;background:rgba(0,0,0,.15);padding:13px}.profile-v368-field.wide{grid-column:1/-1}.profile-v368-field label{color:#dce6f5;font-weight:950}.profile-v368-field small{color:#8fa3bd;line-height:1.35}.profile-v368-field input,.profile-v368-field select{width:100%;}
.profile-v368-toggle-list{display:grid;gap:10px;margin-top:12px}.profile-v368-save-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.profile-v368-access-hero{border:1px solid rgba(255,179,0,.18);border-radius:20px;background:linear-gradient(135deg,rgba(255,179,0,.10),rgba(56,201,255,.05));padding:16px;margin-bottom:12px}.profile-v368-access-hero small,.profile-v368-access-hero span{display:block;color:#9eb0c8}.profile-v368-access-hero strong{display:block;color:#fff;font-size:25px;margin:4px 0}.profile-v368-role-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.profile-v368-role-pills b{border:1px solid rgba(56,201,255,.18);background:rgba(56,201,255,.07);color:#c9f3ff;border-radius:999px;padding:7px 10px;font-size:12px}.profile-v368-role-pills.small{margin:6px 0 0}
.profile-v368-access-grid{display:grid;gap:8px}.profile-v368-access-card{display:grid;grid-template-columns:26px 1fr auto;gap:8px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(0,0,0,.14);padding:9px}.profile-v368-access-card.allowed i{color:#bafad3}.profile-v368-access-card.blocked i{color:#ffbdc7}.profile-v368-access-card span{color:#dce6f5;font-weight:850}.profile-v368-access-card b{color:#8fa3bd;font-size:11px;text-transform:uppercase}.profile-v368-module-strip{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.07);padding-top:12px;margin-top:12px}.profile-v368-module-strip span{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.035);border-radius:999px;padding:7px 10px;color:#d8e5f6;font-weight:850;font-size:12px}
.profile-v368-spec-list,.profile-v368-history{display:grid;gap:10px}.profile-v368-spec-row{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center}.profile-v368-spec-row>i{width:40px;height:40px;display:grid;place-items:center;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#ffdf7e}.profile-v368-spec-row b{display:block;color:#f2f6fc}.profile-v368-spec-row span{display:block;color:#8fa3bd;font-size:12px}.profile-v368-spec-row em{display:block;height:7px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden;margin-top:7px}.profile-v368-spec-row u{display:block;height:100%;background:linear-gradient(90deg,#38c9ff,#ffcd63);border-radius:inherit;text-decoration:none}
.profile-v368-history-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:rgba(0,0,0,.14);padding:10px}.profile-v368-history-row>i{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;color:#bafad3;background:rgba(94,224,146,.08)}.profile-v368-history-row b{display:block;color:#f2f6fc}.profile-v368-history-row small{display:block;color:#8fa3bd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-v368-history-row strong{color:#ffdf7e}.profile-v368-history-row em{color:#8fa3bd;font-style:normal;font-size:12px}
.profile-v368-tech{padding:0;overflow:hidden}.profile-v368-tech summary{cursor:pointer;display:flex;gap:9px;align-items:center;padding:15px 18px;color:#dbe7f6;font-weight:950}.profile-v368-tech-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border-top:1px solid rgba(255,255,255,.07);padding:15px 18px}.profile-v368-tech-grid div{border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(0,0,0,.14);padding:11px}.profile-v368-tech-grid .wide{grid-column:1/-1}.profile-v368-tech-grid span{display:block;color:#8fa3bd;font-size:11px;text-transform:uppercase;font-weight:900;letter-spacing:.06em}.profile-v368-tech-grid b{color:#f2f6fc;word-break:break-all}
@media(max-width:1100px){.profile-v368-hero,.profile-v368-main-grid,.profile-v368-lower-grid{grid-template-columns:1fr}.profile-v368-overview-grid{grid-template-columns:repeat(2,1fr)}.profile-v368-rank-card{max-width:none}.profile-v368-title-block h1{font-size:34px}}
@media(max-width:700px){.profile-v368-hero{padding:16px}.profile-v368-identity-card{display:grid;text-align:left}.profile-v368-avatar{width:78px;height:78px;flex-basis:78px;border-radius:22px}.profile-v368-title-block h1{font-size:28px}.profile-v368-overview-grid,.profile-v368-form-grid,.profile-v368-tech-grid{grid-template-columns:1fr}.profile-v368-history-row{grid-template-columns:34px 1fr}.profile-v368-history-row strong,.profile-v368-history-row em{justify-self:start}.profile-v368-rank-card{grid-template-columns:90px 1fr}.profile-v368-rank-ring{width:90px;height:90px}.profile-v368-rank-ring b{font-size:26px}}


/* FLOXi v369 - Profile typography + extra activity blocks */
.profile-v368{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
.profile-v368-title-block h1{
  font-size:40px!important;
  letter-spacing:-.035em!important;
  font-weight:850!important;
}
.profile-v368-panel-head b,
.profile-v368-field label,
.profile-v368-access-hero strong,
.profile-v368-spec-row b,
.profile-v368-history-row b{
  font-weight:800!important;
  letter-spacing:-.01em;
}
.profile-v368-kicker,
.profile-v368-state,
.profile-v368-tech-grid span,
.profile-v368-field label{
  letter-spacing:.06em!important;
}
.profile-v368-metric b{font-weight:850!important;letter-spacing:-.025em;}
.profile-v368-metric.purple i{color:#d8c2ff;background:rgba(166,120,255,.10);border-color:rgba(166,120,255,.18)}
.profile-v368-lower-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.profile-v369-stock-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.profile-v369-stock-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:rgba(0,0,0,.14);padding:10px;min-height:86px;}
.profile-v369-stock-row>i{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;color:#ffdf7e;background:rgba(255,179,0,.08);border:1px solid rgba(255,179,0,.14)}
.profile-v369-stock-row b{display:block;color:#fff;font-size:21px;font-weight:850;line-height:1;}
.profile-v369-stock-row small{display:block;color:#dce6f5;font-weight:800;margin-top:3px;}
.profile-v369-stock-row em{display:block;color:#8fa3bd;font-style:normal;font-size:11px;line-height:1.25;margin-top:3px;}
.profile-v369-activity-panel{display:grid;gap:0;}
.profile-v369-activity-list{display:grid;gap:9px;}
.profile-v369-activity-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:rgba(0,0,0,.14);padding:10px 12px;}
.profile-v369-activity-row>i{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;color:#bff2ff;background:rgba(56,201,255,.08);border:1px solid rgba(56,201,255,.14)}
.profile-v369-activity-row b{display:block;color:#f2f6fc;font-weight:800;}
.profile-v369-activity-row small{display:block;color:#8fa3bd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.profile-v369-activity-row em{color:#ffdf7e;font-style:normal;font-size:12px;font-weight:800;white-space:nowrap;}
.profile-v369-empty{border:1px dashed rgba(255,255,255,.10);border-radius:16px;padding:14px;color:#8fa3bd;background:rgba(0,0,0,.12)}
@media(max-width:1250px){.profile-v368-lower-grid{grid-template-columns:1fr 1fr!important}.profile-v369-stock-panel{grid-column:1/-1}.profile-v369-stock-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:900px){.profile-v368-lower-grid,.profile-v369-stock-grid{grid-template-columns:1fr!important}.profile-v368-title-block h1{font-size:31px!important}.profile-v369-activity-row{grid-template-columns:38px 1fr}.profile-v369-activity-row em{grid-column:2;}}


/* FLOXi v370 - Profile font unification + regiment tag max 5 */
.profile-v368,
.profile-v368 *{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-synthesis-weight: none;
}
.profile-v368-title-block h1{
  font-size: 38px !important;
  font-weight: 780 !important;
  letter-spacing: -.025em !important;
  line-height: 1.08 !important;
}
.profile-v368-title-block h1 em{
  font-weight: 780 !important;
  letter-spacing: -.015em !important;
}
.profile-v368-panel-head b,
.profile-v368-field label,
.profile-v368-access-hero strong,
.profile-v368-spec-row b,
.profile-v368-history-row b,
.profile-v369-stock-row small,
.profile-v369-activity-row b,
.profile-v368-access-card span{
  font-weight: 760 !important;
  letter-spacing: -.005em !important;
}
.profile-v368-metric b,
.profile-v369-stock-row b{
  font-weight: 760 !important;
  letter-spacing: -.02em !important;
}
.profile-v368-kicker,
.profile-v368-state,
.profile-v368-tech-grid span,
.profile-v368-field label,
.profile-v368-access-card b,
.profile-v368-rank-ring span,
.profile-v368-rank-copy span{
  letter-spacing: .045em !important;
  font-weight: 780 !important;
}
.profile-v368-identity-meta span,
.profile-v368-role-pills b,
.profile-v368-module-strip span,
.profile-v266-mini-chip,
.profile-v266-muted-chip{
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}
.profile-v368-field input,
.profile-v368-field select,
.profile-v266-input,
.profile-v267-menu summary,
.profile-v267-menu-option,
.profile-v266-toggle,
.profile-v368 button,
.profile-v368 .btn{
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.profile-v368-panel-head small,
.profile-v368-field small,
.profile-v368-title-block p,
.profile-v369-activity-row small,
.profile-v369-stock-row em,
.profile-v368-access-hero small,
.profile-v368-access-hero span{
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.profile-v368-field input[data-profile-setting="regiment_tag"]{
  text-transform: uppercase;
}
@media(max-width:700px){
  .profile-v368-title-block h1{font-size:28px!important;}
}


/* FLOXi v371 - Profile icon restore + compact field polish */
.profile-v368 .fa-solid,
.profile-v368 .fa-regular,
.profile-v368 .fa-brands{
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
}
.profile-v368 .fa-regular{font-family:"Font Awesome 6 Free" !important;font-weight:400 !important;}
.profile-v368 .fa-brands{font-family:"Font Awesome 6 Brands" !important;font-weight:400 !important;}
.profile-v368-form-grid{
  align-items: stretch !important;
}
.profile-v368-field{
  align-content: start !important;
}
.profile-v368-field:not(.wide){
  min-height: 132px;
}
.profile-v368-field input.profile-v266-input,
.profile-v368-field .profile-select-wrap{
  min-height: 64px;
}
.profile-v368-field .profile-select-wrap select{
  min-height: 64px;
}
.profile-v368-field label{
  margin-bottom: 8px !important;
}
@media(max-width:900px){.profile-v368-field:not(.wide){min-height:auto;}}


/* FLOXi v372 - profile dropdown close/polish + specialization descriptions */
.profile-v267-menu-panel {
  max-height: 260px;
  overscroll-behavior: contain;
}
.profile-v267-menu-option-desc {
  align-items: flex-start;
  min-height: 64px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.profile-v267-menu-option-desc > i,
.profile-v267-menu-option-desc > svg {
  margin-top: 2px;
}
.profile-v267-menu-option-desc small {
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.35;
  max-width: 100%;
}
.profile-v267-menu[open] .profile-v267-menu-panel {
  z-index: 80;
}


/* FLOXi v378 - global viewport-safe dropdown overlay */
.flox-dropdown-viewport-menu{
  contain: layout paint;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.profile-v267-menu-panel.flox-dropdown-viewport-menu,
.access-custom-menu.flox-dropdown-viewport-menu,
.general-custom-menu.flox-dropdown-viewport-menu,
.maintenance-group-menu.flox-dropdown-viewport-menu,
.server-add-dropdown.flox-dropdown-viewport-menu{
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  overflow: auto !important;
  max-width: calc(100vw - 24px) !important;
}
.profile-v267-menu[open]{z-index:20001;}

/* v384: compact icons in task/stockpile statistic panels */
.ops-metric {
  position: relative;
  overflow: hidden;
}

.ops-metric .metric-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(73, 197, 255, .22);
  border-radius: 10px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .09);
  font-size: 13px;
  opacity: .9;
}

/* FLOXi v400 - fresh user profile layout */
.profile-v400{display:grid;gap:16px;max-width:1420px;margin:0 auto;padding:4px 0 28px;}
.profile-v400-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(260px,340px);gap:18px;align-items:center;padding:22px;border:1px solid rgba(126,231,255,.13);border-radius:26px;background:radial-gradient(circle at 12% 0%,rgba(126,231,255,.14),transparent 34%),linear-gradient(135deg,rgba(15,25,43,.96),rgba(7,12,22,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 22px 60px rgba(0,0,0,.24)}
.profile-v400-avatar{display:grid;place-items:center;width:96px;height:96px;border-radius:28px;border:1px solid rgba(255,179,0,.28);background:rgba(255,179,0,.10);box-shadow:0 16px 38px rgba(0,0,0,.28);overflow:hidden;color:#ffdf7e;font-size:30px;font-weight:950}.profile-v400-avatar img{width:100%;height:100%;object-fit:cover}.profile-v400-kicker{display:inline-flex;align-items:center;gap:8px;color:#ffdf7e;font-size:11px;font-weight:950;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px}.profile-v400-identity h1{margin:0;color:#f7fbff;font-size:clamp(26px,3vw,42px);line-height:1.05}.profile-v400-identity h1 em{font-style:normal;color:#ffdf7e}.profile-v400-identity p{margin:9px 0 0;color:#9fb1c7;max-width:760px;line-height:1.45}.profile-v400-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.profile-v400-meta span{display:inline-flex;align-items:center;gap:8px;min-height:32px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(0,0,0,.18);color:#d9e5f5;padding:7px 10px;font-size:12px;font-weight:850}.profile-v400-meta img{width:18px;border-radius:3px}.profile-v400-level-card{display:flex;gap:14px;align-items:center;justify-content:flex-start;border:1px solid rgba(255,179,0,.18);border-radius:22px;background:linear-gradient(135deg,rgba(255,179,0,.10),rgba(0,0,0,.18));padding:15px}.profile-v400-ring{--progress:0;display:grid;place-items:center;width:86px;height:86px;flex:0 0 86px;border-radius:50%;background:conic-gradient(#ffdf7e calc(var(--progress)*1%),rgba(255,255,255,.08) 0);position:relative}.profile-v400-ring:after{content:"";position:absolute;inset:8px;border-radius:50%;background:#0b1220}.profile-v400-ring b,.profile-v400-ring span{position:relative;z-index:1}.profile-v400-ring b{font-size:24px;color:#fff}.profile-v400-ring span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#8fa2b8}.profile-v400-level-card>div:last-child{display:grid;gap:4px}.profile-v400-level-card>div:last-child b{color:#fff;font-size:15px}.profile-v400-level-card strong{font-size:20px;color:#ffdf7e}.profile-v400-level-card small,.profile-v400-level-card em{font-style:normal;color:#9fb1c7;font-size:12px}
.profile-v400-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-v400-stat-grid article{display:flex;align-items:center;gap:13px;min-height:86px;padding:15px;border:1px solid rgba(255,255,255,.075);border-radius:20px;background:linear-gradient(180deg,rgba(15,25,43,.84),rgba(8,13,23,.78))}.profile-v400-stat-grid i{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(126,231,255,.08);border:1px solid rgba(126,231,255,.16);color:#bcefff}.profile-v400-stat-grid b{display:block;color:#fff;font-size:24px;line-height:1}.profile-v400-stat-grid span{color:#9fb1c7;font-size:12px;font-weight:850}.profile-v400-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.8fr);gap:14px;align-items:start}.profile-v400-grid.secondary{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.profile-v400-panel{border:1px solid rgba(255,255,255,.075);border-radius:24px;background:linear-gradient(180deg,rgba(13,21,36,.90),rgba(8,13,23,.80));padding:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}.profile-v400-panel-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.profile-v400-panel-head>i{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;border:1px solid rgba(126,231,255,.18);background:rgba(126,231,255,.07);color:#bcefff;flex:0 0 40px}.profile-v400-panel-head b{display:block;color:#fff;font-size:16px;margin-bottom:3px}.profile-v400-panel-head small{display:block;color:#9fb1c7;font-size:12px;line-height:1.35}.profile-v400-panel-head em{margin-left:auto;border-radius:999px;padding:6px 9px;background:rgba(94,224,146,.09);border:1px solid rgba(94,224,146,.20);color:#bafad3;font-size:11px;font-style:normal;font-weight:900}.profile-v400-panel-head em.warn{background:rgba(255,179,0,.09);border-color:rgba(255,179,0,.22);color:#ffdf7e}.profile-v400-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.profile-v400-form label,.profile-v400-form .wide,.profile-v400-language{display:grid;gap:8px;min-width:0}.profile-v400-form .wide{grid-column:1/-1}.profile-v400-form span,.profile-v400-expiry>b{color:#9fb1c7;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.profile-v400-form input,.profile-v400-form select{width:100%;min-height:44px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(0,0,0,.24);color:#eef6ff;padding:10px 12px;font:inherit;font-weight:800;outline:none}.profile-v400-form input:focus,.profile-v400-form select:focus{border-color:rgba(255,179,0,.36);box-shadow:0 0 0 3px rgba(255,179,0,.08)}.profile-v400-form small{color:#7f91aa;font-size:11px;line-height:1.35}.profile-v400-language>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-v400-save-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.065)}.profile-v400-summary dl{display:grid;gap:9px;margin:0}.profile-v400-summary dl div{display:grid;gap:3px;border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:10px;background:rgba(0,0,0,.15)}.profile-v400-summary dt{color:#8ea1b8;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.profile-v400-summary dd{margin:0;color:#e9f2ff;font-size:13px;font-weight:850;word-break:break-word}.profile-v400-expiry{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.065)}.profile-v400-expiry.muted{opacity:.52}.profile-v400-expiry>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.profile-v400-stage{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);padding:10px;cursor:pointer;color:#9fb1c7;font-weight:900}.profile-v400-stage input{display:none}.profile-v400-stage i{color:#ffdf7e}.profile-v400-stage.active{border-color:rgba(94,224,146,.22);background:rgba(94,224,146,.07);color:#d8ffe7}.profile-v400-role-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.profile-v400-role-strip span{border:1px solid rgba(255,179,0,.20);background:rgba(255,179,0,.08);color:#ffe4a7;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:950}.profile-v400-capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.profile-v400-capability{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:11px;background:rgba(0,0,0,.15)}.profile-v400-capability i{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.05);color:#9fb1c7}.profile-v400-capability b{display:block;color:#fff;font-size:13px}.profile-v400-capability span{display:block;color:#8fa2b8;font-size:11px;line-height:1.3}.profile-v400-capability em{font-style:normal;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.06em;border-radius:999px;padding:5px 7px}.profile-v400-capability.allowed{border-color:rgba(94,224,146,.16);background:rgba(94,224,146,.045)}.profile-v400-capability.allowed i,.profile-v400-capability.allowed em{color:#bafad3;background:rgba(94,224,146,.09)}.profile-v400-capability.locked{opacity:.75}.profile-v400-capability.locked em{color:#ff9aa8;background:rgba(255,91,122,.09)}.profile-v400-specialization-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.profile-v400-specialization-grid>div{display:grid;gap:7px;border:1px solid rgba(255,255,255,.07);border-radius:18px;background:rgba(0,0,0,.16);padding:13px}.profile-v400-specialization-grid i{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:rgba(126,231,255,.07);color:#bcefff}.profile-v400-specialization-grid b{color:#fff}.profile-v400-specialization-grid span{color:#9fb1c7;font-size:12px;line-height:1.35}.profile-v400-specialization-grid .active{border-color:rgba(255,179,0,.24);background:rgba(255,179,0,.05)}
@media(max-width:1120px){.profile-v400-hero,.profile-v400-grid,.profile-v400-grid.secondary{grid-template-columns:1fr}.profile-v400-level-card{max-width:420px}.profile-v400-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-v400-capability-grid{grid-template-columns:1fr}}
@media(max-width:720px){.profile-v400-hero{padding:16px}.profile-v400-stat-grid,.profile-v400-form,.profile-v400-expiry>div,.profile-v400-language>div{grid-template-columns:1fr}.profile-v400-meta span{max-width:100%;overflow:hidden;text-overflow:ellipsis}.profile-v400-avatar{width:78px;height:78px;border-radius:22px}}

/* FLOXi v401 - profile layout polish, FLOXi dropdowns and capability breakdown */
.profile-v400-ring{
  display:grid!important;
  place-items:center!important;
}
.profile-v400-ring > div{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  align-content:center;
  gap:2px;
  width:100%;
  height:100%;
  text-align:center;
  line-height:1;
  transform:translateY(1px);
}
.profile-v400-ring b,
.profile-v400-ring span{
  position:static!important;
  display:block;
}
.profile-v400-ring b{line-height:1;font-size:24px;}
.profile-v400-ring span{line-height:1.1;margin-top:2px;}
.profile-v400-language>div.profile-v267-menu,
.profile-v400-form .profile-v267-menu{
  display:block;
  width:100%;
}
.profile-v401-select .profile-v267-menu-panel{
  display:grid;
  gap:6px;
  max-height:min(320px,42vh);
  overflow:auto;
  overscroll-behavior:contain;
}
.profile-v401-select-option{
  width:100%;
  border:0;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.profile-v401-select-option em{
  margin-left:auto;
  color:#ffdf7e;
  font-style:normal;
  font-weight:950;
}
.profile-v401-option-flag,
.profile-v401-option-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:10px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.07);
}
.profile-v401-option-icon{color:#ffdf7e;}
.profile-v401-capability-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.profile-v401-capability-section{
  border:1px solid rgba(255,255,255,.075);
  border-radius:18px;
  background:rgba(0,0,0,.15);
  padding:12px;
  display:grid;
  gap:10px;
}
.profile-v401-capability-head{
  display:flex;
  align-items:center;
  gap:9px;
  color:#fff;
  font-weight:950;
}
.profile-v401-capability-head i{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:12px;
  border:1px solid rgba(126,231,255,.16);
  background:rgba(126,231,255,.07);
  color:#bcefff;
}
.profile-v401-capability-list{
  display:grid;
  gap:7px;
}
.profile-v401-capability-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:34px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  padding:7px 9px;
}
.profile-v401-capability-list span{
  min-width:0;
  color:#c9d7ea;
  font-size:12px;
  font-weight:850;
  line-height:1.25;
}
.profile-v401-capability-list em{
  flex:0 0 auto;
  min-width:42px;
  text-align:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-style:normal;
}
.profile-v401-capability-list em.yes{
  color:#bafad3;
  background:rgba(94,224,146,.10);
  border:1px solid rgba(94,224,146,.18);
}
.profile-v401-capability-list em.no{
  color:#ff9aa8;
  background:rgba(255,91,122,.09);
  border:1px solid rgba(255,91,122,.16);
}
@media(max-width:1120px){.profile-v401-capability-grid{grid-template-columns:1fr;}}

/* FLOXi v402 - profile layout polish, flags and capability placement */
.profile-v400-ring > div{
  transform:none!important;
  height:calc(100% - 16px)!important;
  width:calc(100% - 16px)!important;
  margin:auto!important;
  border-radius:50%;
  justify-content:center!important;
  align-content:center!important;
  place-content:center!important;
}
.profile-v400-ring b{font-size:25px!important;line-height:1!important;transform:translateY(1px);}
.profile-v400-ring span{font-size:9px!important;line-height:1!important;margin-top:4px!important;}
.profile-v402-select-current{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0;
  width:100%;
}
.profile-v402-select-current b{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#eaf3ff;
  font-size:12px;
  font-weight:950;
}
.profile-v401-select summary .profile-v267-flag,
.profile-v402-select-current .profile-v267-flag{
  width:22px!important;
  height:auto!important;
  border-radius:4px;
  flex:0 0 22px;
}
.profile-v401-select-option .profile-v267-flag,
.profile-v267-menu-option .profile-v267-flag{
  width:24px!important;
  height:auto!important;
  border-radius:4px;
  flex:0 0 24px;
}
.profile-v402-multiselect .profile-v267-menu-panel{
  display:grid;
  gap:6px;
  max-height:min(340px,44vh);
  overflow:auto;
  overscroll-behavior:contain;
}
.profile-v402-multiselect .profile-v267-menu-option{
  min-height:48px;
}
.profile-v402-secondary{
  grid-template-columns:minmax(0,1fr)!important;
}
.profile-v402-capabilities-panel{
  width:100%;
}
.profile-v402-capabilities-panel .profile-v401-capability-grid{
  grid-template-columns:repeat(3,minmax(230px,1fr));
}
@media(max-width:1180px){
  .profile-v402-capabilities-panel .profile-v401-capability-grid{grid-template-columns:1fr;}
}

/* FLOXi v403 - spoken languages dropdown aligned with profile language/country dropdown */
.profile-v403-spoken-menu .profile-v267-menu-panel{
  width:min(430px,100%);
  right:auto;
  left:0;
  display:grid;
  gap:6px;
  padding:8px;
  max-height:min(340px,44vh);
  overflow:auto;
  overscroll-behavior:contain;
}
.profile-v403-spoken-option{
  min-height:54px!important;
  padding:10px 12px!important;
}
.profile-v403-spoken-option em,
.profile-v401-select-option em{
  margin-left:auto;
  color:#ffe16a;
  font-style:normal;
  font-size:16px;
  font-weight:950;
}
.profile-v403-language-preview{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto;
  min-width:0;
}
.profile-v403-language-preview .profile-v267-flag{
  width:20px!important;
  flex:0 0 20px!important;
}
.profile-v403-language-preview em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  border:1px solid rgba(56,213,255,.22);
  background:rgba(56,213,255,.08);
  color:#bdefff;
  font-size:10px;
  font-weight:950;
  font-style:normal;
}
@media(max-width:760px){
  .profile-v403-spoken-menu .profile-v267-menu-panel{
    width:100%;
  }
}


/* FLOXi v405 - spoken languages dropdown anchored to its field, not viewport width */
.profile-v400-form .profile-v400-language .profile-v403-spoken-menu{
  width:100%;
}
.profile-v400-form .profile-v400-language .profile-v403-spoken-menu .profile-v267-menu-panel{
  left:0;
  right:auto;
  width:min(430px,100%);
  min-width:100%;
  max-width:100%;
}
.profile-v400-form .profile-v400-language .profile-v403-spoken-menu .profile-v267-menu-panel.flox-dropdown-viewport-menu{
  right:auto!important;
  min-width:0!important;
  max-width:calc(100vw - 24px)!important;
}
.profile-v403-spoken-option{
  border:0!important;
  text-align:left;
  font:inherit;
}
.profile-v403-spoken-option span{
  min-width:0;
  display:grid!important;
  gap:2px;
  overflow:hidden!important;
  white-space:normal!important;
}
.profile-v403-spoken-option b,
.profile-v403-spoken-option small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* FLOXi v406 - profile form row alignment polish */
.profile-v400-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:14px!important;
  row-gap:14px!important;
  align-items:start!important;
}
.profile-v400-form > label,
.profile-v400-form > .profile-v400-language,
.profile-v400-form > .wide{
  align-content:start!important;
  align-self:start!important;
  grid-auto-rows:auto;
  gap:8px!important;
  min-width:0;
}
.profile-v400-form > label > span,
.profile-v400-form > .profile-v400-language > span,
.profile-v400-form > .wide > span{
  display:flex!important;
  align-items:center!important;
  min-height:13px!important;
  line-height:1!important;
  margin:0!important;
}
.profile-v400-form input,
.profile-v400-form select,
.profile-v400-form .profile-v267-menu summary{
  min-height:50px!important;
  height:50px!important;
  align-items:center!important;
}
.profile-v400-form .profile-v267-menu{
  margin:0!important;
  align-self:start!important;
}
.profile-v400-form .profile-v402-select-current{
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
}
.profile-v400-form .profile-v402-select-current b,
.profile-v403-language-preview b{
  line-height:1.1!important;
}
.profile-v400-form > label > small,
.profile-v400-form > .profile-v400-language > small{
  display:block!important;
  min-height:14px;
  margin:0!important;
  line-height:1.3!important;
}
.profile-v400-form > .profile-v400-language:not(:has(> small))::after,
.profile-v400-form > label:not(:has(> small))::after{
  content:"";
  display:block;
  min-height:14px;
}
.profile-v400-form .wide::after{
  content:none!important;
}
@media(max-width:720px){
  .profile-v400-form{grid-template-columns:1fr!important;}
  .profile-v400-form > .profile-v400-language:not(:has(> small))::after,
  .profile-v400-form > label:not(:has(> small))::after{display:none;}
}


/* FLOXi v408 - profile capability task settings hint */
.profile-v401-capability-head span{display:grid;gap:2px;min-width:0;}
.profile-v401-capability-head small{display:block;color:var(--muted);font-size:11px;font-weight:750;line-height:1.25;}

/* FLOXi v417 - profile sticky save bar */
.profile-v400-save-row{display:none!important;}
.profile-v417-sticky-save{
  position:sticky;
  bottom:14px;
  z-index:45;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:min(940px,calc(100% - 24px));
  margin:4px auto 0;
  padding:12px 14px;
  border:1px solid rgba(255,179,0,.30);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(20,27,40,.96),rgba(10,14,24,.96));
  box-shadow:0 18px 48px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(12px);
}
.profile-v417-sticky-copy{display:grid;gap:2px;min-width:0;}
.profile-v417-sticky-copy b{color:#ffdf7e;font-size:13px;font-weight:950;letter-spacing:.03em;text-transform:uppercase;}
.profile-v417-sticky-copy span{color:#9fb1c7;font-size:12px;line-height:1.35;}
.profile-v417-sticky-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.profile-v417-sticky-actions .btn{min-height:40px;}
@media(max-width:760px){
  .profile-v417-sticky-save{width:calc(100% - 12px);display:grid;gap:10px;bottom:8px;}
  .profile-v417-sticky-actions{justify-content:stretch;}
  .profile-v417-sticky-actions .btn{flex:1 1 0;}
}

/* FLOXi v424 - profile statistics panel */
.profile-v424-stats-panel{
  min-width:0;
}
.profile-v424-stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.profile-v424-stats-grid div{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.profile-v424-stats-grid i{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#9ee9ff;
  background:rgba(56,201,255,.08);
  border:1px solid rgba(56,201,255,.13);
}
.profile-v424-stats-grid span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#c6d4ea;
  font-size:12px;
  font-weight:850;
}
.profile-v424-stats-grid b{
  color:#fff4ca;
  font-size:15px;
  font-weight:950;
}
@media(max-width:900px){.profile-v424-stats-grid{grid-template-columns:1fr;}}

/* FLOXi v425 - profile notifications/statistics paired layout + categorized stats */
.profile-v425-notifications-stats-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.profile-v425-stats-categories{
  display:grid;
  gap:12px;
}
.profile-v425-stats-group{
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  background:rgba(0,0,0,.13);
}
.profile-v425-stats-group h5{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  color:#ffdf7e;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.profile-v425-stats-group h5 i{
  color:#9ee9ff;
}
.profile-v425-stats-group .profile-v424-stats-grid{
  grid-template-columns:1fr;
  gap:8px;
}
.profile-v425-stats-group .profile-v424-stats-grid div{
  min-height:40px;
  padding:7px 9px;
}
.profile-v402-capabilities-panel{
  margin-top:14px;
}
@media(max-width:1120px){
  .profile-v425-notifications-stats-grid{
    grid-template-columns:1fr;
  }
}

/* FLOXi v426 - public profile page */
.profile-public-page .profile-public-hero{
  border-color:rgba(56,201,255,.22);
}
.profile-public-grid{
  display:grid;
  grid-template-columns:minmax(280px,.82fr) minmax(420px,1.18fr);
  gap:14px;
  align-items:start;
  margin-top:16px;
}
.profile-public-dl{
  display:grid;
  gap:10px;
  margin:12px 0 0;
}
.profile-public-dl div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid rgba(148,163,184,.13);
  border-radius:14px;
  background:rgba(5,10,18,.34);
}
.profile-public-dl dt{
  margin:0;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  font-weight:800;
}
.profile-public-dl dd{
  margin:0;
  color:var(--text);
  font-weight:800;
}
.profile-public-empty{
  min-height:320px;
  display:grid;
  place-items:center;
  text-align:center;
  gap:10px;
  align-content:center;
}
.profile-public-empty > i{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:18px;
  border:1px solid rgba(56,201,255,.22);
  background:rgba(56,201,255,.08);
  color:#9be7ff;
  font-size:22px;
}
.profile-public-empty.locked > i{
  border-color:rgba(251,113,133,.24);
  background:rgba(251,113,133,.08);
  color:#fda4af;
}
.profile-public-empty h2,
.profile-public-empty p{
  margin:0;
}
.profile-public-empty p{
  max-width:520px;
  color:var(--muted);
}
.profile-public-specializations{
  margin-top:12px;
}
@media(max-width:1100px){
  .profile-public-grid{
    grid-template-columns:1fr;
  }
}

/* FLOXi v428 - sidebar profile XP + new dashboard */
.sidebar-foot.sidebar-foot-xp{
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
}
.sidebar-user-meta{
  min-width:0;
}
.sidebar-foot .sidebar-user-meta span{
  color:#b8c8df;
  font-size:11px;
  font-weight:800;
  letter-spacing:.01em;
}
.sidebar-xp-bar{
  display:block;
  width:100%;
  height:5px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(148,163,184,.18);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
.sidebar-xp-bar em{
  display:block;
  height:100%;
  min-width:4px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,179,0,.9),rgba(94,224,146,.9));
}
.sidebar-collapsed .sidebar-foot.sidebar-foot-xp .sidebar-user-meta,
.sidebar-collapsed .sidebar-foot.sidebar-foot-xp small{
  display:none;
}

.dashboard-v428{
  display:grid;
  gap:16px;
}
.dashboard-v428-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  gap:20px;
  padding:24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(56,201,255,.13), transparent 28%),
    radial-gradient(circle at 95% 0%, rgba(255,179,0,.13), transparent 30%),
    linear-gradient(135deg,rgba(14,22,34,.98),rgba(7,11,18,.98));
}
.dashboard-v428-copy{
  display:grid;
  gap:14px;
  align-content:start;
}
.dashboard-v428-copy h2{
  margin:0;
  font-size:clamp(34px,3.4vw,48px);
  line-height:1.02;
}
.dashboard-v428-copy p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.65;
}
.dashboard-v428-meta,
.dashboard-v428-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.dashboard-v428-meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
  color:#c8d6ea;
  font-size:12px;
  font-weight:850;
}
.dashboard-v428-meta i{color:#7dd3fc;}
.dashboard-v428-side{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-content:start;
}
.dashboard-v428-stat{
  min-height:112px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
}
.dashboard-v428-stat > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(56,201,255,.08);
  color:#9ee7ff;
  border:1px solid rgba(56,201,255,.16);
}
.dashboard-v428-stat b{
  display:block;
  font-size:24px;
  line-height:1;
}
.dashboard-v428-stat small,
.dashboard-v428-stat em{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  font-style:normal;
}
.dashboard-v428-stat.gold > span{background:rgba(255,179,0,.09);color:#ffe1a0;border-color:rgba(255,179,0,.18);}
.dashboard-v428-stat.red > span{background:rgba(255,91,119,.09);color:#ff9bab;border-color:rgba(255,91,119,.18);}
.dashboard-v428-stat.green > span{background:rgba(94,224,146,.09);color:#b8ffd4;border-color:rgba(94,224,146,.18);}
.dashboard-v428-stat.violet > span{background:rgba(185,156,255,.09);color:#d8ccff;border-color:rgba(185,156,255,.18);}
.dashboard-v428-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.dashboard-v428-panel .panel-head{
  align-items:start;
}
.dashboard-v428-list{
  display:grid;
  gap:10px;
}
.dashboard-v428-row{
  display:grid;
  grid-template-columns:4px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:58px;
  padding:11px 12px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.075);
  background:linear-gradient(180deg,rgba(16,24,36,.82),rgba(8,13,22,.74));
  color:var(--text);
  text-decoration:none;
}
.dashboard-v428-row:hover,
.dashboard-v428-module:hover,
.dashboard-v428-stat:hover{
  border-color:rgba(255,179,0,.28);
  background:linear-gradient(180deg,rgba(255,179,0,.075),rgba(10,16,26,.74));
}
.dashboard-v428-row > i{
  width:4px;
  min-height:38px;
  border-radius:999px;
  background:var(--blue);
}
.dashboard-v428-row.red > i{background:var(--red);}
.dashboard-v428-row.gold > i{background:var(--gold);}
.dashboard-v428-row.orange > i{background:#ff8a3d;}
.dashboard-v428-row.green > i{background:var(--green);}
.dashboard-v428-row.violet > i{background:var(--violet);}
.dashboard-v428-row.orange code{color:#ffd0b3;}
.dashboard-v428-row b{
  display:block;
  font-size:13px;
}
.dashboard-v428-row small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  line-height:1.4;
}
.dashboard-v428-row code{
  padding:5px 7px;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#ffe1a0;
  font-size:12px;
}
.dashboard-v428-modules{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.dashboard-v428-module{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:15px;
  color:var(--text);
  text-decoration:none;
}
.dashboard-v428-module > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(56,201,255,.08);
  color:#9ee7ff;
  border:1px solid rgba(56,201,255,.16);
}
.dashboard-v428-module b{display:block;font-size:14px;}
.dashboard-v428-module small{display:block;margin-top:5px;color:var(--muted);line-height:1.4;}
.dashboard-v428-module strong{color:#ffe1a0;font-size:18px;}
.dashboard-v428-empty{
  min-height:92px;
  display:grid;
  place-items:center;
  gap:10px;
  color:var(--muted);
  border:1px dashed rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.018);
}
.dashboard-v428-empty i{color:#86efac;font-size:18px;}
@media(max-width:1240px){
  .dashboard-v428-hero,
  .dashboard-v428-grid{grid-template-columns:1fr;}
  .dashboard-v428-modules{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:680px){
  .dashboard-v428-side,
  .dashboard-v428-modules{grid-template-columns:1fr;}
  .dashboard-v428-row,
  .dashboard-v428-module{grid-template-columns:1fr;}
}

/* v429 - Dashboard cleanup */
.dashboard-v429{
  gap:16px;
}
.dashboard-v429-hero{
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  padding:20px;
  min-height:0;
}
.dashboard-v429-copy{
  gap:12px;
}
.dashboard-v429-copy .kicker,
.dashboard-v429 .kicker{
  display:none !important;
}
.dashboard-v429-copy h2{
  font-size:clamp(30px,2.9vw,42px);
  line-height:1.05;
}
.dashboard-v429-copy p{
  max-width:680px;
  line-height:1.55;
}
.dashboard-v429-meta span{
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-v429-actions .btn{
  min-height:38px;
}
.dashboard-v429-side .dashboard-v428-stat{
  min-height:92px;
  padding:12px;
}
.dashboard-v429-side .dashboard-v428-stat b{
  font-size:22px;
}
.dashboard-v429-grid{
  align-items:start;
}
.dashboard-v429 .dashboard-v428-row b,
.dashboard-v429 .dashboard-v428-row small{
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-v429 .dashboard-v428-modules{
  display:none !important;
}
@media(max-width:1240px){
  .dashboard-v429-hero{
    grid-template-columns:1fr;
  }
}
@media(max-width:680px){
  .dashboard-v429-hero{
    padding:16px;
  }
  .dashboard-v429-side{
    grid-template-columns:1fr;
  }
}


/* v436 - Dashboard metric panel readability polish */
.dashboard-v429-side{
  gap:12px;
}
.dashboard-v429-side .dashboard-v428-stat{
  min-height:84px;
  grid-template-columns:46px minmax(0,1fr);
  gap:14px;
  padding:14px 16px;
  align-items:center;
}
.dashboard-v429-side .dashboard-v428-stat > span{
  width:46px;
  height:46px;
  border-radius:14px;
  font-size:16px;
}
.dashboard-v429-side .dashboard-v428-stat > div{
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:
    "value label"
    "value note";
  column-gap:10px;
  row-gap:3px;
  align-items:center;
}
.dashboard-v429-side .dashboard-v428-stat b{
  grid-area:value;
  margin:0;
  min-width:34px;
  font-size:26px;
  line-height:1;
  letter-spacing:-.03em;
  color:#fff;
}
.dashboard-v429-side .dashboard-v428-stat small{
  grid-area:label;
  margin:0;
  color:#dce7f7;
  font-size:13px;
  font-weight:850;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-v429-side .dashboard-v428-stat em{
  grid-area:note;
  margin:0;
  color:#9fb0c8;
  font-size:12px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-v429-side .dashboard-v428-stat:hover b{
  color:#ffe8a8;
}
@media(max-width:680px){
  .dashboard-v429-side .dashboard-v428-stat > div{
    grid-template-columns:auto minmax(0,1fr);
  }
}


/* FLOXi v437 - dashboard leaderboards */
.dashboard-v437-leaderboard{
  margin-top:16px;
}
.dashboard-v437-leaderboard-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.dashboard-v437-board{
  border:1px solid rgba(148,163,184,.14);
  border-radius:18px;
  background:rgba(6,12,22,.36);
  padding:14px;
  min-width:0;
}
.dashboard-v437-board h3{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  font-size:14px;
}
.dashboard-v437-board h3 i{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  color:#7dd3fc;
  background:rgba(14,165,233,.12);
  border:1px solid rgba(14,165,233,.22);
}
.dashboard-v437-board-list{
  display:grid;
  gap:8px;
}
.dashboard-v437-board-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  background:rgba(15,23,42,.46);
  border:1px solid rgba(148,163,184,.10);
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.dashboard-v437-board-row:hover{
  background:rgba(14,165,233,.10);
  border-color:rgba(125,211,252,.28);
  transform:translateY(-1px);
}
.dashboard-v437-rank{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(250,204,21,.12);
  border:1px solid rgba(250,204,21,.24);
  color:#fde68a;
  font-weight:900;
  font-size:12px;
}
.dashboard-v437-board-row b,
.dashboard-v437-board-row small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-v437-board-row small{
  margin-top:2px;
  color:#9fb3cc;
  font-size:12px;
}
.dashboard-v437-board-row strong{
  color:#e5e7eb;
  font-size:12px;
  white-space:nowrap;
}
.dashboard-v437-board-empty{
  padding:18px 10px;
  border-radius:12px;
  text-align:center;
  color:#8da2bd;
  background:rgba(15,23,42,.36);
  border:1px dashed rgba(148,163,184,.14);
}
@media(max-width:1200px){
  .dashboard-v437-leaderboard-grid{grid-template-columns:1fr;}
}


/* FLOXi v438 - public profile rankings */
.profile-public-side{
  display:grid;
  gap:14px;
  min-width:0;
}
.profile-public-rankings-list{
  display:grid;
  gap:9px;
  margin-top:12px;
}
.profile-public-rankings-list > div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid rgba(148,163,184,.13);
  border-radius:14px;
  background:rgba(5,10,18,.34);
}
.profile-public-rankings-list span{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-weight:850;
}
.profile-public-rankings-list span i{
  color:#9be7ff;
}
.profile-public-rankings-list b{
  min-width:48px;
  text-align:center;
  padding:4px 9px;
  border-radius:999px;
  color:#ffe08a;
  background:rgba(255,179,0,.12);
  border:1px solid rgba(255,179,0,.22);
  font-weight:950;
}
.profile-public-rankings-list em{
  min-width:48px;
  text-align:right;
  color:var(--muted);
  font-style:normal;
  font-weight:800;
}
@media(max-width:560px){
  .profile-public-rankings-list > div{grid-template-columns:1fr auto;}
  .profile-public-rankings-list em{grid-column:1 / -1;text-align:left;}
}


/* FLOXI v440 - profile display-name polish */
.profile-v400-identity h1 em{font-size:.72em;letter-spacing:.02em;vertical-align:.08em;margin-left:6px;opacity:.96}
.profile-public-hero .profile-v400-identity h1 em{font-size:.72em}


/* FLOXi v448 - viewport-safe dropdowns, scrollable filters and assign modal close polish */
.concept-filter-panel{
  max-height:calc(100vh - 36px);
  display:flex;
  flex-direction:column;
  min-height:0;
}
.concept-filter-panel>.panel-body{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding-right:8px;
}
@media(max-width:1180px){
  .concept-filter-panel{max-height:none;display:block;}
  .concept-filter-panel>.panel-body{overflow:visible;padding-right:0;}
}


/* FLOXi v449 - task assign close button polish */
.task-assign-modal .modal-close{
  top:18px;
  right:18px;
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:rgba(226,232,240,.86);
  cursor:pointer;
  z-index:8;
  transition:.16s ease;
}
.task-assign-modal .modal-close:hover{
  color:#fff;
  border-color:rgba(244,63,94,.32);
  background:rgba(244,63,94,.10);
}
.task-assign-modal .modal-close i{pointer-events:none;}
.concept-filters .filter-btn i{
  margin-right:7px;
  color:var(--gold);
}

/* FLOXi v457 - dropdown bottom viewport hotfix
   Legacy .drop-up rules used top:auto!important. The JS now writes fixed top
   with !important, this CSS keeps the overlay clickable and above page content. */
.flox-dropdown-viewport-menu{
  z-index:2147483000!important;
  pointer-events:auto!important;
  visibility:visible!important;
}
.general-custom-menu.flox-dropdown-viewport-menu.searchable{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
}


/* FLOXi v464 - public stockpile type icon in inventory header */
.public-view-hero-icon.public-stockpile-type-icon{
  overflow:hidden;
  position:relative;
}
.public-stockpile-type-img{
  display:block;
  width:46px;
  height:46px;
  object-fit:contain;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.45));
}
.public-stockpile-type-fallback{
  display:none;
  font-size:28px;
  line-height:1;
}
.public-stockpile-type-img.is-hidden{
  display:none !important;
}
.public-stockpile-type-fallback.is-visible,
.public-view-hero-icon.public-stockpile-type-icon > .public-stockpile-type-fallback:first-child{
  display:inline-grid;
  place-items:center;
}


/* FLOXi v469 - public stockpile image icons */
.public-stockpile-type-icon .public-stockpile-type-img,
.public-view-hero-icon.public-stockpile-type-icon > img.public-stockpile-type-img{
  display:block;
  width:44px;
  height:44px;
  object-fit:contain;
  image-rendering:auto;
}
.public-stockpile-type-fallback{display:none;font-size:28px;line-height:1}
.public-stockpile-type-fallback.is-visible{display:inline-grid;place-items:center}
.public-stockpile-type-img.is-hidden{display:none!important}
.public-view-filter .public-category-icon-img{
  display:inline-block;
  width:16px;
  height:16px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.public-view-filter .public-category-icon-img.is-hidden{display:none!important}
.public-view-filter .public-category-icon-fallback{display:none;font-style:normal;font-size:12px;line-height:1;opacity:.82;filter:saturate(.8)}
.public-view-filter .public-category-icon-fallback.is-visible{display:inline-block}


/* FLOXi v471 - compact public category filter images */
.public-view-filter > img.public-category-icon-img,
.public-view-filter img.public-category-icon-img,
.public-stockpile-inventory-page .public-view-filter img.public-category-icon-img,
.public-stockpile-view-page .public-view-filter img.public-category-icon-img{
  width:15px !important;
  height:15px !important;
  max-width:15px !important;
  max-height:15px !important;
  min-width:15px !important;
  min-height:15px !important;
  flex:0 0 15px !important;
  object-fit:contain !important;
  display:inline-block !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
  vertical-align:-2px !important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)) !important;
}
.public-stockpile-inventory-page .public-view-filter,
.public-stockpile-view-page .public-view-filter{
  min-height:32px !important;
  height:auto !important;
  align-items:center !important;
}
.public-stockpile-inventory-page .public-view-filters,
.public-stockpile-view-page .public-view-filters{
  align-items:center !important;
}

/* v472 public inventory meta/status polish */
.public-view-info{
  display:grid !important;
  gap:10px !important;
  padding:12px !important;
}
.public-view-info-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.public-view-note{
  min-width:0;
  line-height:1.35;
}
.public-view-updated{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  color:#91a0b4;
  font-size:12px;
}
.public-view-meta-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.public-view-meta-card{
  min-width:0;
  display:grid;
  gap:3px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(16,24,39,.78),rgba(8,13,22,.72));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.public-view-meta-card span{
  color:#d9a740;
  font-size:10px;
  line-height:1;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.public-view-meta-card b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#eef3fb;
  font-size:12px;
  font-weight:850;
}
.public-view-meta-card small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#7f8ea3;
  font-size:10px;
}
.public-view-category-head h2{
  display:flex;
  align-items:center;
  gap:8px;
}
.public-view-category-head h2 .public-category-icon-img{
  width:16px !important;
  height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
}
@media(max-width:1180px){
  .public-view-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .public-view-info-top{align-items:flex-start;flex-direction:column;}
  .public-view-updated{white-space:normal;}
}
@media(max-width:720px){
  .public-view-meta-grid{grid-template-columns:1fr;}
  .public-view-meta-card{padding:9px 10px;}
}

/* FLOXi v475 - import log schema compatibility */
.public-stockpile-inventory-page .public-view-toolbar.public-view-toolbar-floxi,
.public-stockpile-view-page .public-view-toolbar.public-view-toolbar-floxi{
  display:grid !important;
  grid-template-columns:minmax(220px,320px) minmax(280px,1fr) !important;
  grid-template-areas:
    "categories categories"
    "sort search" !important;
  align-items:stretch !important;
  gap:10px !important;
}
.public-stockpile-inventory-page .public-view-filter-panel,
.public-stockpile-view-page .public-view-filter-panel{
  grid-area:categories !important;
  width:100% !important;
  min-height:0 !important;
  padding:12px !important;
}
.public-stockpile-inventory-page .public-view-sort-panel,
.public-stockpile-view-page .public-view-sort-panel{
  grid-area:sort !important;
  justify-content:space-between !important;
}
.public-stockpile-inventory-page .public-view-search,
.public-stockpile-view-page .public-view-search{
  grid-area:search !important;
}
.public-stockpile-inventory-page .public-view-filters,
.public-stockpile-view-page .public-view-filters{
  display:flex !important;
  flex-wrap:wrap !important;
  width:100% !important;
}
.public-stockpile-inventory-page .public-view-info,
.public-stockpile-view-page .public-view-info{
  border-color:rgba(91,145,181,.15) !important;
  background:linear-gradient(180deg,rgba(8,15,28,.84),rgba(5,10,19,.86)) !important;
}
.public-stockpile-inventory-page .public-view-info-top,
.public-stockpile-view-page .public-view-info-top{
  padding:2px 2px 0 !important;
}
.public-stockpile-inventory-page .public-view-meta-grid,
.public-stockpile-view-page .public-view-meta-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(150px,1fr)) !important;
  gap:10px !important;
}
.public-stockpile-inventory-page .public-view-meta-card,
.public-stockpile-view-page .public-view-meta-card{
  min-width:0 !important;
  border:1px solid rgba(91,145,181,.16) !important;
  border-radius:14px !important;
  background:rgba(3,10,18,.52) !important;
  padding:11px 12px !important;
}
.public-stockpile-inventory-page .public-view-meta-card span,
.public-stockpile-view-page .public-view-meta-card span{
  display:block !important;
  color:#d9a740 !important;
  font-size:10px !important;
  font-weight:950 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  margin-bottom:5px !important;
}
.public-stockpile-inventory-page .public-view-meta-card b,
.public-stockpile-view-page .public-view-meta-card b{
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
@media(max-width:900px){
  .public-stockpile-inventory-page .public-view-toolbar.public-view-toolbar-floxi,
  .public-stockpile-view-page .public-view-toolbar.public-view-toolbar-floxi{
    grid-template-columns:1fr !important;
    grid-template-areas:"categories" "sort" "search" !important;
  }
  .public-stockpile-inventory-page .public-view-meta-grid,
  .public-stockpile-view-page .public-view-meta-grid{
    grid-template-columns:1fr 1fr !important;
  }
}
@media(max-width:560px){
  .public-stockpile-inventory-page .public-view-meta-grid,
  .public-stockpile-view-page .public-view-meta-grid{
    grid-template-columns:1fr !important;
  }
}


/* v476 Developer owner console */
.dev-owner-console { gap: 18px; }
.dev-owner-hero { border-color: rgba(217, 167, 64, .35); }
.dev-owner-toolbar .panel-body { padding: 18px; }
.dev-owner-toolbar-grid { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 16px; align-items: end; }
.dev-search-field input { min-height: 42px; }
.dev-server-list { display: grid; gap: 12px; }
.dev-server-card { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px solid rgba(138, 160, 190, .16); border-radius: 18px; background: linear-gradient(180deg, rgba(13, 21, 35, .96), rgba(8, 13, 23, .96)); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.dev-server-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dev-server-icon { width: 52px; height: 52px; border-radius: 16px; border: 1px solid rgba(217, 167, 64, .32); background: rgba(217, 167, 64, .12); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; color: #f5cf6b; font-weight: 900; }
.dev-server-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-server-title { min-width: 0; display: grid; gap: 4px; }
.dev-server-title b { font-size: 1.02rem; color: #f5f7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-server-title code { width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: #9fb1d1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 2px 7px; }
.dev-server-title small { color: #7f8ca7; }
.dev-server-modules { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.dev-module-toggle { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(138,160,190,.18); border-radius: 14px; background: rgba(8, 13, 23, .7); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.dev-module-toggle:hover { transform: translateY(-1px); border-color: rgba(217,167,64,.35); }
.dev-module-toggle.is-on { border-color: rgba(79, 209, 139, .35); background: rgba(42, 120, 80, .12); }
.dev-module-toggle.is-saving { opacity: .72; pointer-events: none; }
.dev-module-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.dev-module-switch { width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); position: relative; flex: 0 0 auto; }
.dev-module-switch::after { content: ""; position: absolute; width: 14px; height: 14px; top: 2px; left: 2px; border-radius: 50%; background: #94a3b8; transition: transform .15s ease, background .15s ease; }
.dev-module-toggle.is-on .dev-module-switch::after { transform: translateX(16px); background: #4fd18b; }
.dev-module-name { font-weight: 800; color: #eef3ff; min-width: 0; flex: 1 1 auto; }
.dev-owner-denied { border-color: rgba(255, 112, 128, .35); }
@media (max-width: 1100px) {
  .dev-server-card { grid-template-columns: 1fr; }
  .dev-server-modules { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .dev-owner-toolbar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dev-server-modules { grid-template-columns: 1fr; }
}

/* v482 mobile list polish - stockpiles/tasks only, desktop untouched */
@media (max-width: 760px) {
  .route-stockpiles .panel,
  .route-tasks .panel,
  .route-stockpiles .ops-region,
  .route-tasks .task-region {
    border-radius: 16px;
  }

  .route-stockpiles .panel-body,
  .route-tasks .panel-body {
    padding: 10px;
  }

  .route-stockpiles .ops-region-list,
  .route-stockpiles .stock-list,
  .route-tasks .task-list {
    gap: 12px;
  }

  .route-stockpiles .ops-region-head,
  .route-tasks .region-top {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 42px;
    padding: 10px 11px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(16,24,36,.98), rgba(9,15,25,.94));
    backdrop-filter: blur(10px);
  }

  .route-stockpiles .stock-row {
    position: relative;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "code name actions"
      "code location actions"
      "kinds kinds inventory"
      "expiry expiry expiry";
    gap: 7px 10px;
    align-items: start;
    min-height: 0;
    padding: 12px;
    border-radius: 15px;
    overflow: hidden;
  }

  .route-stockpiles .stock-row.expired-row,
  .route-stockpiles .ops-stock-row.danger-row {
    background: linear-gradient(90deg, rgba(255,91,119,.18), rgba(10,16,26,.82) 58%);
  }

  .route-stockpiles .stock-code { grid-area: code; align-self: start; flex-direction: column; gap: 5px; }
  .route-stockpiles .main-name { grid-area: name; min-width: 0; padding-top: 1px; }
  .route-stockpiles .location { grid-area: location; min-width: 0; }
  .route-stockpiles .owner { display: none; }
  .route-stockpiles .pill.group { grid-area: actions; justify-self: end; max-width: 86px; min-height: 22px; padding: 0 7px; font-size: 9px; }
  .route-stockpiles .pill-row { grid-area: kinds; align-self: center; gap: 4px; }
  .route-stockpiles .stock-row-inventory { grid-area: inventory; justify-self: end; align-self: center; }
  .route-stockpiles .expiry { grid-area: expiry; margin-top: 2px; }
  .route-stockpiles .row-actions { grid-area: actions; align-self: end; justify-self: end; margin-top: 28px; }

  .route-stockpiles .letter,
  .route-stockpiles .letter-chip {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 11px;
  }

  .route-stockpiles .code-button,
  .route-stockpiles .code-chip {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffe1a0;
    font-size: 10px;
    line-height: 1.1;
  }

  .route-stockpiles .main-name b,
  .route-stockpiles .location b {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .route-stockpiles .main-name span,
  .route-stockpiles .location span,
  .route-stockpiles .expiry span {
    font-size: 10px;
    white-space: normal;
  }

  .route-stockpiles .pill {
    min-height: 20px;
    padding: 0 6px;
    font-size: 9px;
  }

  .route-stockpiles .stock-row-inventory-btn {
    min-width: 38px;
    min-height: 24px;
    padding: 0 8px;
  }

  .route-stockpiles .extend-expiry-btn {
    min-width: 42px;
    min-height: 28px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .route-stockpiles .expiry b {
    font-size: 11px;
  }

  .route-tasks .task-table,
  .route-tasks .task-table thead,
  .route-tasks .task-table tbody,
  .route-tasks .task-table tr,
  .route-tasks .task-table td {
    display: block;
    width: 100%;
  }

  .route-tasks .task-table thead {
    display: none;
  }

  .route-tasks .task-table tbody {
    display: grid;
    gap: 10px;
  }

  .route-tasks .task-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "id task status"
      "route route xp"
      "meta meta meta"
      "actions actions actions";
    gap: 7px 10px;
    align-items: start;
    min-height: 0;
    padding: 12px;
    border-radius: 15px;
  }

  .route-tasks .task-row > td {
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .route-tasks .col-id { grid-area: id; }
  .route-tasks .col-task { grid-area: task; }
  .route-tasks .col-route { grid-area: route; }
  .route-tasks .col-meta { grid-area: meta; }
  .route-tasks .col-xp { grid-area: xp; justify-self: end; align-self: center; width: auto; }
  .route-tasks .col-status { grid-area: status; justify-self: end; text-align: right; width: auto; }
  .route-tasks .col-actions { grid-area: actions; }

  .route-tasks .task-code {
    justify-content: flex-start;
  }

  .route-tasks .task-id,
  .route-tasks .xp-chip {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .route-tasks .task-title-wrap {
    gap: 8px;
    align-items: flex-start;
  }

  .route-tasks .task-row-item-icon,
  .route-tasks .task-detail-item-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .route-tasks .task-main b,
  .route-tasks .route-main b,
  .route-tasks .meta-main b {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .route-tasks .task-main span,
  .route-tasks .route-main span,
  .route-tasks .meta-main span,
  .route-tasks .planned-date {
    font-size: 10px;
    white-space: normal;
  }

  .route-tasks .status-text {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
    white-space: nowrap;
  }

  .route-tasks .row-actions.task-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .route-tasks .row-actions .mini {
    width: 31px;
    height: 31px;
    min-width: 31px;
  }

  .route-tasks .task-region {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .route-stockpiles .stock-row,
  .route-tasks .task-row {
    padding: 10px;
  }

  .route-stockpiles .panel-head,
  .route-tasks .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-stockpiles .panel-head .actions,
  .route-tasks .panel-head .actions,
  .route-stockpiles .panel-head > div:last-child,
  .route-tasks .panel-head > div:last-child {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* v483 mobile cards - stockpiles/tasks readability only, desktop untouched */
@media (max-width: 760px) {
  /* shared page spacing */
  .route-stockpiles .content,
  .route-tasks .content,
  .route-stockpiles .page,
  .route-tasks .page {
    min-width: 0;
  }

  .route-stockpiles .panel-head,
  .route-tasks .panel-head {
    gap: 10px;
    padding: 12px;
  }

  .route-stockpiles .panel-head .btn,
  .route-tasks .panel-head .btn,
  .route-stockpiles .panel-head button,
  .route-tasks .panel-head button {
    min-height: 34px;
  }

  /* STOCKPILES: compact vertical card */
  .route-stockpiles .stock-row,
  .stock-row {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "code title group"
      "code place action"
      "items tags action"
      "expiry expiry expiry";
    gap: 8px 10px !important;
    align-items: start !important;
    padding: 12px 11px !important;
    min-height: 0 !important;
    border-radius: 16px !important;
  }

  .route-stockpiles .stock-code,
  .stock-code {
    grid-area: code !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .route-stockpiles .main-name,
  .main-name {
    grid-area: title !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .route-stockpiles .main-name b,
  .main-name b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .route-stockpiles .main-name span,
  .main-name span {
    display: none !important;
  }

  .route-stockpiles .location,
  .location {
    grid-area: place !important;
    min-width: 0 !important;
  }

  .route-stockpiles .location b,
  .location b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .route-stockpiles .location span,
  .location span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: 10px !important;
    opacity: .78;
  }

  .route-stockpiles .owner,
  .owner {
    display: none !important;
  }

  .route-stockpiles .pill.group,
  .pill.group {
    grid-area: group !important;
    justify-self: end !important;
    align-self: start !important;
    max-width: 78px !important;
    min-height: 20px !important;
    padding: 0 7px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  .route-stockpiles .stock-row-inventory,
  .stock-row-inventory {
    grid-area: items !important;
    justify-self: center !important;
    align-self: center !important;
    min-width: 0 !important;
  }

  .route-stockpiles .stock-row-inventory-btn,
  .stock-row-inventory-btn {
    min-width: 38px !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
  }

  .route-stockpiles .stock-row-inventory-empty,
  .stock-row-inventory-empty {
    display: none !important;
  }

  .route-stockpiles .pill-row,
  .pill-row {
    grid-area: tags !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    align-items: center !important;
    align-self: center !important;
  }

  .route-stockpiles .pill-row .pill,
  .pill-row .pill {
    min-height: 18px !important;
    max-width: 86px !important;
    padding: 0 6px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  .route-stockpiles .row-actions,
  .stock-row > .row-actions {
    grid-area: action !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .route-stockpiles .extend-expiry-btn,
  .extend-expiry-btn {
    min-width: 42px !important;
    min-height: 28px !important;
    padding: 4px 6px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
  }

  .route-stockpiles .expiry,
  .stock-row > .expiry {
    grid-area: expiry !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 2px 0 0 42px !important;
    padding-left: 8px !important;
    border-left: 2px solid rgba(255,91,119,.9) !important;
  }

  .route-stockpiles .expiry b,
  .stock-row > .expiry b {
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .route-stockpiles .expiry span,
  .stock-row > .expiry span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  /* TASKS: real mobile cards */
  .route-tasks .task-table,
  .route-tasks .task-table tbody,
  .task-table,
  .task-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .route-tasks .task-table tbody,
  .task-table tbody {
    display: grid !important;
    gap: 12px !important;
  }

  .route-tasks .task-row,
  .task-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "id task xp"
      "id task status"
      "route route route"
      "meta meta meta"
      "actions actions actions" !important;
    gap: 8px 10px !important;
    align-items: start !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .route-tasks .task-row > td,
  .task-row > td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .route-tasks .col-id,
  .task-row > .col-id { grid-area: id !important; }
  .route-tasks .col-task,
  .task-row > .col-task { grid-area: task !important; }
  .route-tasks .col-route,
  .task-row > .col-route { grid-area: route !important; margin-left: 58px !important; }
  .route-tasks .col-meta,
  .task-row > .col-meta { grid-area: meta !important; margin-left: 58px !important; }
  .route-tasks .col-xp,
  .task-row > .col-xp { grid-area: xp !important; justify-self: end !important; align-self: start !important; }
  .route-tasks .col-status,
  .task-row > .col-status { grid-area: status !important; justify-self: end !important; align-self: start !important; text-align: right !important; }
  .route-tasks .col-actions,
  .task-row > .col-actions { grid-area: actions !important; margin-left: 58px !important; }

  .route-tasks .task-title-wrap,
  .task-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .route-tasks .task-row-item-icon,
  .task-row-item-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
  }

  .route-tasks .task-main,
  .route-tasks .route-main,
  .route-tasks .meta-main,
  .task-main,
  .route-main,
  .meta-main {
    min-width: 0 !important;
  }

  .route-tasks .task-main b,
  .route-tasks .route-main b,
  .route-tasks .meta-main b,
  .task-main b,
  .route-main b,
  .meta-main b {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .route-tasks .task-main span,
  .route-tasks .route-main span,
  .route-tasks .meta-main span,
  .task-main span,
  .route-main span,
  .meta-main span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    opacity: .78;
  }

  .route-tasks .col-route .route-main,
  .route-tasks .col-meta .meta-main,
  .col-route .route-main,
  .col-meta .meta-main {
    padding: 7px 9px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 12px !important;
    background: rgba(6,12,22,.42) !important;
  }

  .route-tasks .xp-chip,
  .xp-chip {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .route-tasks .status-text,
  .status-text {
    min-height: 20px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  .route-tasks .row-actions.task-quick-actions,
  .row-actions.task-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(6, 31px) !important;
    gap: 7px !important;
    justify-content: start !important;
    padding-top: 2px !important;
  }

  .route-tasks .row-actions .mini,
  .row-actions .mini {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
  }
}

@media (max-width: 420px) {
  .route-tasks .task-row,
  .task-row {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
  }
  .route-tasks .col-route,
  .route-tasks .col-meta,
  .route-tasks .col-actions,
  .task-row > .col-route,
  .task-row > .col-meta,
  .task-row > .col-actions {
    margin-left: 52px !important;
  }
  .route-tasks .row-actions.task-quick-actions,
  .row-actions.task-quick-actions {
    grid-template-columns: repeat(3, 31px) !important;
  }
}
