:root {
  --ps-bg-0: #060b13;
  --ps-bg-1: #0b1220;
  --ps-bg-2: #0d1524;
  --ps-panel: linear-gradient(150deg, rgba(20, 29, 43, 0.84), rgba(11, 17, 28, 0.9));
  --ps-panel-soft: linear-gradient(160deg, rgba(22, 33, 50, 0.78), rgba(10, 16, 27, 0.84));
  --ps-panel-border: rgba(201, 215, 240, 0.2);
  --ps-text: #e6ebf5;
  --ps-muted: #aab9d3;
  --ps-link-primary: #9ad1ff;
  --ps-link-secondary: rgba(204, 216, 236, 0.78);
  --ps-link-secondary-hover: #c8dff9;
  --ps-chip: rgba(30, 42, 64, 0.86);
  --ps-chip-active: rgba(154, 209, 255, 0.18);
  --ps-chip-active-text: #dcedff;
  --ps-chip-border: rgba(194, 210, 236, 0.28);
  --ps-glass-bg: rgba(15, 20, 31, 0.78);
  --ps-glass-border: rgba(188, 204, 232, 0.26);
  --ps-sidebar-expanded-w: 242px;
  --ps-sidebar-icon-w: 72px;
  --ps-center-track-max: 560px;
  --ps-radius: 16px;
  --ps-shadow: 0 22px 44px rgba(0, 0, 0, 0.44);
  --ps-scrollbar-thumb: rgba(106, 124, 154, 0.64);
  --ps-scrollbar-thumb-hover: rgba(134, 155, 188, 0.78);
  --ps-scrollbar-track: rgba(8, 13, 22, 0.64);
  --ps-content-bottom-gap: 0px;
}

* {
  box-sizing: border-box;
}

body.public-shell-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ps-text);
  font-family: "SuiGeneris", "SuiGenerisRg", "Segoe UI", sans-serif;
  background: linear-gradient(172deg, var(--ps-bg-0) 0%, var(--ps-bg-1) 46%, var(--ps-bg-2) 100%);
  overflow: hidden;
}

body.public-shell-page a {
  text-decoration: none;
}

body.public-shell-page.modal-open {
  overflow: hidden;
}

.public-shell-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(70, 150, 255, 0.18), rgba(70, 150, 255, 0) 60%),
    radial-gradient(920px 480px at 88% -18%, rgba(134, 103, 255, 0.16), rgba(134, 103, 255, 0) 62%),
    radial-gradient(820px 420px at 52% 118%, rgba(0, 198, 255, 0.12), rgba(0, 198, 255, 0) 64%),
    linear-gradient(172deg, var(--ps-bg-0) 0%, var(--ps-bg-1) 46%, var(--ps-bg-2) 100%);
}

.public-shell-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: right top;
}

.public-shell-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.18) 36%,
    rgba(0, 0, 0, 0.52) 68%,
    rgba(0, 0, 0, 0.76) 100%
  );
}

.public-shell-root {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--ps-sidebar-expanded-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "sidebar main"
    "footer footer";
  transition: grid-template-columns 180ms ease;
  overflow: hidden;
}

.public-shell-root[data-sidebar-state="icon"] {
  grid-template-columns: var(--ps-sidebar-icon-w) minmax(0, 1fr);
}

.public-shell-root[data-sidebar-state="hidden"] {
  grid-template-columns: 0 minmax(0, 1fr);
}

.public-sidebar {
  grid-area: sidebar;
  border-right: 1px solid rgba(214, 223, 237, 0.18);
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.96), rgba(7, 12, 20, 0.9));
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  transition: opacity 160ms ease;
}

.public-shell-root[data-sidebar-state="hidden"] .public-sidebar {
  opacity: 0;
  pointer-events: none;
}

.sidebar-top {
  flex: 0 0 auto;
  padding: 12px 10px 10px;
  border-bottom: 1px solid rgba(188, 205, 232, 0.16);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  color: var(--ps-text);
  border: 1px solid transparent;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.sidebar-brand:hover,
.sidebar-brand:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.36);
  background: linear-gradient(130deg, rgba(42, 66, 98, 0.28), rgba(16, 24, 36, 0.2));
  outline: none;
}

.sidebar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sidebar-brand-label {
  display: grid;
  gap: 4px;
  line-height: 1.1;
}

.sidebar-brand-title {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.sidebar-brand-subtitle {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ps-muted);
}

.sidebar-brand-subheading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  max-width: 100%;
  width: fit-content;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
}

.sidebar-brand-subheading-text {
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--ps-scrollbar-thumb) var(--ps-scrollbar-track);
}

.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: var(--ps-scrollbar-track);
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 1px solid rgba(13, 20, 34, 0.8);
  background: var(--ps-scrollbar-thumb);
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--ps-scrollbar-thumb-hover);
}

.sidebar-group {
  display: grid;
  gap: 6px;
}

.sidebar-group + .sidebar-group {
  margin-top: 14px;
  border-top: 1px solid rgba(166, 184, 213, 0.18);
  padding-top: 12px;
}

.sidebar-group-title {
  margin: 0;
  padding: 0 10px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(202, 214, 234, 0.64);
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 11px;
  padding: 0 10px;
  color: rgba(226, 235, 248, 0.86);
  font-size: 0.82rem;
  border: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.36);
  background: linear-gradient(130deg, rgba(42, 66, 98, 0.24), rgba(17, 27, 42, 0.22));
  box-shadow: 0 0 0 1px rgba(112, 160, 218, 0.16);
  outline: none;
}

.sidebar-link.active {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.5);
  background: linear-gradient(130deg, rgba(62, 94, 136, 0.32), rgba(17, 27, 42, 0.24));
}

.sidebar-icon {
  width: 16px;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon-mask {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-mask);
  mask-image: var(--icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-group-title,
.public-shell-root[data-sidebar-state="icon"] .sidebar-text {
  display: none;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-brand-title {
  display: none;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-brand-label {
  display: none;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-brand-subheading {
  display: none;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-brand-subheading-text {
  display: none;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-link,
.public-shell-root[data-sidebar-state="icon"] .sidebar-brand {
  justify-content: center;
}

.public-shell-root[data-sidebar-state="icon"] .sidebar-brand {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
}

.public-main {
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 98;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(210, 224, 244, 0.12);
  background: linear-gradient(150deg, rgba(17, 24, 38, 0.88), rgba(13, 19, 31, 0.92));
  backdrop-filter: blur(16px);
}

.topbar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--ps-center-track-max)) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-left {
  grid-column: 1;
  justify-self: start;
}

.topbar-right {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
}

.topbar-menu-btn,
.topbar-hide-btn {
  border: 1px solid rgba(188, 202, 226, 0.24);
  background: rgba(30, 40, 58, 0.72);
  color: #edf3ff;
  height: 30px;
  width: 30px;
  min-width: 30px;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.topbar-btn-icon {
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-mask);
  mask-image: var(--icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.topbar-btn-icon-close {
  transform: rotate(45deg);
}

.topbar-menu-btn:hover,
.topbar-hide-btn:hover,
.topbar-menu-btn:focus-visible,
.topbar-hide-btn:focus-visible {
  border-color: rgba(154, 209, 255, 0.65);
  background: rgba(38, 57, 85, 0.78);
  color: var(--ps-link-primary);
  outline: none;
}

.topbar-hide-btn.is-hidden-state {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.58);
}

.topbar-title {
  font-family: "RechargeBd", "SuiGenerisRg", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
  white-space: nowrap;
}

.topbar-center {
  grid-column: 2;
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.search-shell {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(205, 218, 238, 0.26);
  border-radius: 999px;
  padding: 0 10px 0 12px;
  background: rgba(9, 14, 24, 0.82);
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.search-icon {
  color: rgba(191, 207, 231, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-icon-mask {
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-mask);
  mask-image: var(--icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.search-shell input {
  flex: 1;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ps-text);
  font-size: 0.82rem;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
  outline: none;
}

.search-shell input::placeholder {
  color: rgba(188, 201, 223, 0.68);
}

.search-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(182, 199, 223, 0.8);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.search-kbd-hint kbd {
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
  font-size: 0.58rem;
  border: 1px solid rgba(178, 198, 229, 0.34);
  border-bottom-color: rgba(178, 198, 229, 0.48);
  background: rgba(27, 39, 61, 0.72);
  border-radius: 6px;
  padding: 1px 5px;
  color: #d8e8ff;
}

.account-widget {
  position: relative;
  display: inline-block;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border: 1px solid rgba(197, 210, 230, 0.25);
  border-radius: 999px;
  background: rgba(24, 35, 55, 0.75);
  color: #ebf1fe;
  padding: 4px 9px;
  font-size: 0.74rem;
  text-align: left;
}

.account-trigger {
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.account-trigger:disabled {
  opacity: 0.86;
  cursor: default;
}

.account-trigger.is-authenticated:hover,
.account-trigger.is-authenticated:focus-visible,
.account-trigger.is-open {
  border-color: rgba(171, 211, 255, 0.72);
  background: rgba(33, 49, 74, 0.84);
  color: #f2f7ff;
  outline: none;
}

.account-text {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-name {
  line-height: 1.1;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.account-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.account-badge-icon {
  width: 14px;
  height: 14px;
  opacity: 0.96;
  filter: drop-shadow(0 0 4px rgba(148, 196, 255, 0.22));
}

.account-badge-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 190, 220, 0.4);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(222, 234, 252, 0.92);
  background: rgba(54, 74, 105, 0.44);
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(185, 205, 234, 0.24);
  background: linear-gradient(160deg, rgba(18, 27, 43, 0.92), rgba(11, 18, 30, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  z-index: 120;
}

.account-menu-header {
  display: grid;
  gap: 3px;
  padding: 4px 8px 8px;
}

.account-menu-name {
  font-size: 0.76rem;
  color: #eff5ff;
}

.account-menu-role {
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: rgba(183, 201, 229, 0.86);
}

.account-menu-separator {
  height: 1px;
  margin: 6px 4px;
  background: linear-gradient(90deg, rgba(187, 206, 232, 0), rgba(187, 206, 232, 0.26), rgba(187, 206, 232, 0));
}

.account-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(226, 237, 255, 0.92);
  text-decoration: none;
  padding: 8px 10px;
  font-size: 0.71rem;
  line-height: 1.2;
  cursor: pointer;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.account-widget,
.account-widget * {
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(91, 133, 190, 0.22);
  color: #f6f9ff;
  text-decoration: none;
  outline: none;
}

.account-menu-item.is-danger {
  color: rgba(255, 205, 205, 0.95);
}

.account-menu-item.is-danger:hover,
.account-menu-item.is-danger:focus-visible {
  background: rgba(179, 75, 75, 0.25);
  color: #ffe7e7;
}

.account-menu-item.is-subtle {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(188, 207, 236, 0.86);
}

.account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d1624;
  background: linear-gradient(135deg, #9ec6ff, #6ce1ff);
  background-size: cover;
  background-position: center;
}

.account-avatar.has-image {
  color: transparent;
}

.filter-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--ps-center-track-max)) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 6px 14px 8px;
  border-top: 1px solid rgba(169, 190, 223, 0.1);
  background: rgba(9, 14, 23, 0.64);
  overflow: hidden;
  max-height: 92px;
  opacity: 1;
  transition:
    max-height 160ms ease,
    opacity 120ms ease,
    padding 160ms ease,
    border-top-width 160ms ease;
}

.filter-dock.is-empty {
  display: none;
}

.filter-toggle {
  margin-left: 6px;
  border: 1px solid rgba(170, 191, 226, 0.26);
  background: linear-gradient(165deg, rgba(33, 49, 74, 0.86), rgba(16, 25, 40, 0.9));
  color: rgba(210, 224, 246, 0.9);
  border-radius: 9px;
  height: 26px;
  min-width: 88px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  cursor: pointer;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.filter-toggle:hover,
.filter-toggle:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.54);
  outline: none;
}

.filter-toggle:disabled {
  opacity: 0.48;
  cursor: default;
}

.filter-toggle-caret {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg);
  transform-origin: center;
  transition: transform 120ms ease;
}

.filter-toggle.is-collapsed .filter-toggle-caret {
  transform: rotate(45deg);
}

.filter-row-wrap {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  transition: opacity 150ms ease, max-height 150ms ease;
  opacity: 1;
  max-height: 72px;
}

.filter-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.filter-dock.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  pointer-events: none;
}

.filter-dock.is-collapsed .filter-row-wrap {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.filter-row::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.filter-chip {
  border: 1px solid var(--ps-chip-border);
  background: linear-gradient(150deg, rgba(29, 42, 64, 0.9), rgba(16, 25, 39, 0.92));
  color: rgba(224, 235, 251, 0.86);
  border-radius: 999px;
  height: 24px;
  padding: 0 11px;
  font-size: 0.66rem;
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.58);
  outline: none;
}

.filter-chip.active {
  background: var(--ps-chip-active);
  color: var(--ps-chip-active-text);
  border-color: rgba(154, 209, 255, 0.76);
}

.shell-loading {
  position: relative;
  height: 4px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 130ms ease;
}

.shell-loading-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
}

.shell-loading-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -34%;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(140, 121, 255, 0),
    rgba(140, 121, 255, 0.85) 24%,
    rgba(154, 209, 255, 0.82) 50%,
    rgba(106, 123, 255, 0.72) 76%,
    rgba(155, 145, 255, 0)
  );
  box-shadow: 0 0 8px rgba(155, 145, 255, 0.42), 0 0 16px rgba(193, 130, 255, 0.34);
  animation: shell-loader-indeterminate 0.95s linear infinite;
}

.shell-loading.is-active {
  opacity: 1;
}

@keyframes shell-loader-indeterminate {
  0% {
    left: -34%;
  }
  100% {
    left: 100%;
  }
}

.public-content {
  flex: 1;
  min-height: 0;
  padding: 14px 16px calc(16px + var(--ps-content-bottom-gap));
  display: grid;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--ps-scrollbar-thumb) var(--ps-scrollbar-track);
}

.public-content::-webkit-scrollbar {
  width: 9px;
}

.public-content::-webkit-scrollbar-track {
  background: var(--ps-scrollbar-track);
}

.public-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 1px solid rgba(12, 19, 32, 0.84);
  background: var(--ps-scrollbar-thumb);
}

.public-content::-webkit-scrollbar-thumb:hover {
  background: var(--ps-scrollbar-thumb-hover);
}

.page-heading {
  display: grid;
  gap: 4px;
  padding: 2px 2px 4px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  letter-spacing: 0.025em;
}

.page-heading p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.72rem;
}

.section {
  display: grid;
  gap: 10px;
}

.section-divided {
  border-top: 1px solid rgba(154, 174, 205, 0.2);
  padding-top: 10px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.see-all {
  color: var(--ps-link-secondary);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 8px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.see-all:hover,
.see-all:focus-visible {
  color: var(--ps-link-secondary-hover);
  border-color: rgba(154, 209, 255, 0.38);
  background: linear-gradient(130deg, rgba(42, 66, 98, 0.24), rgba(17, 27, 42, 0.22));
  box-shadow: 0 0 0 1px rgba(112, 160, 218, 0.14);
  text-decoration: none;
  outline: none;
}

.media-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.media-grid.clips-dedicated {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.item-card,
.detail-main,
.detail-side,
.notice-card,
.profile-card {
  border: 1px solid var(--ps-panel-border);
  background: var(--ps-panel);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
}

.item-card {
  overflow: hidden;
  transition: border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.item-card:hover {
  border-color: rgba(154, 209, 255, 0.48);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(154, 209, 255, 0.22);
  transform: translateY(-1px);
}

.item-link {
  display: grid;
  height: 100%;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.item-link:hover {
  border-color: rgba(154, 209, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(120, 173, 238, 0.14);
}

.item-link:focus-visible {
  outline: 2px solid rgba(154, 209, 255, 0.75);
  outline-offset: 2px;
}

.item-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, rgba(49, 63, 92, 0.75), rgba(14, 22, 35, 0.92));
  overflow: hidden;
}

.item-thumb video,
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  background: rgba(4, 6, 10, 0.88);
  border: 1px solid rgba(199, 213, 235, 0.26);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

.item-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.32;
}

.item-snippet {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.73rem;
  line-height: 1.48;
}

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

.creator-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(218, 230, 246, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: #0c1320;
  background: linear-gradient(140deg, #9ec6ff, #70e0ff);
  background-size: cover;
  background-position: center;
}

.creator-avatar.is-expanded {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
  border-color: rgba(218, 230, 246, 0.46);
}

.creator-avatar.is-fallback {
  color: #0d1624;
}

.creator-avatar.has-image {
  color: transparent;
}

.creator-meta-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.creator-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.creator-name {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-meta-bottom {
  font-size: 0.62rem;
  color: rgba(179, 197, 223, 0.82);
}

.creator-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-icon {
  width: 14px;
  height: 14px;
  opacity: 0.95;
  filter: drop-shadow(0 0 4px rgba(145, 192, 255, 0.18));
}

.badge-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(165, 185, 214, 0.4);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 233, 253, 0.92);
  background: rgba(56, 77, 108, 0.42);
  font-family: "SuiGenerisRg", "SuiGeneris", sans-serif;
}

.inline-icon-mask,
.button-icon-mask {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-mask);
  mask-image: var(--icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.edit-affordance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(167, 188, 220, 0.36);
  border-radius: 999px;
  background: rgba(30, 43, 66, 0.72);
  color: rgba(220, 234, 255, 0.92);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
}

.edit-affordance:hover,
.edit-affordance:focus-visible {
  border-color: rgba(154, 209, 255, 0.58);
  color: #e7f3ff;
  outline: none;
}

.profile-layout .profile-card-expanded {
  gap: 12px;
}

.profile-cover {
  border: 1px solid rgba(190, 206, 232, 0.26);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3.4 / 1;
  background: rgba(10, 16, 26, 0.78);
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.profile-inline-header h3 {
  margin: 0;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(179, 196, 221, 0.28);
  background: rgba(20, 29, 44, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.social-icon-btn:hover,
.social-icon-btn:focus-visible {
  border-color: rgba(154, 209, 255, 0.56);
  background: rgba(34, 50, 76, 0.84);
  outline: none;
}

.profile-bio-text {
  margin: 0;
  color: rgba(201, 214, 235, 0.92);
  line-height: 1.5;
  font-size: 0.74rem;
}

.edit-button-inline {
  cursor: pointer;
}

.profile-bio-editor {
  display: grid;
  gap: 8px;
}

.profile-bio-editor textarea {
  width: 100%;
  border: 1px solid rgba(174, 194, 225, 0.3);
  border-radius: 10px;
  background: rgba(10, 16, 26, 0.84);
  color: #e7efff;
  font-size: 0.72rem;
  padding: 8px 10px;
  resize: vertical;
}

.profile-bio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: rgba(208, 221, 242, 0.9);
}

.profile-visibility-toggle input[type="checkbox"] {
  accent-color: #9ad1ff;
}

.profile-artifacts-section .section-heading {
  align-items: center;
}

.profile-artifact-toggle {
  margin-left: auto;
}

.profile-artifact-item {
  display: grid;
  gap: 6px;
}

.artifact-edit-affordance {
  justify-self: end;
}

.profile-artifact-list {
  display: grid;
  gap: 8px;
}

.profile-artifact-row {
  border: 1px solid rgba(186, 203, 229, 0.24);
  border-radius: 12px;
  background: rgba(17, 25, 39, 0.76);
  padding: 9px 10px;
  display: grid;
  gap: 6px;
}

.profile-artifact-title {
  color: #f1f7ff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.profile-artifact-meta {
  color: rgba(185, 201, 226, 0.82);
  font-size: 0.66rem;
}

.profile-artifact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.settings-form {
  max-width: 900px;
}

.settings-grid {
  display: grid;
  gap: 12px;
}

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

.settings-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(192, 208, 234, 0.82);
}

.settings-help {
  font-size: 0.65rem;
  color: rgba(180, 198, 224, 0.72);
}

.settings-field input[type="url"],
.settings-field textarea,
.settings-social-row input[type="url"] {
  width: 100%;
  border: 1px solid rgba(174, 194, 225, 0.32);
  border-radius: 10px;
  background: rgba(10, 16, 26, 0.86);
  color: #e7efff;
  padding: 8px 10px;
  font-size: 0.72rem;
}

.settings-social-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.settings-social-row span {
  font-size: 0.66rem;
  color: rgba(194, 210, 233, 0.84);
}

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

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(187, 202, 226, 0.24);
  background: rgba(24, 33, 50, 0.68);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.64rem;
  height: 20px;
  color: #d2dced;
}

.chip-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: inline-block;
}

.status-pill.status-open,
.status-pill.status-active,
.status-pill.status-published,
.status-pill.status-live {
  border-color: rgba(121, 209, 112, 0.44);
  color: #b8f3b0;
}

.status-pill.status-closed,
.status-pill.status-archived,
.status-pill.status-paused,
.status-pill.status-failed {
  border-color: rgba(210, 168, 168, 0.34);
  color: #dfb3b3;
}

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

.result-row {
  display: grid;
  gap: 4px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.67rem;
  color: rgba(198, 212, 234, 0.82);
}

.result-bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.result-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 199, 54, 0.8), rgba(140, 199, 54, 0.45));
}

.pie-preview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.pie-chart {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(210, 224, 246, 0.24);
  box-shadow: inset 0 0 0 5px rgba(10, 16, 26, 0.76);
}

.pie-legend {
  display: grid;
  gap: 5px;
  font-size: 0.65rem;
  color: rgba(194, 208, 231, 0.84);
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pie-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.detail-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.detail-toolbar-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(194, 208, 231, 0.7);
}

.detail-layout-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-layout-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(174, 194, 225, 0.3);
  background: rgba(23, 33, 51, 0.82);
  color: rgba(214, 228, 248, 0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-layout-toggle:hover,
.detail-layout-toggle:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.54);
  outline: none;
}

.detail-layout-toggle.active {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.72);
  background: rgba(35, 53, 82, 0.88);
}

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

.detail-layout.is-stacked {
  grid-template-columns: 1fr;
}

.detail-main,
.detail-side,
.profile-card,
.notice-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.detail-player {
  background: rgba(5, 9, 15, 0.9);
  border: 1px solid rgba(202, 216, 239, 0.16);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.detail-player video,
.detail-player iframe,
.detail-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.detail-copy h2,
.detail-copy p {
  margin: 0;
}

.detail-copy p {
  color: var(--ps-muted);
  line-height: 1.55;
}

.detail-shell {
  display: grid;
  gap: 12px;
}

.detail-card {
  border: 1px solid rgba(190, 206, 232, 0.22);
  background: var(--ps-panel-soft);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

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

.detail-title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.visualization-panel {
  border: 1px solid rgba(184, 200, 228, 0.2);
  border-radius: 12px;
  background: rgba(10, 16, 26, 0.82);
  padding: 10px;
  display: grid;
  gap: 10px;
}

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

.viz-top-left {
  display: grid;
  gap: 6px;
}

.viz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.viz-toggle-btn {
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(171, 188, 217, 0.34);
  background: rgba(25, 35, 54, 0.74);
  color: rgba(210, 223, 242, 0.88);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 10px;
  cursor: pointer;
}

.viz-toggle-btn:hover,
.viz-toggle-btn:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.58);
  outline: none;
}

.viz-toggle-btn.is-active {
  color: #dcf0ff;
  border-color: rgba(154, 209, 255, 0.72);
  background: rgba(51, 78, 118, 0.62);
}

.viz-hint {
  font-size: 0.65rem;
  color: rgba(186, 204, 232, 0.76);
}

.viz-stage {
  display: grid;
  gap: 8px;
}

.viz-view {
  display: none;
}

.viz-view.active {
  display: block;
}

.bar-rows {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 8px;
}

.bar-label {
  font-size: 0.74rem;
  color: #e8eefb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 199, 54, 0.8), rgba(140, 199, 54, 0.45));
}

.bar-meta {
  font-size: 0.68rem;
  color: rgba(193, 208, 232, 0.8);
  white-space: nowrap;
}

.vote-list,
.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.vote-item {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid rgba(180, 197, 224, 0.2);
  border-radius: 10px;
  background: rgba(18, 28, 44, 0.66);
}

.vote-item strong {
  font-size: 0.76rem;
}

.meta-list li {
  font-size: 0.74rem;
  color: rgba(204, 216, 237, 0.88);
}

.meta-list strong {
  color: #eef4ff;
}

.custom-pie-shell {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.custom-pie-center {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(206, 220, 244, 0.3);
  background: rgba(8, 12, 20, 0.86);
}

.custom-pie-center img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.data-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.data-list li {
  font-size: 0.78rem;
  color: #d4deef;
}

.data-list strong {
  color: #f4f8ff;
}

.detail-subtle-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(190, 207, 231, 0.72);
}

.share-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(177, 194, 224, 0.24);
  background: rgba(16, 24, 37, 0.78);
  border-radius: 10px;
  padding: 6px 8px;
}

.share-link-text {
  flex: 1;
  min-width: 0;
  font-size: 0.62rem;
  color: rgba(194, 208, 231, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-copy-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(174, 194, 225, 0.32);
  background: rgba(23, 33, 51, 0.86);
  color: rgba(214, 228, 248, 0.9);
  cursor: pointer;
}

.share-copy-btn:hover,
.share-copy-btn:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.56);
  outline: none;
}

.share-copy-btn.is-copied {
  color: #b8f3b0;
  border-color: rgba(121, 209, 112, 0.56);
}

.detail-owner-actions {
  display: grid;
  gap: 6px;
}

.detail-remove-btn {
  justify-self: start;
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(205, 132, 132, 0.42);
  background: rgba(63, 32, 32, 0.52);
  color: #f1d0d0;
  padding: 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-remove-btn:hover,
.detail-remove-btn:focus-visible {
  border-color: rgba(224, 157, 157, 0.72);
  color: #f8dede;
  outline: none;
}

.detail-remove-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.detail-remove-error {
  min-height: 14px;
  color: #f3b7b7;
  font-size: 0.66rem;
}

.detail-removed-card {
  display: grid;
  gap: 8px;
}

.external-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ps-link-primary);
  font-size: 0.72rem;
  border: 1px solid rgba(172, 196, 229, 0.2);
  border-radius: 10px;
  padding: 6px 9px;
  background: rgba(17, 26, 40, 0.64);
}

.external-source-link:hover,
.external-source-link:focus-visible {
  color: #b8e3ff;
  border-color: rgba(154, 209, 255, 0.5);
  background: rgba(23, 36, 57, 0.82);
  outline: none;
}

.external-source-link.is-disabled {
  color: rgba(174, 191, 214, 0.62);
  border-color: rgba(157, 177, 205, 0.2);
  background: rgba(14, 22, 35, 0.58);
  pointer-events: none;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 240;
}

.auth-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(176, 196, 226, 0.28);
  background: linear-gradient(155deg, rgba(16, 24, 38, 0.96), rgba(11, 17, 28, 0.96));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52);
  padding: 24px 28px 20px;
  position: relative;
}

.auth-modal-header {
  margin-bottom: 14px;
}

.auth-modal-eyebrow {
  margin: 0 0 8px;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(183, 201, 229, 0.76);
}

.auth-modal-title {
  margin: 0 0 6px;
  font-size: 1.95rem;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-modal-title img {
  width: 27px;
  height: 27px;
}

.auth-modal-subtitle {
  margin: 0;
  color: rgba(198, 211, 232, 0.86);
  font-size: 0.82rem;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(180, 197, 225, 0.28);
  background: rgba(24, 35, 55, 0.82);
  color: #e9f1ff;
  font-size: 1.1rem;
  cursor: pointer;
}

.auth-modal-close-icon {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-mask);
  mask-image: var(--icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: rotate(45deg);
}

.auth-modal-close:hover,
.auth-modal-close:focus-visible {
  border-color: rgba(154, 209, 255, 0.6);
  color: #ffffff;
  outline: none;
}

.auth-panel {
  display: none;
  gap: 10px;
}

.auth-modal[data-state="login"] .auth-panel[data-state="login"],
.auth-modal[data-state="signup"] .auth-panel[data-state="signup"] {
  display: grid;
}

.auth-oauth-grid {
  display: grid;
  gap: 9px;
}

.auth-oauth-button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(178, 197, 226, 0.36);
  background: linear-gradient(140deg, rgba(33, 46, 68, 0.72), rgba(19, 29, 44, 0.74));
  color: #edf4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.auth-oauth-button img {
  width: 16px;
  height: 16px;
}

.auth-oauth-button:hover,
.auth-oauth-button:focus-visible {
  border-color: rgba(154, 209, 255, 0.64);
  box-shadow: 0 0 0 1px rgba(154, 209, 255, 0.2);
  outline: none;
}

.auth-toggle {
  margin-top: 2px;
  font-size: 0.76rem;
  color: rgba(196, 210, 231, 0.82);
}

.auth-toggle a,
.auth-toggle button {
  border: 0;
  background: transparent;
  color: var(--ps-link-primary);
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.auth-toggle a:hover,
.auth-toggle button:hover,
.auth-toggle a:focus-visible,
.auth-toggle button:focus-visible {
  color: #cae7ff;
  outline: none;
}

.auth-legal {
  margin: 2px 0 0;
  color: rgba(186, 201, 223, 0.74);
  font-size: 0.69rem;
  line-height: 1.42;
}

.auth-legal a {
  color: var(--ps-link-primary);
}

.notice-card h3,
.notice-card p {
  margin: 0;
}

.notice-meta {
  color: var(--ps-muted);
  font-size: 0.7rem;
}

.empty-state {
  border: 1px dashed rgba(188, 202, 225, 0.34);
  border-radius: 14px;
  padding: 20px;
  color: var(--ps-muted);
  text-align: center;
  background: rgba(14, 22, 36, 0.52);
}

.creator-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid rgba(168, 220, 72, 0.88);
  color: #f8fff0;
  background: linear-gradient(180deg, rgba(21, 34, 19, 0.9), rgba(12, 23, 13, 0.9));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
}

.creator-login-btn:hover,
.creator-login-btn:focus-visible {
  border-color: rgba(184, 236, 88, 1);
  color: #f8fff0;
  outline: none;
}

.footer-shell {
  grid-area: footer;
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.footer-status {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 8px);
  padding: 0;
  display: inline-flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

.footer-status:empty {
  display: none;
}

.footer-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px;
  border-top: 1px solid rgba(166, 186, 218, 0.14);
  background: var(--ps-glass-bg);
  backdrop-filter: blur(16px);
}

.public-topbar.search-hidden .topbar-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-topbar.search-hidden .topbar-center {
  display: none;
}

.public-topbar.search-hidden .topbar-right {
  margin-left: auto;
}

.public-topbar.search-hidden .topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 320px);
  text-align: center;
  pointer-events: none;
}

.footer-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.footer-links {
  display: flex;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(230, 232, 235, 0.72);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  outline: none;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-meta a {
  color: rgba(230, 232, 235, 0.58);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: rgba(230, 232, 235, 0.9);
  outline: none;
}

.footer-version-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.footer-version-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 380px;
  max-width: 520px;
  white-space: nowrap;
  background: rgba(18, 22, 28, 0.88);
  color: #e6e8eb;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    inset 0 0 10px rgba(255, 255, 255, 0.15);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1400;
}

.footer-version-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.18) transparent transparent transparent;
}

.footer-version-tooltip-container:hover .footer-version-tooltip,
.footer-version-tooltip-container:focus-within .footer-version-tooltip {
  visibility: visible;
  opacity: 1;
}

.footer-version-tooltip-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 10px;
  text-transform: none;
  color: #ffffff;
}

.footer-status .ss-status-indicator {
  position: relative;
  right: auto;
  bottom: auto;
  align-items: flex-end;
  pointer-events: auto;
}

.footer-status .ss-status-label {
  font-size: 8px;
}

.footer-status .ss-status-details {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
}

@media (max-width: 1080px) {
  .topbar-main {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .topbar-left {
    grid-column: 1;
  }

  .topbar-right {
    grid-column: 2;
  }

  .topbar-center {
    grid-column: 1 / -1;
  }

  .search-shell {
    width: 100%;
  }

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

@media (max-width: 920px) {
  .public-shell-root {
    grid-template-columns: var(--ps-sidebar-icon-w) minmax(0, 1fr);
  }

  .public-shell-root[data-sidebar-state="expanded"] {
    grid-template-columns: min(76vw, var(--ps-sidebar-expanded-w)) minmax(0, 1fr);
  }

  .public-shell-root[data-sidebar-state="hidden"] {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .public-content {
    padding: 12px 12px calc(12px + var(--ps-content-bottom-gap));
  }

  .footer-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-meta {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .topbar-title {
    font-size: 0.9rem;
  }

  .search-kbd-hint {
    display: none;
  }

  .account-name {
    display: none;
  }

  .account-badges {
    display: none;
  }

  .account-menu {
    min-width: 200px;
    right: -4px;
  }

  .filter-toggle {
    margin-left: 0;
    min-width: 78px;
    padding: 0 8px;
  }

  .pie-preview {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .pie-chart {
    width: 72px;
    height: 72px;
  }

  .footer-version-tooltip {
    min-width: 0;
    max-width: min(360px, calc(100vw - 24px));
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .topbar-left {
    gap: 6px;
  }

  .topbar-main {
    padding: 8px 10px;
  }

  .public-topbar.search-hidden .topbar-title {
    max-width: calc(100% - 170px);
  }

  .footer-links {
    gap: 8px;
    font-size: 8px;
  }

  .footer-meta {
    gap: 10px;
    font-size: 7px;
  }
}
