/* ===== Gorilla Solutions Theme ===== */
/* Unified theme for all pages in the Kratos Self-Service UI */
/* Consolidates: gorilla-theme.css, content-layout.css, auth-layout.css, ui.ts inline <style> */

/* ========================================================================
   1. CUSTOM PROPERTIES (:root)
   ======================================================================== */
:root {
  /* Brand palette */
  --color-off-white: #ffffffcc;
  --color-rich-black: #131313;
  --color-sheer-white: #ffffff1f;
  --color-primary-100: #e4d9ff;
  --color-primary-200: #cdb4ff;
  --color-primary-400: #9666ff;
  --color-primary-500: #6b37d9;
  --color-primary-600: #5c2bb8;
  --color-accent-500: #f97316;

  /* Surfaces */
  --page-bg: #121212;
  --card-bg: #1a1a1a;
  --card-bg-elevated: #1e1e1e;

  /* Shadows */
  --shadow-glow: 0 0 15px rgba(107, 55, 217, .5);
  --shadow-glow-light: 0 0 8px rgba(138, 92, 245, .2);
  --shadow-button: 0 4px 14px 0 rgba(107, 55, 217, .25);
  --shadow-card-hover: 0 8px 24px rgba(107, 55, 217, .15), 0 0 0 1px rgba(150, 102, 255, .3);

  /* Hero */
  --hero-fade-x: clamp(10px, 3vw, 48px);
  --hero-fade-opacity: .55;

  /* Transitions */
  --transition-smooth: cubic-bezier(.4, 0, .2, 1);

  /* Layout dimensions */
  --gs-sidebar-w: 300px;
  --gs-content-max-w: 1400px;
  --gs-hero-pad: clamp(20px, 4vw, 48px);

}

/* Ory elements-markup dark theme overrides
   Must be on `body` (not `:root`) because theme.css from @ory/elements-markup
   applies defaultLightTheme vars on `body`, which overrides `:root` values. */
body {
  --ory-theme-background-canvas: #121212;
  --ory-theme-background-surface: #1a1a1a;
  --ory-theme-background-subtle: #252525;
  --ory-theme-foreground-def: #ffffffcc;
  --ory-theme-foreground-muted: #cdb4ff;
  --ory-theme-foreground-subtle: #9E9E9E;
  --ory-theme-foreground-disabled: #666;
  --ory-theme-foreground-on-dark: #FFFFFF;
  --ory-theme-foreground-on-accent: #FFFFFF;
  --ory-theme-foreground-on-disabled: #888;
  --ory-theme-border-def: #ffffff1f;
  --ory-theme-input-background: #252525;
  --ory-theme-input-disabled: #333;
  --ory-theme-input-placeholder: #888;
  --ory-theme-input-text: #ffffffcc;
  --ory-theme-text-def: #ffffffcc;
  --ory-theme-text-disabled: #666;
  --ory-theme-accent-def: #9666ff;
  --ory-theme-accent-muted: #cdb4ff;
  --ory-theme-accent-emphasis: #6b37d9;
  --ory-theme-accent-disabled: #333;
  --ory-theme-accent-subtle: rgba(107, 55, 217, .15);
  --ory-theme-error-def: #ff6b8a;
  --ory-theme-error-subtle: rgba(156, 15, 46, .15);
  --ory-theme-error-muted: #e95c7b;
  --ory-theme-error-emphasis: #ff4d6a;
  --ory-theme-success-emphasis: #22c55e;
}

/* ========================================================================
   2. BASE STYLES
   ======================================================================== */
body {
  background: var(--page-bg) !important;
  color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Dark scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 102, 255, .25) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 102, 255, .25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 102, 255, .4); }

/* ========================================================================
   3. LAYOUT (fixed sidebar + offset content)
   ======================================================================== */
.gs-layout {
  min-height: 100vh;
}

.gs-layout__content {
  /* Offset content to the right of the fixed sidebar.
     sidebar left(12px) + sidebar width + gap(12px) */
  margin-left: calc(var(--gs-sidebar-w) + 24px);
  overflow-x: hidden;
}

/* ========================================================================
   4. SIDEBAR COMPONENT (moved from ui.ts inline <style>)
   ======================================================================== */

/* Sidebar container */
.gs-sidebar {
  position: fixed;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: var(--gs-sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--card-bg);
  border: 1px solid var(--color-sheer-white);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);

  /* Scrollable but no visible bar; clip prevents shadow bleed */
  overflow-y: auto;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.gs-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Brand area */
.gs-side__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(107, 55, 217, .12), rgba(249, 115, 22, .08));
  border: 1px solid var(--color-sheer-white);
}

/* Sidebar-scoped brand mark (smaller than auth page) */
.gs-sidebar .gs-auth-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: 0 3px 12px rgba(107, 55, 217, .3);
}
.gs-sidebar .gs-auth-brand__name {
  font-size: 15px;
}
.gs-sidebar .gs-auth-brand__sub {
  font-size: 11px;
}

/* Sidebar-scoped badge (smaller than the hero badge) */
.gs-sidebar .gs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  line-height: 1;
  font-size: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--color-off-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 3px rgba(0, 0, 0, .2);
}

.gs-brand__title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1px;
  color: var(--color-off-white);
}

/* Sections */
.gs-side__section {
  padding: 0;
}

.gs-side__section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 2px;
  color: var(--color-primary-200);
}

.gs-section-title {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .5;
}

.gs-side__divider {
  height: 1px;
  margin: 10px 6px;
  background: linear-gradient(to right, transparent, var(--color-sheer-white), transparent);
}

/* List & items */
.gs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-off-white);
  background: transparent;
  border: 1px solid transparent;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.gs-item:hover {
  border-color: rgba(150, 102, 255, .25);
  background: rgba(107, 55, 217, .08);
}

.gs-item.is-active {
  border-color: rgba(150, 102, 255, .35);
  background: linear-gradient(135deg, rgba(107, 55, 217, .22), rgba(107, 55, 217, .10));
  color: #fff;
}

.gs-item.is-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.gs-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 6px;
  background: currentColor;
  opacity: .4;
}

.gs-item:hover .gs-dot {
  opacity: .7;
}

.gs-item.is-active .gs-dot {
  background: var(--color-primary-400);
  opacity: 1;
}

.gs-item__label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .1px;
}

.gs-item.is-active .gs-item__label {
  font-weight: 600;
}

.gs-ext {
  margin-left: auto;
  opacity: .6;
  font-size: 12px;
}

/* ========================================================================
   5. HERO SECTION
   ======================================================================== */
.gs-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 var(--gs-hero-pad);
}

.gs-section {
  padding: 32px var(--gs-hero-pad) 0;
}

.gs-section .gs-h2 {
  margin-bottom: 16px;
}

.gs-shell {
  overflow-x: hidden;
}

.gs-hero {
  position: relative;
  margin: 24px 12px 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% 20%, rgba(107, 55, 217, .18), transparent 70%),
    radial-gradient(ellipse 700px 400px at 85% 30%, rgba(150, 102, 255, .10), transparent 65%),
    radial-gradient(ellipse 500px 300px at 60% 80%, rgba(249, 115, 22, .06), transparent 60%),
    linear-gradient(160deg, #1a1228 0%, #1c1530 35%, #1a1428 65%, #1a1520 100%);
  padding: 64px 0;
}

/* Subtle dot-grid texture overlay */
.gs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image:
    radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image:
    radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

/* Bottom fade (smooth transition into the page) */
.gs-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, var(--page-bg) 100%);
}

/* ========================================================================
   6. TYPOGRAPHY
   ======================================================================== */
.gs-h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}

.gs-h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.gs-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--color-primary-100);
  line-height: 1.6;
}

.gs-muted {
  margin: 0;
  color: var(--color-primary-200);
}

/* ========================================================================
   7. CARDS
   ======================================================================== */
.gs-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .gs-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.gs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(107, 55, 217, .08), rgba(249, 115, 22, .04)),
    var(--card-bg);
  border: 1px solid var(--color-sheer-white);
  color: var(--color-off-white);
  transition:
    transform .25s var(--transition-smooth),
    box-shadow .25s var(--transition-smooth),
    border-color .25s var(--transition-smooth),
    background .25s var(--transition-smooth);
}

.gs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(150, 102, 255, .4);
  box-shadow: var(--shadow-card-hover);
  background:
    linear-gradient(135deg, rgba(107, 55, 217, .14), rgba(249, 115, 22, .06)),
    var(--card-bg-elevated);
}

.gs-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(107, 55, 217, .15), rgba(107, 55, 217, .05));
  border: 1px solid rgba(150, 102, 255, .2);
  color: var(--color-primary-200);
  transition: border-color .25s var(--transition-smooth), box-shadow .25s var(--transition-smooth);
}

.gs-card:hover .gs-card__icon {
  border-color: rgba(150, 102, 255, .4);
  box-shadow: 0 0 12px rgba(107, 55, 217, .2);
}

.gs-card__title {
  font-weight: 800;
}

.gs-card__desc {
  font-size: 13px;
  opacity: .9;
  line-height: 1.5;
}

.gs-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}

.gs-card__chev {
  transition: transform .25s var(--transition-smooth);
}

.gs-card:hover .gs-card__chev {
  transform: translateX(4px);
}

/* ========================================================================
   8. SESSION PAGE
   ======================================================================== */
.gs-session-screen {
  /* Container for session page specific styles */
}

.gs-session-screen .gs-h1,
.gs-session-screen .gs-h2 {
  color: #fff;
}

/* Session page specific wider layout */
.gs-session-screen .gs-wrap-content {
  max-width: 1600px;
}

.gs-session-code-box {
  padding: 18px;
  border-radius: 14px;
  min-height: 88px;
  background:
    linear-gradient(135deg, rgba(107, 55, 217, .06), rgba(249, 115, 22, .03)),
    var(--card-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}

.gs-session-code-box pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Helvetica Neue", monospace;
  font-size: 13px;
  color: var(--color-primary-200);
  white-space: pre-wrap;
  word-break: break-all;
}

.gs-session-code-box code {
  display: block;
}

.gs-traits-box {
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(107, 55, 217, .06), rgba(249, 115, 22, .03)),
    var(--card-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-trait-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gs-mono-caption {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Helvetica Neue", monospace;
  font-size: 13px;
  line-height: 1.2;
  color: var(--color-primary-100);
  -webkit-font-smoothing: antialiased;
}

.gs-mono-caption.label {
  color: var(--color-off-white);
  opacity: .95;
  font-weight: 700;
}

.gs-mono-caption.value {
  color: var(--color-primary-200);
  opacity: .95;
  font-weight: 500;
}

.gs-traits-box-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(107, 55, 217, 0.08));
  border-radius: 1px;
  margin-top: 8px;
}

.gs-divider-left {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  margin: 22px 0;
  border-radius: 2px;
}

.gs-session-info-text {
  margin-top: 8px;
  color: var(--color-off-white);
  opacity: 0.9;
  max-width: 60ch;
}

/* ========================================================================
   9. BUTTONS
   ======================================================================== */
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--transition-smooth);
  line-height: 1.4;
}

.gs-btn--primary {
  background: var(--color-primary-500);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-button);
}

.gs-btn--primary:hover {
  background: var(--color-primary-400);
  box-shadow: var(--shadow-glow-light);
}

.gs-btn--ghost {
  background: transparent;
  border: 1px solid var(--color-sheer-white);
  color: var(--color-off-white);
  font-weight: 500;
}

.gs-btn--ghost:hover {
  border-color: var(--color-primary-400);
  color: #fff;
}

/* ========================================================================
   10. ERROR / LOGOUT CARD LAYOUTS
   ======================================================================== */
.gs-card--centered {
  max-width: 500px;
  margin: 40px auto;
  padding: 24px;
}

.gs-card--narrow {
  max-width: 400px;
  margin: 40px auto;
  padding: 24px;
}

.gs-card__body {
  margin-bottom: 20px;
}

.gs-card__body .gs-lead {
  margin-bottom: 12px;
}

.gs-card__body .gs-muted {
  font-size: 13px;
}

.gs-card__actions {
  display: flex;
  gap: 12px;
}

.gs-card__actions--center {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.gs-card__heading {
  margin-bottom: 16px;
  color: var(--color-accent-500);
}

.gs-card__subheading {
  margin-bottom: 24px;
}

/* ========================================================================
   10b. SETTINGS PAGE
   ======================================================================== */

/* Compact hero for settings (less vertical space than welcome) */
.gs-hero--compact {
  padding: 40px 0 32px;
}

/* Settings card */
.gs-settings-card {
  padding: 24px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(107, 55, 217, .06), rgba(249, 115, 22, .03)),
    var(--card-bg);
  border: 1px solid var(--color-sheer-white);
  margin-bottom: 20px;
}

.gs-settings-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.gs-settings-card__header .gs-h2 {
  margin: 0;
}

.gs-settings-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(107, 55, 217, .15), rgba(107, 55, 217, .05));
  border: 1px solid rgba(150, 102, 255, .2);
}

/* Settings form */
.gs-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gs-settings-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Field group */
.gs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gs-field__label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffffde;
  letter-spacing: .1px;
}

.gs-field__input {
  box-sizing: border-box;
  width: 100%;
  padding: .625rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-sheer-white);
  background: var(--card-bg-elevated);
  color: var(--color-off-white);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s var(--transition-smooth);
}

.gs-field__input:hover {
  border-color: rgba(150, 102, 255, .35);
}

.gs-field__input:focus {
  border-color: var(--color-primary-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 55, 217, .15);
}

.gs-field__input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.gs-field__message {
  font-size: 12px;
}

.gs-field__message--error {
  color: #ff6b8a;
}

.gs-field__message--info {
  color: var(--color-primary-200);
}

/* Social sign-in buttons (no input fields, just actions) */
.gs-btn--social {
  background: transparent;
  border: 1px solid var(--color-sheer-white);
  color: var(--color-off-white);
  font-weight: 500;
  width: 100%;
  justify-content: center;
}

.gs-btn--social:hover {
  border-color: rgba(150, 102, 255, .4);
  color: #fff;
  background: rgba(107, 55, 217, .08);
}

/* ========================================================================
   11. AUTH LAYOUT (centered, no sidebar)
   ======================================================================== */
.gs-auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  padding-bottom: 5.5rem;
}

/* Auth branding above sign-in card */
.gs-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.gs-auth-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-400));
  box-shadow: 0 4px 16px rgba(107, 55, 217, .35);
  flex-shrink: 0;
}

.gs-auth-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gs-auth-brand__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.gs-auth-brand__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary-200);
  letter-spacing: .3px;
}

/* ========================================================================
   11b. CONSENT PAGE CHECKBOX STYLING
   ======================================================================== */
.gs-auth-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(150, 102, 255, .35);
  border-radius: 4px;
  background: var(--card-bg-elevated);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all .15s ease;
  vertical-align: middle;
}
.gs-auth-container input[type="checkbox"]:hover {
  border-color: var(--color-primary-400);
  background: rgba(107, 55, 217, .1);
}
.gs-auth-container input[type="checkbox"]:checked {
  background: var(--color-primary-500);
  border-color: var(--color-primary-400);
}
.gs-auth-container input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gs-auth-container input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(107, 55, 217, .25);
  outline-offset: 2px;
}

/* ========================================================================
   12. FOOTER / ORY BRANDING (minimize)
   ======================================================================== */
.powered-by,
[class*="powered-by"],
footer small,
footer .ory-branding,
footer [data-testid="ory-branding"] {
  opacity: .25;
  font-size: 11px;
  transition: opacity .2s var(--transition-smooth);
}

.powered-by:hover,
[class*="powered-by"]:hover,
footer small:hover,
footer .ory-branding:hover,
footer [data-testid="ory-branding"]:hover {
  opacity: .5;
}

/* ========================================================================
   13. ACCESSIBILITY
   ======================================================================== */
.gs-session-screen a:focus,
.gs-session-screen button:focus,
.gs-session-screen input:focus,
a:focus,
button:focus,
input:focus {
  outline: 3px solid rgba(107, 55, 217, 0.18);
  outline-offset: 2px;
  box-shadow: var(--shadow-button);
}

/* ========================================================================
   14. UTILITIES
   ======================================================================== */
.gs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--color-off-white);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 1px 3px rgba(0, 0, 0, .2);
}

.gs-wrap-content {
  max-width: var(--gs-content-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gs-spacing-32 {
  margin-top: 32px;
  margin-bottom: 32px;
}

.gs-spacing-24 {
  margin-top: 24px;
}

.gs-spacing-8 {
  margin-bottom: 8px;
}

.gs-spacing-32-horizontal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

/* ========================================================================
   15. RESPONSIVE BREAKPOINTS
   ======================================================================== */

/* Session page horizontal layout (desktop) */
@media (min-width: 880px) {
  .gs-spacing-32-horizontal {
    flex-direction: row;
    align-items: flex-start;
  }
  .gs-session-code-box {
    flex: 1 1 60%;
  }
  .gs-traits-column {
    flex: 1 1 40%;
  }
}

/* Card grid responsive */
@media (min-width: 560px) {
  .gs-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Sidebar: large desktop (> 1280px) — full 300px (default) */

/* Sidebar: medium desktop (1101px - 1280px) */
@media (max-width: 1280px) {
  :root {
    --gs-sidebar-w: 280px;
  }
}

/* Sidebar: narrow desktop (769px - 1100px) */
@media (max-width: 1100px) {
  :root {
    --gs-sidebar-w: 260px;
  }
}

/* Mobile (< 768px): sidebar hidden */
@media (max-width: 768px) {
  :root {
    --gs-sidebar-w: 0px;
  }

  .gs-sidebar {
    display: none;
  }

  .gs-layout__content {
    margin-left: 0;
  }
}

/* Mobile: tighter padding */
@media (max-width: 719px) {
  .gs-wrap-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}
