:root {
  --amx-ink: #10263a;
  --amx-muted: #607184;
  --amx-navy: #0b2239;
  --amx-navy-soft: #173a58;
  --amx-teal: #087f83;
  --amx-teal-dark: #06676b;
  --amx-teal-soft: #dff4f2;
  --amx-surface: #ffffff;
  --amx-canvas: #f3f6f8;
  --amx-line: #dce4e9;
  --amx-focus: #f4b942;
  --amx-shadow: 0 14px 36px rgb(11 34 57 / 10%);
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans TC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--amx-canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--amx-ink);
  background:
    radial-gradient(circle at 18% 0%, rgb(8 127 131 / 8%), transparent 28rem),
    var(--amx-canvas);
}

.amx-skip-link {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--amx-teal-dark);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.amx-topbar {
  position: relative;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(
    112deg,
    var(--amx-navy) 0%,
    #10334d 72%,
    #0b4b58 100%
  );
  box-shadow: 0 7px 24px rgb(9 29 46 / 18%);
}

.amx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.amx-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #10a1a5, #087179);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.amx-brand-copy {
  display: grid;
  gap: 1px;
}

.amx-brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.14em;
}

.amx-brand-copy span {
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.amx-primary-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.amx-primary-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: rgb(255 255 255 / 72%);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.amx-primary-nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.amx-primary-nav a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 14%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
}

.amx-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.amx-environment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  white-space: nowrap;
}

.amx-environment > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #52d7a0;
  box-shadow: 0 0 0 4px rgb(82 215 160 / 13%);
}

.amx-help {
  position: relative;
}

.amx-help summary {
  padding: 8px 11px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 9px;
  color: #fff;
  background: rgb(255 255 255 / 7%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.amx-help summary::-webkit-details-marker {
  display: none;
}

.amx-help-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--amx-line);
  border-radius: 14px;
  color: var(--amx-ink);
  background: #fff;
  box-shadow: var(--amx-shadow);
}

.amx-help-panel strong {
  font-size: 14px;
}

.amx-help-panel p {
  margin: 8px 0 0;
  color: var(--amx-muted);
  font-size: 13px;
  line-height: 1.65;
}

.amx-start-panel {
  display: grid;
  grid-template-columns: minmax(155px, 0.75fr) repeat(3, minmax(190px, 1fr));
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 10px;
}

.amx-start-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}

.amx-start-heading span {
  color: var(--amx-teal-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.amx-start-heading strong {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.35;
}

.amx-start-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgb(210 220 226 / 85%);
  border-radius: 14px;
  color: var(--amx-ink);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 6px 18px rgb(12 35 55 / 5%);
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.amx-start-card:hover {
  border-color: rgb(8 127 131 / 35%);
  box-shadow: 0 12px 28px rgb(12 35 55 / 10%);
  transform: translateY(-2px);
}

.amx-start-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--amx-teal-dark);
  background: var(--amx-teal-soft);
  font-size: 11px;
  font-weight: 800;
}

.amx-start-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.amx-start-card strong {
  font-size: 14px;
}

.amx-start-card small {
  overflow: hidden;
  color: var(--amx-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amx-arrow {
  color: var(--amx-teal);
  font-size: 19px;
}

body.amx-editor-view .amx-start-panel {
  display: none;
}

#amx-content-anchor {
  outline: none;
}

body.amx-editor-view #nc-root [class*="EditorContainer"] {
  top: 72px !important;
  height: calc(100% - 72px) !important;
}

#nc-root button,
#nc-root [role="button"] {
  border-radius: 9px !important;
}

#nc-root input,
#nc-root textarea,
#nc-root select {
  border-radius: 9px !important;
  font-family: inherit !important;
}

#nc-root input:focus,
#nc-root textarea:focus,
#nc-root select:focus {
  outline: 3px solid rgb(8 127 131 / 15%) !important;
  outline-offset: 1px;
}

#nc-root a,
#nc-root button,
#nc-root input,
#nc-root textarea,
#nc-root select {
  font-family: inherit !important;
}

#nc-root ::selection {
  color: var(--amx-navy);
  background: #bce9e5;
}

.amx-topbar :focus-visible,
.amx-start-panel :focus-visible {
  outline: 3px solid var(--amx-focus);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .amx-topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 18px;
  }

  .amx-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .amx-topbar {
    padding-top: 12px;
  }

  .amx-start-panel {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
  }

  .amx-start-heading {
    display: none;
  }
}

@media (max-width: 620px) {
  .amx-brand-copy span,
  .amx-environment {
    display: none;
  }

  .amx-start-panel {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-inline: 14px;
  }

  .amx-start-card {
    min-height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
