:root {
  --ckmu-shell-bg: #07111f;
  --ckmu-shell-surface: #0d1b2f;
  --ckmu-shell-border: rgba(125, 159, 207, 0.24);
  --ckmu-shell-text: #edf5ff;
  --ckmu-shell-muted: #8ca5c7;
  --ckmu-shell-cyan: #51d7ff;
  --ckmu-shell-blue: #4f7cff;
  --ckmu-shell-green: #43df9b;
  --ckmu-platform-height: 64px;
  --ckmu-platform-offset: 64px;
  --ckmu-control-height: 32px;
}

.ckmu-platform-header {
  grid-area: platform;
  position: sticky;
  top: 0;
  z-index: 400;
  min-height: var(--ckmu-platform-height);
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  color: var(--ckmu-shell-text);
  background: rgba(7, 17, 31, 0.97);
  border-bottom: 1px solid var(--ckmu-shell-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.ckmu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ckmu-shell-text);
  text-decoration: none;
  white-space: nowrap;
}

.ckmu-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(81, 215, 255, 0.55);
  border-radius: 10px;
  color: var(--ckmu-shell-cyan);
  background: linear-gradient(145deg, rgba(81, 215, 255, 0.16), rgba(79, 124, 255, 0.09));
  font-weight: 800;
  letter-spacing: -1px;
}

.ckmu-brand-copy {
  display: grid;
  line-height: 1.08;
}

.ckmu-brand-title {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.ckmu-brand-subtitle {
  margin-top: 4px;
  color: var(--ckmu-shell-muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.ckmu-primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.ckmu-nav-link,
.ckmu-auth-link,
.ckmu-nav-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font: inherit;
}

.ckmu-nav-link {
  position: relative;
  padding: 0 13px;
  color: #b9c9df;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.ckmu-nav-link:hover,
.ckmu-nav-link:focus-visible,
.ckmu-nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(79, 124, 255, 0.14);
  outline: none;
}

.ckmu-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--ckmu-shell-cyan);
}

.ckmu-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ckmu-data-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ckmu-shell-border);
  border-radius: 999px;
  color: var(--ckmu-shell-muted);
  font-size: 11px;
  white-space: nowrap;
}

.ckmu-data-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d8ba0;
}

.ckmu-data-state.is-live .ckmu-data-dot {
  background: var(--ckmu-shell-green);
  box-shadow: 0 0 0 4px rgba(67, 223, 155, 0.1);
}

.ckmu-auth-link {
  padding: 0 15px;
  border: 1px solid rgba(81, 215, 255, 0.42);
  color: var(--ckmu-shell-cyan);
  background: rgba(81, 215, 255, 0.08);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.ckmu-auth-link:hover,
.ckmu-auth-link:focus-visible {
  color: #fff;
  border-color: var(--ckmu-shell-cyan);
  outline: none;
}

.ckmu-nav-toggle {
  display: none;
  width: 44px;
  padding: 0;
  border: 1px solid var(--ckmu-shell-border);
  color: var(--ckmu-shell-text);
  background: transparent;
  cursor: pointer;
}

body.ckmu-platform-enabled {
  width: 100%;
  overflow: visible;
  grid-template-rows: auto auto auto minmax(640px, auto) minmax(175px, auto);
  grid-template-areas:
    "platform"
    "ctrl"
    "hdr"
    "main"
    "bot";
}

body.ckmu-platform-enabled #control-bar {
  top: var(--ckmu-platform-offset, var(--ckmu-platform-height));
}

body.ckmu-platform-enabled #hdr {
  top: calc(var(--ckmu-platform-offset, 64px) + var(--ckmu-control-height, 32px));
}

.ckmu-page {
  min-height: 100vh;
  margin: 0;
  color: var(--ckmu-shell-text);
  background:
    radial-gradient(circle at 14% 8%, rgba(48, 110, 173, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 26%, rgba(50, 68, 157, 0.18), transparent 31rem),
    var(--ckmu-shell-bg);
  font-family: "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", sans-serif;
}

.ckmu-page .ckmu-platform-header {
  grid-template-areas: none;
}

.ckmu-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.ckmu-eyebrow {
  margin: 0 0 14px;
  color: var(--ckmu-shell-cyan);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ckmu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.ckmu-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ckmu-hero p {
  margin: 18px 0 0;
  max-width: 720px;
  color: #aebfda;
  font-size: 16px;
  line-height: 1.8;
}

.ckmu-foundation-note {
  padding: 18px;
  border: 1px solid rgba(81, 215, 255, 0.28);
  border-radius: 16px;
  background: rgba(13, 27, 47, 0.74);
}

.ckmu-foundation-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ckmu-shell-cyan);
  font-size: 14px;
}

.ckmu-foundation-note span {
  display: block;
  color: var(--ckmu-shell-muted);
  line-height: 1.65;
}

.ckmu-inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  color: var(--ckmu-shell-cyan);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.ckmu-inline-link:hover,
.ckmu-inline-link:focus-visible {
  color: #fff;
  outline: none;
}

.ckmu-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 38px 0 16px;
}

.ckmu-section-head h2 {
  margin: 0;
  font-size: 23px;
}

.ckmu-section-head p {
  margin: 0;
  color: var(--ckmu-shell-muted);
}

.ckmu-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ckmu-domain-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ckmu-shell-border);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(15, 33, 56, 0.95), rgba(8, 19, 35, 0.92));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
}

.ckmu-domain-number {
  color: var(--ckmu-shell-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ckmu-domain-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.ckmu-domain-question {
  min-height: 54px;
  margin: 0 0 16px;
  color: #adc0dc;
  line-height: 1.6;
}

.ckmu-domain-label {
  margin: 13px 0 6px;
  color: #718caf;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.ckmu-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ckmu-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #c9d7ea;
  background: rgba(92, 122, 169, 0.12);
  font-size: 11px;
}

.ckmu-methodology {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--ckmu-shell-border);
  border-radius: 18px;
  background: rgba(10, 23, 41, 0.86);
}

.ckmu-methodology h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.ckmu-methodology p {
  color: var(--ckmu-shell-muted);
  line-height: 1.7;
}

.ckmu-contract-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ckmu-contract-list li {
  padding: 10px 12px;
  border: 1px solid rgba(125, 159, 207, 0.16);
  border-radius: 10px;
  color: #c7d5e8;
  background: rgba(255, 255, 255, 0.025);
}

.ckmu-login-shell {
  width: min(460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.ckmu-login-card {
  padding: 30px;
  border: 1px solid var(--ckmu-shell-border);
  border-radius: 22px;
  background: rgba(12, 26, 46, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.ckmu-login-card h1 {
  margin: 0;
  font-size: 29px;
}

.ckmu-login-card > p {
  margin: 10px 0 24px;
  color: var(--ckmu-shell-muted);
  line-height: 1.65;
}

.ckmu-form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ckmu-form-row label {
  color: #c9d7ea;
  font-size: 12px;
  font-weight: 700;
}

.ckmu-form-row input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(125, 159, 207, 0.3);
  border-radius: 11px;
  color: #fff;
  background: #07111f;
  font: inherit;
}

.ckmu-form-row input:focus {
  border-color: var(--ckmu-shell-cyan);
  outline: 2px solid rgba(81, 215, 255, 0.12);
}

.ckmu-primary-button,
.ckmu-secondary-button {
  min-height: 48px;
  width: 100%;
  border-radius: 11px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.ckmu-primary-button {
  border: 0;
  color: #06111f;
  background: linear-gradient(135deg, var(--ckmu-shell-cyan), #76f0c3);
}

.ckmu-secondary-button {
  border: 1px solid var(--ckmu-shell-border);
  color: var(--ckmu-shell-text);
  background: transparent;
}

.ckmu-primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.48;
}

.ckmu-form-status {
  min-height: 44px;
  margin: 16px 0 0;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ckmu-shell-muted);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.55;
}

.ckmu-form-status.is-error {
  color: #ffb9b9;
  background: rgba(255, 90, 90, 0.1);
}

.ckmu-form-status.is-success {
  color: #9af0c5;
  background: rgba(67, 223, 155, 0.09);
}

.ckmu-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .ckmu-platform-header {
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: 10px;
    padding: 0 12px;
  }

  .ckmu-nav-toggle {
    display: inline-flex;
  }

  .ckmu-primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 10px;
    right: 10px;
    display: none;
    justify-content: stretch;
    padding: 10px;
    border: 1px solid var(--ckmu-shell-border);
    border-radius: 14px;
    background: #091626;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  }

  .ckmu-primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ckmu-data-state {
    display: none;
  }

  .ckmu-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.ckmu-platform-enabled #control-bar,
  body.ckmu-platform-enabled #hdr {
    position: static;
    top: auto;
  }

  body.ckmu-platform-enabled #control-bar input,
  body.ckmu-platform-enabled #control-bar select,
  body.ckmu-platform-enabled #control-bar button,
  body.ckmu-platform-enabled button {
    min-height: 44px;
  }

  body.ckmu-platform-enabled .macro-chips {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  body.ckmu-platform-enabled .modebar {
    max-width: 100%;
  }

  body.ckmu-platform-enabled .modebar-btn {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .ckmu-brand-subtitle {
    display: none;
  }

  .ckmu-brand-title {
    font-size: 12px;
  }

  .ckmu-auth-link {
    width: 44px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
  }

  .ckmu-main {
    width: min(100% - 26px, 1180px);
    padding-top: 34px;
  }

  .ckmu-hero,
  .ckmu-methodology {
    grid-template-columns: 1fr;
  }

  .ckmu-domain-grid {
    grid-template-columns: 1fr;
  }

  .ckmu-domain-question {
    min-height: auto;
  }
}

@media (max-width: 440px) {
  .ckmu-platform-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .ckmu-brand-copy {
    display: none;
  }

  .ckmu-primary-nav.is-open,
  .ckmu-contract-list {
    grid-template-columns: 1fr;
  }

  .ckmu-login-card {
    padding: 22px;
  }
}
