:root {
  color-scheme: light;
  --line: #e0e7f1;
  --panel: #fff;
  --muted: #586b86;
  --blue: #2563eb;
  color: #1b2d4c;
  background: #f6f8fc;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
body {
  background:
    radial-gradient(ellipse at 85% 10%, #edf3ff 0, transparent 40%), #f7f9fc;
  min-height: 100vh;
}
header {
  background: #ffffffdb;
  border-bottom: 1px solid #e6eaf2;
  padding: 0 4vw;
  height: 78px;
}
.brand {
  color: #19345b;
  font-size: 25px;
  letter-spacing: -1px;
}
.brandmark {
  width: 43px;
  height: 43px;
}
.version {
  display: none;
}
.header-note {
  color: #8693a8;
  border-color: #e1e7f1;
  font: 11px var(--mono);
  letter-spacing: 3px;
}
.button {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 3px 7px #215fd01a;
  border-radius: 9px;
  padding: 11px 18px;
  font-weight: 500;
}
.button:hover:not(:disabled) {
  background: #1b50d0;
  border-color: #1b50d0;
  transform: translateY(-1px);
}
.button.ghost {
  background: #fff;
  border-color: #dce4ef;
  color: #496081;
  box-shadow: none;
}
.button.ghost:hover:not(:disabled) {
  background: #f4f7fc;
  border-color: #becde3;
}
.button.subtle {
  background: #edf3ff;
  border-color: #e2eafb;
  color: #3562ac;
  box-shadow: none;
}
.button.subtle:hover:not(:disabled) {
  background: #e1ebff;
}
main {
  max-width: 1280px;
  padding: 0 42px;
  margin: auto;
}
.category-tabs {
  display: flex;
  gap: 32px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}
.category-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 20px 4px 19px;
  background: transparent;
  border: 0;
  color: #8290a5;
  font-size: 14px;
  font-weight: 500;
}
.category-tabs button.active {
  color: #205ad1;
}
.category-tabs button.active:after {
  position: absolute;
  content: "";
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #2b69ed;
}
.category-tabs button:hover {
  color: #285cad;
}
.category-icon {
  font-size: 22px;
  font-family: system-ui;
  font-weight: 400;
  color: inherit;
}
.studio-heading {
  height: 185px;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.studio-heading h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 12px 0;
  color: #182e51;
}
.studio-heading h1 span {
  font-weight: 500;
  color: #3975ed;
}
#workspace-label {
  font: 11px var(--mono);
  letter-spacing: 2.2px;
  color: #8b9db8;
}
#scene {
  width: 300px;
  height: 190px;
  position: relative;
  flex-shrink: 0;
  align-self: center;
  touch-action: pan-y;
}
#scene canvas {
  display: block;
  position: absolute;
  inset: 0;
  max-width: 100%;
  max-height: 100%;
}
.scene-fallback {
  position: absolute;
  height: 110px;
  width: 110px;
  object-fit: contain;
  top: 35px;
  left: 100px;
  opacity: 0.6;
}
#scene.ready .scene-fallback {
  display: none;
}
.steps {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  gap: 8px;
}
.steps button {
  flex: initial;
  padding: 9px 13px;
  border-radius: 8px;
  color: #75839a;
  font-size: 13px;
  justify-content: flex-start;
}
.steps button.active {
  background: #e8f0ff;
  color: #245fd0;
}
.steps button span {
  border-color: #d2ddec;
  color: #7389aa;
  background: #fff;
}
.steps button.active span {
  background: #3475ee;
  color: #fff;
  border-color: #3475ee;
}
.steps button:disabled {
  opacity: 0.6;
}
.steps button:hover:not(:disabled):not(.active) {
  background: #edf2fa;
}
.panel {
  border: 1px solid #e0e7f0;
  box-shadow: 0 8px 32px #253c6310;
  border-radius: 15px;
  background: white;
  padding: 25px;
}
h2,
h3 {
  color: #233a5e;
}
h2 {
  font-size: 17px;
}
.panel-title {
  margin-bottom: 22px;
}
.tag {
  background: #f4f7fc;
  color: #8495ae;
  border: 1px solid #e5ebf5;
}
.source-panel,
.source-panel:not(:has(.has-source)) {
  max-width: none;
  margin: 0;
  padding: 27px;
}
.drop {
  background: linear-gradient(115deg, #fbfcff, #f1f6ff);
  border: 1px dashed #b8cdeb;
  border-radius: 12px;
  padding: 35px 20px 31px;
}
.drop.drag {
  background: #e2edff;
  border-color: #3d7bf3;
}
.upload-icon {
  background: #fff;
  border: 1px solid #d9e5f8;
  box-shadow: 0 8px 16px #3976cb13;
  color: #4f89ed;
  border-radius: 16px;
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
}
.drop h3 {
  font-size: 21px;
  color: #314b72;
  letter-spacing: -0.5px;
}
.drop p {
  color: #8d9cb3;
  margin: 7px 0 22px;
}
.source-foot {
  color: #899ab3;
  border-color: #e9edf5;
  padding-top: 17px;
  margin-top: 18px;
  font-size: 12px;
}
.privacy-inline:before {
  color: #4488e8;
}
.has-source {
  padding: 17px;
  display: flex;
  flex-direction: row;
}
.has-source h3 {
  font-size: 16px;
}
.has-source .upload-icon {
  margin: 0;
  width: 44px;
  height: 44px;
}
.has-source p {
  margin: 3px 0 0;
}
.section-label {
  color: #8b9bb3;
}
.chip {
  background: #eef4ff;
  border-color: #e0eafb;
  color: #496d9e;
}
.chip span {
  color: #8eadd2;
}
.component {
  background: #fafcff;
  border-color: #e2e9f3;
}
.service-icon {
  background: #eef4ff;
  border-color: #dce8fa;
  color: #577faa;
}
.service-meta code {
  color: #8c9db5;
}
.tag.blue,
.tag.green {
  background: #edf5ff;
  color: #3e79c8;
  border-color: #dbe9fb;
}
.tag.violet {
  background: #f2f0ff;
  color: #8171c7;
  border-color: #e6e0fb;
}
.count {
  background: #eaf0f9;
  color: #7188aa;
}
.source-details summary,
details,
summary {
  color: #7a8ca6;
}
summary:hover {
  color: #315b99;
}
.bottom-bar,
.help,
.runtime {
  border-color: #e6edf5;
}
.small,
p {
  color: #7b8da8;
}
.warn {
  background: #fff9ec;
  border-color: #f0dfb8;
  color: #93763a;
}
.notice {
  background: #eaf4ff;
  border-color: #d0e6fc;
  color: #3c75ab;
}
.notice.error {
  background: #fff0f1;
  border-color: #f2d5d9;
  color: #b05163;
}
.mode-options {
  background: #f3f6fb;
  border-color: #e6ebf4;
  border-radius: 8px;
}
.mode-options button {
  color: #7c8fa9;
}
.mode-options button.active {
  background: #fff;
  color: #3973d0;
  box-shadow: 0 2px 6px #30467212;
}
.mode-options button:hover:not(.active) {
  background: #e7edf6;
  color: #5c7aa3;
}
.service-form {
  background: #fff;
  border-color: #e1e8f3;
  box-shadow: none;
}
.service-disclosure > summary {
  color: #476087;
  padding: 15px 18px;
  background: #fbfcff;
}
.service-disclosure[open] > summary {
  border-color: #e5ebf5;
}
.service-summary-meta {
  color: #8aa0bb;
}
.service-summary-name {
  color: #355278;
}
.inline-label {
  color: #6881a2;
}
.remove {
  color: #a3b0c2;
}
.remove:hover {
  color: #d97082;
}
label {
  color: #526782;
  font-size: 13px;
}
input,
select,
textarea {
  background: #f9fbff;
  border: 1px solid #dce5f2;
  color: #355278;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
input,
select {
  padding: 11px 12px;
  margin-top: 8px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #70a5f7;
  outline: 3px solid #4788ef13;
}
input::placeholder {
  color: #a7b5c9;
}
input:disabled {
  background: #f2f5fa;
  color: #91a2b8;
}
.runtime summary {
  color: #7790af;
}
.runtime summary span {
  color: #9eaec3;
}
.check {
  color: #8092ac;
}
.page-actions {
  background: #fffefa;
  border-color: #dfe7f3;
  box-shadow: 0 4px 18px #27466c0a;
}
.package-layout ~ .page-actions {
  background: transparent;
  box-shadow: none;
}
.file-tabs {
  background: #f9fbff;
  border-color: #e2eaf5;
}
.file-tabs button {
  color: #7e93b0;
}
.file-tabs button.active {
  background: #eaf1ff;
  color: #3d73c3;
}
.file-tabs button:hover:not(.active) {
  background: #edf3fa;
}
.file-icon {
  color: #8ba7cf;
}
.code-pane,
.code-pane pre {
  background: #fff;
  color: #587aa1;
}
.code-toolbar {
  border-color: #e9eef5;
}
.code-toolbar > span {
  color: #8aa0bd;
}
.code-toolbar .button {
  border-color: #e3eaf5;
}
.editor-panel {
  padding: 0;
}
.editor-panel > .panel-title {
  border-color: #e7edf6;
}
.bundle-list {
  color: #7189ab;
}
.transmission {
  border-color: #a4c7fb;
}
.file-list {
  color: #778ea9;
}
.instructions {
  color: #7b91af;
}
code {
  color: #5684bd;
}
.package-summary h2 {
  color: #35537b;
}
.package-summary > div > span {
  color: #91a3bc;
}
.package-options .small {
  color: #869bb6;
}
#job-view pre {
  background: #f6f9fe;
  color: #587599;
}
.error-list {
  padding: 10px 22px 22px;
}
footer {
  border-color: #e1e8f1;
  color: #9aa9bd;
  max-width: none;
  margin: 30px 0 0;
  padding: 20px 0;
}
.nginx-entry {
  max-width: 590px;
  margin: 0 auto;
  padding: 30px 34px;
}
.entry-number {
  font: 12px var(--mono);
  color: #5f8fd6;
  margin-bottom: 15px;
}
.entry-number span {
  color: #a5b6cf;
  margin-left: 8px;
  letter-spacing: 1px;
}
.nginx-entry h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin-bottom: 27px;
}
.nginx-entry .fields {
  gap: 22px;
}
.optional {
  float: right;
  font-size: 11px;
  color: #a5b3c7;
}
.ip-class {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 12px var(--mono);
  padding: 6px 10px;
  border-radius: 6px;
  background: #f0f4fa;
  color: #8fa2bb;
}
.ip-class:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.ip-class.private {
  background: #edf6ff;
  color: #4387c9;
}
.ip-class.public {
  background: #eef9f4;
  color: #439675;
}
.ip-class.invalid {
  background: #fff1f0;
  color: #c66c6c;
}
.ip-class.special {
  background: #fff8e9;
  color: #b79247;
}
#ip-badge {
  margin-top: 14px;
  min-height: 31px;
}
.entry-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid #e9eef5;
  padding-top: 22px;
  margin-top: 25px;
}
.entry-bottom details {
  max-width: 320px;
  font-size: 12px;
}
.entry-bottom p {
  font-size: 12px;
}
.nginx-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.nginx-settings {
  padding: 23px;
}
.nginx-settings .panel-title {
  margin-bottom: 12px;
}
.nginx-settings .button.ghost {
  font-size: 12px;
  padding: 5px 11px;
  min-height: 32px;
}
.connection-host {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.connection-host span {
  font-size: 13px;
  color: #637690;
}
.connection-host strong {
  font: 17px var(--mono);
  color: #406392;
}
.port-fields {
  border-top: 1px solid #e7edf5;
  margin-top: 24px;
  padding-top: 23px;
}
.port-connector {
  height: 32px;
  text-align: center;
  color: #a9bfdb;
  font-size: 19px;
  line-height: 32px;
}
.nginx-settings .wide {
  margin-top: 22px;
}
.nginx-settings .help {
  font-size: 12px;
}
#nginx-change {
  font-size: 12px;
  line-height: 1.8;
  min-height: 12px;
}
.nginx-editor {
  padding: 0;
  overflow: hidden;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #e4ebf5;
  background: #fbfcff;
}
.editor-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.editor-heading strong {
  font: 13px var(--mono);
  color: #46638b;
}
.file-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #8cb5ed;
}
#edit-status {
  font-size: 11px;
  color: #647891;
}
.editor-heading .button {
  font-size: 12px;
  padding: 9px 13px;
}
#nginx-code {
  display: block;
  width: 100%;
  resize: vertical;
  border: 0;
  border-radius: 0;
  outline-offset: -3px;
  min-height: 450px;
  margin: 0;
  padding: 26px;
  font: 13px/1.9 var(--mono);
  tab-size: 4;
  white-space: pre;
  background: #fff;
  color: #344f72;
  overflow: auto;
}
#nginx-code:focus {
  outline: 2px solid #a1c6fb;
  box-shadow: none;
}
.editor-bottom {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px;
  background: #fbfcff;
  border-top: 1px solid #edf1f7;
  color: #a5b5cb;
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.notice {
  margin-top: 0;
}
.button:focus-visible,
.category-tabs button:focus-visible {
  outline: 3px solid #8ebaf9;
}
@media (min-width: 1500px) {
  main {
    padding-top: 0;
  }
}
@media (max-width: 900px) {
  main {
    padding: 0 25px;
  }
  .studio-heading {
    height: 165px;
  }
  .studio-heading h1 {
    font-size: 37px;
  }
  .nginx-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
  }
  .nginx-settings {
    padding: 19px;
  }
  #scene {
    width: 240px;
    height: 160px;
  }
  .editor-heading {
    padding: 16px;
  }
  #edit-status {
    display: none;
  }
  #nginx-code {
    padding: 20px;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  header {
    height: 67px;
    padding: 0 18px;
  }
  .brand {
    font-size: 23px;
  }
  .brandmark {
    width: 35px;
    height: 35px;
  }
  .header-actions .button {
    font-size: 12px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 0 17px;
  }
  .category-tabs {
    gap: 20px;
    margin-top: 4px;
  }
  .category-tabs button {
    font-size: 12px;
    padding: 16px 0;
    gap: 7px;
  }
  .category-icon {
    font-size: 20px;
  }
  .studio-heading {
    height: 148px;
    overflow: hidden;
  }
  .studio-heading > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 60%;
  }
  .studio-heading h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    margin-top: 10px;
  }
  #workspace-label {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  #scene {
    position: absolute;
    right: -30px;
    width: 175px;
    height: 155px;
    opacity: 0.85;
  }
  .scene-fallback {
    width: 75px;
    height: 75px;
    left: 65px;
  }
  .steps {
    gap: 2px;
    margin-bottom: 18px;
  }
  .steps button {
    font-size: 11px;
    padding: 8px 6px;
    flex: 1;
  }
  .steps button span {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .source-panel,
  .source-panel:not(:has(.has-source)) {
    padding: 18px;
  }
  .panel {
    border-radius: 12px;
  }
  .drop {
    padding: 30px 12px;
  }
  .drop h3 {
    font-size: 19px;
  }
  .has-source {
    padding: 13px;
  }
  .has-source h3 {
    font-size: 15px;
  }
  .source-foot {
    flex-direction: row;
    font-size: 10px;
    gap: 8px;
  }
  .nginx-entry {
    padding: 23px;
  }
  .nginx-entry h2 {
    font-size: 23px;
  }
  .entry-bottom {
    align-items: flex-start;
    gap: 13px;
  }
  .entry-bottom details {
    font-size: 11px;
    max-width: 160px;
  }
  .entry-bottom .button {
    font-size: 13px;
    white-space: nowrap;
  }
  .nginx-layout {
    grid-template-columns: 1fr;
  }
  .nginx-settings {
    padding: 20px;
  }
  .port-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .port-connector {
    display: none;
  }
  .editor-heading {
    padding: 15px;
  }
  .nginx-editor {
    padding: 0;
  }
  #nginx-code {
    min-height: 400px;
    resize: vertical;
    font-size: 12px;
    padding: 18px;
  }
  .file-tabs {
    background: #f9fbff;
  }
  .code-pane pre {
    color: #587fa8;
  }
  .editor-panel {
    padding: 0;
  }
  .page-actions {
    background: #fff;
  }
  .package-layout ~ .page-actions {
    background: transparent;
  }
  footer {
    font-size: 10px;
    margin-top: 25px;
  }
  .category-tabs .active:after {
    height: 2px;
  }
}

/* Keep analysis, scope selection and packaging on one working surface. */
.quick-package { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.quick-package > .panel-title { flex-wrap: wrap; gap: 12px; }
.quick-package .scope-options { margin: 0; min-width: 280px; }
.selected-parts { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 20px; }
.selected-parts > span { background: #f0f5ff; color: #244878; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.selected-parts small { color: #5c7190; margin-left: 8px; }
.advanced-config { border: 1px solid #e1e8f2; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.advanced-config > summary { cursor: pointer; font-size: 13px; color: #526782; }
.advanced-config > .fields { margin-top: 18px; max-width: 440px; }
.advanced-config .service-form { margin-top: 14px; }
.quick-package .package-options { background: #f7faff; box-shadow: none; border: 1px solid #e0e9f7; padding: 20px; }
.quick-package .package-options > h2, .quick-package .bundle-list { display: none; }
.quick-package .package-options .mode-options { max-width: 330px; margin-top: 0; }
.quick-package .package-options .wide { width: auto; min-width: 220px; }
.quick-package .package-options > .help { margin-top: 16px; }
.quick-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
@media (max-width: 760px) {
  .quick-package .scope-options { width: 100%; min-width: 0; }
  .quick-package .package-options { padding: 16px; }
  .quick-package .package-options .wide { width: 100%; }
}
