@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("./fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("./fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Phosphor";
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url("./fonts/phosphor.woff2") format("woff2");
}

.ph {
  display: inline-block;
  overflow: hidden;
  width: 1em;
  font-family: "Phosphor" !important;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  font-variant-ligatures: discretionary-ligatures;
  letter-spacing: 0;
  line-height: 1;
  text-rendering: optimizeLegibility;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

:root {
  color-scheme: dark;
  font-family: "Nunito Variable", Nunito, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #071012;
  --bg-deep: #050b0d;
  --surface: #0b1518;
  --surface-raised: #101c20;
  --surface-soft: #0d191c;
  --line: #233336;
  --line-soft: #172629;
  --text: #edf7f5;
  --text-soft: #b4c4c1;
  --muted: #768b87;
  --faint: #536662;
  --accent: #35c0b2;
  --accent-bright: #64d8cc;
  --accent-soft: #123b39;
  --amber: #f2a74b;
  --amber-soft: #422918;
  --danger: #eb706b;
  --danger-soft: #3a2020;
  --blue: #72a8da;
  --radius: 10px;
  --radius-large: 14px;
  --sidebar: 270px;
  --topbar: 66px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: #081116;
  padding: 22px 16px 18px;
}

.brand-lockup,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-lockup {
  align-self: flex-start;
  margin: 0 5px 22px;
}

.brand-lockup > span:last-child {
  display: grid;
  gap: 1px;
}

.brand-lockup strong,
.mobile-brand strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-lockup small,
.profile-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #294044;
  border-radius: 9px;
  background: #112126;
  color: var(--accent-bright);
}

.brand-mark i {
  font-size: 20px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.command-trigger {
  display: grid;
  width: 100%;
  height: 40px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #0d171b;
  color: var(--muted);
  padding: 0 11px;
  cursor: pointer;
  text-align: left;
}

.command-trigger:hover {
  border-color: var(--line);
  color: var(--text-soft);
}

.command-trigger i {
  font-size: 17px;
}

.command-trigger kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: inherit;
  font-size: 10px;
  padding: 1px 5px;
}

.side-navigation {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.nav-label {
  margin: 0 10px 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #91a5a1;
  padding: 0 11px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 650;
}

.nav-item i {
  color: #66827e;
  font-size: 18px;
}

.nav-item:hover {
  background: #0d191c;
  color: var(--text);
}

.nav-item.is-active {
  border-color: #2a3e41;
  background: #132126;
  color: var(--text);
  font-weight: 800;
}

.nav-item.is-active i {
  color: var(--accent-bright);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.referral-box {
  display: grid;
  gap: 10px;
  border: 1px solid #2b3e41;
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, #111e22, #0b1417);
  padding: 14px;
}

.referral-box > span {
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.referral-box > span i {
  margin-right: 5px;
}

.referral-box > strong {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.profile-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  margin-top: 2px;
  padding-top: 12px;
}

.profile-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.profile-row strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #2a3e41;
  border-radius: 9px;
  background: #16262b;
  color: var(--accent-bright);
  font-weight: 800;
}

.main-column {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  background: rgb(7 16 18 / 0.94);
  padding: 0 34px;
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.quick-actions,
.topbar-end,
.content-toolbar > div,
.community-actions,
.share-row,
.filters-toolbar,
.segmented {
  display: flex;
  align-items: center;
}

.quick-actions {
  gap: 8px;
}

.topbar-end {
  gap: 12px;
}

.community-actions {
  gap: 6px;
}

.community-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.community-icon:hover {
  border-color: #3b615d;
  background: #122528;
  color: var(--accent-bright);
}

.community-icon i {
  font-size: 18px;
}

.community-icon.is-interactive:hover {
  box-shadow: inset 0 0 0 1px rgb(100 216 204 / 0.14), 0 0 15px rgb(53 192 178 / 0.15);
}

.environment,
.page-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #29413f;
  border-radius: 8px;
  background: #0e211f;
  color: #b9ceca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 10px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #37d7a3;
}

.notification-button {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.notification-button.is-interactive {
  overflow: hidden;
  isolation: isolate;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 50%;
  min-height: 44px;
  border: 1px solid var(--accent-bright);
  border-radius: 12px;
  background: #0c1422;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  padding: 12px 16px;
  text-decoration: none;
  transform: translate(-50%, -150%);
  transition: transform var(--motion-base) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.notification-button:hover {
  background: var(--surface-raised);
}

.notification-button i {
  position: relative;
  z-index: 1;
  font-size: 19px;
}

.notification-button span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 9px;
  background: var(--amber);
  color: #17201e;
  font-size: 10px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-soft);
  padding: 0 13px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.button > .ph,
.settings-tabs button > .ph,
.secret-control button > .ph,
.dialog-title button > .ph,
.notification-button > .ph,
.command-trigger > .ph {
  display: inline-grid;
  place-items: center;
  transform: translateY(1px);
}

.button:hover {
  border-color: #375053;
  color: var(--text);
}

.button.primary {
  border-color: #49cfc1;
  background: var(--accent);
  color: #061311;
}

.button.primary:hover {
  background: var(--accent-bright);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
}

.button.danger {
  border-color: #72413f;
  background: var(--danger-soft);
  color: #f5aaa6;
}

.button.icon-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.button.icon-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.main-content {
  width: min(100%, 1740px);
  margin: 0 auto;
  padding: 28px 34px 54px;
}

.page-heading-row {
  display: flex;
  min-height: 78px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.page-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #2b4144;
  border-radius: 12px;
  background: #102025;
  color: #83b9b2;
}

.page-icon i {
  font-size: 25px;
}

.breadcrumb {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.breadcrumb span {
  margin: 0 7px;
}

.page-header h1 {
  margin-top: 2px;
  font-size: clamp(29px, 3vw, 36px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.page-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.page-status {
  margin-top: 2px;
}

.page-status i {
  color: var(--accent-bright);
  font-size: 15px;
}

.page-stack {
  display: grid;
  gap: 20px;
}

.content-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-toolbar > div {
  gap: 8px;
}

.segmented {
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1518;
  padding: 3px;
}

.segmented button {
  min-height: 28px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.segmented button.is-selected,
.table-footer button.is-selected {
  background: #18272c;
  color: var(--text);
}

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

.metric-card,
.surface,
.mini-metrics article,
.build-strip,
.script-panel,
.empty-table,
.item-card,
.referral-link-panel,
.boost-panel,
.referral-stats article,
.referral-history,
.faq details,
.settings-tabs,
.settings-card,
.notice-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0e191c, #091215);
}

.metric-card {
  min-height: 148px;
  border-radius: var(--radius-large);
  padding: 18px;
}

.metric-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.metric-card > div i {
  color: var(--accent-bright);
  font-size: 18px;
}

.metric-card > strong {
  display: block;
  margin-top: 10px;
  color: var(--accent-bright);
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-card > small,
.metric-card > p {
  display: block;
  color: var(--faint);
  font-size: 12px;
}

.metric-card > small {
  margin-top: 10px;
}

.metric-card > p {
  margin-top: 3px;
}

.metric-card.metric-amber > div i,
.metric-card.metric-amber > strong {
  color: var(--amber);
}

.section-intro {
  margin-top: 12px;
}

.section-intro h2,
.faq h2,
.referral-history h2 {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.section-intro p,
.faq > div p,
.referral-history > div p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.surface {
  min-height: 300px;
  border-radius: var(--radius-large);
  padding: 20px;
}

.performance-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.performance-label > span:nth-child(2) {
  display: grid;
}

.performance-label strong {
  color: var(--accent-bright);
  font-size: 15px;
  font-weight: 850;
}

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

.performance-label b {
  display: grid;
  text-align: right;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.performance-label b small {
  font-size: 10px;
}

.performance-label em {
  border: 1px solid #2b4643;
  border-radius: 6px;
  background: #102522;
  color: #92c8c1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 7px;
}

.performance-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #28504b;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.zero-chart {
  position: relative;
  display: flex;
  height: 196px;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}

.zero-chart span {
  width: 5px;
  height: 5px;
  margin-bottom: -3px;
  border-radius: 50%;
  background: var(--accent);
}

.zero-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--faint);
  font-size: 10.5px;
}

.activity-line {
  height: 123px;
  border-bottom: 2px dashed #496964;
}

.activity-panel dl {
  display: grid;
  margin-top: 12px;
}

.activity-panel dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}

.activity-panel dl div:last-child {
  border-bottom: 0;
}

.activity-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.activity-panel dd {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

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

.mini-metrics article {
  display: flex;
  min-height: 68px;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: var(--radius-large);
  padding: 18px;
}

.mini-metrics article > span {
  display: flex;
  gap: 10px;
  color: var(--accent-bright);
}

.mini-metrics article > span > span,
.mini-metrics article > b {
  display: grid;
}

.mini-metrics strong {
  font-size: 14px;
}

.mini-metrics small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.mini-metrics b {
  text-align: right;
  font-size: 18px;
}

.build-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-large);
}

.build-strip > div {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line-soft);
  padding: 16px 20px;
}

.build-strip > div:last-child {
  border-right: 0;
}

.build-strip span,
.field-caption strong,
.select-field > span strong,
.script-panel h2,
.media-title > div > span,
.referral-link-panel > span,
.referral-stats article > span,
.settings-card > div > span > strong,
.history-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.build-strip strong {
  font-size: 14.5px;
}

.build-strip strong i {
  color: var(--accent-bright);
  margin-right: 5px;
}

.build-strip .active-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
}

.scripts-top-grid {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.script-panel {
  border-radius: var(--radius-large);
  padding: 20px;
}

.script-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.script-panel h2 i {
  color: var(--accent-bright);
  font-size: 17px;
}

.select-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.custom-select {
  position: relative;
  min-width: 118px;
}

.select-field .custom-select {
  width: 100%;
}

[data-custom-select="filters-sort"] {
  min-width: 206px;
}

.custom-select-trigger {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d171b;
  color: var(--text-soft);
  padding: 0 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.custom-select-trigger > span {
  overflow: hidden;
  flex: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger > i:first-child {
  color: var(--accent-bright);
  font-size: 16px;
}

.custom-select-trigger > i:last-child {
  color: var(--muted);
  transition: transform 150ms ease;
}

.custom-select.is-open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(53 192 178 / 0.13), 0 0 20px rgb(53 192 178 / 0.09);
}

.custom-select.is-open .custom-select-trigger > i:last-child {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  overflow-y: auto;
  max-height: 280px;
  gap: 3px;
  border: 1px solid #31504d;
  border-radius: 10px;
  background: rgb(9 19 22 / 0.98);
  padding: 6px;
  box-shadow: 0 18px 45px rgb(0 0 0 / 0.5), 0 0 24px rgb(53 192 178 / 0.08);
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 150ms ease, transform 150ms ease;
  backdrop-filter: blur(18px);
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  transform: translateY(0);
}

.custom-select-menu button {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
  cursor: pointer;
  text-align: left;
  font-size: 12.5px;
  font-weight: 750;
}

.custom-select-menu button:hover,
.custom-select-menu button:focus-visible {
  background: #132629;
  color: var(--text);
  box-shadow: inset 0 0 14px rgb(53 192 178 / 0.09);
}

.custom-select-menu button[aria-selected="true"] {
  background: #15312f;
  color: var(--accent-bright);
}

.custom-select-menu [data-select-option-label] {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.custom-select-menu [data-select-option-label] > .ph {
  color: var(--accent-bright);
  font-size: 15px;
}

.select-field > span,
.field-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.select-field > span small,
.field-caption span {
  color: var(--muted);
  font-size: 12px;
}

select,
input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d171b;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(53 192 178 / 0.15);
}

input::placeholder {
  color: #5e716e;
}

.secret-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.secret-control {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
}

.secret-control input {
  min-width: 0;
}

.secret-control button {
  width: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d171b;
  color: var(--muted);
  cursor: pointer;
}

.secret-control button:hover {
  color: var(--accent-bright);
}

.warning-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-top: 22px;
  padding-bottom: 16px;
  color: var(--danger);
  font-size: 12px;
}

.warning-copy span {
  color: var(--muted);
}

.reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.media-title,
.media-title > div,
.interface-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media-title > div {
  gap: 7px;
}

.media-title em,
.settings-tabs em,
.notice-card em {
  border: 1px solid #35514e;
  border-radius: 5px;
  background: #132825;
  color: #a7d8d2;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 3px 7px;
}

.media-panel > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.interface-row {
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
  margin: 18px 0 4px;
  padding-bottom: 17px;
}

.interface-row > span:first-child {
  display: grid;
  margin-right: auto;
}

.interface-row strong {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.interface-row small {
  color: var(--muted);
  font-size: 12px;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: relative;
  display: block;
  width: 40px;
  height: 22px;
  border: 1px solid #3b4e50;
  border-radius: 11px;
  background: #172326;
  cursor: pointer;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #73837f;
  content: "";
  transition: transform 150ms ease, background 150ms ease;
}

.switch input:checked + span {
  border-color: #35a99d;
  background: #123b37;
}

.switch input:checked + span::after {
  background: var(--accent-bright);
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.empty-table {
  overflow: hidden;
  min-height: 390px;
  border-radius: var(--radius-large);
}

.empty-table-head {
  display: grid;
  min-width: 1000px;
  grid-auto-columns: minmax(120px, 1fr);
  grid-auto-flow: column;
  border-bottom: 1px solid var(--line);
  background: #101a1e;
  padding: 14px 18px;
}

.empty-table-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.empty-table-body {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}

.empty-table-body i {
  font-size: 35px;
}

.empty-table-body strong {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.empty-table-body p {
  margin-top: 5px;
  font-size: 12.5px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding: 12px 18px;
}

.table-footer > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-footer span {
  margin-right: 4px;
  color: var(--faint);
  font-size: 10px;
}

.table-footer .table-page-summary {
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.table-footer button {
  min-width: 34px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.filters-toolbar {
  position: relative;
  z-index: 20;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-search {
  display: grid;
  min-width: 270px;
  flex: 1 1 320px;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d171b;
  color: var(--muted);
  padding-left: 12px;
}

.filter-search input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.filter-search:focus-within {
  border-color: #4f908a;
  box-shadow: 0 0 0 2px rgb(66 158 150 / 0.18), 0 0 18px rgb(53 192 178 / 0.1);
}

.filter-search input:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}

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

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.catalog-meta strong {
  color: var(--text-soft);
}

.low-value-notice {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  border: 1px solid #2a4544;
  border-radius: 7px;
  background: #0c1719;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  padding: 7px 10px;
}

.low-value-notice > .ph {
  color: var(--accent-bright);
  font-size: 14px;
}

.low-value-notice strong {
  color: var(--text-soft);
}

.filters-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--accent-bright, #1de9b6);
  border-radius: var(--radius-large, 12px);
  background: rgb(0 30 30 / 0.85);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.filters-save-bar .button {
  flex-shrink: 0;
}

.item-card {
  min-width: 0;
  border-radius: var(--radius-large);
  padding: 15px;
}

.item-card-head {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
}

.item-art {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #2d494b;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, #173337, #0c191c 72%);
}

.item-art::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgb(100 216 204 / 0.07);
  content: "";
  pointer-events: none;
}

.item-art img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgb(0 0 0 / 0.45));
}

.item-art.item-art-pet {
  background: radial-gradient(circle at 35% 30%, #21454b, #0b171a 72%);
  color: var(--accent-bright);
}

.item-art.item-art-pet i {
  font-size: 28px;
}

.item-card-head > span:nth-child(2) {
  min-width: 0;
}

.item-card h2 {
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 15.5px;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.item-card-head > span:nth-child(2) > strong {
  display: block;
  color: #b5db7a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rarity,
.variant-tags em,
.item-type {
  border: 1px solid #49605c;
  border-radius: 4px;
  background: #172522;
  color: #a7c8c2;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 5px;
}

.item-type {
  border-color: #294341;
  background: #0d1c1f;
  color: #78918d;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rarity-ancient {
  border-color: #8b6128;
  background: #332716;
  color: #f1ba63;
}

.rarity-godly {
  border-color: #764a35;
  background: #352018;
  color: #f39b6b;
}

.rarity-common {
  border-color: #475a5b;
  background: #172224;
  color: #a8b8b7;
}

.rarity-uncommon {
  border-color: #366348;
  background: #142a1d;
  color: #73c98e;
}

.rarity-rare {
  border-color: #365d72;
  background: #132733;
  color: #72badf;
}

.rarity-legendary {
  border-color: #765e2e;
  background: #302714;
  color: #e6bd60;
}

.rarity-vintage {
  border-color: #2f6666;
  background: #112c2d;
  color: #68cac5;
}

.rarity-unique {
  border-color: #60716d;
  background: #202b29;
  color: #e4f0ed;
}

.rarity-chroma {
  border-color: #486d62;
  background: linear-gradient(90deg, #17372d, #293119, #3a2618);
  color: #e3d98c;
}

.rarity-godly-formerly-ancient,
.rarity-varies,
.rarity-default {
  border-color: #49605c;
  background: #172522;
  color: #a7c8c2;
}

.variant-tags {
  display: flex;
  gap: 4px;
}

.variant-tags em:last-child {
  opacity: 0.55;
}

.item-price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  margin-top: 13px;
  padding-top: 12px;
}

.item-price > label:last-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0a1417;
  color: #99c66e;
  padding-left: 11px;
}

.item-price input {
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.empty-state {
  display: grid;
  justify-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-large);
  color: var(--muted);
  padding: 50px;
}

.empty-state i {
  font-size: 30px;
}

.empty-state h2 {
  margin-top: 8px;
  font-size: 17px;
}

.empty-state p {
  margin: 4px 0 14px;
  font-size: 13px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #091416;
  padding: 10px 12px;
}

.catalog-pagination > span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.catalog-pagination > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.catalog-pagination button {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d191c;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.catalog-pagination button.is-selected {
  border-color: #3f756e;
  background: #17312f;
  color: var(--accent-bright);
  box-shadow: inset 0 0 14px rgb(53 192 178 / 0.08);
}

.catalog-pagination button:disabled {
  cursor: default;
  opacity: 0.35;
}

.pagination-gap {
  color: var(--faint);
  padding: 0 2px;
}

.referral-link-panel,
.boost-panel,
.referral-history {
  border-radius: var(--radius-large);
  padding: 20px;
}

.referral-link-panel > div:nth-of-type(1) {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c171a;
  margin-top: 10px;
  padding: 6px 7px 6px 12px;
}

.referral-link-panel > div:nth-of-type(1) > i {
  color: var(--accent-bright);
}

.referral-link-panel > div:nth-of-type(1) strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-link-panel > p {
  border-bottom: 1px solid var(--line-soft);
  margin-top: 12px;
  padding-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
}

.share-row {
  gap: 8px;
  margin-top: 13px;
}

.share-row > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 12px;
}

.boost-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-color: #36514e;
  background: linear-gradient(100deg, #102321, #0b1518 55%);
}

.boost-panel > i {
  color: var(--accent-bright);
  font-size: 29px;
}

.boost-panel h2 {
  font-size: 16px;
  font-weight: 850;
}

.boost-panel p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.referral-stats article {
  display: grid;
  min-height: 106px;
  border-radius: var(--radius-large);
  padding: 16px;
}

.referral-stats article strong {
  color: var(--accent-bright);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.referral-stats article small {
  color: var(--muted);
  font-size: 11.5px;
}

.referral-history {
  padding: 0;
}

.referral-history > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.history-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 20px;
}

.history-empty {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 12px;
}

.history-empty i {
  font-size: 27px;
}

.faq {
  display: grid;
  gap: 8px;
}

.faq > div {
  margin: 3px 0 7px;
}

.faq details {
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 15px 0;
}

.faq details p {
  color: var(--muted);
  font-size: 13px;
  padding: 0 0 15px;
}

.settings-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-large);
  padding: 5px;
}

.settings-tabs button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.settings-tabs button.is-selected {
  border-color: #35504e;
  background: #152426;
  color: var(--text);
}

.settings-tabs em {
  opacity: 0.7;
}

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

.settings-card {
  overflow: hidden;
  border-radius: var(--radius-large);
}

.settings-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
}

.settings-card > div > span:last-child,
.settings-card-form > span {
  display: grid;
}

.settings-card small {
  color: var(--muted);
  font-size: 12.5px;
}

.settings-card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #31504c;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.settings-card-icon i {
  font-size: 20px;
}

.settings-card-form {
  border-top: 1px solid var(--line-soft);
}

.settings-card-form > span {
  margin-right: auto;
}

.settings-card-form input {
  width: min(230px, 40%);
}

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

.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding: 17px 20px;
}

.settings-toggle-row > span {
  display: grid;
  margin-right: auto;
}

.money-input {
  display: grid;
  width: min(230px, 40%);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d171b;
  color: var(--accent-bright);
  padding-left: 12px;
}

.money-input input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.settings-panel.is-active {
  animation: page-rise var(--motion-base) var(--ease-out) both;
}

.save-settings {
  justify-self: start;
}

.notification-page {
  display: grid;
  gap: 14px;
}

.notification-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, #0e191c, #091215);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.notification-empty > .ph {
  color: var(--accent-bright);
  font-size: 34px;
}

.notification-empty h2 {
  color: var(--text);
  font-size: 17px;
}

.notification-empty p {
  max-width: 420px;
  font-size: 13px;
}

.notification-empty .button {
  margin-top: 8px;
}

.notice-card {
  display: grid;
  min-height: 144px;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  border-radius: var(--radius-large);
  padding: 22px;
}

.notice-card.notice-info {
  border-color: #295d65;
  background: linear-gradient(120deg, #0c2429, #091315 48%);
}

.notice-card.notice-alert {
  border-color: #6b3a38;
  background: linear-gradient(120deg, #281617, #0c1113 48%);
}

.notice-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 11px;
  color: var(--blue);
}

.notice-alert .notice-icon {
  color: var(--danger);
}

.notice-icon i {
  font-size: 23px;
}

.notice-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.notice-card h2 {
  font-size: 15px;
  font-weight: 800;
}

.notice-card time {
  border: 1px solid #315358;
  border-radius: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  padding: 3px 8px;
}

.notice-alert time {
  border-color: #633735;
  color: var(--danger);
}

.search-dialog {
  width: min(560px, calc(100% - 28px));
  border: 1px solid #31504c;
  border-radius: 14px;
  background: #0a1417;
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.55);
}

.search-dialog::backdrop {
  background: rgb(2 7 8 / 0.76);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-title strong {
  font-size: 17px;
}

.dialog-title button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}

.dialog-title button:hover {
  border-color: #466561;
  background: #162326;
  color: var(--accent-bright);
}

.dialog-title button > span {
  display: block;
  color: currentColor;
  font-family: "Nunito Variable", Nunito, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 25px;
}

.search-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e191c;
  color: var(--muted);
  padding-left: 12px;
}

.search-input input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(53 192 178 / 0.15);
}

.search-input input:focus,
.search-input input:focus-visible {
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}

.search-results {
  display: grid;
  gap: 4px;
}

.search-results a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  color: var(--text-soft);
  padding: 10px;
}

.search-results a:hover {
  background: #132225;
}

.search-results a > i:first-child {
  color: var(--accent-bright);
  font-size: 19px;
}

.search-results a > span {
  display: grid;
}

.search-results small {
  color: var(--muted);
  font-size: 11px;
}

.toast-region {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  pointer-events: none;
}

.toast {
  width: min(390px, calc(100vw - 48px));
  border: 1px solid #3a615c;
  border-radius: 11px;
  background: #102421;
  color: #d8f1ed;
  padding: 15px 17px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.45), 0 0 24px rgb(53 192 178 / 0.1);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.toast.error {
  border-color: #71413e;
  background: #2a1819;
  color: #f6b5b1;
}

.toast.info {
  border-color: #3d596e;
  background: #15232d;
  color: #c2dbec;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1280px) {
  :root {
    --sidebar: 246px;
  }

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

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

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

  .surface {
    min-height: 280px;
  }
}

@media (max-width: 980px) {
  :root {
    --topbar: 62px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .quick-actions {
    display: none;
  }

  .topbar {
    padding: 0 20px;
  }

  .main-content {
    padding: 24px 20px 92px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 5;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #2b4144;
    border-radius: 13px;
    background: rgb(10 20 23 / 0.96);
    padding: 6px;
    box-shadow: 0 18px 50px rgb(0 0 0 / 0.4);
    backdrop-filter: blur(18px);
  }

  .mobile-nav .nav-item {
    min-height: 49px;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 0 4px;
    font-size: 10.5px;
  }

  .mobile-nav .nav-item i {
    font-size: 18px;
  }

  .scripts-top-grid,
  .settings-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 14.5px;
  }

  .topbar {
    padding: 0 14px;
  }

  .mobile-brand .brand-mark {
    width: 31px;
    height: 31px;
  }

  .main-content {
    padding: 20px 14px 92px;
  }

  .page-heading-row {
    min-height: auto;
    align-items: center;
    margin-bottom: 20px;
  }

  .page-header {
    gap: 11px;
  }

  .page-icon {
    width: 43px;
    height: 43px;
  }

  .page-icon i {
    font-size: 21px;
  }

  .page-header h1 {
    font-size: 27px;
  }

  .page-header p {
    max-width: 230px;
    font-size: 11.5px;
  }

  .page-status {
    display: none;
  }

  .content-toolbar,
  .boost-panel,
  .referral-history > div:first-child,
  .interface-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .mini-metrics,
  .items-grid,
  .referral-stats {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 132px;
  }

  .surface {
    min-height: 250px;
    padding: 15px;
  }

  .zero-chart {
    height: 156px;
  }

  .zero-labels span:nth-child(even) {
    display: none;
  }

  .build-strip {
    grid-template-columns: 1fr;
  }

  .build-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .build-strip > div:last-child {
    border-bottom: 0;
  }

  .select-field > span,
  .field-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .media-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .filter-search {
    min-width: 100%;
    flex-basis: 100%;
  }

  .filters-toolbar .button {
    flex: 1 1 auto;
  }

  .item-card {
    padding: 14px;
  }

  .variant-tags {
    display: none;
  }

  .referral-link-panel > div:nth-of-type(1) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .referral-link-panel > div:nth-of-type(1) .button {
    grid-column: 1 / -1;
  }

  .boost-panel {
    display: flex;
  }

  .history-head {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .history-head span:nth-child(n + 3) {
    display: none;
  }

  .settings-tabs {
    overflow-x: auto;
  }

  .settings-tabs button {
    flex: 0 0 auto;
  }

  .settings-card > div,
  .settings-card-form {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-card-form input {
    width: 100%;
  }

  .notice-card {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }

  .notice-card time {
    grid-column: 2;
    justify-self: start;
  }

  .notice-card h2 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --bg: #05070d;
  --bg-deep: #02040a;
  --surface: rgb(13 20 33 / 0.78);
  --surface-raised: rgb(19 29 47 / 0.88);
  --surface-soft: rgb(14 22 36 / 0.66);
  --line: rgb(177 226 255 / 0.16);
  --line-soft: rgb(177 226 255 / 0.09);
  --text: #f2f7ff;
  --text-soft: #c6d2e2;
  --muted: #91a0b4;
  --faint: #69778d;
  --accent: #64cde5;
  --accent-bright: #a6efff;
  --accent-soft: rgb(50 155 184 / 0.18);
  --amber: #e8b46c;
  --amber-soft: rgb(232 180 108 / 0.13);
  --danger: #ff858f;
  --danger-soft: rgb(255 92 106 / 0.13);
  --blue: #8ebcff;
  --glass-border: rgb(205 238 255 / 0.2);
  --glass-highlight: rgb(255 255 255 / 0.18);
  --glass-shadow: 0 24px 70px rgb(0 4 14 / 0.42);
  --radius: 12px;
  --radius-large: 18px;
  --motion-fast: 140ms;
  --motion-base: 260ms;
  --motion-slow: 620ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  scrollbar-color: #31445e #070b13;
  scrollbar-width: thin;
}

::selection {
  background: rgb(100 205 229 / 0.32);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070b13;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #070b13;
  border-radius: 8px;
  background: #31445e;
}

body:not(.login-page) {
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 18% -10%, rgb(31 100 128 / 0.24), transparent 31rem),
    radial-gradient(circle at 92% 16%, rgb(64 105 166 / 0.15), transparent 28rem),
    linear-gradient(145deg, #05070d 0%, #070b13 54%, #03050a 100%);
  color: var(--text);
}

body:not(.login-page)::before,
body:not(.login-page)::after {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  pointer-events: none;
}

body:not(.login-page)::before {
  top: 34vh;
  left: -13rem;
  width: 27rem;
  height: 27rem;
  background: radial-gradient(circle, rgb(40 163 188 / 0.14), transparent 68%);
  animation: atmosphere-shift 18s var(--ease-in-out) infinite alternate;
}

body:not(.login-page)::after {
  right: -11rem;
  bottom: -7rem;
  width: 31rem;
  height: 31rem;
  background: radial-gradient(circle, rgb(65 96 164 / 0.16), transparent 70%);
  animation: atmosphere-shift 22s var(--ease-in-out) infinite alternate-reverse;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100dvh;
  isolation: isolate;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 18px;
  right: 18px;
  left: 18px;
  display: grid;
  width: auto;
  height: 72px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  overflow: visible;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.11), transparent 42%),
    rgb(10 16 28 / 0.72);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgb(124 203 239 / 0.07),
    var(--glass-shadow);
  padding: 9px 10px 9px 14px;
  backdrop-filter: blur(28px) saturate(165%) contrast(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(165%) contrast(1.06);
}

.sidebar::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgb(255 255 255 / 0.19), transparent 24%),
    linear-gradient(90deg, transparent 40%, rgb(113 218 244 / 0.05), transparent 78%);
  content: "";
  pointer-events: none;
}

.brand-lockup,
.mobile-brand,
.login-brand {
  color: var(--text);
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-self: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 8px 0 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 13px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22);
}

.brand-mark::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgb(255 255 255 / 0.26), transparent 42%);
  content: "";
  pointer-events: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup > span:last-child,
.profile-row > span:nth-child(2) {
  display: grid;
  align-content: center;
  gap: 1px;
}

.brand-lockup > span:last-child {
  min-height: 42px;
}

.brand-lockup strong {
  font-size: 15px;
  font-weight: 880;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.side-navigation {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  overflow: visible;
}

.header-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(228px, 260px) max-content;
  align-items: center;
  gap: 10px;
}

.nav-label {
  display: none;
}

.nav-item {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  padding: 0 12px;
  text-decoration: none;
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.nav-item .ph {
  flex: 0 0 auto;
  font-size: 18px;
}

.nav-item:hover {
  border-color: rgb(186 232 255 / 0.11);
  background: rgb(255 255 255 / 0.055);
  color: var(--text-soft);
}

.nav-item.is-active {
  border-color: rgb(124 221 244 / 0.2);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.11), transparent 68%),
    rgb(67 162 188 / 0.14);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.15),
    0 8px 20px rgb(0 7 16 / 0.18);
  color: var(--accent-bright);
}

.nav-item.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0.42);
  transform-origin: center;
}

.command-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgb(189 232 255 / 0.15);
  border-radius: 12px;
  background: rgb(4 9 18 / 0.46);
  color: var(--text-soft);
  padding: 0 9px 0 12px;
  text-align: left;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}

.command-trigger:hover {
  border-color: rgb(124 221 244 / 0.34);
  background: rgb(17 30 47 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.11);
}

.command-trigger > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-trigger kbd {
  border: 1px solid rgb(205 238 255 / 0.14);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
  font: 700 9px/1 "Nunito Variable", sans-serif;
  padding: 5px 6px;
  white-space: nowrap;
}

.sidebar-footer {
  min-width: max-content;
  align-self: center;
  border: 0;
  margin: 0;
  padding: 0;
}

.profile-row {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 9px;
  border-top: 0;
  border-left: 1px solid var(--line-soft);
  margin: 0;
  padding: 0 0 0 13px;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgb(143 226 247 / 0.24);
  border-radius: 11px;
  background: linear-gradient(145deg, rgb(91 189 215 / 0.26), rgb(31 70 99 / 0.18));
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.13);
}

.profile-row strong {
  max-width: 92px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row small {
  color: var(--faint);
  font-size: 9px;
  font-weight: 760;
}

.profile-row .button {
  margin-left: 2px;
}

.main-column {
  min-width: 0;
  margin: 0;
}

.topbar {
  position: fixed;
  z-index: 35;
  top: 108px;
  right: 22px;
  display: flex;
  width: 62px;
  height: auto;
  min-height: 0;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgb(255 255 255 / 0.11), transparent 36%),
    rgb(9 15 26 / 0.68);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 20px 48px rgb(0 4 14 / 0.34);
  padding: 8px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.mobile-brand {
  display: none;
}

.quick-actions,
.topbar-end,
.community-actions {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 6px;
}

.quick-actions {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.topbar-end {
  margin-left: 0;
}

.quick-actions .button,
.community-icon,
.notification-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
}

.quick-actions .button span {
  display: none;
}

.quick-actions .button.primary,
.quick-actions .button.secondary {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.quick-actions .button:hover,
.community-icon:hover,
.notification-button:hover {
  border-color: rgb(153 229 248 / 0.19);
  background: rgb(255 255 255 / 0.07);
  color: var(--accent-bright);
}

.community-icon,
.notification-button {
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-out);
}

.environment {
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  gap: 2px;
  border-top: 1px solid var(--line-soft);
  color: #8fe4bd;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding-top: 8px;
}

.environment .status-dot {
  width: 6px;
  height: 6px;
}

.main-content {
  width: min(100%, 1660px);
  margin: 0 auto;
  padding: 122px 112px 72px 34px;
}

.page-heading-row {
  display: flex;
  min-height: 132px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
  padding: 12px 2px 25px;
}

.page-header {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 20px;
}

.page-header > div:first-child {
  display: grid;
  gap: 7px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.breadcrumb .ph {
  font-size: 10px;
}

.breadcrumb strong {
  color: var(--text-soft);
  font-weight: 760;
}

.page-header h1 {
  color: var(--text);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.page-header p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  order: 2;
  overflow: hidden;
  border: 1px solid rgb(180 235 255 / 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgb(255 255 255 / 0.18), transparent 42%),
    rgb(57 147 175 / 0.13);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.17),
    0 16px 34px rgb(0 6 18 / 0.24);
  color: var(--accent-bright);
}

.page-icon .ph {
  font-size: 24px;
}

.page-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(13 21 35 / 0.62);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
  padding: 0 12px;
  backdrop-filter: blur(16px);
}

.page-stack {
  display: grid;
  gap: 24px;
}

.content-toolbar,
.filters-toolbar,
.settings-tabs,
.build-strip,
.catalog-meta {
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.075), transparent 48%),
    rgb(11 18 30 / 0.66);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.11);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.content-toolbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 16px;
  padding: 8px;
}

.content-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
button,
a[href] {
  -webkit-tap-highlight-color: transparent;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.055);
  color: var(--text-soft);
  font: 800 12px/1 "Nunito Variable", sans-serif;
  padding: 0 15px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.button:hover {
  border-color: rgb(139 222 244 / 0.28);
  background: rgb(139 222 244 / 0.1);
  color: var(--text);
}

.button:active,
.nav-item:active,
.command-trigger:active,
.custom-select-trigger:active,
.community-icon:active,
.notification-button:active {
  transform: scale(0.98);
}

.button.primary {
  border-color: rgb(173 238 255 / 0.56);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.3), transparent 38%),
    #66cce3;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    0 12px 28px rgb(51 168 198 / 0.2);
  color: #061118;
}

.button.primary:hover {
  border-color: #c7f5ff;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.36), transparent 40%),
    #7fdaed;
  color: #03090d;
}

.button.secondary {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.09), transparent 54%),
    rgb(15 27 44 / 0.76);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.danger {
  border-color: rgb(255 133 143 / 0.25);
  background: var(--danger-soft);
  color: #ffabb2;
}

.button.icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.button.icon-button > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.custom-select {
  position: relative;
  min-width: 146px;
}

.custom-select-caption {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 730;
}

.custom-select-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(5 11 21 / 0.54);
  color: var(--text-soft);
  font: 760 12px/1.2 "Nunito Variable", sans-serif;
  padding: 0 12px;
  text-align: left;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}

.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  border-color: rgb(128 220 242 / 0.34);
  background: rgb(18 31 49 / 0.86);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.custom-select-trigger [data-select-label] {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger > .ph:last-child {
  color: var(--faint);
  transition: transform var(--motion-base) var(--ease-out);
}

.custom-select.is-open .custom-select-trigger > .ph:last-child {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: max(100%, 210px);
  max-height: 310px;
  gap: 3px;
  overflow: auto;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.09), transparent 38%),
    rgb(10 17 29 / 0.94);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.13),
    0 22px 60px rgb(0 2 8 / 0.58);
  padding: 6px;
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-menu button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 720 12px/1.2 "Nunito Variable", sans-serif;
  padding: 0 10px;
  text-align: left;
}

.custom-select-menu button:hover,
.custom-select-menu button[aria-selected="true"] {
  background: rgb(108 209 233 / 0.1);
  color: var(--text);
}

[data-select-option-label] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgb(4 9 18 / 0.36);
  padding: 3px;
}

.segmented button,
.settings-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 800 10px/1 "Nunito Variable", sans-serif;
  padding: 0 13px;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-out);
}

.segmented button:hover,
.settings-tabs button:hover {
  color: var(--text-soft);
}

.segmented button.is-selected,
.settings-tabs button.is-selected {
  border-color: rgb(142 224 244 / 0.17);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.1), transparent),
    rgb(72 161 185 / 0.12);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  color: var(--accent-bright);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.metric-card,
.surface,
.script-panel,
.settings-card,
.empty-table,
.notification-empty,
.notification-consent,
.low-value-notice,
.item-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.055), transparent 46%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 18px 42px rgb(0 3 11 / 0.18);
}

.metric-card::before,
.surface::before,
.script-panel::before,
.settings-card::before,
.item-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(170 235 251 / 0.32), transparent);
  content: "";
  pointer-events: none;
}

.metric-card {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.metric-card:hover {
  border-color: rgb(139 222 244 / 0.26);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 24px 48px rgb(0 4 14 / 0.27);
}

.metric-card:first-child {
  grid-row: span 2;
  min-height: 314px;
  background:
    radial-gradient(circle at 84% 6%, rgb(87 198 225 / 0.15), transparent 42%),
    linear-gradient(145deg, rgb(255 255 255 / 0.07), transparent 47%),
    rgb(14 24 40 / 0.82);
  padding: 24px;
}

.metric-card:nth-child(4) {
  grid-column: 2 / 5;
}

.metric-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.metric-card > div .ph {
  font-size: 18px;
  color: var(--faint);
}

.metric-card > strong {
  color: var(--text);
  font-size: clamp(32px, 4vw, 54px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-card:first-child > strong {
  font-size: clamp(48px, 6vw, 82px);
}

.metric-card > small {
  width: max-content;
  border: 1px solid rgb(107 224 173 / 0.16);
  border-radius: 8px;
  background: rgb(46 158 104 / 0.1);
  color: #8fe4bd;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
}

.metric-card p {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.45;
}

.metric-card.metric-amber > div .ph {
  color: var(--amber);
}

.section-intro {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 0 2px;
}

.section-intro h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 860;
  letter-spacing: -0.03em;
}

.section-intro p {
  color: var(--muted);
  font-size: 12px;
}

.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.7fr);
  gap: 14px;
}

.surface {
  min-height: 330px;
  padding: 20px;
}

.performance-label {
  display: flex;
  align-items: center;
  gap: 11px;
}

.performance-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgb(151 227 246 / 0.18);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.performance-label > span:nth-child(2),
.performance-label > b {
  display: grid;
  gap: 2px;
}

.performance-label strong,
.performance-label b {
  color: var(--text);
  font-size: 13px;
  font-weight: 830;
}

.performance-label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.performance-label b,
.performance-label em {
  margin-left: auto;
  font-style: normal;
  text-align: right;
}

.performance-label em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.zero-chart {
  position: relative;
  display: grid;
  height: 185px;
  align-items: end;
  grid-template-columns: repeat(var(--chart-columns, 7), 1fr);
  gap: 9px;
  border-bottom: 1px solid var(--line);
  margin-top: 34px;
  background-image: linear-gradient(to bottom, transparent calc(25% - 1px), var(--line-soft) 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), var(--line-soft) 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), var(--line-soft) 75%, transparent calc(75% + 1px));
}

.zero-chart span {
  height: 7px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(180deg, #87def1, #347c9a);
  box-shadow: 0 -6px 22px rgb(92 203 229 / 0.12);
  transform-origin: bottom;
}

body.is-loaded .zero-chart span {
  animation: bar-arrive 720ms var(--ease-out) both;
  animation-delay: calc(var(--reveal-delay, 0ms) + 180ms);
}

.zero-labels {
  display: grid;
  grid-template-columns: repeat(var(--chart-columns, 7), 1fr);
  gap: 9px;
  color: var(--faint);
  font-size: 9px;
  padding-top: 9px;
  text-align: center;
}

.activity-line {
  position: relative;
  height: 120px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0 14px;
}

.activity-line::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgb(100 205 229 / 0.5), transparent);
  content: "";
  opacity: 0.65;
  transform: scaleX(var(--activity-scale, 0.08));
  transition: transform 320ms ease;
}

.activity-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.activity-panel dl > div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.025);
  padding: 9px;
}

.activity-panel dt {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.activity-panel dd {
  color: var(--text-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--line-soft);
}

.mini-metrics article {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgb(10 17 29 / 0.86);
  padding: 10px 14px;
}

.overview-sync {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.overview-sync i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.overview-sync.is-live i {
  background: #8fe4bd;
  box-shadow: 0 0 10px rgb(99 255 192 / 0.5);
}

.overview-sync.is-error i {
  background: var(--amber);
}

[data-overview-chart] span {
  transform-origin: bottom;
  transition: opacity 200ms ease;
}

.mini-metrics article > span,
.mini-metrics article > span > span,
.mini-metrics article > b {
  display: flex;
  align-items: center;
}

.mini-metrics article > span {
  gap: 11px;
}

.mini-metrics article > span > span,
.mini-metrics article > b {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.mini-metrics .ph {
  color: var(--accent);
  font-size: 18px;
}

.mini-metrics strong,
.mini-metrics b {
  color: var(--text-soft);
  font-size: 12px;
}

.mini-metrics small {
  color: var(--faint);
  font-size: 9px;
  font-weight: 650;
}

.build-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
}

.build-strip > div {
  display: grid;
  min-height: 76px;
  align-content: center;
  gap: 5px;
  background: rgb(7 13 23 / 0.66);
  padding: 12px 18px;
}

.build-strip span,
.catalog-meta,
.table-footer {
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
}

.build-strip strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
}

.active-text {
  color: #8fe4bd !important;
}

.scripts-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.script-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.script-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.script-panel h2 .ph {
  color: var(--accent);
}

.select-field,
.secret-field,
.reset-row,
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.select-field > span,
.field-caption,
.settings-card-form > span,
.settings-toggle-row > span {
  display: grid;
  gap: 3px;
}

.select-field strong,
.field-caption strong,
.settings-card-form strong,
.settings-toggle-row strong {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 790;
}

.select-field small,
.field-caption span,
.settings-card-form small,
.settings-toggle-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.secret-field {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
}

.secret-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  gap: 5px;
}

input:not([type="checkbox"]):not([type="hidden"]),
select,
.filter-search,
.search-input,
.money-input,
.item-price > label:last-child {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(3 8 16 / 0.56);
  color: var(--text);
  font: 680 12px/1.2 "Nunito Variable", sans-serif;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-out);
}

input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  padding: 0 12px;
}

input::placeholder {
  color: #78879c;
  opacity: 1;
}

input:not([type="checkbox"]):not([type="hidden"]):hover,
input:not([type="checkbox"]):not([type="hidden"]):focus,
.filter-search:hover,
.filter-search:focus-within,
.search-input:hover,
.search-input:focus-within,
.money-input:hover,
.money-input:focus-within,
.item-price > label:last-child:hover,
.item-price > label:last-child:focus-within {
  border-color: rgb(124 221 244 / 0.34);
  background: rgb(9 18 30 / 0.86);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 0 0 3px rgb(100 205 229 / 0.08);
  outline: 0;
}

.secret-control button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.045);
  color: var(--muted);
}

.secret-control button:hover {
  border-color: rgb(124 221 244 / 0.28);
  color: var(--accent-bright);
}

.warning-copy,
.low-value-notice,
.notification-consent {
  display: flex;
  align-items: center;
  gap: 11px;
}

.warning-copy {
  border-radius: 12px;
  background: var(--danger-soft);
  color: #ffb3b9;
  font-size: 10px;
  line-height: 1.45;
  padding: 12px;
}

.warning-copy strong {
  font-size: 10px;
}

.warning-copy span {
  color: #c98d93;
}

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

.filters-toolbar {
  position: sticky;
  z-index: 20;
  top: 106px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.65fr) minmax(150px, 0.5fr) minmax(210px, 0.8fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  padding: 8px;
}

.filter-search,
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
}

.filter-search .ph,
.search-input .ph {
  color: var(--faint);
}

.filter-search input,
.search-input input {
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
}

.catalog-meta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
  padding: 0 16px;
}

.catalog-meta strong {
  color: var(--text);
  font-size: 13px;
}

.low-value-notice {
  border-color: rgb(232 180 108 / 0.18);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.04), transparent),
    var(--amber-soft);
  color: #d9b786;
  font-size: 11px;
  padding: 13px 15px;
}

.low-value-notice .ph {
  color: var(--amber);
  font-size: 18px;
}

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

.item-card {
  min-width: 0;
  transition:
    border-color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.item-card:hover {
  border-color: rgb(143 226 247 / 0.28);
  box-shadow: 0 22px 44px rgb(0 3 12 / 0.3);
}

.item-card-head {
  display: grid;
  min-height: 242px;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 13px;
}

.item-card-head > span:last-child {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 8px;
}

.item-card-head h2 {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-card-head > span:last-child > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.item-type {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.item-badges {
  display: flex;
  grid-column: 1;
  align-items: flex-start;
  gap: 4px;
}

.rarity {
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.04);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  padding: 4px 6px;
}

.item-art {
  display: grid;
  width: 100%;
  height: 152px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 45%, rgb(91 184 210 / 0.12), transparent 48%),
    rgb(4 8 16 / 0.58);
}

.item-art img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 420ms var(--ease-out), filter 420ms var(--ease-out);
}

.item-card:hover .item-art img {
  filter: saturate(1.08) contrast(1.03);
}

.item-art-pet .ph {
  color: var(--accent);
  font-size: 44px;
  opacity: 0.8;
}

.item-price {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding: 12px;
}

.item-price > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.item-price > span strong {
  color: var(--text);
  font-size: 13px;
}

.item-price > label:last-child,
.money-input {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
}

.item-price > label:last-child input,
.money-input input {
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 2px;
}

.catalog-pagination {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

.catalog-pagination > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.catalog-pagination button,
.table-footer button {
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
  color: var(--muted);
  font: 760 11px/1 "Nunito Variable", sans-serif;
}

.catalog-pagination button:hover,
.catalog-pagination button.is-selected,
.table-footer button:hover,
.table-footer button.is-selected {
  border-color: rgb(124 221 244 / 0.28);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.catalog-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.empty-state,
.empty-table-body,
.notification-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state[hidden] {
  display: none;
}

.empty-state .ph,
.empty-table-body > .ph,
.notification-empty > .ph {
  color: var(--accent);
  font-size: 31px;
  opacity: 0.74;
}

.empty-state h2,
.empty-table-body strong,
.notification-empty h2 {
  color: var(--text);
  font-size: 17px;
}

.empty-state p,
.empty-table-body p,
.notification-empty p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}


.adopt-filter-panel {
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgb(100 205 229 / 0.1), transparent 34%),
    rgb(12 19 31 / 0.9);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 18px 42px rgb(0 3 11 / 0.18);
  padding: 18px;
}

.adopt-filter-panel[hidden],
.filters-save-bar[hidden] {
  display: none;
}

.adopt-filter-intro {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adopt-filter-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 20px;
}

.adopt-filter-intro h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 840;
  letter-spacing: -0.02em;
}

.adopt-filter-intro p {
  max-width: 72ch;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.adopt-rule-groups {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.adopt-rule-group {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.adopt-rule-group legend {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 820;
}

.adopt-rule-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.adopt-rule-options-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-rule-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.filter-rule-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filter-rule-option > span {
  display: grid;
  min-height: 58px;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgb(3 8 16 / 0.54);
  color: var(--muted);
  padding: 8px 10px;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.filter-rule-option .ph {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--faint);
  font-size: 18px;
}

.filter-rule-option > span > .ph:last-child {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgb(177 226 255 / 0.2);
  border-radius: 6px;
  color: transparent;
  font-size: 13px;
}

.filter-rule-option strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-rule-option small {
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-rule-option:hover > span {
  border-color: rgb(143 226 247 / 0.24);
}

.filter-rule-option input:checked + span {
  border-color: rgb(143 226 247 / 0.32);
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09);
}

.filter-rule-option input:checked + span .ph,
.filter-rule-option input:checked + span strong {
  color: var(--accent-bright);
}

.filter-rule-option input:checked + span > .ph:last-child {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: var(--bg-deep);
  box-shadow: 0 0 0 3px rgb(143 226 247 / 0.1);
}

.filter-rule-option input:checked + span small {
  color: var(--text-soft);
}

.filter-rule-option input:focus-visible + span {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.filter-rule-option:active > span {
  transform: scale(0.98);
}

.adopt-rule-summary {
  min-height: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
  padding-top: 10px;
}

.filter-rule-option-unlisted {
  max-width: 430px;
  margin-top: 9px;
}

.adopt-rule-summary.is-warning {
  color: var(--amber);
}

.catalog-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 8px 10px 8px 14px;
}

.catalog-meta > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-enabled {
  color: var(--muted);
  white-space: nowrap;
}

.catalog-bulk-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--bg-deep);
  padding: 3px;
}

.catalog-bulk-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font: 760 11px/1 "Nunito Variable", Nunito, "Segoe UI", sans-serif;
  padding: 0 11px;
  white-space: nowrap;
}

.catalog-bulk-actions button:hover,
.catalog-bulk-actions button:focus-visible {
  border-color: rgb(143 226 247 / 0.28);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.item-card.is-disabled {
  border-color: rgb(177 226 255 / 0.06);
}

.item-card.is-disabled .item-art img {
  filter: grayscale(0.45) saturate(0.62);
  opacity: 0.56;
}

.item-card.is-disabled:hover .item-art img {
  filter: grayscale(0.28) saturate(0.78);
}

.item-art-fallback {
  color: var(--accent);
  font-size: 44px;
  opacity: 0.75;
}

.item-art-fallback[hidden] {
  display: none;
}

.item-market-source {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  justify-self: start;
  gap: 3px;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 760;
}

.item-market-source .ph {
  font-size: 12px;
}

.item-price {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.item-price > span {
  grid-column: 1 / -1;
}

.item-price > span strong {
  color: var(--accent-bright);
}

.item-card.is-disabled .item-price > span strong {
  color: var(--faint);
}

.item-price > label:last-child {
  min-height: 44px;
}

.filters-save-bar {
  position: sticky;
  z-index: 19;
  top: 174px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
}

#filters-unsaved-count {
  color: var(--text-secondary, #c6d2e2);
  font-size: 12px;
  font-weight: 760;
}

#filters-save-error {
  grid-column: 1 / -1;
  margin-top: 0;
}

.empty-table {
  overflow-x: auto;
}

.empty-table-head {
  display: grid;
  min-width: 890px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(105px, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 9px;
  font-weight: 780;
  padding: 15px 18px;
}

.empty-table-body {
  min-width: 890px;
}

.table-footer {
  display: flex;
  min-width: 890px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding: 11px 14px;
}

.table-footer > div {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
}

.notification-consent {
  min-height: 76px;
  justify-content: space-between;
  border-color: rgb(117 214 239 / 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgb(92 200 225 / 0.12), transparent 40%),
    rgb(11 20 33 / 0.72);
  padding: 13px 15px;
}

.notification-consent > div,
.notification-consent p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-consent p {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.notification-consent > div > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgb(128 220 242 / 0.18);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.notification-consent strong {
  color: var(--text-soft);
  font-size: 12px;
}

.notification-consent small {
  color: var(--muted);
  font-size: 10px;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-radius: 16px;
  padding: 5px;
}

.settings-tabs button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.settings-tabs em {
  border-radius: 7px;
  background: rgb(255 255 255 / 0.07);
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
  padding: 4px 6px;
}

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

.settings-card {
  display: grid;
  grid-column: span 6;
  align-content: start;
  gap: 18px;
  padding: 20px;
}

.settings-card-wide {
  grid-column: 2 / 12;
}

.settings-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

.settings-card > div:first-child > span:last-child {
  display: grid;
  gap: 3px;
}

.settings-card > div:first-child strong {
  color: var(--text);
  font-size: 14px;
}

.settings-card > div:first-child small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.settings-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgb(143 226 247 / 0.19);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.settings-card-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.settings-toggle-row {
  min-height: 60px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 44px;
  flex: 0 0 46px;
  align-items: center;
}

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

.switch > span {
  position: relative;
  display: block;
  width: 46px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.07);
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-out);
}

.switch > span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #aab6c7;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.28);
  content: "";
  transition: transform var(--motion-base) var(--ease-out), background-color var(--motion-fast) ease;
}

.switch input:checked + span {
  border-color: rgb(132 224 247 / 0.32);
  background: rgb(72 177 204 / 0.25);
}

.switch input:checked + span::after {
  background: var(--accent-bright);
  transform: translateX(20px);
}

.save-settings {
  justify-self: end;
  min-width: 160px;
}

.notification-page {
  display: grid;
}

.notification-empty {
  min-height: 430px;
}

.search-dialog {
  width: min(92vw, 620px);
  max-height: min(78dvh, 720px);
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.search-dialog::backdrop {
  background: rgb(0 3 10 / 0.72);
  backdrop-filter: blur(8px) saturate(110%);
}

.dialog-shell {
  position: relative;
  display: grid;
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgb(205 238 255 / 0.24);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.12), transparent 40%),
    rgb(9 16 28 / 0.9);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 34px 100px rgb(0 2 8 / 0.66);
  padding: 14px;
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
}

.dialog-title {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 0 5px;
}

.dialog-title strong {
  font-size: 15px;
}

.dialog-title button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(255 255 255 / 0.05);
  color: var(--muted);
  font-size: 18px;
}

.search-input {
  min-height: 50px;
  background: rgb(2 7 15 / 0.6);
}

.search-results {
  display: grid;
  gap: 4px;
}

.search-results a {
  display: grid;
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  padding: 6px 10px;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  border-color: rgb(139 222 244 / 0.18);
  background: rgb(139 222 244 / 0.08);
  color: var(--text);
}

.search-results a > .ph:first-child {
  color: var(--accent);
  font-size: 19px;
}

.search-results a > span {
  display: grid;
  gap: 2px;
}

.search-results strong {
  color: var(--text-soft);
  font-size: 12px;
}

.search-results small {
  color: var(--muted);
  font-size: 9px;
}

.search-empty {
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.search-empty:not([hidden]) {
  display: grid;
}

.search-empty > .ph {
  color: var(--accent);
  font-size: 30px;
}

.search-empty strong {
  color: var(--text);
  font-size: 15px;
}

.search-empty span {
  font-size: 11px;
}

.search-empty .button {
  margin-top: 8px;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: saturate(0.55);
}

.toast-region {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgb(205 238 255 / 0.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.11), transparent 44%),
    rgb(10 18 30 / 0.88);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.15),
    0 18px 50px rgb(0 2 10 / 0.44);
  color: var(--text);
  font-size: 12px;
  font-weight: 740;
  padding: 14px 15px;
  backdrop-filter: blur(22px) saturate(160%);
}

.mobile-nav {
  display: none;
}

:where(button, a[href], input, summary, [role="tab"]):focus-visible {
  outline: 2px solid var(--accent-bright) !important;
  outline-offset: 3px;
}

.page-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px) scale(0.992);
}

body.is-loaded .page-reveal {
  animation: glass-arrive var(--motion-slow) var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

body.is-navigating .page-heading-row,
body.is-navigating .page-stack,
body.is-navigating .notification-page {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(-8px) scale(0.995);
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms var(--ease-in-out);
}

.interaction-ripple {
  background: rgb(180 241 255 / 0.38);
  mix-blend-mode: screen;
}

.login-page {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 24%, rgb(43 139 165 / 0.24), transparent 29rem),
    radial-gradient(circle at 89% 84%, rgb(58 90 156 / 0.2), transparent 30rem),
    linear-gradient(145deg, #03050a, #080d17 54%, #04060c);
  color: var(--text);
}

.login-page::before {
  position: fixed;
  top: 12%;
  right: -8vw;
  width: min(54vw, 760px);
  height: min(54vw, 760px);
  border: 1px solid rgb(184 234 255 / 0.09);
  border-radius: 42% 58% 63% 37% / 43% 34% 66% 57%;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.11), transparent 42%),
    rgb(62 151 182 / 0.06);
  box-shadow:
    inset 14px 18px 52px rgb(255 255 255 / 0.04),
    inset -22px -18px 60px rgb(39 110 156 / 0.08),
    0 40px 100px rgb(0 2 8 / 0.3);
  content: "";
  pointer-events: none;
  transform: rotate(-14deg);
  animation: glass-orbit 14s var(--ease-in-out) infinite alternate;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 90px 24px 40px;
}

.login-brand {
  position: fixed;
  z-index: 3;
  top: 26px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 850;
}

.login-card {
  display: grid;
  width: min(100%, 900px);
  min-height: 490px;
  grid-template-columns: minmax(250px, 0.8fr) minmax(320px, 1.2fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 16px 56px;
  overflow: hidden;
  border: 1px solid rgb(205 238 255 / 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.1), transparent 38%),
    rgb(9 16 28 / 0.74);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.17),
    0 38px 120px rgb(0 2 9 / 0.54);
  padding: 46px;
  backdrop-filter: blur(32px) saturate(165%);
  -webkit-backdrop-filter: blur(32px) saturate(165%);
}

.login-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 39%;
  width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
  content: "";
}

.login-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgb(162 231 249 / 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgb(255 255 255 / 0.2), transparent 40%),
    var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.13);
}

.login-icon .ph {
  font-size: 29px;
}

.login-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  align-self: end;
  gap: 7px;
  border: 1px solid rgb(109 220 168 / 0.18);
  border-radius: 9px;
  background: rgb(49 158 107 / 0.1);
  color: #91e5bd;
  font-size: 9px;
  font-weight: 800;
  padding: 7px 9px;
}

.login-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71d6a5;
}

.login-card h1 {
  align-self: end;
  color: var(--text);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.login-card > p:not(.auth-switch) {
  max-width: 28ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 4;
  align-content: center;
  gap: 16px;
  margin: 0;
}

.discord-auth {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 5;
  align-content: center;
  gap: 14px;
}

.discord-auth-button {
  justify-content: center;
  text-decoration: none;
}

.discord-auth-button .ph {
  font-size: 20px;
}

.discord-auth-button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.2);
  opacity: 0.52;
}

.auth-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.auth-privacy .ph {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 760;
}

.auth-form input {
  min-height: 50px !important;
  border-radius: 13px !important;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.auth-error {
  border: 1px solid rgb(255 133 143 / 0.26);
  border-radius: 11px;
  background: var(--danger-soft);
  color: #ffb4bb;
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 11px;
}

.auth-switch {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  font: inherit;
  font-weight: 800;
}

@keyframes atmosphere-shift {
  from {
    opacity: 0.68;
    transform: translate3d(0, 0, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(34px, -24px, 0) scale(1.06);
  }
}

@keyframes glass-arrive {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px) scale(0.992);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes bar-arrive {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes glass-orbit {
  from {
    border-radius: 42% 58% 63% 37% / 43% 34% 66% 57%;
    transform: rotate(-14deg) translate3d(0, 0, 0);
  }

  to {
    border-radius: 60% 40% 38% 62% / 54% 59% 41% 46%;
    transform: rotate(-7deg) translate3d(-28px, 18px, 0);
  }
}

@media (max-width: 1320px) {
  .sidebar {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 10px;
  }

  .header-actions {
    grid-template-columns: 44px max-content;
  }

  .nav-item {
    padding-inline: 10px;
  }

  .nav-item span {
    display: none;
  }

  .nav-item.is-active::after {
    right: 10px;
    left: 10px;
  }

  .command-trigger > span,
  .command-trigger kbd {
    display: none;
  }

  .command-trigger {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

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

@media (max-width: 1080px) {
  .profile-row > span:nth-child(2) {
    display: none;
  }

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

  .metric-card:first-child {
    grid-row: auto;
    min-height: 180px;
  }

  .metric-card:nth-child(4) {
    grid-column: auto;
  }

  .metric-card:first-child > strong {
    font-size: clamp(40px, 7vw, 62px);
  }

  .performance-grid,
  .scripts-top-grid {
    grid-template-columns: 1fr;
  }

  .filters-toolbar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-save-bar {
    position: static;
  }

  .adopt-rule-groups {
    grid-template-columns: 1fr;
  }

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

  .catalog-bulk-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }

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

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

@media (max-width: 760px) {
  body:not(.login-page) {
    padding-bottom: 84px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    display: flex;
    width: 100%;
    height: 66px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 8px 14px;
  }

  .sidebar::before {
    border-radius: 0;
  }

  .brand-lockup > span:last-child,
  .side-navigation,
  .sidebar-footer {
    display: none;
  }

  .header-actions {
    display: flex;
    margin-left: auto;
  }

  .brand-lockup {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .command-trigger {
    width: 44px;
    margin-left: auto;
  }

  .topbar {
    position: absolute;
    z-index: 30;
    top: 8px;
    right: 66px;
    display: flex;
    width: auto;
    min-height: 48px;
    flex-direction: row;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 2px;
    backdrop-filter: none;
  }

  .quick-actions,
  .community-actions,
  .environment,
  .notification-button {
    display: none;
  }

  .topbar-end {
    display: block;
  }

  .community-actions + .environment + .notification-button {
    display: grid;
  }

  .main-content {
    width: 100%;
    padding: 28px 16px 32px;
  }

  .page-heading-row {
    min-height: 118px;
    align-items: flex-end;
    margin-bottom: 22px;
    padding: 8px 0 21px;
  }

  .page-header {
    gap: 12px;
  }

  .page-header h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .page-header p {
    max-width: 36ch;
    font-size: 11px;
  }

  .page-icon {
    display: none;
  }

  .page-status {
    align-self: flex-start;
    margin-top: 9px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 45;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: grid;
    height: 64px;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 2px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background:
      linear-gradient(145deg, rgb(255 255 255 / 0.1), transparent 40%),
      rgb(8 14 25 / 0.78);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.15),
      0 18px 48px rgb(0 2 10 / 0.5);
    padding: 5px;
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
  }

  .mobile-nav .nav-item {
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    gap: 3px;
    border-radius: 13px;
    padding: 4px;
  }

  .mobile-nav .nav-item span {
    display: block;
    font-size: 8px;
  }

  .mobile-nav .nav-item.is-active::after {
    right: 18px;
    bottom: 3px;
    left: 18px;
  }

  .content-toolbar,
  .content-toolbar > div:first-child,
  .catalog-meta,
  .select-field,
  .settings-toggle-row,
  .notification-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .content-toolbar {
    gap: 8px;
  }

  .content-toolbar > div:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid,
  .mini-metrics,
  .settings-tabs,
  .settings-cards,
  .build-strip,
  .filters-toolbar {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .metric-card:first-child {
    min-height: 150px;
    padding: 17px;
  }

  .metric-card:first-child > strong,
  .metric-card > strong {
    font-size: 38px;
  }

  .mini-metrics {
    gap: 1px;
  }

  .surface {
    min-height: 300px;
    padding: 16px;
  }

  .zero-labels span:nth-child(even) {
    visibility: hidden;
  }

  .scripts-top-grid {
    grid-template-columns: 1fr;
  }

  .script-panel,
  .settings-card {
    padding: 17px;
  }

  .select-field {
    display: grid;
  }

  .filters-toolbar {
    display: grid;
  }

  .adopt-filter-panel {
    padding: 15px;
  }

  .adopt-rule-options,
  .adopt-rule-options-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search,
  .filters-toolbar > * {
    grid-column: auto;
  }

  .catalog-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    padding: 12px;
  }

  .catalog-meta > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
  }

  .catalog-enabled {
    grid-column: 2;
    grid-row: 1;
  }

  .catalog-bulk-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }

  .catalog-bulk-actions button {
    min-height: 44px;
    flex: 1;
  }

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

  .item-art {
    height: 136px;
  }

  .settings-card,
  .settings-card-wide {
    grid-column: auto;
  }

  .settings-tabs button {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .notification-consent .button {
    width: 100%;
  }

  .toast-region {
    right: 16px;
    bottom: 88px;
    left: 16px;
  }

  .toast {
    width: 100%;
  }

  .login-shell {
    align-content: center;
    padding: 84px 16px 28px;
  }

  .login-brand {
    position: absolute;
    top: 20px;
    left: 18px;
  }

  .login-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    border-radius: 20px;
    padding: 24px;
  }

  .login-card::before {
    display: none;
  }

  .login-icon {
    width: 54px;
    height: 54px;
  }

  .login-status,
  .login-card h1,
  .login-card > p:not(.auth-switch),
  .auth-form,
  .discord-auth,
  .auth-switch {
    grid-column: 1;
    grid-row: auto;
  }

  .login-status {
    align-self: auto;
  }

  .login-card h1 {
    align-self: auto;
    font-size: 38px;
  }

  .auth-form {
    margin-top: 8px;
  }

  .discord-auth {
    margin-top: 8px;
  }
}

@media (max-width: 440px) {
  .page-heading-row {
    display: grid;
  }

  .page-status {
    justify-self: start;
  }

  .content-toolbar > div:first-child,
  .items-grid {
    grid-template-columns: 1fr;
  }

  .adopt-rule-options,
  .adopt-rule-options-wide {
    grid-template-columns: 1fr;
  }

  .adopt-filter-intro {
    align-items: flex-start;
  }

  .item-art {
    height: 180px;
  }

  .catalog-pagination {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
  }

  .catalog-pagination > span {
    text-align: center;
  }

  .catalog-pagination > div {
    justify-content: center;
  }

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

  .dialog-shell {
    border-radius: 16px;
    padding: 10px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .topbar,
  .content-toolbar,
  .filters-toolbar,
  .settings-tabs,
  .build-strip,
  .catalog-meta,
  .dialog-shell,
  .mobile-nav,
  .toast,
  .login-card {
    background: #0c1422;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .page-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (forced-colors: active) {
  .sidebar,
  .topbar,
  .button,
  .custom-select-trigger,
  .metric-card,
  .surface,
  .script-panel,
  .settings-card,
  .item-card,
  .mobile-nav {
    border: 1px solid CanvasText;
  }
}


.avatar {
  overflow: hidden;
}

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

.activity-table + .notification-consent {
  margin-top: 24px;
}

.activity-table-rows {
  display: grid;
  min-width: 890px;
}

.activity-table-row {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-auto-flow: column;
  grid-auto-columns: minmax(105px, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 11px;
}

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

.activity-table-row:hover {
  background: rgb(100 205 229 / 0.035);
}

.activity-account,
.activity-value {
  overflow: hidden;
  color: var(--text-soft);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-number,
.activity-value {
  font-variant-numeric: tabular-nums;
}

.activity-success {
  color: var(--success, #8fe4bd) !important;
  font-weight: 800;
}

.activity-warning {
  color: var(--warning, #e8b46c) !important;
  font-weight: 800;
}

.activity-muted {
  color: var(--text-muted, #91a0b4) !important;
}

.notification-page[data-announcements] {
  display: grid;
  gap: 14px;
}

.announcement-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgb(13 20 33 / 0.78);
  padding: 18px;
}

.announcement-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.announcement-item h2,
.announcement-item p {
  margin: 0;
}

.announcement-item h2 {
  color: var(--text-soft);
  font-size: 16px;
}

.announcement-item p {
  max-width: 75ch;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.announcement-item time {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 10px;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgb(67 156 188 / 0.11), transparent 34rem),
    var(--page, #05070d);
  color: var(--text, #f2f7ff);
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 16px;
  display: grid;
  width: min(1440px, calc(100% - 32px));
  min-height: 72px;
  align-items: center;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  gap: 16px;
  margin: 16px auto 0;
  border: 1px solid rgb(205 238 255 / 0.16);
  border-radius: 20px;
  background: rgb(10 16 28 / 0.88);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.11), 0 24px 70px rgb(0 4 14 / 0.42);
  padding: 10px 14px;
  backdrop-filter: blur(18px) saturate(130%);
}

.admin-topbar nav {
  justify-self: center;
}

.admin-profile {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: auto minmax(0, auto) auto;
  justify-self: end;
  gap: 9px;
}

.admin-profile > span:nth-child(2) {
  display: grid;
  min-width: 0;
  max-width: 190px;
}

.admin-profile strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile small {
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-main {
  display: grid;
  width: min(1440px, calc(100% - 32px));
  gap: 24px;
  margin: 58px auto 72px;
}

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

.admin-heading h1,
.admin-heading p,
.admin-panel h2,
.admin-panel p,
.admin-users h2,
.admin-users p {
  margin: 0;
}

.admin-heading h1 {
  color: var(--text-soft);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-heading p {
  max-width: 64ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.admin-metrics article {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgb(13 20 33 / 0.8);
  padding: 16px;
}

.admin-metrics span,
.admin-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-metrics strong {
  color: var(--text-soft);
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

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

.admin-panel,
.admin-users {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgb(13 20 33 / 0.78);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 18px 42px rgb(0 3 11 / 0.18);
}

.admin-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.admin-panel > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-panel h2,
.admin-users h2 {
  color: var(--text-soft);
  font-size: 17px;
}

.admin-panel header p,
.admin-users header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-panel > label:not(.admin-confirm) {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.admin-panel input[type="text"],
.admin-panel input[type="password"],
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgb(205 238 255 / 0.13);
  border-radius: 12px;
  outline: 0;
  background: rgb(2 4 10 / 0.8);
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
}

.admin-panel textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.5;
}

.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(100 205 229 / 0.13);
}

.admin-recovery-panel {
  grid-column: 1 / -1;
}

.admin-export-fields {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: 14px;
}

.admin-export-fields label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.admin-export-fields small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.admin-recovery-panel[data-available="false"] {
  border-color: rgb(255 255 255 / 0.08);
}

.admin-recovery-panel :disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.admin-panel footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-panel footer p {
  color: var(--muted);
  font-size: 11px;
}

.admin-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgb(143 228 189 / 0.14);
  border-radius: 12px;
  background: rgb(143 228 189 / 0.06);
  padding: 12px;
}

.admin-security-note > i {
  color: var(--success, #8fe4bd);
}

.admin-security-note p {
  display: grid;
  gap: 2px;
}

.admin-security-note strong {
  color: var(--text-soft);
  font-size: 12px;
}

.admin-security-note span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.admin-confirm {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 11px;
}

.admin-confirm input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.admin-users {
  overflow: hidden;
}

.admin-users > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.admin-users-head,
.admin-user-row {
  display: grid;
  min-width: 900px;
  align-items: center;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) 90px 80px minmax(130px, 1fr) minmax(150px, 1fr);
  gap: 14px;
  padding: 12px 18px;
}

.admin-users-head {
  border-block: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
}

.admin-users-body {
  overflow-x: auto;
}

.admin-users-body > p {
  padding: 26px 18px;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-row {
  min-height: 60px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

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

.admin-user-row > span:first-child {
  display: grid;
  min-width: 0;
}

.admin-user-row strong {
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row small {
  color: var(--faint);
  font-size: 9px;
}

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

  .admin-topbar nav {
    display: none;
  }

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

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

  .admin-export-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-topbar,
  .admin-main {
    width: min(100% - 20px, 1440px);
  }

  .admin-topbar {
    top: 10px;
    min-height: 64px;
    margin-top: 10px;
    border-radius: 16px;
  }

  .admin-topbar .brand-lockup > span:last-child,
  .admin-profile > span:nth-child(2) {
    display: none;
  }

  .admin-main {
    gap: 18px;
    margin-top: 42px;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading h1 {
    font-size: 36px;
  }

  .admin-metrics {
    gap: 8px;
  }

  .admin-metrics article {
    min-height: 112px;
    padding: 14px;
  }

  .admin-metrics strong {
    font-size: 30px;
  }

  .admin-panel {
    padding: 16px;
  }

  .admin-panel footer,
  .admin-users > header,
  .announcement-item > div {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-panel footer .button,
  .admin-users > header .button {
    width: 100%;
  }

  .activity-table + .notification-consent {
    margin-top: 18px;
  }
}


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

.script-panel-wide {
  gap: 20px;
}

.script-panel-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.script-panel-heading > span:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.script-panel-heading p,
.loader-entry-heading small,
.loader-safety-note small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.script-profile {
  display: grid;
  min-width: 0;
  flex: 0 1 390px;
  gap: 5px;
  text-align: right;
}

.script-profile small {
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.script-profile code {
  overflow: hidden;
  color: var(--text-soft);
  font: 650 11px/1.35 ui-monospace, "Cascadia Code", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.loader-entry {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgb(4 9 18 / 0.38);
  padding: 16px;
}

.loader-entry-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.loader-entry-heading > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.loader-entry-heading strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.loader-game-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgb(190 235 255 / 0.12);
  border-radius: 11px;
  background: rgb(255 255 255 / 0.05);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09);
}

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

.loader-control input {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace !important;
  font-size: 10.5px !important;
  letter-spacing: -0.01em;
}

.run-url-row {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.run-url-row > span {
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-url-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.035);
  color: var(--text-soft);
  font: 620 10px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
  padding: 9px 10px;
}

.loader-safety-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--accent-bright);
  padding-top: 16px;
}

.loader-safety-note > span {
  display: grid;
  gap: 2px;
}

.loader-safety-note strong {
  color: var(--text-soft);
  font-size: 11px;
}


@media (hover: hover) {
  .nav-item:hover,
  .command-trigger:hover,
  .quick-actions .button:hover,
  .community-icon:hover,
  .notification-button:hover,
  .button:hover,
  .metric-card:hover,
  .item-card:hover,
  .filter-rule-option:hover > span {
    transform: none;
  }

  .nav-item:hover,
  .command-trigger:hover,
  .quick-actions .button:hover,
  .community-icon:hover,
  .notification-button:hover,
  .button:hover,
  .secret-control button:hover,
  .custom-select-trigger:hover,
  .segmented button:hover,
  .settings-tabs button:hover,
  .catalog-bulk-actions button:hover,
  .catalog-pagination button:hover,
  .table-footer button:hover,
  .filter-rule-option:hover > span {
    box-shadow:
      inset 0 0 0 1px rgb(238 248 255 / 0.09),
      inset 0 0 18px rgb(238 248 255 / 0.055),
      0 0 20px rgb(194 230 255 / 0.055);
  }

  .metric-card:hover,
  .item-card:hover {
    border-color: rgb(225 244 255 / 0.2);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.1),
      inset 0 0 24px rgb(238 248 255 / 0.035),
      0 18px 42px rgb(0 3 11 / 0.22);
  }

  .item-card:hover .item-art img {
    filter: saturate(1.04) contrast(1.02) brightness(1.04);
    transform: none;
  }
}


.button:active,
.nav-item:active,
.command-trigger:active,
.custom-select-trigger:active,
.community-icon:active,
.notification-button:active,
.secret-control button:active,
.catalog-bulk-actions button:active,
.catalog-pagination button:active,
.table-footer button:active {
  transform: scale(0.98);
}

@media (max-width: 760px) {
  .script-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .script-profile {
    width: 100%;
    flex-basis: auto;
    text-align: left;
  }

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