html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: sans-serif;
}

body {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --add-panel-base-right: 24px;
  --info-panel-width: 0px;
  --info-panel-shift: 0px;
  --site-name-accent: #fff;
}

body.info-panel-open {
  --info-panel-shift: calc(var(--info-panel-width, 0px) + 24px);
}

/* Make globe take full screen but underlay */
#globeViz {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.next-site-button {
  position: absolute;
  top: 58px;
  left: 50%;
  z-index: 12;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.92), rgba(38, 198, 218, 0.92));
  color: #021820;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, left 0.25s ease;
}

.next-site-button:hover:not(:disabled) {
  transform: translate(-50%, -1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.next-site-button:focus-visible {
  outline: 2px solid rgba(38, 198, 218, 0.9);
  outline-offset: 2px;
}

.next-site-button:active:not(:disabled) {
  transform: translate(-50%, 1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.next-site-button:disabled,
.next-site-button.is-disabled {
  cursor: default;
  opacity: 0.5;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.app-brand {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(5, 15, 22, 0.6);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #e8fbff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(100, 255, 218, 0.18);
  pointer-events: none;
  user-select: none;
  max-width: 340px;
}

.brand-name {
  font-weight: 700;
  font-size: 13px;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(232, 251, 255, 0.8);
  text-transform: none;
  margin-top: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Floating side panel */
#infoPanel {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 300px;
  max-width: 22vw;
  height: 100%;
  z-index: 10;
  color: #fff;
  background: rgba(10, 10, 10, 0.8);
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-wrap: anywhere;
  display: none;
  border-left: 1px solid #333;
  transition: background 0.3s;
}

#infoPanel.is-open {
  display: block;
}

#infoPanel h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--site-name-accent);
}

.info-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.info-panel-heading h2 {
  flex: 1;
  margin: 0;
}

#infoPanel a {
  color: #6cf;
  text-decoration: none;
}

#infoPanel a:hover {
  text-decoration: underline;
}

#infoPanel ul {
  margin: 10px 0;
  padding-left: 20px;
}

#infoPanel ul.cluster-list {
  list-style: none;
  padding-left: 0;
}

#infoPanel ul.cluster-list li {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cluster-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}

.cluster-item-name {
  color: #6cf;
  text-decoration: none;
  font-weight: 600;
}

.cluster-item-name:hover {
  text-decoration: underline;
}

.cluster-item-country {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.cluster-item-sep {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.cluster-item-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin: 4px 0;
  line-height: 1.4;
}

.cluster-item-link {
  display: inline-block;
  font-size: 11px;
  color: #ffd54f;
  text-decoration: none;
  word-break: break-all;
}

.cluster-item-link:hover {
  text-decoration: underline;
}

#infoPanel li {
  margin-bottom: 6px;
}

.info-panel-details {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 10px;
}

.info-detail-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.4;
}

.info-detail-key {
  min-width: 96px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.info-detail-value {
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  word-break: break-word;
}

.info-detail-value pre {
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.info-detail-value a {
  color: #ffd54f;
  text-decoration: none;
}

.info-detail-value a:hover {
  text-decoration: underline;
}

.info-detail-empty {
  color: rgba(255, 255, 255, 0.4);
}


#discoverPanel {
  position: fixed;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: min(600px, 90vw);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}

.discover-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discover-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-filter-wrapper {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.discover-input-wrapper {
  display: flex;
}

#textFilterInput {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 30, 0.72);
  color: #fff;
  font-size: 14px;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}

#textFilterInput::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#textFilterInput:focus {
  outline: none;
  border-color: rgba(108, 204, 255, 0.85);
  background: rgba(20, 36, 58, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.text-filter-wrapper.has-value #textFilterInput {
  border-color: rgba(255, 196, 64, 0.9);
  background: rgba(58, 32, 0, 0.75);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 196, 64, 0.5);
}

#textFilterClear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
  display: none;
}

#textFilterClear:hover {
  color: #ffd54f;
}

.text-filter-wrapper.has-value #textFilterClear {
  display: block;
}

.text-filter-wrapper.has-value + #textFilterButton {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  box-shadow: 0 12px 28px rgba(255, 179, 71, 0.4);
}

#textFilterButton {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #6cf, #53a6ff);
  color: #03101c;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  line-height: 1.2;
}

#textFilterButton:disabled {
  opacity: 0.6;
  cursor: default;
}

#textFilterButton:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(83, 166, 255, 0.4);
}

.feedback-toggle {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25), rgba(8, 16, 30, 0.85));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 85;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease,
    background 0.2s ease;
}

.info-panel-fab {
  position: fixed;
  right: 24px;
  left: auto;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25), rgba(8, 16, 30, 0.85));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 85;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.feedback-toggle:hover,
.feedback-toggle:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 196, 64, 0.9);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65);
}

.info-panel-fab:hover:not(:disabled),
.info-panel-fab:focus-visible:not(:disabled) {
  outline: none;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(108, 217, 255, 0.9);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65);
}

.feedback-toggle.is-active {
  background: radial-gradient(circle at 30% 25%, rgba(255, 196, 64, 0.35), rgba(32, 24, 6, 0.95));
  border-color: rgba(255, 196, 64, 0.85);
}

.info-panel-fab.is-open {
  background: radial-gradient(circle at 30% 25%, rgba(108, 217, 255, 0.35), rgba(6, 20, 32, 0.95));
  border-color: rgba(108, 217, 255, 0.85);
}

.feedback-toggle-icon {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.info-panel-fab-icon {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.info-panel-fab:disabled,
.info-panel-fab.is-disabled {
  opacity: 0.35;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.feedback-panel {
  position: fixed;
  top: auto;
  left: 24px;
  right: auto;
  bottom: calc(28px + 48px + 20px);
  width: 340px;
  max-width: 88vw;
  max-height: calc(100vh - 160px);
  display: none;
  flex-direction: column;
  gap: 12px;
  background: rgba(4, 12, 20, 0.92);
  border: 1px solid rgba(108, 217, 255, 0.28);
  border-radius: 16px;
  padding: 18px 18px 0;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.55);
  z-index: 80;
  color: #fff;
  overflow-y: auto;
}

.feedback-panel.is-open {
  display: flex;
}

.feedback-panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.feedback-panel-header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.feedback-panel-close {
  position: absolute;
  top: 14px;
  right: 16px;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.feedback-panel-close:hover,
.feedback-panel-close:focus-visible {
  color: #fff;
  outline: none;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  width: 100%;
}

.feedback-field span {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.feedback-field small {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

.feedback-field input,
.feedback-field textarea,
.feedback-field select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 20, 28, 0.8);
  color: #f5f5f5;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  font-family: inherit;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.feedback-field input:focus,
.feedback-field textarea:focus,
.feedback-field select:focus {
  outline: none;
  border-color: rgba(100, 255, 218, 0.7);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
  background: rgba(16, 26, 38, 0.92);
}

.feedback-field--full {
  width: 100%;
}

.feedback-form-actions {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
}

.feedback-submit {
  appearance: none;
  border: none;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.9), rgba(38, 198, 218, 0.9));
  color: #011a1f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.feedback-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.feedback-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.feedback-status {
  min-height: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.feedback-status--error {
  color: #ff8a80;
}

.feedback-status--success {
  color: #8fffda;
}

#hoverBox {
  position: absolute;
  pointer-events: auto;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid #333;
  border-radius: 4px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 60;
}

#hoverBox strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--site-name-accent);
}

#hoverBox em {
  display: block;
  font-style: normal;
  opacity: 0.8;
  margin-bottom: 6px;
}

#hoverBox p {
  margin: 0 0 6px;
}

#hoverBox a {
  color: #6cf;
  text-decoration: none;
}

#hoverBox a:hover {
  text-decoration: underline;
}

.share-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-card-button:hover:not(:disabled),
.share-card-button:focus-visible {
  background: rgba(111, 207, 255, 0.2);
  border-color: rgba(111, 207, 255, 0.75);
  color: #fff;
}

.share-card-button:focus-visible {
  outline: 2px solid rgba(111, 207, 255, 0.8);
  outline-offset: 2px;
}

.share-card-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.share-card-button.is-copied {
  background: rgba(100, 255, 218, 0.22);
  border-color: rgba(100, 255, 218, 0.85);
}

.share-card-button.is-error {
  background: rgba(255, 82, 82, 0.22);
  border-color: rgba(255, 82, 82, 0.85);
}

.share-card-button--panel {
  flex-shrink: 0;
  white-space: nowrap;
}

.share-card-button--pinned {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.preview-media {
  margin: 0 0 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  display: block;
}

.preview-media img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-media--hover img,
.preview-media--pinned img {
  max-height: 160px;
}

.preview-media--panel img {
  max-height: 240px;
}

.preview-media--panel {
  margin-bottom: 18px;
}

.preview-media--pinned,
.preview-media--hover {
  margin-bottom: 10px;
}

.pinned-hover {
  position: absolute;
  min-width: 200px;
  max-width: 260px;
  padding: 10px 12px;
  background: rgba(18, 18, 25, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  z-index: 45;
  pointer-events: auto;
  display: none;
  --pinned-hover-offset: 0px;
  transform: translate(-50%, calc(-100% - 18px + var(--pinned-hover-offset, 0px)));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.pinned-hover.visible {
  display: block;
}

.pinned-hover strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--site-name-accent);
}

.pinned-hover em {
  display: block;
  font-style: normal;
  opacity: 0.8;
  margin-bottom: 6px;
}

.pinned-hover p {
  margin: 0 0 6px;
}

.pinned-hover a {
  color: #64b5f6;
  text-decoration: none;
}

.pinned-hover a:hover {
  text-decoration: underline;
}

.cluster-domain-list {
  margin: 0;
  color: #64b5f6;
}

.cluster-domain {
  color: #64b5f6;
  text-decoration: none;
}

.cluster-domain-sep {
  color: #fff;
  margin: 0 6px;
  display: inline-block;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marker-single {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 255, 210, 0.95) 0%, rgba(6, 25, 21, 0.9) 72%);
  border: 1px solid rgba(122, 255, 210, 0.85);
  box-shadow:
    0 0 8px rgba(122, 255, 210, 0.9),
    0 0 18px rgba(0, 114, 90, 0.8);
}

.marker-focused {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 70, 0.95) 0%, rgba(70, 0, 0, 0.95) 70%);
  border: 1px solid rgba(255, 120, 120, 0.95);
  box-shadow:
    0 0 14px rgba(255, 70, 70, 0.85),
    0 0 26px rgba(120, 0, 0, 0.75);
}

.marker-focused::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(255, 70, 70, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 70, 70, 0.4);
}

.marker-cluster {
  min-width: 20px;
  min-height: 20px;
  padding: 4px 6px;
  border-radius: 16px;
  background: rgba(4, 18, 32, 0.92);
  color: #7dffdf;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 191, 0.6);
  box-shadow:
    0 0 10px rgba(0, 255, 191, 0.45),
    inset 0 0 8px rgba(0, 45, 38, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#pointCount {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: left;
}

.add-page-button {
  position: absolute;
  top: 18px;
  right: calc(var(--add-panel-base-right, 24px) + var(--info-panel-shift, 0px));
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25), rgba(8, 16, 30, 0.85));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.add-page-button:hover,
.add-page-button:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(100, 255, 218, 0.85);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65);
}

.add-page-button.is-hidden {
  display: none !important;
}

.add-page-button.is-active {
  background: radial-gradient(circle at 30% 25%, rgba(100, 255, 218, 0.35), rgba(6, 28, 24, 0.95));
  border-color: rgba(100, 255, 218, 0.85);
}

.add-page-button-icon {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.add-page-panel {
  position: absolute;
  top: 18px;
  right: calc(var(--add-panel-base-right, 24px) + var(--info-panel-shift, 0px));
  width: 340px;
  max-width: 88vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(108, 217, 255, 0.28);
  background: rgba(4, 12, 20, 0.92);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.55);
  color: #f5f5f5;
  z-index: 75;
  backdrop-filter: blur(10px);
}

.add-page-panel[hidden] {
  display: none;
}

.add-page-panel-close {
  position: absolute;
  top: 14px;
  right: 16px;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.add-page-panel-close:hover,
.add-page-panel-close:focus-visible {
  color: #fff;
  outline: none;
}

.add-page-panel-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 32px;
}

.add-page-panel-icon {
  width: 32px;
  height: 32px;
}

.add-page-panel-title {
  margin: 0;
  font-size: 18px;
}

.add-page-panel-copy {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.add-page-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-page-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.add-page-field small {
  font-size: 11px;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
}

.add-page-field input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 20, 28, 0.8);
  color: #f5f5f5;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.add-page-field input:focus {
  outline: none;
  border-color: rgba(100, 255, 218, 0.7);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.add-page-helper {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
}

.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 20, 28, 0.8);
  min-height: 42px;
}

.tag-input:focus-within {
  border-color: rgba(100, 255, 218, 0.7);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.tag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(100, 255, 218, 0.15);
  color: #e8fbff;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.tag-chip button {
  background: none;
  border: none;
  color: rgba(232, 251, 255, 0.85);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  line-height: 1;
}

.tag-chip button:hover {
  color: rgba(255, 255, 255, 1);
}

.tag-input input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 4px;
}

.tag-input input:focus {
  outline: none;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag-suggestions[hidden] {
  display: none;
}

.tag-suggestion {
  border: 1px solid rgba(100, 255, 218, 0.4);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(232, 251, 255, 0.9);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tag-suggestion:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: rgba(100, 255, 218, 0.8);
}

.add-page-submit {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.9), rgba(38, 198, 218, 0.9));
  color: #011a1f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.add-page-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.add-page-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.add-page-status {
  min-height: 16px;
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.add-page-status--error {
  color: #ff8a80;
}

.add-page-status--success {
  color: #76ff03;
}

.category-chip-groups {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-chip-groups--detail {
  margin-top: 10px;
}

.category-chip-groups--detail-inline {
  margin-top: 0;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.category-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.category-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 4px;
}

.category-chip-label--secondary {
  color: rgba(255, 255, 255, 0.45);
}

.category-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.category-chip--broad {
  background: rgba(108, 204, 255, 0.18);
  color: #a8e8ff;
}

.category-chip--specific {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}
