@import url("https://fonts.googleapis.com/css2?family=Amiko:wght@400;600;700&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Overlock:wght@400;700;900&family=Parisienne&display=swap");

:root {
  --color-midnight-ink: #0b0d17;
  --color-slate-blue: #2d3a54;
  --color-sky-mist: #a3c9e2;
  --color-porcelain: #f4f6f8;
  --color-gold: #d4af37;
  --font-content: "Amiko", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-subtitle: "Overlock", "Trebuchet MS", sans-serif;
  --font-hero: "Old Standard TT", Georgia, serif;
  --bg: var(--color-porcelain);
  --fg: var(--color-midnight-ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-content);
  background: linear-gradient(180deg, var(--color-porcelain), #eef1f4) no-repeat;
  background-attachment: fixed;
  color: var(--fg);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, var(--color-porcelain) 78%, rgba(244, 246, 248, 0) 100%);
  z-index: 1150;
  pointer-events: none;
  opacity: var(--vignette-opacity, 0);
}

.hero-only {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-panel {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.hero-shell {
  width: min(1200px, 100%);
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1100;
  background: transparent;
  padding-bottom: 12px;
}

.hero-topline {
  position: relative;
  min-height: 42px;
}

.hero-content {
  width: min(1120px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#active-catalog-title {
  margin: 0;
  position: fixed;
  z-index: 1200;
  pointer-events: auto;
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  will-change: left, top, font-size, max-width;
  display: flex;
  align-items: center;
  line-height: 1;
}

.title-placeholder {
  margin: 0;
  font-family: var(--font-hero);
  font-style: italic;
  line-height: 1.02;
  font-weight: 400;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 4.2vw, 42px);
  visibility: hidden;
  pointer-events: none;
}

.hero-content p {
  margin: 10px 0 0;
  color: var(--color-slate-blue);
  font-size: 16px;
  font-family: var(--font-subtitle);
}

.hero-header-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  left: auto;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-locale {
  position: relative;
}

.github-star-btn-container {
  display: inline-flex;
  align-items: center;
  background-color: #f0f2f5;
  padding: 4px 6px;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(11, 13, 23, 0.04);
  text-decoration: none;
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  box-sizing: border-box;
  height: 42px;
}

.github-star-btn-container .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 6px;
  color: #1a1a1a;
  line-height: 0;
  height: 100%;
}

.github-star-btn-container .icon-wrapper svg {
  width: 24px;
  height: 24px;
  display: block;
}

.github-star-text {
  display: none;
}

.github-star-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0 8px 0 0;
  height: 100%;
  border-radius: 0;
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
  box-shadow: none;
  margin-left: 0;
  line-height: 1;
}

.github-star-btn-container:hover {
  background-color: #e8eaed;
  border-color: rgba(45, 58, 84, 0.12);
  color: #1a1a1a;
}

.github-star-btn-container:focus-visible {
  outline: 2px solid var(--color-sky-mist);
  outline-offset: 2px;
}

.toggle-container {
  display: inline-flex;
  align-items: center;
  background-color: #f0f2f5;
  padding: 4px 6px;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(11, 13, 23, 0.04);
  height: 42px;
  box-sizing: border-box;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 6px;
  color: #1a1a1a;
  line-height: 0;
  height: 100%;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
  display: block;
}

.toggle-options {
  display: flex;
  align-items: center;
  position: relative;
  gap: 2px;
  padding: 2px;
  height: 100%;
}

.toggle-indicator {
  position: absolute;
  left: 0;
  top: 2px;
  width: 0;
  height: calc(100% - 4px);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 220ms ease, width 220ms ease;
  will-change: transform, width;
  z-index: 0;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 0 12px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.toggle-btn:hover {
  color: #1a1a1a;
}

.toggle-btn:hover:not(.active) {
  background-color: rgba(11, 13, 23, 0.06);
}

.toggle-btn.active {
  color: #1a1a1a;
}

.toggle-btn:focus {
  outline: 2px solid var(--color-sky-mist);
  outline-offset: 2px;
}

.hero-search {
  margin: 0;
  position: fixed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  will-change: left, top, width, opacity;
  background: #ffffff;
  border: 1px solid rgba(11, 13, 23, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(11, 13, 23, 0.06);
  overflow: visible;
  transition: border-radius 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.hero-search.at-top {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(11, 13, 23, 0.05);
}

.hero-search:focus-within {
  border-color: rgba(45, 58, 84, 0.25);
  box-shadow: 0 12px 36px rgba(11, 13, 23, 0.08);
}

.search-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  height: 58px;
}

.hero-search.at-top .search-wrap {
  height: 38px;
}

.search-placeholder {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.search-placeholder-inner {
  width: min(820px, 97vw);
  height: 110px;
}

.search-options-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 12px;
  border-top: 1px solid rgba(11, 13, 23, 0.05);
  background: rgba(244, 246, 248, 0.3);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  opacity: 1;
  max-height: 54px;
  overflow: visible;
  transition: opacity 260ms ease, max-height 260ms ease, padding 260ms ease, border-top-color 260ms ease;
}

.hero-search.at-top .search-options-row {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.discover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  border: none;
  padding: 6px 14px;
  height: 32px;
  border-radius: 999px;
  font-family: var(--font-content);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-blue);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
}

.discover-btn:hover {
  background-color: rgba(45, 58, 84, 0.12);
  color: var(--color-midnight-ink);
}

.discover-btn:active {
  transform: scale(0.97);
}

.layer-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.layer-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0f2f5;
  border: none;
  padding: 6px 14px;
  height: 32px;
  border-radius: 999px;
  font-family: var(--font-content);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-blue);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
}

.layer-filter-btn:hover {
  background-color: rgba(45, 58, 84, 0.12);
  color: var(--color-midnight-ink);
}

.layer-filter-btn:active {
  transform: scale(0.97);
}

.layer-filter-btn .dropdown-chevron {
  width: 12px;
  height: 12px;
  stroke-width: 3;
  color: rgba(11, 13, 23, 0.44);
  transition: transform 200ms ease;
}

.layer-filter-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.layer-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1300;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 13, 23, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 13, 23, 0.1);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), transform 180ms cubic-bezier(0.4, 0, 0.2, 1), visibility 180ms ease;
}

.layer-filter-menu.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.layer-filter-item {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-blue);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.layer-filter-item:hover {
  background-color: var(--color-porcelain);
  color: var(--color-midnight-ink);
}

.layer-filter-item.active {
  background-color: rgba(163, 201, 226, 0.2);
  color: var(--color-slate-blue);
  font-weight: 600;
}

@media (max-width: 640px) {
  .search-placeholder-inner {
    width: 92vw;
    height: 110px;
  }
}

.search-input {
  width: 100%;
  padding: 16px 110px 16px 24px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 18px;
  font-family: var(--font-content);
  outline: none;
  box-shadow: none;
  transition: font-size 260ms ease;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: rgba(11, 13, 23, 0.44);
}

@media (prefers-reduced-motion: no-preference) {
  .search-input {
    transition: font-size 260ms;
  }
}

.search-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-clear-btn,
.search-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.search-clear-btn {
  background: rgba(11, 13, 23, 0.04);
  color: var(--color-slate-blue);
}

.search-clear-btn:hover {
  background: var(--color-porcelain);
  color: var(--color-midnight-ink);
  transform: scale(1.05);
}

.search-clear-btn svg {
  width: 16px;
  height: 16px;
}

.search-submit-btn {
  background: var(--color-slate-blue);
  color: var(--color-porcelain);
  box-shadow: 0 4px 12px rgba(45, 58, 84, 0.2);
}

.search-submit-btn:hover {
  background: var(--color-midnight-ink);
  color: var(--color-porcelain);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(11, 13, 23, 0.25);
}

.search-submit-btn:active {
  transform: scale(0.95);
}

.search-submit-btn svg {
  width: 18px;
  height: 18px;
}

.hero-search.at-top .search-clear-btn,
.hero-search.at-top .search-submit-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  box-shadow: none;
  color: var(--color-midnight-ink);
}

.hero-search.at-top .search-clear-btn:hover,
.hero-search.at-top .search-submit-btn:hover {
  background: rgba(11, 13, 23, 0.04);
  color: var(--color-midnight-ink);
  box-shadow: none;
}



/* Atlas accordion styles */
.atlas-section {
  padding: 28px 16px 80px;
}

.atlas-container {
  width: min(1200px, 94vw);
  margin: 16px auto 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 250, 0.92));
  border-radius: 18px;
  border: 1px solid rgba(11, 13, 23, 0.06);
  box-shadow: 0 16px 50px rgba(11, 13, 23, 0.06);
  overflow: hidden;
}

.atlas-svg {
  display: none;
}

.atlas-nodes {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.atlas-layer {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 13, 23, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.atlas-layer:hover {
  border-color: rgba(45, 58, 84, 0.12);
  box-shadow: 0 12px 30px rgba(11, 13, 23, 0.04);
}

.atlas-layer-toggle,
.atlas-category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 16px 18px;
  color: var(--fg);
  font: 600 15px/1.2 var(--font-content);
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.atlas-layer-toggle:hover {
  background: rgba(45, 58, 84, 0.025);
  border-color: rgba(45, 58, 84, 0.04);
}

.atlas-category-toggle:hover {
  background: rgba(45, 58, 84, 0.02);
}

.atlas-layer-toggle:focus-visible,
.atlas-category-toggle:focus-visible,
.atlas-pattern:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--color-sky-mist);
  outline-offset: 2px;
}

.atlas-layer-title,
.atlas-category-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atlas-layer-meta,
.atlas-category-meta {
  color: var(--color-slate-blue);
  font: 400 13px/1.3 var(--font-content);
}

.atlas-layer-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-slate-blue);
  margin-top: 4px;
  line-height: 1.4;
  opacity: 0.85;
}

.atlas-category-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-slate-blue);
  margin-top: 4px;
  line-height: 1.4;
  opacity: 0.85;
}

.atlas-chevron {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 23, 0.04);
  color: var(--color-slate-blue);
  transition: transform 220ms ease, background-color 180ms ease, color 180ms ease;
}

.atlas-layer-toggle:hover .atlas-chevron,
.atlas-category-toggle:hover .atlas-chevron {
  background: rgba(11, 13, 23, 0.08);
  color: var(--fg);
}

.atlas-layer[aria-expanded="true"] > .atlas-layer-toggle .atlas-chevron,
.atlas-category[aria-expanded="true"] > .atlas-category-toggle .atlas-chevron {
  transform: rotate(90deg);
}

.atlas-layer-body-wrapper,
.atlas-category-body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.atlas-layer[aria-expanded="true"] > .atlas-layer-body-wrapper,
.atlas-category[aria-expanded="true"] > .atlas-category-body-wrapper {
  grid-template-rows: 1fr;
}

.atlas-layer-body,
.atlas-category-body {
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.atlas-layer-body-inner,
.atlas-category-body-inner {
  padding: 0 18px 18px;
}

.atlas-category {
  margin-top: 12px;
  background: rgba(11, 13, 23, 0.01);
  border: 1px solid rgba(11, 13, 23, 0.04);
  border-radius: 10px;
  overflow: hidden;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.atlas-category:hover {
  background: rgba(163, 201, 226, 0.08);
  border-color: rgba(45, 58, 84, 0.1);
}

.atlas-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 6px;
}

.atlas-pattern {
  border: 1px solid rgba(11, 13, 23, 0.08);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: 600 13px/1 var(--font-content);
  color: var(--fg);
  box-shadow: 0 8px 18px rgba(11, 13, 23, 0.04);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.atlas-pattern:hover {
  background: var(--color-porcelain);
  border-color: var(--color-slate-blue);
  color: var(--color-midnight-ink);
  box-shadow: 0 10px 22px rgba(45, 58, 84, 0.08);
}

.pattern-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 23, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1200;
  padding: 24px;
}

.pattern-modal[open] {
  display: flex;
  animation: modalBackdropFadeIn 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pattern-modal[open] .modal-card {
  animation: modalContentScaleIn 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pattern-modal.closing {
  animation: modalBackdropFadeOut 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pattern-modal.closing .modal-card {
  animation: modalContentScaleOut 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalBackdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

@keyframes modalBackdropFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

@keyframes modalContentScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalContentScaleOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  max-width: 960px;
  width: min(94vw, 960px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11, 13, 23, 0.18), 0 0 0 1px rgba(11, 13, 23, 0.04);
  border: none;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-porcelain);
  color: var(--color-midnight-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--color-sky-mist);
  color: var(--color-midnight-ink);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.modal-body {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-color: #000000 transparent;
  scrollbar-width: thin;
}

.atlas-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 0;
  gap: 16px;
}

.atlas-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.atlas-modal-title {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.atlas-modal-badge {
  background: var(--color-gold);
  color: var(--color-midnight-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-content);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
}

.atlas-modal-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(11, 13, 23, 0.06);
  padding-bottom: 16px;
}

.meta-item {
  font-size: 14px;
  font-family: var(--font-content);
}

.meta-label {
  font-weight: 700;
  color: var(--color-slate-blue);
  margin-right: 6px;
}

.meta-value {
  color: var(--color-midnight-ink);
}

.atlas-modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.atlas-content-card {
  border: 1px solid rgba(11, 13, 23, 0.08);
  border-radius: 12px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(11, 13, 23, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.atlas-content-card.card-accent-gold {
  border-top: 3px solid var(--color-gold);
}

.card-header-accent {
  border-bottom: 1px solid var(--color-porcelain);
  padding-bottom: 12px;
}

.card-title {
  margin: 0 0 4px;
  font-family: var(--font-content);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.card-subtitle {
  margin: 0;
  font-family: var(--font-subtitle);
  font-size: 13px;
  color: var(--color-slate-blue);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.atlas-summary-text {
  font-family: var(--font-subtitle);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-slate-blue);
  background-color: var(--color-porcelain);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--color-slate-blue);
}

.atlas-details-text {
  font-family: var(--font-content);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-midnight-ink);
}

.atlas-details-text h4 {
  font-size: 14px;
  margin: 18px 0 8px;
  color: var(--color-slate-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.atlas-details-text p {
  margin: 0 0 12px;
}

.atlas-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atlas-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-content);
  font-size: 14px;
  color: var(--color-midnight-ink);
}

.bullet-icon {
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  transform: translateY(1px);
}

.bullet-text {
  line-height: 1.4;
}

.bullet-text strong {
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.bullet-text a {
  color: var(--color-slate-blue);
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-sky-mist);
  font-weight: 600;
  transition: color 150ms ease, border-color 150ms ease;
}

.bullet-text a:hover {
  color: var(--color-midnight-ink);
  border-bottom-color: var(--color-gold);
}

.bullet-text ul {
  list-style: none;
  padding: 6px 0 0 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-text ul li {
  font-size: 13px;
  position: relative;
  padding-left: 12px;
  color: var(--color-slate-blue);
}

.bullet-text ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-porcelain);
  color: var(--color-slate-blue);
  font-size: 12px;
  border-radius: 99px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-weight: 600;
  font-family: var(--font-content);
  border: 1px solid rgba(11, 13, 23, 0.04);
  transition: background-color 150ms ease, color 150ms ease;
}

.tag:hover {
  background-color: var(--color-sky-mist);
  color: var(--color-midnight-ink);
}

.atlas-modal-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(11, 13, 23, 0.05);
}

.atlas-footer-link {
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}

.atlas-footer-link:hover {
  color: var(--color-midnight-ink);
}

.atlas-footer-link::after {
  content: "✦";
  font-size: 10px;
  color: var(--color-gold);
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 99px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: #000000;
}

@media (max-width: 768px) {
  .modal-card {
    padding: 24px;
  }
  
  .atlas-modal-header {
    margin-right: 32px;
  }
  
  .atlas-modal-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    padding: 0 16px;
  }

  #active-catalog-title {
    white-space: normal;
    font-size: 28px;
    font-style: italic;
  }

  .title-placeholder {
    white-space: normal;
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-header-actions {
    right: 16px;
    left: auto;
    top: 16px;
    gap: 8px;
  }


  .search-wrap {
    width: 92vw;
  }

  .search-input {
    padding: 12px 96px 12px 16px;
    font-size: 15px;
  }

  .search-clear-btn,
  .search-submit-btn {
    width: 32px;
    height: 32px;
  }

  .search-clear-btn svg {
    width: 14px;
    height: 14px;
  }

  .search-submit-btn svg {
    width: 16px;
    height: 16px;
  }

  .search-actions {
    right: 6px;
    gap: 6px;
  }
}

.bg-ticker-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.025;
}

.ticker-row {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.ticker-content {
  display: inline-flex;
  font-family: 'Parisienne', cursive;
  font-size: 40vh;
  line-height: 1;
  font-style: italic;
  color: var(--color-slate-blue);
  white-space: nowrap;
  will-change: transform;
}

.row-right .ticker-content {
  animation: ticker-slide-right 300s linear infinite;
}

.row-left .ticker-content {
  animation: ticker-slide-left 300s linear infinite;
}

.ticker-row:nth-child(1) .ticker-content {
  animation-delay: -85s;
}

.ticker-row:nth-child(2) .ticker-content {
  animation-delay: -190s;
}

.ticker-row:nth-child(3) .ticker-content {
  animation-delay: -40s;
}

.ticker-row:nth-child(4) .ticker-content {
  animation-delay: -220s;
}

@keyframes ticker-slide-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.333%, 0, 0);
  }
}

@keyframes ticker-slide-right {
  0% {
    transform: translate3d(-33.333%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.atlas-pattern.search-match-highlight {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25), 0 4px 12px rgba(212, 175, 55, 0.1);
  background: linear-gradient(180deg, #ffffff, var(--color-porcelain));
}

.atlas-pattern.search-match-highlight:hover {
  background: var(--color-porcelain);
  border-color: var(--color-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4), 0 6px 18px rgba(212, 175, 55, 0.15);
}

.no-results-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 13, 23, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 13, 23, 0.04);
  max-width: 600px;
  margin: 32px auto;
}

.no-results-icon {
  color: var(--color-slate-blue);
  margin-bottom: 20px;
  opacity: 0.8;
}

.no-results-title {
  margin: 0 0 12px;
  font-family: var(--font-hero);
  font-style: italic;
  font-size: 24px;
  color: var(--color-midnight-ink);
}

.no-results-message {
  margin: 0 0 24px;
  font-family: var(--font-content);
  font-size: 15px;
  color: var(--color-slate-blue);
  line-height: 1.5;
  max-width: 440px;
}

.no-results-reset {
  background: var(--color-slate-blue);
  color: var(--color-porcelain);
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
  box-shadow: 0 4px 12px rgba(45, 58, 84, 0.2);
}

.no-results-reset:hover {
  background: var(--color-midnight-ink);
  transform: translateY(-1px);
}

.no-results-reset:active {
  transform: translateY(0);
}

.collaborate-section {
  padding: 60px 16px 100px;
  text-align: center;
}

.collaborate-container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 248, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(11, 13, 23, 0.06);
  box-shadow: 0 16px 50px rgba(11, 13, 23, 0.06);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.collaborate-title {
  margin: 0;
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.8vw, 36px);
  color: var(--color-midnight-ink);
  line-height: 1.2;
  max-width: 720px;
}

.collaborate-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-slate-blue);
  color: var(--color-porcelain);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-content);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(45, 58, 84, 0.15);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.collaborate-cta:hover {
  background: var(--color-midnight-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11, 13, 23, 0.25);
}

.collaborate-cta:active {
  transform: translateY(0);
}

.collaborate-cta svg {
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.collaborate-cta:hover svg {
  transform: rotate(10deg) scale(1.05);
}

.app-footer {
  margin-top: 40px;
}

.footer-marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  margin-bottom: 24px;
  border-top: 1px solid rgba(11, 13, 23, 0.06);
  padding-top: 40px;
  user-select: none;
  -webkit-user-select: none;
}

.footer-marquee-content {
  display: inline-flex;
  white-space: nowrap;
  animation: footer-marquee-slide 60s linear infinite;
  will-change: transform;
}

.footer-marquee-content span {
  font-family: var(--font-hero);
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 700;
  color: var(--color-midnight-ink);
  line-height: 1;
  letter-spacing: -0.03em;
  padding-right: 32px;
}

@keyframes footer-marquee-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 32px;
  border-top: 1px solid rgba(11, 13, 23, 0.04);
  font-family: var(--font-content);
  font-size: 12px;
  color: var(--color-slate-blue);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link-item {
  color: var(--color-slate-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 180ms ease;
}

.footer-link-item:hover {
  color: var(--color-midnight-ink);
}

.footer-link-item.star-link {
  color: var(--color-gold);
  font-weight: 700;
}

.footer-link-item.star-link:hover {
  color: var(--color-midnight-ink);
}

@media (max-width: 640px) {
  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 16px 24px;
  }
  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}

.playbook-toggle-btn {
  display: inline-flex;
  align-items: center;
  background-color: #f0f2f5;
  padding: 4px 6px;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(11, 13, 23, 0.04);
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  box-sizing: border-box;
  height: 42px;
}

.playbook-toggle-btn .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 6px;
  color: #1a1a1a;
  line-height: 0;
  height: 100%;
}

.playbook-toggle-btn .icon-wrapper svg {
  width: 24px;
  height: 24px;
  display: block;
}

.playbook-btn-text {
  display: flex;
  align-items: center;
  padding: 0 12px 0 0;
  font-weight: 500;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  height: 100%;
}

.playbook-toggle-btn:hover {
  background-color: #e8eaed;
  border-color: rgba(45, 58, 84, 0.12);
  color: #1a1a1a;
}

.playbook-toggle-btn:focus-visible {
  outline: 2px solid var(--color-sky-mist);
  outline-offset: 2px;
}

.playbook-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  z-index: 1300;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(11, 13, 23, 0.08);
  box-shadow: -10px 0 40px rgba(11, 13, 23, 0.1);
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.playbook-drawer.open {
  transform: translateX(0);
}

.drawer-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(11, 13, 23, 0.06);
}

.drawer-title {
  margin: 0;
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--color-midnight-ink);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 13, 23, 0.04);
  color: var(--color-midnight-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.drawer-close-btn:hover {
  background-color: var(--color-sky-mist);
  color: var(--color-midnight-ink);
}

.drawer-close-btn svg {
  width: 16px;
  height: 16px;
}

.drawer-tabs {
  display: flex;
  border-bottom: 1px solid rgba(11, 13, 23, 0.04);
  background: rgba(11, 13, 23, 0.01);
  padding: 0 16px;
}

.drawer-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 8px;
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-blue);
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: color 200ms ease;
}

.drawer-tab-btn:hover {
  color: var(--color-midnight-ink);
}

.drawer-tab-btn.active {
  color: var(--color-midnight-ink);
}

.drawer-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background-color: var(--color-slate-blue);
  border-radius: 99px 99px 0 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.playbook-tab-content {
  display: none;
  height: 100%;
}

.playbook-tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.playbook-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playbook-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 13, 23, 0.06);
  box-shadow: 0 4px 12px rgba(11, 13, 23, 0.02);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.playbook-item-card:hover {
  border-color: rgba(45, 58, 84, 0.15);
  box-shadow: 0 6px 16px rgba(11, 13, 23, 0.04);
}

.playbook-item-link {
  flex: 1;
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-midnight-ink);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0;
}

.playbook-item-link:hover {
  color: var(--color-slate-blue);
}

.playbook-item-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #a0a0a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  margin-left: 8px;
}

.playbook-item-remove-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.playbook-item-remove-btn svg {
  width: 14px;
  height: 14px;
}

.list-creation-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

#new-list-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(11, 13, 23, 0.08);
  font-family: var(--font-content);
  font-size: 13px;
  background: #ffffff;
  color: var(--color-midnight-ink);
  transition: border-color 200ms ease;
}

#new-list-input:focus {
  outline: none;
  border-color: var(--color-slate-blue);
}

#create-list-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background-color: var(--color-slate-blue);
  color: var(--color-porcelain);
  font-family: var(--font-content);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}

#create-list-btn:hover {
  background-color: var(--color-midnight-ink);
}

.playbook-custom-lists-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-list-panel {
  background: #ffffff;
  border: 1px solid rgba(11, 13, 23, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 13, 23, 0.02);
}

.custom-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 13, 23, 0.01);
  border-bottom: 1px solid rgba(11, 13, 23, 0.04);
}

.custom-list-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.custom-list-name {
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.custom-list-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(11, 13, 23, 0.04);
  color: var(--color-slate-blue);
}

.custom-list-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #a0a0a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.custom-list-delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.custom-list-delete-btn svg {
  width: 14px;
  height: 14px;
}

.custom-list-patterns {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playbook-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: rgba(11, 13, 23, 0.4);
  font-family: var(--font-content);
  font-size: 13px;
  line-height: 1.5;
}

.playbook-empty-state svg {
  margin-bottom: 12px;
  color: rgba(11, 13, 23, 0.2);
}

.modal-playbook-control-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#modal-playbook-mount {
  flex-shrink: 0;
}

.modal-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  border: 1px solid rgba(11, 13, 23, 0.04);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--color-slate-blue);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  box-sizing: border-box;
}

.modal-fav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: fill 200ms ease, stroke 200ms ease;
}

.modal-fav-btn:hover {
  background-color: #e8eaed;
  color: var(--color-midnight-ink);
}

.modal-fav-btn.is-favorite {
  background-color: rgba(212, 175, 55, 0.08);
  border-color: var(--color-gold);
  color: #b89008;
}

.modal-fav-btn.is-favorite svg {
  fill: var(--color-gold);
  stroke: var(--color-gold);
}

.modal-dropdown-container {
  position: relative;
  flex-shrink: 0;
}

.modal-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #f0f2f5;
  border: 1px solid rgba(11, 13, 23, 0.04);
  border-radius: 10px;
  height: 38px;
  padding: 0 14px 0 10px;
  flex-shrink: 0;
  color: var(--color-slate-blue);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
  box-sizing: border-box;
}

.save-list-text {
  font-family: var(--font-content);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.modal-dropdown-trigger svg.plus-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.modal-dropdown-trigger:hover:not(:disabled) {
  background-color: #e8eaed;
  color: var(--color-midnight-ink);
}

.modal-dropdown-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(11, 13, 23, 0.03);
  border-color: rgba(11, 13, 23, 0.02);
  color: rgba(11, 13, 23, 0.35);
}

.modal-dropdown-trigger:disabled svg {
  color: rgba(11, 13, 23, 0.25) !important;
}

.modal-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 13, 23, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 13, 23, 0.08);
  padding: 8px;
  min-width: 180px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.modal-dropdown-menu.open {
  display: flex;
}

.modal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-midnight-ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 150ms ease;
  width: 100%;
  box-sizing: border-box;
}

.modal-dropdown-item:hover {
  background-color: rgba(11, 13, 23, 0.04);
}

.modal-dropdown-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.modal-dropdown-checkbox-custom {
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border: 1px solid rgba(11, 13, 23, 0.18);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  position: relative;
  box-sizing: border-box;
}

.modal-dropdown-item:hover .modal-dropdown-checkbox-custom {
  border-color: var(--color-slate-blue);
  background-color: #f8fafc;
}

.modal-dropdown-item input[type="checkbox"]:checked ~ .modal-dropdown-checkbox-custom {
  background-color: var(--color-slate-blue);
  border-color: var(--color-slate-blue);
  box-shadow: 0 2px 5px rgba(45, 58, 84, 0.2);
}

.modal-dropdown-checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modal-dropdown-item input[type="checkbox"]:checked ~ .modal-dropdown-checkbox-custom::after {
  display: block;
}

.modal-close-custom-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-btn {
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -50px;
  margin-left: -50px;
  transform: scale(0.38);
  background-color: #f0f2f5;
  border-radius: 50px;
  border: 1px solid rgba(11, 13, 23, 0.04);
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  box-shadow: 0 4px 15px rgba(11, 13, 23, 0.08);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.modal-close-btn:hover {
  background-color: #e8eaed;
  box-shadow: 0 6px 20px rgba(11, 13, 23, 0.14);
}

.modal-close-btn > span {
  background-color: var(--color-slate-blue);
  display: block;
  height: 12px;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: absolute;
  top: 50%;
  margin-top: -6px;
  left: 18px;
  width: 64px;
  display: flex;
  justify-content: space-between;
}

.modal-close-btn > span span {
  display: block;
  background-color: #5f6368;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: absolute;
  left: 0;
  top: 0;
}

.modal-close-btn > span.left {
  transform: rotate(45deg);
  transform-origin: center;
}

.modal-close-btn > span.left .circle-left {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 0;
}

.modal-close-btn > span.left .circle-right {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 52px;
}

.modal-close-btn > span.right {
  transform: rotate(-45deg);
  transform-origin: center;
}

.modal-close-btn > span.right .circle-left {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 0;
}

.modal-close-btn > span.right .circle-right {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 52px;
}



.modal-close-btn:hover > span.left .circle-left {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 52px;
}

.modal-close-btn:hover > span.left .circle-right {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 0;
}

.modal-close-btn:hover > span.right .circle-left {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 52px;
}

.modal-close-btn:hover > span.right .circle-right {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-left: 0;
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--color-sky-mist);
  outline-offset: 8px;
}

@media (max-width: 640px) {
  .playbook-drawer {
    width: 100vw;
  }
}

.left-sidebar {
  background-color: var(--color-porcelain);
  border: 1px solid rgba(11, 13, 23, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.sidebar-toggle-btn,
.collapsed-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(11, 13, 23, 0.08);
  background: #ffffff;
  color: var(--color-slate-blue);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
  padding: 0;
  box-sizing: border-box;
}

.sidebar-toggle-btn:hover,
.collapsed-icon-item:hover {
  background-color: #f0f2f5;
  border-color: rgba(11, 13, 23, 0.18);
}

.sidebar-toggle-btn svg,
.collapsed-icon-item svg {
  width: 18px;
  height: 18px;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-slate-blue);
  user-select: none;
}

.section-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-blue);
  cursor: pointer;
}

.section-icon-wrapper svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
}

.section-icon-wrapper:hover svg {
  transform: scale(1.1);
}

.sidebar-keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-pill {
  font-family: var(--font-content);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-slate-blue);
  background-color: #f0f2f5;
  border: 1px solid rgba(11, 13, 23, 0.05);
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.keyword-pill:hover {
  background-color: #ffffff;
  border-color: rgba(45, 58, 84, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.keyword-pill.active {
  background-color: var(--color-slate-blue);
  color: #ffffff;
  border-color: var(--color-slate-blue);
  box-shadow: 0 2px 6px rgba(45, 58, 84, 0.25);
}

.recent-searches-header-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.clear-recent-btn {
  font-family: var(--font-content);
  font-size: 10px;
  font-weight: 700;
  color: #a0a0a0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 200ms ease, background-color 200ms ease;
}

.clear-recent-btn:hover {
  color: #e06060;
  background-color: rgba(224, 96, 96, 0.05);
}

.sidebar-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-search-empty {
  font-family: var(--font-content);
  font-size: 11px;
  color: #909090;
  font-style: italic;
  padding: 4px 8px;
}

.recent-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(11, 13, 23, 0.04);
  border-radius: 8px;
  padding: 4px 8px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.recent-search-item:hover {
  border-color: rgba(45, 58, 84, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.recent-search-term-btn {
  flex-grow: 1;
  text-align: left;
  font-family: var(--font-content);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-search-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #a0a0a0;
  cursor: pointer;
  padding: 0;
  transition: color 200ms ease, background-color 200ms ease;
}

.recent-search-remove-btn:hover {
  color: #e06060;
  background-color: rgba(224, 96, 96, 0.08);
}

.recent-search-remove-btn svg {
  width: 10px;
  height: 10px;
}

@media (min-width: 1024px) {
  .left-sidebar {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: calc(100vh - 180px);
    min-height: 66vh;
    z-index: 100;
  }
  
  .left-sidebar.sidebar-ready {
    transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1), height 350ms cubic-bezier(0.4, 0, 0.2, 1), padding 350ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .left-sidebar.collapsed {
    width: 58px;
    height: 180px;
    min-height: auto;
    padding: 16px 8px;
  }
  
  .sidebar-inner-wrap {
    width: 208px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
  }
  
  .left-sidebar.sidebar-ready .sidebar-inner-wrap {
    transition: opacity 250ms ease;
  }
  
  .sidebar-inner-wrap::-webkit-scrollbar {
    width: 4px;
  }
  
  .sidebar-inner-wrap::-webkit-scrollbar-thumb {
    background-color: rgba(45, 58, 84, 0.15);
    border-radius: 2px;
  }

  .left-sidebar.collapsed .sidebar-inner-wrap {
    opacity: 0;
    pointer-events: none;
  }
  
  .collapsed-icons-strip {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
  }
  
  .left-sidebar.sidebar-ready .collapsed-icons-strip {
    transition: opacity 250ms ease;
  }
  
  .left-sidebar.collapsed .collapsed-icons-strip {
    opacity: 1;
    pointer-events: auto;
  }
  
  .left-sidebar .sidebar-toggle-btn {
    align-self: flex-end;
  }
  
  .left-sidebar.collapsed .sidebar-toggle-btn {
    display: none;
  }
}

.mobile-hamburger-btn {
  display: none;
}

.mobile-hamburger-drawer {
  display: none;
}

@media (max-width: 1023px) {
  #left-sidebar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #playbook-toggle-btn {
    display: none !important;
  }
  
  .mobile-hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    border: 1px solid rgba(11, 13, 23, 0.04);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    color: var(--color-slate-blue);
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
  }
  .mobile-hamburger-btn:hover {
    background-color: #e8eaed;
    color: var(--color-midnight-ink);
  }
  .mobile-hamburger-btn svg {
    width: 20px;
    height: 20px;
  }

  .github-star-btn-container {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .github-star-btn-container .github-star-text,
  .github-star-btn-container .github-star-count {
    display: none !important;
  }
  .github-star-btn-container .icon-wrapper {
    padding: 0 !important;
  }



  .mobile-hamburger-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 1500;
    box-shadow: 10px 0 40px rgba(11, 13, 23, 0.15);
    border-right: 1px solid rgba(11, 13, 23, 0.06);
    transform: translateX(-100%);
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }
  .mobile-hamburger-drawer.open {
    transform: translateX(0);
  }
  .mobile-hamburger-drawer .drawer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .mobile-hamburger-drawer .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(11, 13, 23, 0.05);
    height: 60px;
    box-sizing: border-box;
  }
  .mobile-hamburger-drawer .drawer-title {
    margin: 0;
    font-family: var(--font-hero);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-midnight-ink);
  }
  .mobile-hamburger-drawer .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .mobile-hamburger-drawer .mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-drawer-playbook-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1300px) {
  .hero-locale {
    z-index: 1300;
  }
  .toggle-container {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    position: relative !important;
  }
  .toggle-container .icon-wrapper {
    padding: 0 !important;
    width: 100%;
    justify-content: center;
    cursor: pointer;
  }
  .toggle-options {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(11, 13, 23, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(11, 13, 23, 0.15) !important;
    padding: 6px !important;
    gap: 4px !important;
    min-width: 100px !important;
    height: auto !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), transform 180ms cubic-bezier(0.4, 0, 0.2, 1), visibility 180ms ease;
    z-index: 1400 !important;
  }
  .toggle-options.open {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .toggle-indicator {
    display: none !important;
  }
  .toggle-btn {
    width: 100% !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--color-slate-blue) !important;
    justify-content: center !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }
  .toggle-btn.active {
    background-color: rgba(45, 58, 84, 0.08) !important;
    color: var(--color-midnight-ink) !important;
  }
}

@media (max-width: 841px) {
  .playbook-btn-text {
    display: none !important;
  }
  #playbook-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  #playbook-toggle-btn .icon-wrapper {
    padding: 0 !important;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .save-list-text {
    display: none !important;
  }
  .modal-dropdown-trigger {
    width: 38px;
    padding: 0 !important;
    gap: 0 !important;
  }
}