.desk,
.civ-skin {
  --d-ground: #0b0c0e;
  --d-raised: #121417;
  --d-rule: #23262b;
  --d-text: #e8eaed;
  --d-body: #b7bcc4;
  --d-muted: #8b919a;
  --d-off: #3a3f47;
  --d-amber: #f5b842;
  --d-blue: #7aa7cf;
  --d-alert: #f87171;
  --d-green: #4ade80;
  --d-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --d-sans: "Barlow", system-ui, sans-serif;
  --d-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --d-amber-line: #5a4316;
  --d-blue-line: #1f3a52;
}

@keyframes desk-sweep { to { transform: rotate(360deg); } }

.desk-scope {
  --scope: #5b616a;
  position: relative;
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle, transparent 0 3px, rgba(91, 97, 106, 0.7) 3px 4px, transparent 4px 6.5px, rgba(91, 97, 106, 0.55) 6.5px 7.5px, transparent 7.5px),
    linear-gradient(rgba(91, 97, 106, 0.35), rgba(91, 97, 106, 0.35)) center / 1px 100% no-repeat,
    linear-gradient(rgba(91, 97, 106, 0.35), rgba(91, 97, 106, 0.35)) center / 100% 1px no-repeat;
}
.desk-scope::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--scope); }
.desk-scope-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 270deg, rgba(245, 184, 66, 0.6) 360deg);
  animation: desk-sweep 3s linear infinite;
}
.desk-scope-blip {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--d-amber);
  box-shadow: 0 0 5px 1px var(--d-amber);
  opacity: 0;
  animation: desk-blip 12s linear infinite backwards;
}
.desk-scope-blip.b0 { left: 12.4px; top: 3.9px; animation-delay: 0.333s; }
.desk-scope-blip.b1 { left: 10.5px; top: 12px; animation-delay: 4.25s; }
.desk-scope-blip.b2 { left: 2.8px; top: 12.5px; animation-delay: 7.958s; }
.desk-scope-blip.b3 { left: 5.3px; top: 4.7px; animation-delay: 11.667s; }
@keyframes desk-blip {
  0% { opacity: 0; }
  0.5% { opacity: 1; }
  5% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .desk-scope-sweep,
  .desk-scope-blip { animation: none; }
  .desk-scope-blip.b0 { opacity: 1; }
}

.desk .account,
.civ-skin .account {
  --a-raised: var(--d-raised);
  --a-rule: var(--d-rule);
  --a-text: var(--d-text);
  --a-body: var(--d-body);
  --a-muted: var(--d-muted);
  --a-amber: var(--d-amber);
  --a-mono: var(--d-mono);
  --a-hit: 32px;
}
.account { position: relative; display: inline-flex; flex: none; }
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: var(--a-hit);
  min-height: var(--a-hit);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.account-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--a-rule);
  border-radius: 50%;
  color: var(--a-muted);
  font: 500 12px/1 var(--a-mono);
  letter-spacing: 0;
  text-transform: uppercase;
}
.account-avatar:hover .account-letter,
.account-avatar[aria-expanded="true"] .account-letter { border-color: var(--a-muted); color: var(--a-text); }
.account-pop {
  position: absolute;
  top: calc(100% + var(--a-drop, 11px));
  right: 0;
  z-index: 60;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 20px));
  background: var(--a-raised);
  border: 1px solid var(--a-rule);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  font: 11px/1.45 var(--a-mono);
  letter-spacing: 0.08em;
  text-align: left;
}
.account-pop[hidden] { display: none !important; }
.account-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--a-rule); }
.account-email {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--a-text);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.account-access {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--a-muted);
  text-transform: uppercase;
}
.account-access.is-live { color: var(--a-amber); }
.account-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--a-amber); flex: none; }
.account-items { padding: 4px 0; }
.account-form { display: block; margin: 0; }
.account .account-pop .account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: var(--a-body);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.account .account-pop .account-item:hover,
.account .account-pop .account-item:focus-visible { background: var(--a-rule); color: var(--a-text); }
.account .account-pop .account-item:focus-visible { outline: none; box-shadow: inset 2px 0 0 var(--a-amber); }
.account .account-pop .account-item.is-buy { color: var(--a-amber); border-bottom: 1px solid var(--a-rule); margin-bottom: 4px; }
.account .account-pop .account-item.is-out { border-top: 1px solid var(--a-rule); margin-top: 4px; }
.account-aside { color: var(--a-muted); }
