:root {
  --suite-primary-height: 64px;
  --suite-nav-height: var(--suite-primary-height);
}

.suite-header,
.suite-header * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.suite-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--suite-nav-height);
  border-bottom: 1px solid rgba(233, 188, 91, 0.28);
  background:
    linear-gradient(90deg, rgba(4, 15, 20, 0.98), rgba(9, 29, 35, 0.98) 52%, rgba(12, 24, 27, 0.98)),
    #061116;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34);
  color: #f8edcf;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.suite-primary-bar {
  display: flex;
  width: min(1720px, 100%);
  height: var(--suite-primary-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 6px 18px;
}

.suite-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #f8edcf;
  text-decoration: none;
}

.suite-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: 0 0 auto;
  object-fit: cover;
}

.suite-brand span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.suite-brand strong {
  color: #efc665;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1;
}

.suite-brand small {
  overflow: hidden;
  color: #a9bbb9;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-primary-nav,
.suite-tool-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.suite-primary-nav a,
.suite-tool-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c5d1cf;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.suite-primary-nav a {
  min-height: 36px;
  padding: 0 11px;
  font-size: 11px;
  text-transform: uppercase;
}

.suite-primary-nav a:hover,
.suite-primary-nav a:focus-visible,
.suite-tool-nav a:hover,
.suite-tool-nav a:focus-visible {
  border-color: rgba(100, 231, 218, 0.48);
  color: #fff2c4;
  outline: none;
}

.suite-primary-nav a.is-current,
.suite-tool-nav a.is-current {
  border-color: rgba(239, 198, 101, 0.58);
  background: rgba(239, 198, 101, 0.11);
  color: #efc665;
  box-shadow: inset 0 0 16px rgba(100, 231, 218, 0.06);
}

.suite-tool-menu {
  position: fixed;
  z-index: 1200;
  top: auto;
  right: 18px;
  bottom: 18px;
  color: #f8edcf;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.suite-tool-menu summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(100, 231, 218, 0.42);
  border-radius: 999px;
  color: #f8edcf;
  background: rgba(4, 18, 24, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
}

.suite-tool-menu summary::-webkit-details-marker {
  display: none;
}

.suite-tool-menu summary::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64e7da;
  box-shadow: 0 0 11px rgba(100, 231, 218, 0.7);
  content: "";
}

.suite-tool-menu summary:hover,
.suite-tool-menu summary:focus-visible {
  border-color: rgba(239, 198, 101, 0.72);
  color: #fff2c4;
  outline: 2px solid rgba(100, 231, 218, 0.38);
  outline-offset: 2px;
}

.suite-tool-menu[open] summary {
  border-color: rgba(239, 198, 101, 0.62);
  color: #efc665;
}

.suite-tool-menu .suite-tool-nav {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 220px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(151, 204, 196, 0.3);
  border-radius: 10px;
  background: #06151b;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  gap: 5px;
}

.suite-tool-menu .suite-tool-nav a {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  padding: 0 12px;
  font-size: 11px;
}

html[data-suite-app="lore"] .app-shell,
html[data-suite-app="forge"] .app-shell,
html[data-suite-app="recipes"] .app-shell,
html[data-suite-app="materials"] .app-shell,
html[data-suite-app="skills"] .app-shell {
  min-height: calc(100vh - var(--suite-nav-height));
}

html[data-suite-app="recipes"] .site-header,
html[data-suite-app="materials"] .site-header {
  top: var(--suite-nav-height);
}

html[data-suite-app="lore"] .app-nav {
  top: calc(var(--suite-nav-height) + 4px);
  height: calc(100vh - var(--suite-nav-height) - 8px);
}

html[data-suite-app="lore"] .full-profile {
  top: var(--suite-nav-height);
}

html[data-suite-app="lore"] .full-profile-shell {
  min-height: calc(100vh - var(--suite-nav-height) - 44px);
}

html[data-suite-app="lore"] .constellation-map {
  top: calc(var(--suite-nav-height) + 4px);
}

html[data-suite-app="lore"] .constellation-sheet-scrim {
  top: var(--suite-nav-height);
}

html[data-suite-app="wiki"] .wiki-rail,
html[data-suite-app="wiki"] .wiki-context {
  top: calc(var(--suite-nav-height) + 4px);
  height: calc(100vh - var(--suite-nav-height) - 8px);
}

html[data-suite-app="wiki"] .tutorial-progress {
  top: calc(var(--suite-nav-height) + 10px);
}

html[data-suite-app="skills"] .nav-panel,
html[data-suite-app="skills"] .summary-panel {
  top: var(--suite-nav-height);
  height: calc(100vh - var(--suite-nav-height));
}

html[data-suite-app="skills"] .workspace {
  height: calc(100vh - var(--suite-nav-height));
}

@media (max-width: 1180px) and (min-width: 761px) {
  html[data-suite-app="skills"] .summary-panel {
    top: auto;
    height: 32vh;
  }
}

@media (max-width: 760px) {
  .suite-primary-bar {
    gap: 8px;
    padding: 6px 8px;
  }

  .suite-brand {
    gap: 6px;
  }

  .suite-brand img {
    width: 38px;
    height: 38px;
  }

  .suite-brand span {
    display: grid;
    width: min(125px, 34vw);
  }

  .suite-brand strong {
    font-size: 13px;
  }

  .suite-brand small {
    overflow: visible;
    font-size: 7.5px;
    line-height: 1.05;
    text-overflow: clip;
    white-space: normal;
  }

  .suite-primary-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 2px;
    overflow: visible;
  }

  .suite-primary-nav a {
    min-height: 38px;
    padding: 0 4px;
    font-size: 8px;
  }

  .suite-tool-menu {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .suite-tool-menu .suite-tool-nav {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(250px, calc(100vw - 24px));
  }

  .suite-tool-menu .suite-tool-nav a {
    max-width: none;
  }

  html[data-suite-app="lore"] .app-nav {
    top: calc(var(--suite-nav-height) + 2px);
    height: calc(100vh - var(--suite-nav-height) - 4px);
  }

  html[data-suite-app="skills"] .app-shell {
    height: calc(100svh - var(--suite-nav-height) - 58px - env(safe-area-inset-bottom));
  }

  html[data-suite-app="skills"] .nav-panel {
    top: auto;
    height: auto;
  }

  html[data-suite-app="skills"] .workspace {
    height: auto;
  }

  html[data-suite-app="skills"] .summary-panel {
    top: auto;
    height: min(70svh, calc(100svh - var(--suite-nav-height)));
  }
}


.suite-external-dialog {
  width: min(560px, calc(100vw - 30px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(100, 231, 218, 0.42);
  border-radius: 16px;
  color: #f8edcf;
  background: #07171d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.suite-external-dialog::backdrop {
  background: rgba(1, 7, 10, 0.76);
  backdrop-filter: blur(5px);
}

.suite-external-dialog form {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 26px;
}

.suite-external-dialog h2,
.suite-external-dialog p {
  margin: 0;
}

.suite-external-dialog h2 {
  color: #fff2c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.suite-external-dialog p:not(.suite-external-eyebrow) {
  color: #c5d1cf;
  font-size: 14px;
  line-height: 1.55;
}

.suite-external-eyebrow {
  color: #64e7da;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.suite-external-hostname {
  color: #fff2c4;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.suite-external-destination {
  display: block;
  padding: 12px 13px;
  border: 1px solid rgba(151, 204, 196, 0.25);
  border-radius: 9px;
  color: #efc665;
  background: rgba(1, 8, 11, 0.68);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.suite-external-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}

.suite-external-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(151, 204, 196, 0.32);
  border-radius: 999px;
  color: #d9e4e1;
  background: rgba(9, 29, 35, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.suite-external-actions #externalLinkContinue {
  border-color: rgba(239, 198, 101, 0.64);
  color: #081318;
  background: #efc665;
}

.suite-external-actions button:hover,
.suite-external-actions button:focus-visible {
  border-color: #64e7da;
  outline: 2px solid rgba(100, 231, 218, 0.28);
  outline-offset: 2px;
}

.suite-footer,
.suite-footer * {
  box-sizing: border-box;
}

.suite-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  border-top: 1px solid rgba(233, 188, 91, 0.28);
  color: #d9e4e1;
  background:
    linear-gradient(110deg, rgba(4, 15, 20, 0.98), rgba(9, 29, 35, 0.98) 56%, rgba(12, 24, 27, 0.98)),
    #061116;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.suite-footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(300px, 1.7fr);
  gap: 20px 34px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 34px 28px 28px;
}

.suite-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: start;
  color: #f8edcf;
  text-decoration: none;
}

.suite-footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
}

.suite-footer-brand span {
  display: grid;
  gap: 3px;
}

.suite-footer-brand strong {
  color: #efc665;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
}

.suite-footer-brand small {
  color: #a9bbb9;
  font-size: 11px;
  line-height: 1.25;
}

.suite-footer-socials,
.suite-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.suite-footer-socials {
  justify-content: flex-end;
}

.suite-footer-socials a,
.suite-footer-links a,
.suite-footer-links button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(151, 204, 196, 0.24);
  border-radius: 999px;
  color: #d9e4e1;
  background: rgba(7, 23, 29, 0.7);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.suite-footer-links button {
  cursor: pointer;
  font-family: inherit;
}

.suite-footer-socials a:hover,
.suite-footer-socials a:focus-visible,
.suite-footer-links a:hover,
.suite-footer-links a:focus-visible,
.suite-footer-links button:hover,
.suite-footer-links button:focus-visible {
  border-color: #64e7da;
  color: #fff2c4;
  outline: 2px solid rgba(100, 231, 218, 0.22);
  outline-offset: 2px;
}

.suite-footer-links {
  align-self: center;
}

.suite-footer-links a,
.suite-footer-links button {
  min-height: 34px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: #a9bbb9;
}

.suite-analytics-choices,
.suite-analytics-choices * {
  box-sizing: border-box;
}

.suite-analytics-choices {
  position: fixed;
  z-index: 1800;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(620px, calc(100vw - 36px));
  opacity: 0;
  color: #f8edcf;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.suite-analytics-choices.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.suite-analytics-card {
  position: relative;
  display: grid;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 11px;
  padding: 24px;
  border: 1px solid rgba(100, 231, 218, 0.46);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(7, 23, 29, 0.99), rgba(9, 34, 39, 0.99)),
    #07171d;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.68);
}

.suite-analytics-card h2,
.suite-analytics-card p {
  margin: 0;
}

.suite-analytics-card h2 {
  padding-right: 32px;
  color: #fff2c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.06;
}

.suite-analytics-card p:not(.suite-analytics-eyebrow) {
  color: #c5d1cf;
  font-size: 13px;
  line-height: 1.55;
}

.suite-analytics-eyebrow {
  color: #64e7da;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.suite-analytics-status {
  min-height: 20px;
  color: #efc665 !important;
  font-weight: 750;
}

.suite-analytics-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.suite-analytics-actions button,
.suite-analytics-close {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(151, 204, 196, 0.4);
  border-radius: 999px;
  color: #e6eeeb;
  background: rgba(5, 18, 23, 0.96);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.suite-analytics-actions [data-gunc-analytics-accept] {
  border-color: rgba(239, 198, 101, 0.7);
  color: #081318;
  background: #efc665;
}

.suite-analytics-actions button:hover,
.suite-analytics-actions button:focus-visible,
.suite-analytics-close:hover,
.suite-analytics-close:focus-visible {
  border-color: #64e7da;
  outline: 2px solid rgba(100, 231, 218, 0.3);
  outline-offset: 2px;
}

.suite-analytics-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.suite-analytics-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.suite-analytics-policy {
  width: fit-content;
  color: #64e7da;
  font-size: 12px;
  font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
  .suite-analytics-choices {
    transition: none;
  }
}

.suite-footer-legal {
  display: grid;
  gap: 5px;
  justify-items: end;
  color: #819895;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.suite-footer-legal p {
  max-width: 760px;
  margin: 0;
}

.suite-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #061116;
  background: #efc665;
  font-weight: 800;
  transform: translateY(-140%);
}

.suite-skip-link:focus {
  transform: translateY(0);
}

.suite-legal-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #f8edcf;
  background:
    radial-gradient(circle at 78% 12%, rgba(100, 231, 218, 0.12), transparent 28rem),
    linear-gradient(180deg, #07171d, #03090d 78%);
}

.suite-legal-main {
  width: min(900px, calc(100% - 36px));
  min-height: calc(100vh - var(--suite-nav-height));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) 0 72px;
}

.suite-legal-main h1,
.suite-legal-main h2,
.suite-legal-main p {
  margin-top: 0;
}

.suite-legal-main h1 {
  margin-bottom: 10px;
  color: #fff2c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.98;
}

.suite-legal-main section {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(151, 204, 196, 0.18);
}

.suite-legal-main h2 {
  margin-bottom: 12px;
  color: #efc665;
  font-size: 20px;
}

.suite-legal-main p {
  color: #c5d1cf;
  font-size: 15px;
  line-height: 1.75;
}

.suite-legal-main a {
  color: #64e7da;
}

.suite-legal-eyebrow,
.suite-legal-updated {
  color: #819895 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .suite-footer-inner {
    grid-template-columns: 1fr;
    padding: 30px 20px 25px;
  }

  .suite-footer-socials,
  .suite-footer-legal {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .suite-external-dialog form { padding: 21px 18px; }
  .suite-external-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .suite-external-actions button { width: 100%; }
  .suite-analytics-choices {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
  .suite-analytics-card { padding: 21px 18px; }
  .suite-analytics-actions { grid-template-columns: 1fr; }
}
