:root {
  --circle-size: 480px;
}

.circle-menu-page {
  margin-left: calc(var(--circle-size) + 32px);
}

.circle-menu-page .site-header {
  min-height: 76px;
  padding: 12px 24px;
}

.circle-menu-page .brand {
  font-size: 20px;
}

.circle-menu-page .brand span {
  max-width: 340px;
}

.circle-menu-page .brand img {
  width: 54px;
  height: 48px;
}

.circle-menu-page .linear-navigation {
  display: none;
}

.circle-navigation {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  width: var(--circle-size);
  padding-top: 40px;
  border-radius: 0;
}

.circle-toggle {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--moss);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(19, 32, 24, .12);
}

.js .circle-toggle {
  display: flex;
}

.circle-toggle svg {
  width: 22px;
  height: 22px;
}

.toggle-open-icon {
  display: none;
}

.circle-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 242, .88) 0%, rgba(255, 250, 242, .12) 70%);
}

.circle-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.circle-arrow-1 { fill: #376f65; }
.circle-arrow-2 { fill: #688348; }
.circle-arrow-3 { fill: #826042; }
.circle-arrow-4 { fill: #82699b; }

.circle-arrow text {
  fill: #fff;
  font: 600 15px Arial, Helvetica, sans-serif;
}

.circle-arrow-3 text { transform: translateY(5px); }

.circle-center {
  position: absolute;
  top: 29%;
  left: 29%;
  width: 42%;
  height: 42%;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(19, 32, 24, .2);
}

.circle-center-image {
  height: 44%;
  overflow: hidden;
  border-radius: 0;
  background: var(--moss);
}

.circle-center-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.circle-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  height: 56%;
  padding: 8px 18px;
  text-align: center;
}

.circle-center strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.circle-login {
  padding: 6px 14px;
  border-radius: 18px;
  background: var(--moss);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}

.circle-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.circle-items li {
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  width: 19.4%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.circle-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #dce4d6;
  color: var(--deep);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(19, 32, 24, .16);
  transition: box-shadow .15s, border-color .15s;
}

.circle-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.circle-link span {
  position: absolute;
  right: 0;
  bottom: 8%;
  left: 0;
  padding: 3px 5px;
  border-radius: 8px;
  background: rgba(255, 250, 242, .96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: normal;
  hyphens: manual;
}

.circle-link:not(:has(img)) span {
  position: static;
  background: none;
}

.circle-link:hover,
.circle-link[aria-current="location"] {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(180, 140, 255, .32), 0 6px 15px rgba(19, 32, 24, .16);
}

.circle-navigation :is(a, button):focus-visible {
  outline: 3px solid #612c9d;
  outline-offset: 3px;
}

.circle-menu-page.menu-collapsed {
  margin-left: 0;
}

.menu-collapsed .site-header {
  padding-left: 68px;
}

.menu-collapsed .circle-navigation {
  width: 40px;
  height: 40px;
  padding: 0;
}

.menu-collapsed .circle-wheel {
  display: none;
}

.menu-collapsed .toggle-open-icon {
  display: block;
}

.menu-collapsed .toggle-close-icon {
  display: none;
}

@media (max-width: 1650px) {
  .circle-menu-page .strain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle-menu-page :is(.strain-group, .membership-section, .split-section) { grid-template-columns: 1fr; }
}

@media (max-width: 1250px), (max-height: 650px) {
  .circle-menu-page { margin-left: 0; }
  .circle-menu-page .site-header { padding-left: 68px; }
  .circle-navigation {
    width: min(480px, calc(100vw - 24px));
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .circle-menu-page:not(.menu-collapsed) .circle-navigation {
    padding: 40px 0 10px;
    border-radius: 24px;
    background: rgba(241, 231, 217, .98);
    box-shadow: 0 20px 70px rgba(19, 32, 24, .3);
  }
  .js .circle-menu-page:not(.menu-collapsed)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(19, 32, 24, .35);
  }
  .circle-menu-page.menu-expanded { overflow: hidden; }
  html:not(.js) .circle-navigation { position: relative; }
}

@media (max-width: 400px) {
  .circle-center strong { font-size: 13px; }
  .circle-center-content { gap: 4px; padding: 5px 10px; }
  .circle-login { padding: 4px 10px; font-size: 12px; }
  .circle-link span { font-size: 10px; padding: 2px 3px; }
}

@media (max-width: 340px) {
  .circle-center-image { height: 36%; }
  .circle-center-content { height: 64%; }
  .circle-center strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circle-link { transition: none; }
}

.internal-menu-page {
  margin-left: 0;
  margin-right: calc(var(--circle-size) + 32px);
}

.internal-menu-page .circle-navigation {
  right: 12px;
  left: auto;
}

.internal-menu-page .circle-toggle { right: 0; left: auto; }
.internal-menu-page .circle-center-club {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 34%;
  padding: 8px 20px;
  border-radius: 0;
  background: var(--moss);
  color: #fff;
  text-align: center;
}
.internal-menu-page .circle-center-club strong { font-size: 13px; }
.internal-menu-page .circle-center-content {
  height: 66%;
  justify-content: flex-start;
  gap: 5px;
  padding: 9px 12px;
}
.internal-menu-page .circle-account-name,
.internal-menu-page .circle-account-role {
  display: block;
  max-width: 100%;
  min-height: 1.15em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 0;
}
.internal-menu-page .circle-account-name { font: 700 13px/1.2 Arial, Helvetica, sans-serif; }
.internal-menu-page .circle-account-role { font-size: 12px; line-height: 1.2; }
.internal-menu-page .circle-request-count { font-size: 12px; line-height: 1.2; }
.internal-menu-page .circle-login { font: 700 12px/1.2 Arial, Helvetica, sans-serif; }
.internal-menu-page.menu-collapsed { margin-right: 0; }
.internal-menu-page :is(.admin-main, .portal-main) { min-width: 0; }
.internal-menu-page :is(.admin-shell-header, .portal-header) { min-height: 76px; padding: 12px 24px; }
.internal-menu-page.menu-collapsed :is(.admin-shell-header, .portal-header, .site-header) { padding-right: 68px; padding-left: 24px; }

@media (max-width: 1650px) and (min-width: 1251px) {
  .internal-menu-page .admin-split { grid-template-columns: 220px minmax(0, 1fr); }
  .internal-menu-page .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .internal-menu-page .mailbox-app { grid-template-columns: 180px minmax(220px, 1fr); }
  .internal-menu-page .mailbox-reading-pane { grid-column: 1 / -1; }
}
@media (max-width: 1250px), (max-height: 650px) {
  .internal-menu-page { margin-right: 0; }
  .internal-menu-page :is(.admin-shell-header, .portal-header, .site-header) { padding-right: 68px; padding-left: 24px; }
  html:not(.js) .internal-menu-page .circle-navigation { margin-left: auto; }
}
@media (max-width: 400px) {
  .internal-menu-page .circle-center-club { padding: 4px 14px; }
  .internal-menu-page .circle-center-club strong { font-size: 10px; }
  .internal-menu-page .circle-center-content { gap: 3px; padding: 5px 10px; }
  .internal-menu-page .circle-account-name { font-size: 10px; }
  .internal-menu-page .circle-account-role,
  .internal-menu-page .circle-request-count { font-size: 10px; }
  .internal-menu-page .circle-login { font-size: 10px; padding: 3px 10px; }
}
