:root {
  --brand-blue: #0a66c2;
  --brand-bg: #f3f2ef;
  --brand-surface: #ffffff;
  --brand-text: #191919;
  --brand-muted: #666666;
  --brand-border: #e0dfdc;
  --brand-ring: rgba(10, 102, 194, 0.18);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.brand-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.brand-nav-main {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo-bug {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
}

.brand-logo-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.brand-nav-title {
  margin-left: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-text);
  line-height: 1.2;
  min-width: 0;
}

.brand-share-wrap {
  position: relative;
  flex-shrink: 0;
}

.brand-share-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #f3f6f8;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-share-button:hover,
.brand-share-button:focus-visible {
  background: #e8eef3;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--brand-ring);
  outline: none;
}

.brand-share-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: var(--brand-surface);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1100;
}

.brand-share-menu.open {
  display: block;
}

.brand-share-item {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-text);
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.brand-share-item:hover,
.brand-share-item:focus-visible {
  background: var(--brand-bg);
  outline: none;
}

@media (max-width: 640px) {
  .brand-top-nav {
    padding: 0 16px;
    gap: 10px;
  }

  .brand-nav-title {
    font-size: 16px;
    line-height: 1.15;
    max-width: 160px;
  }

  .brand-share-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .brand-share-menu {
    min-width: min(220px, calc(100vw - 24px));
    right: 0;
  }
}

@media (max-width: 480px) {
  .brand-top-nav {
    height: 56px;
    padding: 0 12px;
  }

  .brand-logo-bug {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .brand-nav-title {
    margin-left: 10px;
    font-size: 14px;
    max-width: 124px;
  }

  .brand-share-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }
}
