:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #000000;
  accent-color: #e62058;
}

* {
  box-sizing: border-box;
}

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

body {
  line-height: 1.6;
  background: #f5f5f5;
  color: #000000;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: #03060f;
}

.site-header {
  width: 280px;
  min-height: 100vh;
  padding: 32px 26px;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.98) 0%, rgba(13, 21, 44, 0.98) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 20;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f8fbff;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

/* PNG logo sizing for inserted images */
.brand-img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.brand-mark-small-img {
  width: 33px;
  height: 33px;
  display: inline-block;
  object-fit: contain;
  border-radius: 12px;
}

.brand-small {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dce7ff;
  line-height: 1;
}

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

.nav-group {
  display: block;
}

.nav-group-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d7ca6;
}

.nav-link {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f3f7ff;
  margin-bottom: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(230, 32, 88, 0.1);
  border-color: rgba(230, 32, 88, 0.3);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 0;
  position: sticky;
  top: 0;
  background: rgba(3, 6, 15, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
  backdrop-filter: blur(20px);
}

.toolbar-button {
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  color: #edf2ff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.toolbar-button:hover,
.toolbar-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.toolbar-menu {
  display: none;
}

.toolbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.97rem;
}

.brand-mark-small {
  width: 33px;
  height: 33px;
  border-radius: 14px;
  background: linear-gradient(140deg, #e62058 0%, #ff4a7d 100%);
  box-shadow: 0 12px 30px rgba(230, 32, 88, 0.2);
}

.page-content {
  flex: 1;
  padding: 32px 40px 40px 32px;
  max-width: none;
  margin: 0;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  color: #000000;
}

.hero-panel {
  border-radius: 32px;
  padding: 44px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #666362;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e62058;
  background: rgba(230, 32, 88, 0.08);
  color: #e62058;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.15vw + 2rem, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #000000;
}

.hero-panel p {
  max-width: 720px;
  color: #666362;
  margin: 20px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #e62058;
  color: #ffffff;
  border-color: #e62058;
  box-shadow: 0 12px 30px rgba(230, 32, 88, 0.2);
}

.button-secondary {
  background: #ffffff;
  color: #e62058;
  border-color: #e62058;
}

.hero-note {
  display: block;
  color: #666362;
  font-size: 0.95rem;
}

.hero-search-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e62058;
}

.search-icon {
  font-size: 1.1rem;
  color: #e62058;
}

.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  color: #000000;
  outline: none;
  font-size: 1rem;
}

.search-field input::placeholder {
  color: #666362;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(230, 32, 88, 0.25);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #e62058;
  color: #ffffff;
  font-size: 1.2rem;
}

.feature-item strong {
  display: block;
  font-size: 1rem;
  color: #000000;
}

.feature-item p {
  margin: 4px 0 0;
  color: #666362;
  font-size: 0.95rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #000000;
}

.quick-actions {
  margin-top: 44px;
}

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

.action-card,
.topic-card {
  border-radius: 24px;
  background: #faf8f6;
  border: 1px solid rgba(230, 32, 88, 0.16);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover,
.topic-card:hover {
  transform: translateY(-3px);
  border-color: #e62058;
  background: #fff5f6;
  box-shadow: 0 20px 60px rgba(230, 32, 88, 0.12);
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.action-link {
  color: inherit;
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8fbff;
  flex-shrink: 0;
}

.action-icon svg {
  width: 22px;
  height: 22px;
}

.action-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #000000;
}

.action-card p {
  margin: 0;
  color: #666362;
  line-height: 1.5;
}

.topic-section {
  margin-top: 40px;
}

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

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

.topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.topic-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
}

.topic-subtitle {
  display: block;
  margin-top: 6px;
  color: #666362;
  font-size: 0.94rem;
}

.topic-arrow {
  color: #e62058;
  font-size: 1.25rem;
}

@media (max-width: 1180px) {
  .page-shell {
    margin-left: 0;
  }

  .site-header {
    width: 100%;
    min-height: auto;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-top {
    margin-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .sidebar-nav {
    display: none;
    width: 100%;
    padding-top: 14px;
  }

  .sidebar-nav.is-open {
    display: grid;
  }

  .page-content {
    padding: 24px 24px 32px;
  }

  .toolbar-menu {
    display: inline-flex;
  }

  .page-header {
    top: 0;
  }

  .app-shell {
    display: block;
  }

  .action-grid,
  .topic-grid,
  .hero-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 18px;
  }

  .page-header {
    padding: 16px 20px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-panel {
    padding: 28px 22px;
  }

  .hero-search-row {
    grid-template-columns: 1fr;
  }

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

  .button {
    width: 100%;
  }

  .page-content {
    padding: 20px 18px 30px;
  }

  .action-grid,
  .topic-grid,
  .hero-features {
    grid-template-columns: 1fr;
  }
}
