/* Shared settings entry and localization shell. */
.site-controls {
  position: fixed;
  z-index: 1200;
  top: clamp(12px, 2.5vh, 24px);
  right: clamp(12px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-settings-trigger {
  min-width: 0;
  min-height: 0;
  padding: 6px 8px;
  border: 0;
  color: #79efaa;
  background: transparent;
  font: 400 clamp(12px, 1.25vw, 16px) / 1.2 'Terminal Pixel', 'Fusion Pixel SC', monospace;
  letter-spacing: .04em;
  text-shadow: 0 0 9px rgb(121 239 170 / 36%);
  cursor: var(--cursor-pointer, pointer);
}
.site-settings-trigger:hover, .site-settings-trigger:focus-visible {
  color: #b3f4c8;
  background: transparent;
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.site-settings {
  position: fixed;
  z-index: 2000;
  inset: 0 0 var(--site-footer-height);
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
  color: #dfffe9;
  font-family: 'Terminal Pixel', 'Fusion Pixel SC', monospace;
  background: rgb(2 8 13 / 82%);
}
.site-settings[hidden] { display: none; }
.site-settings-backdrop { position: absolute; inset: 0; }
.site-settings-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, 100%);
  max-height: min(720px, 100%);
  min-width: 0;
  min-height: 0;
  border: 1px solid #79efaa;
  background: #07141d;
  box-shadow: 0 0 34px rgb(121 239 170 / 18%), inset 0 0 42px rgb(121 239 170 / 5%);
}
.site-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px 20px;
  border-bottom: 1px solid color-mix(in srgb, #79efaa 48%, #183525);
  background: #0b1b25;
}
.site-settings-identity { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 0 auto; }
.site-settings-seal {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  color: #07141d;
  background: #79efaa;
  clip-path: polygon(25% 0, 75% 0, 75% 12%, 88% 12%, 88% 25%, 100% 25%, 100% 75%, 88% 75%, 88% 88%, 75% 88%, 75% 100%, 25% 100%, 25% 88%, 12% 88%, 12% 75%, 0 75%, 0 25%, 12% 25%, 12% 12%, 25% 12%);
}
.site-settings-header h2 { margin: 0; white-space: nowrap; color: #79efaa; font-size: clamp(18px, 2.2vw, 24px); font-weight: 400; }
.site-settings-close, .site-settings-choice {
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid transparent;
  color: #79efaa;
  background: transparent;
  font: inherit;
  cursor: var(--cursor-pointer, pointer);
}
.site-settings-close:hover, .site-settings-close:focus-visible, .site-settings-choice:hover, .site-settings-choice:focus-visible {
  color: #06131c;
  border-color: #79efaa;
  background: #79efaa;
  outline: none;
}
.site-settings-body { min-height: 0; overflow-y: auto; padding: clamp(18px, 4vw, 34px); scrollbar-color: #79efaa #0b2028; scrollbar-width: thin; }
.site-settings-body::-webkit-scrollbar { width: 8px; }
.site-settings-body::-webkit-scrollbar-track { background: #0b2028; }
.site-settings-body::-webkit-scrollbar-thumb { border: 2px solid #0b2028; background: #79efaa; }
.site-settings-group { max-width: 52ch; padding: clamp(16px, 3vw, 24px); border: 1px solid color-mix(in srgb, #79efaa 48%, #183525); background: #091a20; }
.site-settings-kicker { margin: 0 0 8px; color: #a8cdb5; font-size: 13px; letter-spacing: .1em; }
.site-settings-group h3 { margin: 0; color: #79efaa; font-size: clamp(20px, 3vw, 28px); font-weight: 400; }
.site-settings-choice-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.site-settings-choice.is-active { border-color: #79efaa; color: #06131c; background: #79efaa; }
.site-settings-coming { color: #8aa696; font-size: 14px; }
.site-settings-note { margin: 18px 0 0; color: #c1dfca; line-height: 1.65; }
.site-settings-footer { min-width: 0; padding: 10px 20px; border-top: 1px solid color-mix(in srgb, #79efaa 48%, #183525); color: #a8cdb5; background: #0b1b25; font-size: 13px; overflow-wrap: anywhere; }
body.settings-open { overflow: hidden; }
@media (max-width: 520px), (orientation: portrait) and (max-height: 620px) {
  .site-controls { top: 8px; right: 8px; }
  .site-settings-trigger { min-height: 32px; padding: 5px 6px; font-size: 12px; }
  .site-settings { padding: 10px; }
  .site-settings-header { padding: 10px 12px; }
  .site-settings-body { padding: 12px; }
  .site-settings-group { padding: 14px; }
  .site-settings-footer { padding: 8px 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-settings-trigger, .site-settings-dialog { transition: none; }
}

/* Resource declarations share the settings shell and its vertical scrollbar. */
.site-settings-notices { margin-top: 20px; max-width: none; }
.site-notices-kicker { margin: 0 0 8px; color: #a8cdb5; font-size: 13px; letter-spacing: .08em; }
.site-notices-intro { margin: 16px 0; color: #b9d6c3; font-size: 14px; line-height: 1.65; }
.site-notices-list { min-width: 0; }
.site-notice-tree { margin: 0; padding: 0; list-style: none; }
.site-notice-tree .site-notice-tree { margin-top: 12px; }
.site-notice-entry { min-width: 0; border-top: 1px solid rgb(121 239 170 / 20%); }
.site-notice-entry > summary {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 0;
  color: #79efaa; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere;
  cursor: var(--cursor-pointer, pointer); list-style: none;
}
.site-notice-entry > summary::-webkit-details-marker { display: none; }
.site-notice-entry > summary::before { content: '+'; flex: 0 0 10px; color: #9bcab0; }
.site-notice-entry[open] > summary::before { content: '−'; }
.site-notice-entry > summary:hover { color: #b3f4c8; }
.site-notice-entry > summary:focus-visible { outline: 1px solid #79efaa; outline-offset: 3px; }
.site-notice-number { flex: 0 0 auto; color: #9bcab0; font-variant-numeric: tabular-nums; }
.site-notice-copy { min-width: 0; padding: 0 0 12px 20px; color: #b9d6c3; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.site-notice-copy p { margin: 0 0 10px; white-space: pre-line; }
.site-notice-credit > span { color: #89bda0; }
.site-notice-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-notice-links a { color: #79efaa; text-decoration: underline; text-underline-offset: 3px; }
.site-notice-links a:hover { color: #b3f4c8; }
.site-notices-status { color: #b9d6c3; font-size: 14px; }
.site-notices-status[hidden] { display: none; }
@media (max-width: 520px) {
  .site-settings-notices { margin-top: 14px; }
  .site-notice-entry > summary { gap: 7px; font-size: 13px; }
  .site-notice-copy { padding-left: 10px; font-size: 12px; }
}

.site-message-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #79efaa;
  cursor: var(--cursor-pointer, pointer);
}
.site-message-trigger:hover, .site-message-trigger:focus-visible {
  color: #b3f4c8;
  background: transparent;
  outline: none;
}
