:root {
  --options-bar-height: 3.25rem;
  --options-bar-bg: #071731;
  --options-bar-text: #f4f8ff;
  --options-bar-border: rgba(255, 255, 255, 0.08);
  --options-bar-button-bg: #1a73e8;
  --options-bar-button-hover: #1558b0;
  --options-bar-button-text: #ffffff;
  --options-bar-radius: 10px;
  --options-bar-menu-radius: 10px;
}

.options-bar,
.options-bar * {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.25;
}

.options-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--options-bar-height);
  background: var(--options-bar-bg);
  color: var(--options-bar-text);
  border-bottom: 1px solid var(--options-bar-border);
  z-index: 1600;
  backdrop-filter: blur(12px);
}

.options-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
  position: relative;
}

.options-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  white-space: nowrap;
}

.options-bar__brand-text {
  letter-spacing: inherit;
}

.options-bar__brand-text--full {
  display: inline;
}

.options-bar__brand-text--short {
  display: none;
}

.options-bar__logo {
  display: block;
  height: 1.8rem;
  width: auto;
}

.options-bar__brand:hover,
.options-bar__brand:focus {
  text-decoration: underline;
  color: #ffffff;
}

.options-bar__menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--options-bar-radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.38rem 0.95rem;
  font-weight: 600;
  font-size: 0.85rem;
  background: transparent;
  color: var(--options-bar-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.options-bar__menu-toggle:hover,
.options-bar__menu-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.options-bar__menu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 0;
}

.options-bar__menu-label {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.options-bar__menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
}

.options-bar__menu-icon-bar {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.options-bar__menu-icon-bar:nth-child(2) {
  width: 0.85rem;
}

.options-bar--menu-open .options-bar__menu-icon-bar:nth-child(1) {
  transform: translateY(0.35rem) rotate(45deg);
  width: 1.15rem;
}

.options-bar--menu-open .options-bar__menu-icon-bar:nth-child(2) {
  opacity: 0;
}

.options-bar--menu-open .options-bar__menu-icon-bar:nth-child(3) {
  transform: translateY(-0.35rem) rotate(-45deg);
  width: 1.15rem;
}

.options-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.options-bar__logout {
  margin: 0;
  padding: 0;
  display: inline;
  background: transparent;
  border: 0;
}

.options-bar__greeting {
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.options-bar__greeting-name {
  font-weight: 600;
  color: #ffffff;
}

.options-bar__button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: var(--options-bar-radius);
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--options-bar-button-bg);
  color: var(--options-bar-button-text);
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
}

.options-bar__button--centered {
  justify-content: center;
  text-align: center;
}

.options-bar__button:hover,
.options-bar__button:focus,
.options-bar__button:active {
  text-decoration: none;
}

.options-bar__button:hover,
.options-bar__button:focus {
  background: var(--options-bar-button-hover);
  transform: translateY(-1px);
}

.options-bar__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 0;
}

.options-bar__button--secondary {
  background: transparent;
  color: var(--options-bar-text);
  border-color: rgba(255, 255, 255, 0.35);
}

.options-bar__button--secondary:hover,
.options-bar__button--secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 480px) {
  .options-bar__inner {
    padding: 0 1rem;
  }
}

@media (max-width: 824px) {
  .options-bar__menu-toggle {
    display: inline-flex;
  }

  .options-bar__actions {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.6rem);
    background: rgba(7, 23, 49, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--options-bar-menu-radius);
    padding: 0.85rem;
    gap: 0.65rem;
    min-width: 240px;
    width: min(260px, calc(100vw - 2rem));
    z-index: 1700;
  }

  .options-bar__actions .options-bar__button {
    width: 100%;
    box-sizing: border-box;
    display: flex;
  }

  .options-bar__actions .options-bar__button--centered {
    justify-content: center;
  }

  .options-bar__logout {
    width: 100%;
    display: flex;
  }

  .options-bar__logout .options-bar__button {
    width: 100%;
  }

  .options-bar--menu-open .options-bar__actions {
    display: flex;
  }
}

@media (max-width: 640px) {
  .options-bar__greeting {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    gap: 0.1rem;
  }

  .options-bar__button {
    width: 100%;
    display: flex;
    box-sizing: border-box;
  }

  .options-bar__logout,
  .options-bar__logout .options-bar__button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .options-bar__brand-text--full {
    display: none !important;
  }

  .options-bar__brand-text--short {
    display: inline !important;
  }

  .options-bar__greeting-label {
    display: none !important;
  }
}

.svg-texas { height: 1em; width: auto; vertical-align: -0.15em; }
