:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #121c27;
  --line: #263544;
  --text: #edf4fa;
  --muted: #9aabba;
  --accent: #5ef0cf;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}
aside {
  width: 238px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -1px;
}
.brand span {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 4px;
}
.aside-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 54px 0 14px;
}
.nav {
  display: block;
  padding: 13px 12px;
  margin: 3px -8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
}
.nav.active {
  background: #1c3034;
  color: var(--accent);
}
.aside-note {
  margin-top: auto;
  padding-top: 70px;
}
.aside-note strong {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.4px;
}
.aside-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.safety {
  font-size: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--accent);
}
main {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 42px 42px 22px;
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 10px 0;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
header p {
  margin: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 600;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step {
  font-size: 12px;
  border: 1px solid #39525a;
  color: var(--accent);
  border-radius: 5px;
  padding: 5px;
}
.tag {
  font-size: 12px;
  color: var(--muted);
  background: #1c2935;
  padding: 6px 8px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
label {
  display: block;
  font-size: 14px;
  margin: 14px 0 8px;
}
input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: #0b141e;
  border: 1px solid #354452;
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
}
textarea,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #092b27;
  padding: 13px 19px;
  cursor: pointer;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  color: var(--text);
  background: #253646;
}
button.quiet {
  color: var(--muted);
  background: transparent;
  padding: 8px;
  font-size: 13px;
}
.inline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.work-grid .panel {
  min-height: 230px;
}
.empty {
  padding: 22px 0;
  font-size: 14px;
}
.site {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  margin: 8px 0;
  color: var(--text);
  white-space: normal;
}
.site strong {
  display: block;
  margin-bottom: 7px;
}
.site small {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.site.selected {
  border-color: var(--accent);
  background: #173130;
}
.capability {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.capability strong {
  font-size: 14px;
  font-weight: 550;
}
.capability small {
  font-size: 12px;
  color: var(--muted);
}
.capability .supported {
  color: var(--accent);
}
.execution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.output {
  background: #0a131c;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.output-heading {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.output pre {
  padding: 18px;
  margin: 0;
  min-height: 250px;
  max-height: 550px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
details {
  margin-top: 20px;
}
summary {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 550px;
  padding: 18px 22px;
  background: #253646;
  border: 1px solid #526575;
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 10px 50px #0007;
  font-size: 14px;
}
.activity-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  gap: 10px;
  font-size: 13px;
}
.activity-row span:last-child {
  color: var(--muted);
}
footer {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 20px;
}
.login {
  max-width: 620px;
  margin: 50px auto;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  aside {
    width: 195px;
    padding: 28px 18px;
  }
  main {
    padding: 32px 25px;
  }
  .work-grid,
  .execution-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    gap: 0;
  }
}
@media (max-width: 650px) {
  body {
    display: block;
  }
  aside {
    width: auto;
    height: auto;
    position: static;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .aside-label,
  .aside-note,
  .nav {
    display: none;
  }
  main {
    padding: 25px 16px;
  }
  h1 {
    font-size: 29px;
  }
  .panel {
    padding: 18px;
  }
  .inline {
    flex-wrap: wrap;
  }
  .inline input {
    flex-basis: 100%;
  }
  .inline button {
    flex: 1;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 8px;
  }
  header {
    align-items: flex-start;
  }
  .activity-row {
    flex-wrap: wrap;
  }
}
/* Guidance and test results keep the existing studio's visual language. */
.button-link { color: var(--accent); font-size: 14px; text-decoration: none; padding: 10px 0; }
h3 { font-size: 17px; } h4 { font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#capability-guide table { table-layout: fixed; }
#product-helper { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
#product-helper button { margin-top: 12px; }
.journey-actions { margin-top: 18px; }
#journey-results details { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
#journey-results summary { color: var(--text); font-size: 14px; }
#journey-results pre { max-height: 300px; }
.journey-location { margin-top: 12px; }
.journey-consent { margin-top: 18px; }
.coverage-incomplete { color: #ffbf78; }
.coverage-complete { color: var(--accent); }
.chat-launcher { position: fixed; bottom: 20px; right: 22px; z-index: 11; box-shadow: 0 5px 25px #0008; }
.chat-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(480px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -20px 0 60px #0007; z-index: 20; padding: 24px; display: flex; flex-direction: column; }
.chat-panel .section-heading { margin-bottom: 8px; }
.chat-panel p { margin: 8px 0; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.switch span { color: var(--accent); margin-left: auto; }
#chat-messages { flex: 1; min-height: 0; overflow: auto; padding: 8px 0; }
.chat-message { padding: 15px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 12px; border-radius: 8px; }
.chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.chat-message strong { color: var(--accent); font-size: 13px; }
.chat-message pre { max-height: 260px; }
#chat-form button { width: 100%; margin-top: 8px; }
#chat-reset { align-self: flex-start; }
@media (max-width:650px) { .chat-panel { padding: 16px; } .journey-actions button { white-space: normal; } }

.table-scroll { overflow: auto; }
.catalogue-filters {display:grid;grid-template-columns:1fr 1fr;gap:18px;}
#catalogue-products button {padding:8px 12px;}
#catalogue-panel .journey-actions {flex-wrap:wrap;}
.chat-key-settings {max-height:32dvh;overflow:auto;margin:10px 0;border:1px solid var(--line);border-radius:6px;padding:12px;flex-shrink:0;}
.chat-panel {overflow-y:auto;}
#chat-form {flex-shrink:0;}
.chat-key-settings p {font-size:13px;}
.chat-key-settings a {color:var(--accent);}
#chat-key-test {margin-top:12px;}
@media(max-width:650px){.catalogue-filters {grid-template-columns:1fr;gap:0;} .nav.tutorial-nav {display:block;margin:8px 0 0;padding:8px 0;} #catalogue-products button{white-space:normal;} }

#copy-endpoint {margin-top:12px;}
main a {color:var(--accent);}
.accounts-page main { margin: 0 auto; max-width: 1400px; padding: 32px; }
.accounts-page .workspace { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 24px; }
.accounts-page aside.panel { position: static; width: auto; height: auto; padding: 24px; }
.accounts-page .activity-row { overflow-wrap: anywhere; margin: 16px 0; }
@media(max-width:650px) { .accounts-page .workspace { grid-template-columns: 1fr; } .accounts-page main { padding: 16px; } }
li {line-height:1.65;margin:10px 0;}

/* Persisted server directory stays usable on narrow screens. */
aside { width: 300px; overflow-y: auto; }
#server-directory { margin-top: 24px; min-width: 0; }
#server-directory h2 { font-size: 17px; }
#server-directory .section-heading { gap: 8px; margin-bottom: 12px; }
#server-directory .quiet { padding: 7px; font-size: 12px; }
#server-directory label { font-size: 12px; }
#server-directory input, #server-directory select { padding: 10px; }
#server-directory .site { padding: 12px; }
#server-directory .site small { display: block; margin-top: 5px; }
#server-directory .site strong { overflow-wrap: anywhere; }
#server-directory + .aside-note { padding-top: 28px; }
#server-filters { margin-top: 12px; }
.server-metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
#draft-picker { margin-bottom: 18px; }
#saved-server-panel { scroll-margin-top: 20px; }
@media (max-width: 1050px) { aside { width: 260px; } }
@media (max-width: 650px) {
  aside { width: auto; overflow: visible; }
  #server-directory .site-list { max-height: 260px; overflow-y: auto; }
  .server-metadata-grid { grid-template-columns: 1fr; }
}
