:root {
  --bg: #05110b;
  --bg-soft: rgba(8, 20, 14, 0.62);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --panel-border: rgba(255, 255, 255, 0.2);
  --uniform-glass-tint: rgba(16, 22, 19, 0.05);
  --uniform-glass-tint-strong: rgba(16, 22, 19, 0.07);
  --uniform-glass-border: rgba(255, 255, 255, 0.1);
  --uniform-glass-blur: blur(24px) saturate(128%);
  --strong-glass-blur: blur(36px) saturate(145%);
  --modal-glass-blur: blur(42px) saturate(152%);
  --text: #eff6f0;
  --muted: rgba(239, 246, 240, 0.72);
  --soft-muted: rgba(239, 246, 240, 0.52);
  --accent: #9de7b4;
  --accent-strong: #d4ffe2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --max-width: 1240px;
  --font-main: "SF Pro Display", "SF Pro Text", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg-image-x: 0px;
  --bg-image-y: 0px;
  --bg-orbit-x: 0px;
  --bg-orbit-y: 0px;
  --bg-orbit-x-alt: 0px;
  --bg-orbit-y-alt: 0px;
  --veil-x: 0px;
  --veil-y: 0px;
  --glow-x: 0px;
  --glow-y: 0px;
  --ambient-left-x: 0px;
  --ambient-left-y: 0px;
  --ambient-right-x: 0px;
  --ambient-right-y: 0px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background-color: #05110b;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: transparent;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 10, 7, 0.1), rgba(2, 10, 7, 0.84)) 0 0 / auto auto no-repeat,
    radial-gradient(circle at calc(18% + var(--bg-orbit-x)) calc(12% + var(--bg-orbit-y)), rgba(205, 255, 220, 0.12), transparent 30%) 0 0 / auto auto no-repeat,
    radial-gradient(circle at calc(82% + var(--bg-orbit-x-alt)) calc(18% + var(--bg-orbit-y-alt)), rgba(255, 255, 255, 0.07), transparent 26%) 0 0 / auto auto no-repeat,
    url("./assets/bg-leaves.png") calc(50% + var(--bg-image-x)) calc(50% + var(--bg-image-y)) / cover no-repeat fixed,
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 1;
  position: relative;
  isolation: isolate;
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

body.account-page {
  overflow-x: hidden;
  overflow-y: auto;
}

body.account-page main {
  min-height: calc(100vh - 106px);
  height: auto;
  display: flex;
  align-items: center;
  padding-top: clamp(48px, 9vh, 96px);
  padding-bottom: clamp(112px, 14vh, 168px);
}

body.account-page .cabinet-shell {
  width: min(100%, 1060px);
  margin: 0 auto;
}

body.account-page .site-footer-shell {
  margin-top: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 18% 20%, rgba(206, 255, 220, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(2, 8, 5, 0.04), rgba(2, 8, 5, 0.24));
  z-index: -2;
  transform: translate3d(var(--veil-x), var(--veil-y), 0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
  contain: paint;
  pointer-events: none;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(206, 255, 220, 0.16), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(142, 255, 191, 0.14), transparent 22%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08), transparent 30%);
  z-index: -1;
  pointer-events: none;
  filter: blur(16px);
  transform: translate3d(var(--glow-x), var(--glow-y), 0);
  will-change: transform;
  contain: paint;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-noise {
  display: none;
}

.ambient {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
  will-change: transform;
}

.ambient-left {
  top: -12rem;
  left: -8rem;
  background: rgba(132, 240, 169, 0.22);
  transform: translate3d(var(--ambient-left-x), var(--ambient-left-y), 0);
  animation: ambient-drift-left 18s ease-in-out infinite alternate;
}

.ambient-right {
  right: -10rem;
  bottom: 8rem;
  background: rgba(255, 255, 255, 0.12);
  transform: translate3d(var(--ambient-right-x), var(--ambient-right-y), 0);
  animation: ambient-drift-right 22s ease-in-out infinite alternate;
}

@keyframes ambient-drift-left {
  from {
    transform: translate3d(calc(var(--ambient-left-x) - 14px), calc(var(--ambient-left-y) - 10px), 0) scale(0.98);
  }
  to {
    transform: translate3d(calc(var(--ambient-left-x) + 14px), calc(var(--ambient-left-y) + 12px), 0) scale(1.03);
  }
}

@keyframes ambient-drift-right {
  from {
    transform: translate3d(calc(var(--ambient-right-x) + 16px), calc(var(--ambient-right-y) - 12px), 0) scale(1);
  }
  to {
    transform: translate3d(calc(var(--ambient-right-x) - 12px), calc(var(--ambient-right-y) + 14px), 0) scale(1.05);
  }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(229, 255, 237, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(2, 10, 7, 0.04), rgba(2, 10, 7, 0.44));
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

body > :not(.page-transition):not(.ambient) {
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0ms linear 0ms;
}

body.is-entering > :not(.page-transition):not(.ambient) {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

body.is-entering .page-transition {
  opacity: 1;
}

body.is-entering.is-revealing .page-transition {
  opacity: 0;
}

body.is-preloading > :not(.page-transition):not(.ambient) {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

body.is-preloading .page-transition {
  opacity: 1;
}

body.is-preloading.is-preload-revealing .page-transition {
  opacity: 0;
}

body.is-leaving > :not(.page-transition):not(.ambient) {
  opacity: 0;
  visibility: visible;
}

body.is-leaving .page-transition {
  opacity: 1;
}

.glass-panel,
.glass-chip,
.discord-pill,
.primary-button,
.secondary-button,
.ghost-button,
.nav-link,
.auth-tab,
.tag-pill {
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  will-change: opacity;
  transition: opacity 220ms ease;
}

.glass-panel,
.glass-chip,
.discord-pill,
.primary-button,
.secondary-button,
.ghost-button,
.nav-link,
.auth-tab,
.tag-pill,
.topbar,
.search-field,
.sort-field,
.sort-dropdown-trigger,
.sort-dropdown-menu,
.tool-card,
.hero-tool-pill {
  position: relative;
  isolation: isolate;
}

.glass-panel::before,
.glass-chip::before,
.discord-pill::before,
.primary-button::before,
.secondary-button::before,
.ghost-button::before,
.nav-link::before,
.auth-tab::before,
.tag-pill::before,
.topbar::before,
.search-field::before,
.sort-field::before,
.sort-dropdown-trigger::before,
.sort-dropdown-menu::before,
.tool-card::before,
.hero-tool-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  backdrop-filter: var(--uniform-glass-blur);
  -webkit-backdrop-filter: var(--uniform-glass-blur);
  opacity: 0;
  transition: opacity 360ms ease;
  z-index: 0;
}

body.glass-enhanced .glass-panel::before,
body.glass-enhanced .glass-chip::before,
body.glass-enhanced .discord-pill::before,
body.glass-enhanced .primary-button::before,
body.glass-enhanced .secondary-button::before,
body.glass-enhanced .ghost-button::before,
body.glass-enhanced .nav-link::before,
body.glass-enhanced .auth-tab::before,
body.glass-enhanced .tag-pill::before,
body.glass-enhanced .topbar::before,
body.glass-enhanced .search-field::before,
body.glass-enhanced .sort-field::before,
body.glass-enhanced .sort-dropdown-trigger::before,
body.glass-enhanced .sort-dropdown-menu::before,
body.glass-enhanced .tool-card::before,
body.glass-enhanced .hero-tool-pill::before {
  opacity: 1;
}

.glass-panel > *,
.glass-chip > *,
.discord-pill > *,
.primary-button > *,
.secondary-button > *,
.ghost-button > *,
.nav-link > *,
.auth-tab > *,
.tag-pill > *,
.topbar > *,
.search-field > *,
.sort-field > *,
.sort-dropdown-trigger > *,
.sort-dropdown-menu > *,
.tool-card > *,
.hero-tool-pill > * {
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: linear-gradient(180deg, var(--uniform-glass-tint), var(--uniform-glass-tint-strong));
  border: 1px solid var(--uniform-glass-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 24px 24px 0;
  transition: padding 240ms ease;
}

.topbar {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px 14px 18px;
  background: linear-gradient(180deg, rgba(226, 255, 235, 0.1), rgba(125, 162, 135, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: padding 240ms ease, width 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.topbar::before {
  backdrop-filter: var(--strong-glass-blur);
  -webkit-backdrop-filter: var(--strong-glass-blur);
}

.nav-link::before,
.auth-tab::before,
.ghost-button::before,
.discord-pill::before {
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.topbar-shell.compact {
  padding-top: 10px;
}

.topbar-shell.compact .topbar {
  width: min(1080px, calc(100vw - 28px));
  padding: 9px 12px 9px 14px;
  background: linear-gradient(180deg, rgba(226, 255, 235, 0.11), rgba(125, 162, 135, 0.16));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.topbar-shell.compact .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link,
.auth-tab,
.ghost-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: 220ms ease;
}

.nav-link,
.discord-pill,
.primary-button,
.secondary-button,
.ghost-button,
.brand {
  text-decoration: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 255, 235, 0.09), rgba(125, 162, 135, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-shell.compact .nav-link {
  padding: 10px 15px;
}

.nav-link i {
  font-size: 0.92rem;
  color: rgba(212, 255, 226, 0.78);
}

.nav-link:hover,
.nav-link.active,
.auth-tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(229, 255, 237, 0.13), rgba(142, 179, 152, 0.18));
  border-color: rgba(214, 255, 225, 0.22);
}

.discord-pill,
.primary-button,
.secondary-button,
.discord-auth-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(226, 255, 235, 0.11), rgba(125, 162, 135, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.12);
}

.topbar-shell.compact .discord-pill {
  padding: 10px 14px;
}

.discord-pill:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.discord-auth-button:hover {
  transform: translateY(-1px);
}

.discord-pill-icon,
.discord-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
}

.discord-pill-icon i,
.discord-mark i {
  font-size: 1.1rem;
}

main {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.section {
  padding: 52px 0;
  scroll-margin-top: 110px;
}

.hero {
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  position: relative;
  padding: 84px 20px 40px;
}

.hero-backdrop,
.hero-overlay {
  display: none;
}

.hero-content,
.hero-tools-shell {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.hero-title {
  margin: 20px 0 2px;
  max-width: 100%;
  font-size: clamp(3.3rem, 6.1vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero-title-kinetic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  flex-wrap: nowrap;
  width: 100%;
  text-align: center;
}

.hero-title-script {
  display: inline-block;
  font-family: var(--font-main);
  font-style: normal;
  font-weight: 800;
  color: rgba(245, 249, 246, 0.98);
  text-shadow: none;
  animation: heroBloom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title-main {
  display: inline-block;
  position: relative;
  background: none;
  color: rgba(245, 249, 246, 0.98);
  text-shadow: none;
  animation: heroBloom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title-main::after {
  content: none;
}

.hero-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy-centered {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions-centered {
  justify-content: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.discord-auth-button {
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(226, 255, 235, 0.1), rgba(125, 162, 135, 0.13));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.primary-button {
  background: linear-gradient(180deg, rgba(232, 255, 239, 0.14), rgba(144, 184, 155, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.14);
}

.secondary-button,
.ghost-button,
.discord-auth-button {
  background: linear-gradient(180deg, rgba(226, 255, 235, 0.1), rgba(125, 162, 135, 0.13));
}

.hero-tools-shell {
  width: 100%;
  max-width: 1180px;
  margin: 76px auto 0;
  border-radius: 34px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-tools-heading {
  margin: 0 0 18px;
  text-align: center;
  color: rgba(244, 249, 245, 0.94);
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-tools-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.hero-tools-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeSlide 42s linear infinite;
}

.hero-tool-pill {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--uniform-glass-tint);
  border: 1px solid var(--uniform-glass-border);
  display: grid;
  gap: 8px;
}

.hero-tool-pill strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.hero-tool-pill span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-copy {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
  line-height: 1.75;
}

.about-card h3 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.library-shell {
  border-radius: 34px;
  padding: 24px;
  background: transparent;
  border: 0;
}

.tools-section {
  min-height: 100vh;
}

.tools-heading {
  margin-bottom: 30px;
}

.tools-stage {
  border-radius: 40px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at top right, rgba(210, 255, 221, 0.12), transparent 24%);
}

.tools-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 18px;
  margin-bottom: 20px;
}

.tools-stage-copy,
.tools-stage-stats {
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tools-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
}

.tools-stage-copy h3 {
  margin: 18px 0 12px;
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.tools-stage-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.75;
}

.tools-stage-stats {
  display: grid;
  gap: 12px;
}

.tools-stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-stat i {
  color: var(--accent-strong);
}

.tools-stat strong {
  font-size: 1rem;
}

.tools-stat span {
  color: var(--soft-muted);
}

.library-toolbar,
.library-meta,
.account-grid,
.about-grid {
  display: grid;
  gap: 16px;
}

.library-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.search-field,
.sort-field,
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-field {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 24px;
  min-height: 62px;
  background: var(--uniform-glass-tint);
  border: 1px solid var(--uniform-glass-border);
}

.search-field input,
.sort-field select,
.auth-form input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
  background: transparent;
}

.search-field input::placeholder,
.auth-form input::placeholder {
  color: rgba(239, 246, 240, 0.42);
}

.sort-field {
  padding: 10px 16px;
  border-radius: 24px;
  min-height: 62px;
  background: var(--uniform-glass-tint);
  border: 1px solid var(--uniform-glass-border);
  color: var(--soft-muted);
}

.sort-field span {
  font-size: 0.85rem;
}

.sort-field select option {
  color: #09140d;
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-pill {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--uniform-glass-border);
  background: var(--uniform-glass-tint);
  color: var(--muted);
  cursor: pointer;
  transition: 220ms ease;
}

.tag-pill.active,
.tag-pill:hover {
  color: var(--text);
  border-color: rgba(201, 255, 216, 0.35);
  background: rgba(201, 255, 216, 0.12);
}

.library-meta {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 20px 0 16px;
}

.library-meta p {
  margin: 0;
  color: var(--soft-muted);
}

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

.tool-card {
  border-radius: 28px;
  background: var(--uniform-glass-tint);
  border: 1px solid var(--uniform-glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 255, 223, 0.28);
  background: var(--uniform-glass-tint-strong);
}

.tool-card[role="button"] {
  cursor: zoom-in;
}

.tool-card[role="button"]:focus-visible {
  outline: 2px solid rgba(210, 255, 223, 0.72);
  outline-offset: 4px;
}

.tool-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.tool-card-meta,
.favorite-dashboard-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-card-meta {
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.tool-password-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-password-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(245, 249, 246, 0.95);
}

.tool-password-copy {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(245, 249, 246, 0.82);
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1;
}

.tool-password-copy:hover,
.tool-password-copy:focus-visible {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.tool-password-copy:disabled {
  opacity: 0.35;
  cursor: default;
}

.tool-card-footer > .download-button-static {
  flex: 1 1 auto;
  min-width: 0;
}

.tool-card-footer > .download-button:not(.download-button-static) {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: 16px;
}

.tool-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.tool-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-visual::before,
.tool-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tool-visual::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 16%);
}

.tool-visual::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.visual-aurora {
  background: linear-gradient(135deg, rgba(149, 235, 179, 0.65), rgba(21, 53, 31, 0.9));
}

.visual-cobalt {
  background: linear-gradient(135deg, rgba(118, 163, 255, 0.68), rgba(15, 27, 54, 0.92));
}

.visual-ember {
  background: linear-gradient(135deg, rgba(255, 186, 127, 0.68), rgba(59, 29, 16, 0.92));
}

.visual-mint {
  background: linear-gradient(135deg, rgba(182, 255, 224, 0.68), rgba(20, 57, 54, 0.92));
}

.visual-violet {
  background: linear-gradient(135deg, rgba(190, 168, 255, 0.68), rgba(28, 24, 58, 0.92));
}

.visual-slate {
  background: linear-gradient(135deg, rgba(214, 219, 230, 0.48), rgba(29, 34, 41, 0.92));
}

.tool-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tool-topline,
.tool-tags,
.auth-switch,
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--accent-strong);
}

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

.tool-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.tool-version,
.tag,
.tool-updated {
  color: var(--soft-muted);
  font-size: 0.92rem;
}

.tool-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 1800px;
}

.about-card,
.eggai-card,
.auth-panel,
.account-status {
  border-radius: 34px;
  padding: 24px;
}

.about-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 720ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card::before,
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card::before {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 32%, transparent 72%, rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(212, 255, 226, 0.14), transparent 28%);
  opacity: 0.34;
  transform: translate3d(0, 0, 18px);
}

.about-card::after {
  inset: auto -14% -24%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 231, 180, 0.16), transparent 68%);
  opacity: 0.22;
  filter: blur(26px);
  transform: translate3d(0, 18px, 0) scale(0.88);
}

.about-index {
  position: relative;
  z-index: 2;
  color: var(--accent-strong);
  font-size: 0.84rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow: none;
  transform: translate3d(0, 0, 10px);
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    color 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card h3,
.eggai-card h3,
.auth-copy h3,
.account-status h3 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.about-card h3,
.about-card p {
  position: relative;
  z-index: 2;
  width: min(100%, 24rem);
  transform: translate3d(0, 58px, 0);
  opacity: 0;
  filter: blur(16px);
  transform-origin: center bottom;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card h3 {
  margin-top: 18px;
  margin-bottom: 10px;
}

.about-card p,
.eggai-card p,
.auth-copy p,
.status-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-card:hover,
.about-card:focus-within {
  transform:
    perspective(1800px)
    rotateX(var(--card-rotate-x))
    rotateY(var(--card-rotate-y))
    translateY(-6px)
    translateZ(0);
  border-color: rgba(212, 255, 226, 0.32);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.about-card:hover::before,
.about-card:focus-within::before {
  opacity: 0.54;
  transform: translate3d(0, -4px, 24px);
}

.about-card:hover::after,
.about-card:focus-within::after {
  opacity: 0.34;
  filter: blur(28px);
  transform: translate3d(0, 8px, 0) scale(0.96);
}

.about-card:hover .about-index,
.about-card:focus-within .about-index {
  opacity: 0.72;
  transform: translate3d(0, 0, 16px);
}

.about-card:hover h3,
.about-card:hover p,
.about-card:focus-within h3,
.about-card:focus-within p {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 18px);
}

@media (hover: none), (max-width: 1080px) {
  .about-card {
    transform: none;
  }

  .about-card::before {
    opacity: 0.62;
    transform: none;
  }

  .about-card::after {
    opacity: 0.58;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .about-card .about-index {
    opacity: 1;
    transform: none;
  }

  .about-card h3,
  .about-card p {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.account-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-switch {
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.auth-tab {
  padding: 12px 18px;
  border-radius: 999px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-form label span {
  color: var(--soft-muted);
  font-size: 0.88rem;
}

.discord-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  background: linear-gradient(180deg, rgba(114, 137, 218, 0.34), rgba(114, 137, 218, 0.16));
}

.auth-footnote {
  margin: 0;
  color: var(--soft-muted);
  line-height: 1.65;
}

.account-status {
  position: relative;
  overflow: hidden;
}

.status-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 255, 211, 0.26), transparent 70%);
  filter: blur(6px);
}

.status-label {
  position: relative;
  margin: 0;
  color: var(--accent-strong);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.status-copy {
  position: relative;
}

.status-list {
  position: relative;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-item span {
  color: var(--soft-muted);
}

.hidden {
  display: none !important;
}

.favorite-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 13, 9, 0.38);
  color: rgba(239, 244, 240, 0.88);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-link-site-icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.favorite-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  color: rgba(255, 255, 255, 0.98);
}

.favorite-button.active {
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.favorite-button.compact {
  width: 38px;
  height: 38px;
}

.tool-visual .favorite-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.account-shell-section {
  min-height: auto;
  width: 100%;
  display: flex;
  align-items: stretch;
  padding-top: 34px;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.auth-workspace,
.cabinet-shell {
  border-radius: 34px;
  padding: 28px;
}

.auth-workspace {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 122px;
}

.auth-workspace::before,
.cabinet-shell::before {
  backdrop-filter: blur(38px) saturate(146%);
  -webkit-backdrop-filter: blur(38px) saturate(146%);
}

.auth-workspace-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-workspace-title {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.auth-mode-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}

.auth-mode-pill:hover,
.auth-mode-pill.active {
  color: var(--text);
  border-color: rgba(205, 255, 218, 0.26);
  background: rgba(205, 255, 218, 0.1);
}

.auth-feedback {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feedback.success {
  color: #dffbe5;
  background: rgba(83, 195, 116, 0.16);
  border-color: rgba(83, 195, 116, 0.24);
}

.auth-feedback.error {
  color: #ffd9d9;
  background: rgba(220, 87, 87, 0.15);
  border-color: rgba(220, 87, 87, 0.24);
}

.auth-feedback.info {
  color: #e3f2ff;
  background: rgba(91, 154, 228, 0.15);
  border-color: rgba(91, 154, 228, 0.24);
}

.auth-stage {
  display: grid;
  gap: 22px;
}

.auth-stage-copy {
  display: grid;
  gap: 10px;
}

.auth-stage-copy h4 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.auth-stage-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-stage-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 246, 242, 0.92);
  font-size: 0.88rem;
}

.pro-auth-form,
.verify-form {
  display: grid;
  gap: 16px;
}

.pro-auth-form label,
.verify-form label {
  display: grid;
  gap: 10px;
}

.pro-auth-form label span,
.verify-form label span {
  color: rgba(244, 248, 245, 0.88);
  font-size: 0.95rem;
}

.pro-auth-form input,
.verify-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--uniform-glass-border);
  background: var(--uniform-glass-tint);
  backdrop-filter: var(--uniform-glass-blur);
  -webkit-backdrop-filter: var(--uniform-glass-blur);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pro-auth-form input:focus,
.verify-form input:focus {
  border-color: rgba(208, 255, 220, 0.28);
  background: var(--uniform-glass-tint-strong);
  transform: translateY(-1px);
}

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

.pro-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-inline-button {
  padding-inline: 0;
  color: rgba(218, 255, 227, 0.9);
}

.auth-helper-copy {
  margin: -2px 0 0;
  color: rgba(240, 246, 242, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
}

.resend-code-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.98);
}

.resend-code-button:hover {
  color: rgba(255, 255, 255, 0.98);
}

.mail-preview-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mail-preview-label {
  margin: 0 0 6px;
  color: rgba(241, 247, 243, 0.92);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mail-preview-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.code-grid input {
  text-align: center;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 18px 0;
  border-radius: 18px;
}

.cabinet-shell {
  min-height: min(600px, calc(100vh - 198px));
  max-height: calc(100vh - 198px);
  width: min(100%, var(--max-width));
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 25, 20, 0.18), rgba(11, 21, 16, 0.28));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cabinet-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(6, 18, 12, 0.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
  z-index: 3;
}

.cabinet-loading-spinner {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(229, 255, 235, 0.88);
  border-right-color: rgba(160, 224, 178, 0.52);
  box-shadow: 0 0 28px rgba(176, 244, 194, 0.12);
  animation: cabinet-spinner-rotate 0.9s linear infinite;
}

.cabinet-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px 24px;
}

.cabinet-empty,
.cabinet-dashboard {
  transition:
    opacity 460ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 460ms ease;
}

.cabinet-shell.is-loading .cabinet-loading {
  opacity: 1;
  visibility: visible;
}

.cabinet-shell.is-loading .cabinet-empty,
.cabinet-shell.is-loading .cabinet-dashboard {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  pointer-events: none;
}

.cabinet-shell.is-ready .cabinet-empty:not(.hidden),
.cabinet-shell.is-ready .cabinet-dashboard:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.cabinet-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: inline-grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto 4px;
}

.cabinet-empty h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.cabinet-empty p {
  margin: 4px auto 0;
  max-width: 500px;
  color: var(--muted);
  line-height: 1.6;
}

.cabinet-dashboard {
  display: grid;
  gap: 18px;
}

@keyframes cabinet-spinner-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.cabinet-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.cabinet-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(225, 255, 233, 0.24), rgba(112, 180, 132, 0.12)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-hero-copy h3 {
  margin: 6px 0 4px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  letter-spacing: -0.05em;
}

.cabinet-hero-copy p {
  margin: 0;
  color: var(--muted);
}

.cabinet-hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #dffbe5;
  background: rgba(83, 195, 116, 0.16);
  border: 1px solid rgba(83, 195, 116, 0.24);
}

.cabinet-badge.subtle {
  color: rgba(241, 246, 242, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cabinet-stat,
.security-card,
.favorite-dashboard-card,
.access-dashboard-card,
.mini-empty-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.cabinet-stat {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.cabinet-stat span {
  color: var(--muted);
  font-size: 0.84rem;
}

.cabinet-stat strong {
  font-size: 0.98rem;
}

.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cabinet-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}

.cabinet-tab:hover,
.cabinet-tab.active {
  color: var(--text);
  background: rgba(209, 255, 221, 0.11);
  border-color: rgba(209, 255, 221, 0.24);
}

.cabinet-panel {
  display: none;
}

.cabinet-panel.active {
  display: block;
}

.cabinet-info-list,
.favorites-dashboard-grid,
.access-dashboard-grid,
.security-card-grid {
  display: grid;
  gap: 14px;
}

.cabinet-info-row {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-info-row span {
  color: var(--muted);
}

.favorites-dashboard-grid,
.access-dashboard-grid,
.security-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.favorite-dashboard-card,
.access-dashboard-card,
.security-card,
.mini-empty-card {
  padding: 16px;
}

.favorite-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.favorite-dashboard-card h4,
.access-dashboard-card h4,
.security-card strong,
.mini-empty-card h4 {
  margin: 0;
}

.favorite-dashboard-card p,
.access-dashboard-card p,
.security-card p,
.mini-empty-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.access-dashboard-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.access-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 6px;
  background: #9fffbc;
  box-shadow: 0 0 0 8px rgba(159, 255, 188, 0.12);
}

.security-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.logout-button {
  margin-top: 18px;
}

.tools-clean-section {
  padding-top: 142px;
}

.hero-tools-shell {
  margin-top: 64px;
}

.morph-shell {
  position: relative;
  width: min(100%, 980px);
  height: 112px;
  margin: -8px auto 42px;
  display: grid;
  place-items: center;
}

.morph-text {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  filter: url(#morphThreshold) blur(0.6px);
  white-space: nowrap;
}

.morph-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  width: 100%;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 800;
  color: rgba(236, 243, 239, 0.95);
  letter-spacing: -0.04em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  transform: scale(0.985);
  will-change: opacity, filter, transform, visibility;
  transition: opacity 1100ms ease, filter 1100ms ease, transform 1100ms ease, visibility 0s linear 1100ms;
}

.morph-word.is-visible {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: scale(1);
  transition-delay: 0s;
}

.morph-svg {
  position: absolute;
  width: 0;
  height: 0;
}

.search-field,
.sort-field {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sort-field-custom {
  position: relative;
  display: grid;
  gap: 10px;
}

.sort-field-label {
  color: rgba(241, 246, 243, 0.9);
  font-size: 0.92rem;
}

.sort-dropdown {
  position: relative;
}

.sort-dropdown-trigger {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--uniform-glass-border);
  background:
    linear-gradient(180deg, var(--uniform-glass-tint), var(--uniform-glass-tint-strong));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.14);
  color: rgba(246, 249, 247, 0.96);
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.sort-dropdown-trigger:hover,
.sort-dropdown.is-open .sort-dropdown-trigger {
  border-color: rgba(214, 255, 225, 0.22);
  transform: translateY(-1px);
}

.sort-dropdown-trigger i {
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease;
}

.sort-dropdown.is-open .sort-dropdown-trigger i {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.92);
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--uniform-glass-border);
  background:
    linear-gradient(180deg, var(--uniform-glass-tint), var(--uniform-glass-tint-strong));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sort-option {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(232, 239, 235, 0.84);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.sort-option:hover,
.sort-option.active {
  background: rgba(213, 255, 225, 0.12);
  color: rgba(255, 255, 255, 0.98);
  transform: translateX(2px);
}

.tag-pill {
  background: var(--uniform-glass-tint);
  color: rgba(234, 241, 236, 0.82);
  border-color: var(--uniform-glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tag {
  background: rgba(224, 255, 233, 0.08);
  border-color: rgba(224, 255, 233, 0.12);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(214, 255, 225, 0.18);
  background: rgba(214, 255, 225, 0.12);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.download-button:hover {
  transform: translateY(-1px);
  background: rgba(214, 255, 225, 0.18);
  border-color: rgba(214, 255, 225, 0.28);
}

.inline-download {
  margin-top: 16px;
}

.download-button.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.download-button.is-disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.download-button-static {
  justify-content: flex-start;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 249, 246, 0.9);
  cursor: default;
}

.download-button-static:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
}

.auth-standalone {
  width: min(100%, 640px);
  padding: 32px;
  border-radius: 34px;
  display: grid;
  gap: 22px;
}

.auth-standalone h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

.auth-brand {
  width: fit-content;
}

.auth-standalone > h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

.empty-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 2px 0;
  color: rgba(229, 236, 232, 0.7);
  font-size: 0.92rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: transparent;
}

.site-footer-shell {
  width: min(calc(100% - 40px), 1180px);
  margin: 24px auto 28px;
}

.site-footer {
  border-radius: 34px;
  padding: 28px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.8fr));
  gap: 24px;
}

.site-footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.site-footer-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

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

.site-footer-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer-brand h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.site-footer-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 460px;
}

.site-footer-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.site-footer-column h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 246, 242, 0.92);
}

.site-footer-links {
  display: grid;
  gap: 10px;
}

.site-footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

.site-footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-bottom p {
  margin: 0;
  color: var(--soft-muted);
}

.site-footer-online {
  color: rgba(232, 243, 234, 0.92);
}

.site-footer-bottom a {
  color: var(--accent-strong);
  text-decoration: none;
}

.site-footer-bottom a:hover {
  color: var(--text);
}

.site-footer-credit,
.site-footer-credit:hover {
  color: rgba(255, 255, 255, 0.98);
}

.site-footer-bottom a.site-footer-credit,
.site-footer-bottom a.site-footer-credit:hover {
  color: rgba(255, 255, 255, 0.98);
}

.site-footer-link-button {
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer-link-icon i {
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 0ms linear 280ms;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms ease, visibility 0ms linear 0ms;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.54);
  opacity: 0;
  transition: opacity 320ms ease;
}

.legal-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 32px 28px 28px;
  overflow: hidden;
  border-radius: 32px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-modal__dialog::before {
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 320ms ease;
}

.legal-modal.is-open .legal-modal__backdrop {
  opacity: 1;
}

.legal-modal.is-open .legal-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.legal-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
}

.legal-modal__header {
  margin-bottom: 18px;
  padding-right: 54px;
}

.legal-modal__header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.legal-modal__eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-modal__content {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legal-modal__content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legal-modal__content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.78;
}

.legal-modal-open {
  overflow: hidden;
}

.tool-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 165;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 0ms linear 280ms;
}

.tool-preview-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms ease, visibility 0ms linear 0ms;
}

.tool-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.62);
  opacity: 0;
  transition: opacity 320ms ease;
}

.tool-preview-modal.is-open .tool-preview-modal__backdrop {
  opacity: 1;
}

.tool-preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
}

.tool-preview-modal__media {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 14, 10, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.tool-preview-modal__media img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #050805;
}

.tool-preview-modal__overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 72px 20px 22px;
  background: linear-gradient(180deg, rgba(4, 10, 7, 0.86), rgba(4, 10, 7, 0));
  color: #f4fff6;
}

.tool-preview-modal__overlay h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.tool-preview-modal__overlay p {
  margin: 0;
  color: rgba(235, 255, 240, 0.78);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-preview-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 18, 12, 0.72);
  color: #f4fff6;
  cursor: pointer;
}

.tool-preview-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .tool-preview-modal__overlay {
    padding: 18px 62px 18px 18px;
  }

  .tool-preview-modal__overlay p {
    font-size: 0.82rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eggai-section {
  min-height: calc(100vh - 138px);
  padding-top: 20px;
  padding-bottom: 20px;
}

.eggai-app {
  width: 100%;
  min-height: calc(100vh - 178px);
  position: relative;
}

.eggai-shell {
  width: min(100%, 1440px);
  min-height: calc(100vh - 178px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.eggai-topbar,
.eggai-topbar-actions,
.eggai-composer-bottom,
.eggai-composer-left,
.eggai-composer-right,
.eggai-message-meta,
.eggai-sidebar-head {
  display: flex;
  align-items: center;
}

.eggai-topbar {
  justify-content: space-between;
  gap: 18px;
}

.eggai-topbar-actions {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.eggai-brand-lockup {
  display: inline-grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
}

.eggai-brand-icon,
.eggai-hero-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.eggai-brand-icon img,
.eggai-hero-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.eggai-brand-lockup strong {
  display: block;
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.eggai-brand-lockup span,
.eggai-stage-intro h1 span:last-child {
  color: var(--accent-strong);
}

.eggai-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 14px;
}

.eggai-stage,
.eggai-sidebar {
  min-height: 0;
}

.eggai-history-item,
.eggai-sidebar-action,
.eggai-inline-tool,
.eggai-model-chip,
.eggai-history-empty {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.eggai-stage {
  grid-column: 2;
  padding: 26px 28px 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(204, 255, 221, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.eggai-stage-intro {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(34px, 8vh, 112px) 20px 8px;
}

.eggai-stage-intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.eggai-stage-intro p {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.eggai-message-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 4px 10px 0 0;
}

.eggai-message {
  display: grid;
  gap: 8px;
}

.eggai-message.is-user {
  justify-items: end;
}

.eggai-message.is-assistant {
  justify-items: start;
}

.eggai-message-meta {
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.eggai-message-author,
.eggai-history-item strong {
  color: rgba(248, 252, 249, 0.98);
}

.eggai-message-bubble {
  max-width: min(920px, 96%);
  padding: 17px 18px;
  border-radius: 24px;
  line-height: 1.72;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.eggai-message.is-user .eggai-message-bubble {
  background: linear-gradient(145deg, rgba(207, 255, 221, 0.18), rgba(177, 244, 203, 0.07));
  border-color: rgba(207, 255, 221, 0.2);
}

.eggai-message-bubble p {
  margin: 0;
  white-space: normal;
}

.eggai-composer-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  align-self: end;
}

.eggai-composer {
  padding: 18px 20px 14px;
  display: grid;
  gap: 12px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at top center, rgba(198, 255, 218, 0.08), transparent 52%);
  box-shadow: 0 28px 60px rgba(5, 10, 7, 0.24);
}

.eggai-composer textarea {
  width: 100%;
  min-height: 84px;
  max-height: 220px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(249, 252, 249, 0.98);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.eggai-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.eggai-composer-bottom {
  justify-content: flex-end;
  gap: 12px;
}

.eggai-composer-left,
.eggai-composer-right {
  gap: 10px;
}

.eggai-inline-tool {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.eggai-inline-tool:hover,
.eggai-history-item:hover,
.eggai-history-item.active,
.eggai-sidebar-action:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 255, 224, 0.32);
  background: rgba(213, 255, 224, 0.08);
}

.eggai-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(245, 250, 247, 0.92);
  font-size: 0.92rem;
}

.eggai-send-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(210, 255, 224, 0.18);
  background: linear-gradient(135deg, rgba(194, 151, 114, 0.36), rgba(194, 151, 114, 0.2));
  color: rgba(249, 252, 249, 0.98);
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.eggai-send-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.eggai-send-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.eggai-send-button.is-busy i {
  animation: heroFloat 1s ease-in-out infinite;
}

.eggai-composer-note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.eggai-sidebar {
  grid-column: 1;
  grid-row: 1;
  padding: 18px 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  transition: width 220ms ease, padding 220ms ease, opacity 220ms ease;
}

.eggai-sidebar-head {
  justify-content: space-between;
  gap: 12px;
}

.eggai-history-item span,
.eggai-history-item small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.eggai-sidebar-action {
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(248, 252, 249, 0.98);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.eggai-history-rail {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.eggai-history-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: left;
  display: grid;
  gap: 4px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.eggai-history-item strong {
  font-size: 0.92rem;
}

.eggai-history-empty {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  text-align: center;
}

.eggai-sidebar.is-collapsed {
  width: 76px;
  padding-left: 12px;
  padding-right: 12px;
}

.eggai-sidebar.is-collapsed .eggai-history-rail {
  display: none;
}

.eggai-sidebar.is-collapsed .eggai-sidebar-head {
  justify-content: center;
}

.eggai-sidebar.is-collapsed .eggai-sidebar-action {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}

.eggai-sidebar.is-collapsed .eggai-sidebar-action span {
  display: none;
}

.eggai-sidebar.is-collapsed .eggai-inline-tool {
  transform: rotate(180deg);
}

.eggai-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 11, 0.36);
  border-radius: 34px;
  z-index: 4;
}

.eggai-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 11, 0.42);
  border-radius: 34px;
  z-index: 5;
  opacity: 1;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.eggai-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.eggai-loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 180px;
  padding: 28px 30px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(21, 27, 24, 0.92), rgba(12, 16, 14, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.eggai-loading-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(223, 255, 233, 0.92);
  animation: eggaiLoadingSpin 0.9s linear infinite;
}

.eggai-loading-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eggai-stage {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

.eggai-stage.hidden,
.eggai-stage.is-loading {
  opacity: 0;
  transform: translateY(10px);
}

.eggai-stage.hidden {
  pointer-events: none;
}

.eggai-gate:not(.hidden),
.eggai-stage:not(.hidden):not(.is-loading) {
  animation: eggaiStageFadeIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eggai-guard-card {
  max-width: 480px;
}

@keyframes eggaiLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes eggaiStageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.admin-ai-stats,
.admin-ai-request-list {
  display: grid;
  gap: 12px;
}

.admin-ai-request-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-ai-request-top,
.admin-ai-request-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ai-request-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-ai-request-card p {
  margin: 12px 0 0;
  line-height: 1.7;
  color: rgba(247, 251, 248, 0.94);
}

.eggai-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at top right, rgba(204, 255, 221, 0.18), transparent 26%);
}

.eggai-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 150ms;
}

.reveal:nth-child(4) {
  animation-delay: 220ms;
}

.reveal:nth-child(5) {
  animation-delay: 300ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBloom {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(12px);
    letter-spacing: -0.11em;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    letter-spacing: -0.065em;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes marqueeSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@media (max-width: 1080px) {
  .hero,
  .account-grid,
  .about-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .account-shell,
  .tools-stage-top {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-content {
    padding: 30px 0 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-shell {
    width: min(calc(100% - 24px), 1180px);
  }

  .site-footer {
    padding: 22px;
  }

  .site-footer-brand {
    grid-template-columns: 1fr;
  }

  .hero-title-kinetic {
    flex-direction: column;
    align-items: center;
    gap: 0.05em;
  }

  .auth-workspace {
    position: static;
  }

  .favorites-dashboard-grid,
  .access-dashboard-grid,
  .security-card-grid {
    grid-template-columns: 1fr;
  }

  .eggai-shell {
    min-height: auto;
  }

  .eggai-workspace {
    grid-template-columns: 1fr;
  }

  .eggai-stage,
  .eggai-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  .eggai-sidebar {
    grid-template-rows: auto auto auto;
  }

  .eggai-history-rail {
    max-height: 220px;
  }
}

@media (max-width: 820px) {
  .topbar-shell {
    padding-inline: 14px;
  }

  main {
    width: min(var(--max-width), calc(100vw - 28px));
  }

  .eggai-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .eggai-topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .eggai-stage,
  .eggai-sidebar {
    padding: 18px;
  }

  .eggai-stage {
    padding: 20px 18px 18px;
  }

  .eggai-composer {
    padding: 16px;
  }

  .eggai-composer-shell {
    width: 100%;
  }

  .eggai-composer-bottom {
    flex-wrap: wrap;
  }

  .eggai-composer-right {
    width: 100%;
    justify-content: flex-end;
  }

  .eggai-message-bubble {
    max-width: 100%;
  }

  .eggai-sidebar.is-collapsed {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .eggai-sidebar.is-collapsed .eggai-sidebar-head {
    justify-content: space-between;
  }

  .eggai-sidebar.is-collapsed .eggai-sidebar-action {
    width: 100%;
    height: auto;
    padding: 11px 12px;
    justify-content: flex-start;
  }

  .eggai-sidebar.is-collapsed .eggai-sidebar-action span,
  .eggai-sidebar.is-collapsed .eggai-history-rail {
    display: grid;
  }

  .eggai-sidebar.is-collapsed .eggai-inline-tool {
    transform: none;
  }

  .topbar {
    width: calc(100vw - 28px);
    border-radius: 34px;
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .library-toolbar,
  .library-meta {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 5.6rem);
  }

  .hero-tools-shell {
    margin-top: 54px;
  }

  .hero-tool-pill {
    min-width: 210px;
  }

  .auth-workspace,
  .cabinet-shell {
    padding: 22px;
  }

  .auth-workspace-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-mode-switch {
    justify-content: flex-start;
  }

  .auth-field-grid,
  .cabinet-stats,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-hero,
  .cabinet-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-shell.compact .topbar {
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.floating-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(14, 20, 30, 0.92);
  color: #f7fbff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-notice-error {
  background: rgba(126, 24, 24, 0.96);
}

.admin-section {
  padding-top: 144px;
}

.admin-stage {
  position: relative;
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto 80px;
  min-height: min(620px, calc(100vh - 210px));
}

.admin-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
  z-index: 4;
}

.admin-stage > #adminGate,
.admin-stage > .admin-shell {
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.admin-stage.is-loading .admin-loading {
  opacity: 1;
  visibility: visible;
}

.admin-stage.is-loading > #adminGate,
.admin-stage.is-loading > .admin-shell {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  pointer-events: none;
}

.admin-stage.is-ready > #adminGate:not(.hidden),
.admin-stage.is-ready > .admin-shell:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.admin-shell {
  width: 100%;
  margin: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.18), rgba(10, 18, 15, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.admin-summary-card,
.admin-card,
.admin-feature-row {
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.18), rgba(10, 18, 15, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-summary-card span {
  display: block;
  color: rgba(245, 248, 255, 0.72);
  margin-bottom: 12px;
}

.admin-summary-card strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-feature-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  margin-bottom: 20px;
}

.admin-card-head {
  margin-bottom: 18px;
}

.admin-card-head h2 {
  margin: 0 0 8px;
}

.admin-card-head p {
  margin: 0;
  color: rgba(245, 248, 255, 0.72);
}

.admin-code-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(245, 248, 255, 0.9);
}

.admin-code-list li + li {
  margin-top: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-admin-button {
  padding: 10px 14px;
  min-height: auto;
}

.denied-back-button {
  margin-top: 18px;
}

.admin-guard-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px;
  border-radius: 28px;
  background: rgba(8, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.admin-guard-card h2 {
  margin-top: 0;
}

.admin-launch-button {
  margin-right: 10px;
}

.topbar {
  overflow: hidden;
}

.topbar-shell.compact .topbar {
  border-radius: 999px;
}

.tool-version {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.cabinet-dashboard {
  min-height: min(640px, calc(100vh - 198px));
}

.cabinet-dashboard-scroll {
  max-height: min(640px, calc(100vh - 198px));
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.cabinet-dashboard-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cabinet-avatar {
  overflow: hidden;
}

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

.compact-form {
  margin-top: 18px;
}

.security-card-grid-single {
  margin-top: 18px;
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.admin-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 249, 246, 0.88);
  backdrop-filter: blur(22px) saturate(128%);
  -webkit-backdrop-filter: blur(22px) saturate(128%);
}

.admin-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.admin-tab:hover,
.admin-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-card {
  padding: 26px;
  border-radius: 32px;
}

.admin-summary-card,
.admin-card,
.admin-tool-card,
.admin-info-row,
.admin-note-card,
.admin-toggle-row,
.admin-meta-card,
.admin-table-wrap {
  overflow: hidden;
}

.admin-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-card-head h2,
.admin-modal-head h2 {
  margin: 0;
}

.admin-card-head p,
.admin-modal-head p {
  margin: 0;
  color: var(--muted);
}

.admin-card-head-inline {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
}

.admin-layout-wide {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.admin-table th {
  color: var(--soft-muted);
  font-weight: 600;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stack-list {
  display: grid;
  gap: 14px;
}

.admin-tool-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

#adminToolDownloadFields.hidden,
#adminToolOpenUrlField.hidden {
  display: none;
}

.admin-tool-card-copy {
  display: grid;
  gap: 10px;
}

.admin-tool-card-copy p {
  margin: 0;
  color: var(--muted);
}

.admin-tool-card-top,
.admin-tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-tool-meta {
  color: var(--soft-muted);
  font-size: 0.94rem;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
}

.admin-inline-form input {
  min-width: 0;
}

.admin-inline-form input,
.admin-inline-form textarea,
.admin-inline-form select,
.admin-card input,
.admin-card textarea,
.admin-card select,
.admin-modal input,
.admin-modal textarea,
.admin-modal select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(19, 27, 23, 0.34), rgba(15, 21, 18, 0.44));
  color: var(--text);
  border-radius: 20px;
  padding: 15px 18px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(132%);
  -webkit-backdrop-filter: blur(24px) saturate(132%);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.admin-inline-form input::placeholder,
.admin-inline-form textarea::placeholder,
.admin-card input::placeholder,
.admin-card textarea::placeholder,
.admin-modal input::placeholder,
.admin-modal textarea::placeholder {
  color: rgba(239, 246, 240, 0.44);
}

.admin-inline-form input:focus,
.admin-inline-form textarea:focus,
.admin-inline-form select:focus,
.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus,
.admin-modal input:focus,
.admin-modal textarea:focus,
.admin-modal select:focus {
  border-color: rgba(213, 255, 224, 0.28);
  background: linear-gradient(180deg, rgba(23, 33, 27, 0.42), rgba(16, 24, 20, 0.52));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 4px rgba(176, 244, 194, 0.05);
}

.admin-inline-form select,
.admin-card select,
.admin-modal select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(240, 246, 242, 0.82) 50%),
    linear-gradient(135deg, rgba(240, 246, 242, 0.82) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.admin-modal input[type="file"] {
  padding: 10px 12px;
}

.admin-modal input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(128%);
  -webkit-backdrop-filter: blur(20px) saturate(128%);
}

.admin-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #9de7b4;
  border-radius: 6px;
  padding: 0;
  transform: none;
  box-shadow: none;
}

.admin-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  backdrop-filter: blur(22px) saturate(128%);
  -webkit-backdrop-filter: blur(22px) saturate(128%);
}

.admin-info-list,
.admin-note-list {
  display: grid;
  gap: 14px;
}

.admin-info-row,
.admin-note-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.admin-note-card {
  display: grid;
}

.admin-note-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-settings-form {
  display: grid;
  gap: 18px;
}

.admin-tool-tags-select {
  min-height: 196px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
}

.admin-tool-tag-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-tool-tag-option:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 255, 224, 0.24);
  background: rgba(213, 255, 224, 0.06);
}

.admin-tool-tag-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #8cc8a0;
}

.admin-tool-tag-option span {
  color: rgba(247, 251, 248, 0.94);
}

.admin-tool-tag-empty {
  color: var(--muted);
  text-align: center;
  padding: 18px 12px;
}

.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.admin-toggle-row small {
  display: block;
  margin-top: 6px;
  color: var(--soft-muted);
}

.admin-code-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease, visibility 0ms linear 0ms;
}

.admin-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 0ms linear 280ms;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.54);
  opacity: 1;
  transition: opacity 320ms ease;
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: auto;
  padding: 32px 28px 28px;
  border-radius: 32px;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(12, 18, 15, 0.42), rgba(9, 14, 12, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

.admin-modal-card::before {
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 320ms ease;
}

.admin-modal.hidden .admin-modal-backdrop {
  opacity: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.admin-modal.hidden .admin-modal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

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

.admin-modal-meta {
  margin-top: 22px;
}

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

.admin-meta-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.admin-meta-card p,
.admin-meta-card ul {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-meta-card ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

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

.admin-user-password-field.hidden,
.admin-user-delete-button.hidden {
  display: none;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .admin-summary-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-card-head-inline,
  .admin-tool-card,
  .admin-inline-form,
  .admin-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-info-row,
  .admin-toggle-row,
  .admin-modal-head {
    align-items: stretch;
  }

  .admin-info-row,
  .admin-toggle-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .cabinet-dashboard-scroll {
    max-height: none;
    padding-right: 0;
  }

  .admin-card,
  .admin-modal-card {
    padding: 20px;
    border-radius: 26px;
  }

  .admin-tab-row {
    gap: 10px;
  }

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

/* Egg AI chat refresh */
body.eggai-page {
  overflow: hidden;
}

body.eggai-page .topbar-shell {
  display: none;
}

body.eggai-page main {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  max-width: none;
  margin: 0;
  display: flex;
  padding: 0;
  overflow: hidden;
}

body.eggai-page main > .eggai-section {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.eggai-page .site-footer-shell {
  display: none;
}

.eggai-section {
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.eggai-app,
.eggai-shell,
.eggai-workspace {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.eggai-app {
  position: relative;
  display: flex;
}

.eggai-shell {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
}

.eggai-workspace {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 11, 0.58), rgba(5, 7, 7, 0.7)),
    radial-gradient(circle at top left, rgba(197, 151, 114, 0.12), transparent 34%),
    radial-gradient(circle at right, rgba(108, 166, 134, 0.08), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(116%);
  -webkit-backdrop-filter: blur(20px) saturate(116%);
}

.eggai-sidebar,
.eggai-stage {
  min-height: 0;
}

.eggai-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 12px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 8, 0.26);
  overflow: hidden;
  transition: width 180ms ease, padding 180ms ease;
}

.eggai-sidebar-head,
.eggai-composer-bottom,
.eggai-message-meta,
.eggai-message,
.eggai-history-item {
  display: flex;
  align-items: center;
}

.eggai-sidebar-head {
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 4px;
}

.eggai-sidebar-home,
.eggai-message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
}

.eggai-sidebar-home img,
.eggai-message-avatar img,
.eggai-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eggai-sidebar-primary {
  padding-inline: 4px;
}

.eggai-sidebar-brand {
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eggai-sidebar-action,
.eggai-inline-tool,
.eggai-history-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 248, 248, 0.96);
}

.eggai-sidebar-action {
  width: 100%;
  min-height: 36px;
  padding: 0 6px;
  border-radius: 0;
  border-color: transparent;
  background: transparent;
  justify-content: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.78);
}

.eggai-inline-tool {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.eggai-history-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.eggai-history-label {
  padding-inline: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.eggai-history-rail,
.eggai-message-list {
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.eggai-history-rail::-webkit-scrollbar,
.eggai-message-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.eggai-history-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.eggai-history-item {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  overflow: hidden;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.eggai-history-item strong,
.eggai-history-item small {
  display: block;
}

.eggai-history-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.eggai-history-item small {
  flex: 0 0 auto;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.34);
}

.eggai-history-item span {
  display: none;
}

.eggai-history-item:hover,
.eggai-history-item.active,
.eggai-sidebar-action:hover,
.eggai-inline-tool:hover {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transform: translateY(-1px);
}

.eggai-history-empty {
  padding: 16px 14px;
  border-radius: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.eggai-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 22px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(216, 239, 227, 0.06), transparent 26%),
    rgba(4, 6, 6, 0.34);
}

.eggai-stage-intro {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 36px 20px 8px;
}

.eggai-hero-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
}

.eggai-stage-intro h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.eggai-stage-intro p {
  margin: 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.eggai-message-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 22px 0 8px;
}

.eggai-message {
  gap: 12px;
  align-items: flex-start;
}

.eggai-message.is-user {
  justify-content: flex-end;
}

.eggai-message.is-assistant {
  justify-content: flex-start;
}

.eggai-message-stack {
  max-width: min(820px, 100%);
  display: grid;
  gap: 8px;
}

.eggai-message.is-user .eggai-message-stack {
  justify-items: end;
}

.eggai-message-meta {
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
}

.eggai-message-author {
  color: rgba(255, 255, 255, 0.92);
}

.eggai-message-bubble {
  max-width: min(820px, 100%);
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.7;
}

.eggai-message.is-user .eggai-message-bubble {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
}

.eggai-message.is-thinking {
  align-items: flex-start;
}

.eggai-message.is-thinking .eggai-message-stack {
  width: 100%;
  max-width: 100%;
}

.eggai-thinking {
  width: fit-content;
  max-width: 100%;
  padding: 4px 0 2px;
  color: rgba(233, 239, 233, 0.76);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eggai-thinking span {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    110deg,
    rgba(222, 228, 221, 0.3) 0%,
    rgba(244, 248, 242, 0.92) 38%,
    rgba(210, 220, 209, 0.32) 62%,
    rgba(222, 228, 221, 0.3) 100%
  );
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: eggaiThinkingShimmer 1.7s linear infinite;
}

@keyframes eggaiThinkingShimmer {
  from {
    background-position: 100% 50%;
  }

  to {
    background-position: -120% 50%;
  }
}

.eggai-message-bubble p {
  margin: 0;
}

.eggai-composer-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  align-self: end;
}

.eggai-composer {
  display: grid;
  gap: 8px;
  padding: 10px 12px 10px 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 31, 30, 0.62);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.eggai-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eggai-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.eggai-attachment-chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.eggai-composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.eggai-attach-button,
.eggai-send-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
}

.eggai-attach-button {
  background: rgba(255, 255, 255, 0.06);
}

.eggai-composer textarea {
  width: 100%;
  min-height: 36px;
  max-height: 132px;
  resize: none;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 0;
  outline: 0;
  padding: 7px 0 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.45;
}

.eggai-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.eggai-composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.eggai-composer-disclaimer {
  margin: 8px 2px 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.74rem;
  line-height: 1.45;
}

.eggai-send-button {
  background: rgba(255, 255, 255, 0.11);
}

.eggai-attach-button:hover,
.eggai-send-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.eggai-composer-note,
.eggai-model-chip,
.eggai-topbar {
  display: none;
}

.eggai-sidebar.is-collapsed {
  width: auto;
  padding-inline: 12px;
}

.eggai-sidebar.is-collapsed .eggai-sidebar-primary,
.eggai-sidebar.is-collapsed .eggai-history-wrap {
  display: grid;
}

.eggai-sidebar.is-collapsed .eggai-sidebar-head {
  justify-content: flex-start;
}

.eggai-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top center, rgba(216, 239, 227, 0.06), transparent 26%),
    rgba(4, 4, 5, 0.82);
}

.eggai-guard-card {
  width: min(100%, 520px);
  padding: 34px 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.eggai-guard-card h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.eggai-guard-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.eggai-guard-card .primary-button,
.eggai-guard-card .ghost-button {
  min-width: 180px;
  justify-content: center;
}

@media (max-width: 1080px) {
  body.eggai-page {
    overflow-y: auto;
  }

  body.eggai-page main {
    min-height: auto;
    height: auto;
    padding-inline: 16px;
    overflow: visible;
  }

  .eggai-section {
    height: auto;
    min-height: calc(100vh - 124px);
  }

  .eggai-shell,
  .eggai-app {
    min-height: calc(100vh - 124px);
  }

  .eggai-workspace {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .eggai-sidebar {
    grid-template-rows: auto auto minmax(110px, 220px);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .eggai-stage {
    padding-inline: 18px;
  }
}

@media (max-width: 820px) {
  .eggai-section {
    min-height: calc(100vh - 118px);
  }

  .eggai-workspace {
    border-radius: 22px;
  }

  .eggai-sidebar,
  .eggai-stage {
    padding: 14px;
  }

  .eggai-message-list {
    padding-right: 4px;
    padding-left: 0;
  }

  .eggai-message {
    gap: 10px;
  }

  .eggai-message-stack,
  .eggai-message-bubble,
  .eggai-composer-shell {
    max-width: 100%;
    width: 100%;
  }

  .eggai-composer {
    padding: 10px 12px 10px 14px;
    border-radius: 24px;
  }

  .eggai-gate {
    padding: 14px;
  }

  .eggai-guard-card {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .eggai-sidebar.is-collapsed {
    width: 100%;
    padding-inline: 14px;
  }

  .eggai-sidebar.is-collapsed .eggai-sidebar-head {
    justify-content: space-between;
  }

  .eggai-sidebar.is-collapsed .eggai-sidebar-primary,
  .eggai-sidebar.is-collapsed .eggai-history-wrap {
    display: grid;
  }
}

body.eggai-page main {
  max-width: 100%;
  padding-inline: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 11, 0.58), rgba(5, 7, 7, 0.7)),
    radial-gradient(circle at top left, rgba(197, 151, 114, 0.12), transparent 34%),
    radial-gradient(circle at right, rgba(108, 166, 134, 0.08), transparent 28%);
}

.eggai-section,
.eggai-app,
.eggai-shell,
.eggai-workspace {
  width: 100%;
  max-width: 100%;
}

.eggai-section,
.eggai-app,
.eggai-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 12, 11, 0.58), rgba(5, 7, 7, 0.7)),
    radial-gradient(circle at top left, rgba(197, 151, 114, 0.12), transparent 34%),
    radial-gradient(circle at right, rgba(108, 166, 134, 0.08), transparent 28%);
}

.eggai-workspace {
  grid-template-columns: minmax(292px, 332px) minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

.eggai-shell {
  width: 100%;
  max-width: none;
}

.eggai-sidebar {
  min-width: 0;
  overflow: hidden;
}

.eggai-sidebar-head {
  gap: 10px;
  align-items: center;
}

.eggai-sidebar-head-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.eggai-sidebar-home {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.eggai-sidebar-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eggai-sidebar-brand {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eggai-inline-tool {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.eggai-inline-tool:hover {
  background: transparent;
  border-color: transparent;
}

.eggai-sidebar-action,
.eggai-history-item,
.eggai-history-group-toggle,
.eggai-search-result,
.eggai-copy-button {
  overflow: hidden;
}

.eggai-history-wrap {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
}

.eggai-history-label {
  margin-bottom: 12px;
}

.eggai-history-rail {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.eggai-history-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.eggai-history-group {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.eggai-history-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eggai-history-group-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eggai-history-group-toggle i {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eggai-history-group.is-collapsed .eggai-history-group-toggle i {
  transform: rotate(-90deg);
}

.eggai-history-group-body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.eggai-history-group.is-collapsed .eggai-history-group-body {
  grid-template-rows: 0fr;
  opacity: 0.28;
}

.eggai-history-group-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.eggai-history-item {
  min-height: 48px;
  padding-right: 14px;
}

.eggai-stage {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.eggai-stage-intro,
.eggai-message-list,
.eggai-composer-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.eggai-message-list {
  padding-inline: 0;
}

.eggai-message {
  width: 100%;
}

.eggai-message-stack {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.eggai-message.is-user .eggai-message-stack {
  margin-left: auto;
  margin-right: 0;
}

.eggai-message.is-assistant .eggai-message-stack {
  margin-left: 0;
  margin-right: 0;
}

.eggai-message-bubble {
  width: 100%;
  max-width: none;
}

.eggai-message-markdown {
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.72;
  word-break: break-word;
}

.eggai-message-markdown > *:first-child {
  margin-top: 0;
}

.eggai-message-markdown > *:last-child {
  margin-bottom: 0;
}

.eggai-message-markdown p,
.eggai-message-markdown ul,
.eggai-message-markdown ol,
.eggai-message-markdown pre,
.eggai-message-markdown blockquote,
.eggai-message-markdown hr,
.eggai-message-markdown h1,
.eggai-message-markdown h2,
.eggai-message-markdown h3,
.eggai-message-markdown h4 {
  margin: 0 0 12px;
}

.eggai-message-markdown h1,
.eggai-message-markdown h2,
.eggai-message-markdown h3,
.eggai-message-markdown h4 {
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.98);
}

.eggai-message-markdown h1 {
  font-size: 1.46rem;
}

.eggai-message-markdown h2 {
  font-size: 1.28rem;
}

.eggai-message-markdown h3 {
  font-size: 1.12rem;
}

.eggai-message-markdown h4 {
  font-size: 1rem;
}

.eggai-message-markdown ul,
.eggai-message-markdown ol {
  padding-left: 22px;
}

.eggai-message-markdown li + li {
  margin-top: 6px;
}

.eggai-message-markdown code {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92em;
}

.eggai-message-markdown a {
  color: #d8ffe6;
}

.eggai-message-markdown blockquote {
  padding: 10px 14px;
  border-left: 2px solid rgba(216, 255, 230, 0.36);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.035);
}

.eggai-message-markdown blockquote p {
  color: rgba(255, 255, 255, 0.78);
}

.eggai-message-markdown hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.eggai-message-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.eggai-message.is-user .eggai-message-actions {
  justify-content: flex-end;
}

.eggai-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.eggai-copy-button.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.eggai-copy-button:hover {
  color: rgba(255, 255, 255, 0.96);
}

.eggai-copy-button.is-copied {
  color: #d9fbe5;
}

.eggai-message.is-user .eggai-copy-button {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.eggai-message.is-user:hover .eggai-copy-button,
.eggai-message.is-user:focus-within .eggai-copy-button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eggai-thinking {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 6px 0 4px;
  color: rgba(255, 255, 255, 0.74);
  overflow: hidden;
  opacity: 0;
  animation: eggaiThinkingFadeIn 220ms ease forwards;
}

.eggai-thinking span {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.56) 24%, rgba(255,255,255,0.96) 50%, rgba(255,255,255,0.56) 76%, rgba(255,255,255,0.3) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: eggaiThinkingShine 3.4s ease-in-out infinite;
}

.eggai-message:not(.is-thinking) .eggai-message-bubble {
  animation: none;
}

@keyframes eggaiThinkingFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

@keyframes eggaiThinkingShine {
  0% {
    background-position: 200% 50%;
  }

  100% {
    background-position: -100% 50%;
  }
}

@keyframes eggaiMessageReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.eggai-search-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.eggai-search-modal.hidden {
  display: none;
}

.eggai-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.66);
  backdrop-filter: blur(18px);
}

.eggai-search-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: min(78vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 19, 0.86);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.eggai-search-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eggai-search-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.eggai-search-field i {
  color: rgba(255, 255, 255, 0.56);
}

.eggai-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.eggai-search-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.eggai-search-caption {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eggai-search-results {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 0;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.eggai-search-results::-webkit-scrollbar {
  width: 8px;
}

.eggai-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.eggai-search-results::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.eggai-search-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.eggai-search-result span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eggai-search-result small {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
}

.eggai-search-result:hover {
  background: rgba(255, 255, 255, 0.08);
}

.eggai-search-empty {
  padding: 18px 2px;
  color: rgba(255, 255, 255, 0.52);
}

.eggai-chat-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
}

.eggai-chat-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 7, 0.64);
  backdrop-filter: blur(10px);
}

.eggai-chat-menu-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 28, 24, 0.96), rgba(13, 17, 15, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.eggai-chat-menu-header {
  margin-bottom: 14px;
}

.eggai-chat-menu-caption {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eggai-chat-menu-actions {
  display: grid;
  gap: 10px;
}

.eggai-chat-menu-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.eggai-chat-menu-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.eggai-chat-menu-action.is-danger {
  color: #ffd7d7;
}

.eggai-chat-menu-action.is-danger:hover {
  border-color: rgba(255, 120, 120, 0.26);
  background: rgba(255, 102, 102, 0.1);
}

@media (max-width: 1080px) {
  .eggai-workspace {
    grid-template-columns: 1fr;
  }

  .eggai-stage {
    padding-inline: 0;
  }
}

@media (max-width: 820px) {
  .eggai-search-modal {
    padding: 14px;
  }

  .eggai-search-dialog {
    padding: 18px;
    border-radius: 22px;
  }

  .eggai-message-list,
  .eggai-composer-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }
}

.eggai-composer-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.eggai-stop-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 148, 130, 0.24);
  background: rgba(255, 122, 122, 0.14);
  color: #ffd7cf;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.eggai-stop-button:hover,
.eggai-stop-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 122, 122, 0.2);
  border-color: rgba(255, 148, 130, 0.38);
}

.eggai-stop-button:disabled {
  opacity: 0.5;
  transform: none;
}

.eggai-stage {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 3vw, 28px);
}

.eggai-stage-intro,
.eggai-message-list,
.eggai-composer-shell {
  width: min(100%, 940px);
  margin-inline: auto;
}

.eggai-message-list {
  padding-inline: clamp(4px, 1vw, 12px);
}

.eggai-message-stack {
  width: auto;
  max-width: min(820px, calc(100% - 56px));
}

.eggai-message.is-user .eggai-message-stack {
  margin-left: auto;
  justify-items: end;
}

.eggai-message.is-assistant .eggai-message-stack {
  margin-right: auto;
}

.eggai-message-bubble {
  width: auto;
  max-width: min(820px, 100%);
}

.eggai-message-markdown pre {
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 10, 9, 0.74);
}

.eggai-message-markdown pre code {
  display: block;
  padding: 0;
  background: transparent;
  white-space: pre;
}

.eggai-search-close,
.eggai-search-result {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.eggai-search-close:hover,
.eggai-search-close:focus-visible,
.eggai-search-result:hover,
.eggai-search-result:focus-visible {
  transform: translateY(-1px);
}

.eggai-search-close:hover,
.eggai-search-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.eggai-chat-menu-modal {
  display: block;
  padding: 0;
  pointer-events: none;
}

.eggai-chat-menu-backdrop {
  background: transparent;
  backdrop-filter: none;
  pointer-events: auto;
}

.eggai-chat-menu-dialog {
  position: fixed;
  z-index: 1;
  width: min(260px, calc(100vw - 16px));
  padding: 12px;
  border-radius: 20px;
  pointer-events: auto;
}

@media (max-width: 1080px) {
  .eggai-stage {
    padding-inline: clamp(12px, 3vw, 20px);
  }
}

@media (max-width: 820px) {
  .eggai-message-list,
  .eggai-composer-shell {
    width: min(100%, 940px);
    max-width: 100%;
  }

  .eggai-message-stack {
    max-width: min(100%, calc(100% - 40px));
  }
}

.eggai-hero-mark {
  width: 96px;
  height: 96px;
  margin-bottom: 26px;
}

.eggai-hero-mark img {
  width: 60px;
  height: 60px;
}

.eggai-stage-intro p {
  max-width: 720px;
}

.eggai-stage {
  padding-inline: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(9, 12, 11, 0.2), rgba(5, 7, 7, 0.28)),
    radial-gradient(circle at top left, rgba(197, 151, 114, 0.12), transparent 34%),
    radial-gradient(circle at right, rgba(108, 166, 134, 0.08), transparent 28%),
    url("./assets/bg-leaves.png");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, top left, right center, center;
  background-size: auto, auto, auto, cover;
}

.eggai-stage-intro,
.eggai-message-list,
.eggai-composer-shell {
  width: min(100%, 980px);
  margin-inline: auto;
}

.eggai-message-list {
  padding-inline: clamp(12px, 2vw, 28px);
}

.eggai-message {
  padding-inline: 0;
}

.eggai-message-stack {
  width: 100%;
  max-width: min(760px, calc(100% - 72px));
}

.eggai-message.is-user .eggai-message-stack {
  margin-left: auto;
  margin-right: auto;
  justify-items: end;
}

.eggai-message.is-assistant .eggai-message-stack {
  margin-left: 0;
  margin-right: auto;
}

.eggai-message-bubble {
  width: auto;
  max-width: 100%;
}

.eggai-composer-shell {
  padding-inline: clamp(12px, 2vw, 28px);
}

.eggai-composer {
  max-width: 760px;
  margin-inline: auto;
}

.eggai-composer-row {
  align-items: end;
}

.eggai-send-button.is-busy {
  border-radius: 12px;
  background: rgba(255, 122, 122, 0.16);
  color: #ffe1db;
}

.eggai-send-button.is-busy i::before {
  content: "\f04d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.eggai-stop-button {
  display: none;
}

.eggai-stop-button.hidden {
  display: none;
}

.eggai-search-close {
  background: transparent;
}

.eggai-search-close:hover,
.eggai-search-close:focus-visible {
  background: transparent;
  color: rgba(255, 255, 255, 1);
}

.eggai-search-caption {
  margin-bottom: 28px;
}

.eggai-search-results {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.eggai-search-results::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.eggai-sidebar-action {
  background: transparent;
}

.eggai-sidebar-action:hover,
.eggai-sidebar-action:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.98);
}

.eggai-sidebar-action:hover span,
.eggai-sidebar-action:hover i,
.eggai-sidebar-action:focus-visible span,
.eggai-sidebar-action:focus-visible i {
  color: rgba(255, 255, 255, 0.98);
}

.eggai-history-item:first-child {
  margin-top: 4px;
}

.eggai-history-item:first-child:hover,
.eggai-history-item:first-child:focus-visible {
  transform: none;
}

.eggai-chat-menu-modal.hidden {
  display: none;
}

.eggai-chat-menu-dialog {
  transform-origin: top left;
  animation: eggaiContextMenuIn 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes eggaiContextMenuIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

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

@media (max-width: 820px) {
  .eggai-stage {
    padding-inline: 12px;
  }

  .eggai-stage-intro,
  .eggai-message-list,
  .eggai-composer-shell {
    width: 100%;
  }

  .eggai-message-list,
  .eggai-composer-shell {
    padding-inline: 0;
  }

  .eggai-message-stack,
  .eggai-composer {
    max-width: 100%;
  }
}

.eggai-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.eggai-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 10, 9, 0.44), rgba(4, 6, 6, 0.58));
  backdrop-filter: blur(22px) saturate(125%);
}

.eggai-stage > * {
  position: relative;
  z-index: 1;
}

.eggai-stage-intro,
.eggai-message-list,
.eggai-composer-shell {
  width: min(100%, 1180px);
}

.eggai-message-list {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline: clamp(18px, 2.6vw, 36px);
}

.eggai-message,
.eggai-message-stack,
.eggai-message-bubble,
.eggai-message-markdown {
  min-width: 0;
}

.eggai-message {
  overflow-x: hidden;
}

.eggai-message-stack {
  max-width: min(880px, calc(100% - 84px));
  overflow-x: hidden;
}

.eggai-message-bubble {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 31, 28, 0.78), rgba(15, 21, 18, 0.88));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.eggai-message.is-user .eggai-message-bubble {
  background: linear-gradient(180deg, rgba(217, 255, 229, 0.16), rgba(184, 243, 208, 0.12));
}

.eggai-message-markdown {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eggai-message-markdown pre {
  max-width: 100%;
  overflow: hidden;
}

.eggai-message-markdown pre code {
  white-space: pre-wrap;
  word-break: break-word;
}

.eggai-composer-shell {
  padding-inline: clamp(18px, 2.6vw, 36px);
}

.eggai-composer {
  width: 100%;
  max-width: 1280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 36, 33, 0.72), rgba(22, 27, 24, 0.84));
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.eggai-composer textarea {
  min-height: 24px;
  height: 24px;
  max-height: 132px;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.5;
  overflow-y: auto;
}

.eggai-history-group {
  gap: 10px;
  margin-bottom: 16px;
}

.eggai-history-group-toggle {
  transition: color 220ms ease, opacity 220ms ease;
}

.eggai-history-group-toggle i {
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eggai-history-group-body {
  overflow: hidden;
  transform-origin: top;
  transition:
    grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eggai-history-group.is-collapsed .eggai-history-group-body {
  transform: translateY(-4px);
}

.eggai-send-button.hidden,
.eggai-stop-button.hidden {
  display: none;
}

.eggai-stop-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.96);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.eggai-stop-button:hover,
.eggai-stop-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.eggai-stop-button:disabled {
  opacity: 0.55;
}

.eggai-stop-button i {
  font-size: 0.8rem;
  transform: translateY(1.5px);
}

.eggai-stop-button i::before {
  content: "\f04d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.eggai-send-button.is-busy,
.eggai-send-button.is-busy i::before {
  content: none;
}

.eggai-code-block {
  position: relative;
}

.eggai-code-copy-button,
.eggai-inline-code-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.eggai-code-copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.eggai-inline-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eggai-inline-code-copy {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.eggai-code-copy-button:hover,
.eggai-code-copy-button:focus-visible,
.eggai-inline-code-copy:hover,
.eggai-inline-code-copy:focus-visible {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.14);
}

.eggai-code-copy-button.is-copied,
.eggai-inline-code-copy.is-copied {
  color: #d9fbe5;
}

@media (max-width: 820px) {
  .eggai-stage-intro,
  .eggai-message-list,
  .eggai-composer-shell,
  .eggai-composer {
    width: 100%;
    max-width: 100%;
  }

  .eggai-message-list,
  .eggai-composer-shell {
    padding-inline: 0;
  }

  .eggai-message-stack {
    max-width: min(100%, calc(100% - 44px));
  }

  .eggai-composer textarea {
    min-height: 24px;
    height: 24px;
  }
}

.eggai-composer-row {
  align-items: center;
}

.eggai-composer textarea {
  min-height: 38px;
  height: 38px;
  box-sizing: border-box;
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 1.35;
}

.eggai-send-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.eggai-send-button:not(:disabled),
.eggai-attach-button:not(:disabled),
.eggai-stop-button:not(:disabled) {
  cursor: pointer;
}

.eggai-hero-mark {
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.eggai-hero-mark img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
}

.eggai-history-group-toggle {
  color: rgba(255, 255, 255, 0.7);
}

.eggai-history-group-toggle-main {
  gap: 10px;
}

.eggai-history-group-toggle i {
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.eggai-history-group-body {
  --eggai-history-group-height: 0px;
  display: block;
  max-height: var(--eggai-history-group-height);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  transform-origin: top;
  transition:
    max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eggai-history-group.is-collapsed .eggai-history-group-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scaleY(0.96);
}

.eggai-history-group.is-collapsed .eggai-history-group-toggle i {
  transform: rotate(-90deg);
}

.eggai-message-list {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.eggai-message {
  align-items: flex-start;
  overflow: visible;
}

.eggai-message-stack {
  width: min(880px, calc(100% - 84px));
  max-width: min(880px, calc(100% - 84px));
  min-width: 0;
  overflow: visible;
}

.eggai-message.is-user .eggai-message-stack {
  justify-items: end;
}

.eggai-message.is-assistant .eggai-message-stack {
  justify-items: start;
}

.eggai-message-bubble {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  overflow: clip;
}

.eggai-message-markdown,
.eggai-message-markdown > *,
.eggai-message-markdown pre,
.eggai-message-markdown code {
  max-width: 100%;
}

.eggai-message-markdown pre {
  overflow: hidden;
}

.eggai-message-markdown pre code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.eggai-message-actions {
  width: 100%;
}

.eggai-message.is-user .eggai-message-actions {
  justify-content: flex-end;
}

.eggai-message-list,
.eggai-history-rail,
.eggai-message-list *,
.eggai-history-rail * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.eggai-message-list::-webkit-scrollbar,
.eggai-history-rail::-webkit-scrollbar,
.eggai-message-markdown pre::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legal-modal__dialog {
  background:
    linear-gradient(180deg, rgba(6, 12, 9, 0.94), rgba(4, 9, 6, 0.97)),
    rgba(4, 8, 6, 0.96);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-modal__dialog::before {
  background: rgba(2, 6, 4, 0.28);
}

.tool-card.reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.site-footer-bottom {
  justify-content: flex-start;
  gap: 18px;
}

.site-footer-bottom > p:first-child + .site-footer-online {
  margin-left: 10px;
}

.site-footer-bottom-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-bottom > p:last-child {
  margin-left: auto;
}

.admin-ai-request-list {
  display: grid;
  gap: 14px;
}

.admin-ai-request-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.admin-ai-request-card:hover {
  transform: translateY(-2px);
  border-color: rgba(210, 255, 222, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.admin-ai-request-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: rgba(247, 251, 248, 0.94);
}

.admin-ai-conversation-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-ai-conversation-meta-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.admin-ai-conversation-meta-card strong {
  color: rgba(247, 251, 248, 0.96);
}

.admin-ai-conversation-thread {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-ai-message {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-ai-message--assistant {
  background: linear-gradient(180deg, rgba(215, 255, 225, 0.08), rgba(255, 255, 255, 0.04));
}

.admin-ai-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-ai-message-head strong {
  color: rgba(247, 251, 248, 0.96);
}

.admin-ai-message-body {
  color: rgba(247, 251, 248, 0.94);
  line-height: 1.7;
}

.admin-ai-message-body pre,
.eggai-message-markdown pre {
  margin: 12px 0;
}

.eggai-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.eggai-attachment-chip--message {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.eggai-attachment-chip__meta {
  display: grid;
  gap: 2px;
}

.eggai-attachment-chip__meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.eggai-history-group-toggle i {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eggai-history-group-body {
  overflow: hidden;
  transition:
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 220ms ease;
}

@media (max-width: 820px) {
  .eggai-message-stack {
    width: min(100%, calc(100% - 44px));
    max-width: min(100%, calc(100% - 44px));
  }

  .eggai-composer textarea {
    min-height: 38px;
    height: 38px;
  }
}

.maintenance-page {
  min-height: 100vh;
}

.maintenance-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.maintenance-card {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 40px);
  border-radius: 36px;
  text-align: center;
}

.maintenance-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.maintenance-card p {
  margin: 0 auto 12px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.72;
}

.maintenance-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.eggai-message-list {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: 20px;
}

.eggai-composer-disclaimer {
  width: 100%;
  margin: 10px auto 0;
  text-align: center;
}

.eggai-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 6px 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, transform 180ms ease;
}

.eggai-history-card.active {
  background: rgba(219, 255, 231, 0.12);
  box-shadow: none;
}

.eggai-history-item {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.eggai-history-item:hover,
.eggai-history-item.active,
.eggai-history-card.active .eggai-history-item {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.eggai-history-item,
.eggai-history-item small,
.eggai-history-item strong {
  color: rgba(247, 251, 248, 0.94);
}

.eggai-history-item strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.eggai-history-item-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  align-self: center;
  white-space: nowrap;
}

.eggai-history-item-meta small {
  display: inline-flex;
  align-items: center;
  height: 18px;
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.48);
}

.eggai-history-item-menu {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.56);
  opacity: 0.72;
}

.eggai-history-item-menu:hover,
.eggai-history-item-menu:focus-visible {
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transform: none;
}

.eggai-history-card:hover .eggai-history-item-menu,
.eggai-history-card.active .eggai-history-item-menu {
  opacity: 1;
}

.eggai-history-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.eggai-history-rail {
  gap: 8px;
}

.eggai-history-group {
  gap: 8px;
  margin-bottom: 12px;
}

.eggai-history-group-list {
  gap: 8px;
}

.eggai-history-item:first-child {
  margin-top: 0;
}

.eggai-message.is-assistant .eggai-message-stack {
  width: min(960px, calc(100% - 84px));
  max-width: min(960px, calc(100% - 84px));
}

.eggai-message-bubble.is-plain,
.eggai-message.is-assistant .eggai-message-bubble {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding-inline: 0;
}

.eggai-message.is-user .eggai-message-bubble {
  width: fit-content;
  max-width: min(100%, 760px);
}

.eggai-message-attachments.is-user {
  justify-content: flex-end;
}

.eggai-message-attachments.is-assistant {
  justify-content: flex-start;
}

.eggai-attachment-chip--message {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eggai-chat-menu-modal {
  display: block;
  pointer-events: none;
  padding: 0;
}

.eggai-chat-menu-modal:not(.hidden) {
  pointer-events: auto;
}

.eggai-chat-menu-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
}

.eggai-chat-menu-dialog {
  position: fixed;
  z-index: 1;
  min-width: 168px;
  width: 168px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(48, 48, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.eggai-chat-menu-header {
  display: none;
}

.eggai-chat-menu-actions {
  display: grid;
  gap: 2px;
}

.eggai-chat-menu-action {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  font-size: 0.95rem;
  transition: background 140ms ease, color 140ms ease;
}

.eggai-chat-menu-action i {
  width: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.eggai-chat-menu-action:hover,
.eggai-chat-menu-action:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

.eggai-chat-menu-action.is-danger {
  color: #ff6a63;
}

.eggai-chat-menu-action.is-danger i {
  color: #ff6a63;
}

.eggai-chat-menu-action.is-danger:hover,
.eggai-chat-menu-action.is-danger:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.admin-toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  height: 32px;
  min-width: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.admin-toggle-row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f6fff9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease;
}

.admin-toggle-row input[type="checkbox"]:checked {
  background: rgba(142, 231, 177, 0.36);
  border-color: rgba(173, 255, 202, 0.38);
}

.admin-toggle-row input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.admin-checkbox-row input[type="checkbox"],
.admin-tool-tag-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  cursor: pointer;
}

.admin-checkbox-row input[type="checkbox"]::before,
.admin-tool-tag-option input[type="checkbox"]::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  background: rgba(160, 245, 190, 0.96);
  transform: scale(0);
  transition: transform 160ms ease;
}

.admin-checkbox-row input[type="checkbox"]:checked::before,
.admin-tool-tag-option input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.admin-modal {
  padding: 30px 20px;
}

.admin-modal-card {
  width: min(1040px, calc(100vw - 40px));
  max-height: min(88dvh, calc(100vh - 40px));
  padding: 36px 32px 30px;
  background: linear-gradient(180deg, rgba(14, 22, 18, 0.92), rgba(8, 12, 10, 0.95));
  backdrop-filter: blur(52px) saturate(180%);
  -webkit-backdrop-filter: blur(52px) saturate(180%);
}

.admin-modal-compact {
  width: min(620px, calc(100vw - 40px));
}

.admin-ai-request-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
}

.admin-ai-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-ai-request-top strong,
.admin-ai-request-top span {
  color: rgba(247, 251, 248, 0.98);
}

.admin-ai-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-ai-request-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-ai-request-summary {
  margin-top: 0;
}

.admin-ai-request-card p {
  margin: 0;
  color: rgba(247, 251, 248, 0.78);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .eggai-message.is-assistant .eggai-message-stack {
    width: min(100%, calc(100% - 44px));
    max-width: min(100%, calc(100% - 44px));
  }

  .admin-modal-card,
  .admin-modal-compact {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 26px 18px 22px;
  }
}
.captcha-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 78px;
  margin: 4px 0 8px;
  overflow: hidden;
}

.captcha-box > div {
  margin: 0 auto;
}

.tool-password-field {
  gap: 12px;
}

.tool-password-field .tool-password-copy {
  margin-left: auto;
}

/* Main-page Market entry and final cabinet/category synchronization. */
.market-hero-button{display:inline-flex!important;align-items:center!important;gap:9px!important}.pro-locked-note{display:none!important}
