:root,
html[data-theme="auto"],
html[data-theme="dark"],
html[data-theme="light"] {
  --cdp-navy: #111827;
  --cdp-navy-soft: #1f2937;
  --cdp-blue: #5b6cff;
  --cdp-blue-dark: #4554e6;
  --cdp-cyan: #38bdf8;
  --cdp-green: #16a37a;
  --cdp-bg: #f4f6fb;
  --cdp-card: #ffffff;
  --cdp-text: #172033;
  --cdp-muted: #6b7280;
  --cdp-border: #e6e9f0;
  --primary: #5b6cff;
  --primary-fg: #ffffff;
  --secondary: #111827;
  --accent: #5b6cff;
  --header-bg: #ffffff;
  --header-color: #172033;
  --header-link-color: #4b5563;
  --breadcrumbs-bg: #ffffff;
  --breadcrumbs-fg: #6b7280;
  --breadcrumbs-link-fg: #4554e6;
  --body-bg: #f4f6fb;
  --body-fg: #172033;
  --body-quiet-color: #6b7280;
  --body-medium-color: #4b5563;
  --body-loud-color: #111827;
  --link-fg: #4554e6;
  --link-hover-color: #3340c7;
  --link-selected-fg: #3340c7;
  --hairline-color: #e6e9f0;
  --border-color: #dfe3eb;
  --darkened-bg: #f8f9fc;
  --selected-bg: #eef0ff;
  --selected-row: #f4f5ff;
  --button-bg: #5b6cff;
  --button-hover-bg: #4554e6;
  --default-button-bg: #5b6cff;
  --default-button-hover-bg: #4554e6;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--cdp-bg);
  color: var(--cdp-text);
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

a {
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

#container {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: 76px auto minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
}

#header {
  display: contents;
}

.cdp-sidebar {
  background: linear-gradient(180deg, #111827 0%, #161f32 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1 / 4;
  min-height: 100vh;
  padding: 26px 18px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.cdp-sidebar__brand {
  align-items: center;
  color: #fff !important;
  display: flex;
  gap: 12px;
  padding: 0 10px 26px;
  text-decoration: none;
}

.cdp-sidebar__mark {
  align-items: center;
  background: linear-gradient(135deg, #6d7cff, #47b5ff);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgb(73 108 255 / 32%);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 40px;
  justify-content: center;
  letter-spacing: .04em;
  width: 40px;
}

.cdp-sidebar__product {
  display: block;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
}

.cdp-sidebar__edition {
  color: #98a2b3;
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.cdp-sidebar__section-label {
  color: #697386;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 14px 12px 8px;
  text-transform: uppercase;
}

.cdp-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cdp-sidebar__link {
  align-items: center;
  border-radius: 10px;
  color: #b9c1d0 !important;
  display: flex;
  font-size: 13px;
  font-weight: 620;
  gap: 11px;
  padding: 11px 12px;
  text-decoration: none;
}

.cdp-sidebar__link svg {
  flex: 0 0 auto;
  height: 18px;
  opacity: .86;
  width: 18px;
}

.cdp-sidebar__link:hover,
.cdp-sidebar__link:focus,
.cdp-sidebar__link--active {
  background: rgb(255 255 255 / 9%);
  color: #fff !important;
}

.cdp-sidebar__link--active {
  box-shadow: inset 3px 0 #7683ff;
}

.cdp-sidebar__footer {
  border-top: 1px solid rgb(255 255 255 / 8%);
  margin-top: auto;
  padding: 18px 10px 2px;
}

.cdp-sidebar__boundary {
  align-items: center;
  display: flex;
  gap: 9px;
}

.cdp-sidebar__boundary-dot {
  background: #34d399;
  border: 3px solid rgb(52 211 153 / 18%);
  border-radius: 50%;
  box-sizing: content-box;
  height: 7px;
  width: 7px;
}

.cdp-sidebar__boundary strong {
  display: block;
  font-size: 12px;
}

.cdp-sidebar__boundary span:last-child {
  color: #8490a5;
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.cdp-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--cdp-border);
  display: flex;
  gap: 24px;
  grid-column: 2;
  grid-row: 1;
  justify-content: space-between;
  min-width: 0;
  padding: 0 clamp(24px, 4vw, 48px);
  z-index: 10;
}

.cdp-topbar__context {
  min-width: 0;
}

.cdp-topbar__eyebrow {
  color: #98a2b3;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cdp-topbar__title {
  color: #172033;
  display: block;
  font-size: 16px;
  font-weight: 760;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#user-tools {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 12px;
  gap: 10px;
  letter-spacing: 0;
  padding: 0;
  text-transform: none;
}

#user-tools strong {
  color: #344054;
}

#user-tools a,
#logout-form button {
  background: transparent;
  border: 0;
  color: #667085;
  font-size: 12px;
  padding: 5px;
  text-decoration: none;
}

#user-tools a:hover,
#logout-form button:hover {
  color: var(--cdp-blue-dark);
}

.theme-toggle {
  display: none;
}

#container > nav {
  background: #fff;
  border-bottom: 1px solid var(--cdp-border);
  grid-column: 2;
  grid-row: 2;
}

div.breadcrumbs,
nav.breadcrumbs {
  align-items: center;
  background: #fff;
  color: #98a2b3;
  display: flex;
  font-size: 12px;
  gap: 8px;
  padding: 11px clamp(24px, 4vw, 48px);
}

nav.breadcrumbs a,
div.breadcrumbs a {
  color: #667085;
}

nav.breadcrumbs strong,
div.breadcrumbs strong {
  color: #344054;
  font-weight: 650;
}

.main {
  background: var(--cdp-bg);
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
}

.main.shifted > #nav-sidebar,
#nav-sidebar,
.toggle-nav-sidebar {
  display: none !important;
}

#content {
  padding: 30px clamp(24px, 4vw, 48px) 56px;
}

#content > h1 {
  color: #172033;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.cdp-dashboard,
.cdp-workflow {
  margin: 0 auto;
  max-width: 1280px;
}

.cdp-dashboard-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cdp-dashboard-header h1,
.cdp-page-heading h1 {
  color: #172033;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 4px 0 9px;
}

.cdp-dashboard-header p:not(.cdp-eyebrow),
.cdp-page-heading p:not(.cdp-eyebrow) {
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.cdp-eyebrow {
  color: var(--cdp-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  margin: 0;
  text-transform: uppercase;
}

.cdp-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 720;
  gap: 7px;
  line-height: 1;
  padding: 8px 11px;
  white-space: nowrap;
}

.cdp-status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  opacity: .75;
  width: 6px;
}

.cdp-status--safe {
  background: #e9fbf5;
  color: #087a5b;
}

.cdp-status--neutral {
  background: #eef0ff;
  color: #4554e6;
}

.cdp-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.cdp-summary-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cdp-border);
  border-radius: 14px;
  display: flex;
  gap: 13px;
  min-width: 0;
  padding: 17px;
}

.cdp-summary-card__icon {
  align-items: center;
  background: #f0f2ff;
  border-radius: 11px;
  color: var(--cdp-blue);
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.cdp-summary-card__icon svg {
  height: 19px;
  width: 19px;
}

.cdp-summary-card--green .cdp-summary-card__icon {
  background: #eafaf5;
  color: #0f9f76;
}

.cdp-summary-card--cyan .cdp-summary-card__icon {
  background: #edf9ff;
  color: #168fc5;
}

.cdp-summary-card span {
  color: #98a2b3;
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cdp-summary-card strong {
  color: #263044;
  display: block;
  font-size: 14px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdp-section {
  margin-top: 28px;
}

.cdp-section__heading {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.cdp-section__heading h2 {
  color: #263044;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.015em;
  margin: 4px 0 0;
}

.cdp-operation-card,
.cdp-model-card,
.cdp-empty-state,
.cdp-form-card,
.cdp-result,
.cdp-notice {
  background: #fff;
  border: 1px solid var(--cdp-border);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgb(28 39 67 / 4%);
}

.cdp-operation-card {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 21px 22px;
  position: relative;
}

.cdp-operation-card::before {
  background: linear-gradient(180deg, #6676ff, #48b7ff);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.cdp-operation-card__icon {
  align-items: center;
  background: #eef0ff;
  border-radius: 12px;
  color: var(--cdp-blue);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.cdp-operation-card__icon svg {
  height: 21px;
  width: 21px;
}

.cdp-operation-card h3,
.cdp-empty-state h3 {
  color: #263044;
  font-size: 15px;
  font-weight: 750;
  margin: 0 0 6px;
}

.cdp-operation-card p,
.cdp-empty-state p {
  color: #7a8496;
  line-height: 1.6;
  margin: 0;
}

.button.cdp-primary-button,
input.cdp-primary-button {
  align-items: center;
  background: linear-gradient(135deg, #6575ff, #5264ed);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 7px 16px rgb(83 100 237 / 22%);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 720;
  gap: 7px;
  justify-content: center;
  padding: 10px 14px;
  white-space: nowrap;
}

.button.cdp-primary-button:hover,
.button.cdp-primary-button:focus,
input.cdp-primary-button:hover,
input.cdp-primary-button:focus {
  background: linear-gradient(135deg, #5264ed, #4554e6);
  transform: translateY(-1px);
}

.cdp-model-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdp-model-card {
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 84px;
  padding: 16px;
  text-decoration: none;
}

.cdp-model-card:hover,
.cdp-model-card:focus {
  border-color: #c9ceff;
  box-shadow: 0 10px 28px rgb(68 84 230 / 10%);
  transform: translateY(-2px);
}

.cdp-model-card__icon {
  align-items: center;
  align-self: center;
  background: #f2f4f8;
  border-radius: 10px;
  color: #7a8496;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.cdp-model-card__icon svg {
  height: 17px;
  width: 17px;
}

.cdp-model-card__body {
  align-self: center;
  min-width: 0;
}

.cdp-model-card__app {
  color: #98a2b3;
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cdp-model-card strong {
  color: #344054;
  display: block;
  font-size: 13px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdp-model-card__arrow {
  align-self: center;
  color: #a7afbd;
  font-size: 18px;
}

.cdp-empty-state {
  padding: 27px;
  text-align: center;
}

.cdp-empty-state--compact {
  padding: 21px;
  text-align: left;
}

.cdp-page-heading {
  margin-bottom: 22px;
}

.cdp-notice {
  border-left: 4px solid var(--cdp-blue);
  margin-bottom: 20px;
  padding: 16px 18px;
}

.cdp-notice strong {
  color: #344054;
}

.cdp-notice p {
  color: #7a8496;
  line-height: 1.6;
  margin: 5px 0 0;
}

.cdp-result {
  border-color: #bfeedd;
  margin-bottom: 20px;
  padding: 20px;
}

.cdp-result-grid {
  display: grid;
  grid-template-columns: minmax(145px, auto) 1fr;
  margin: 0;
}

.cdp-result-grid dt,
.cdp-result-grid dd {
  border-top: 1px solid #eef0f4;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 10px 0;
}

.cdp-result-grid dt {
  color: #7a8496;
  font-weight: 650;
  padding-right: 20px;
}

.cdp-form-card {
  overflow: hidden;
}

.cdp-workflow {
  max-width: 960px;
}

.cdp-form-card__body {
  padding: 0 28px;
}

.cdp-form-section {
  padding: 28px 0 30px;
}

.cdp-form-section + .cdp-form-section {
  border-top: 1px solid #eef0f4;
}

.cdp-form-section__heading {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 22px;
}

.cdp-form-section__step {
  align-items: center;
  background: #eef0ff;
  border-radius: 9px;
  color: var(--cdp-blue);
  display: inline-flex;
  font-size: 10px;
  font-weight: 820;
  height: 30px;
  justify-content: center;
  letter-spacing: .06em;
  width: 34px;
}

.cdp-form-section__heading h2 {
  color: #263044;
  font-size: 16px;
  font-weight: 760;
  margin: 1px 0 4px;
}

.cdp-form-section__heading p {
  color: #7a8496;
  line-height: 1.55;
  margin: 0;
}

.cdp-form-grid {
  display: grid;
  gap: 20px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cdp-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cdp-field[hidden] {
  display: none !important;
}

.cdp-field--wide {
  grid-column: 1 / -1;
}

.cdp-field > label {
  color: #344054;
  float: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 7px;
  padding: 0;
  width: auto;
}

.cdp-field > input[type="text"],
.cdp-field > input[type="email"],
.cdp-field > select,
.cdp-field > textarea {
  box-sizing: border-box;
  font-size: 14px;
  margin: 0;
  max-width: none;
  min-height: 42px;
  width: 100%;
}

.cdp-field__help {
  color: #7a8496;
  font-size: 11px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.cdp-field .errorlist,
.cdp-form-errors .errorlist {
  color: #b42318;
  font-size: 11px;
  line-height: 1.5;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}

.cdp-field--error > input,
.cdp-field--error > select {
  border-color: #f1a7a0;
}

.cdp-form-errors {
  background: #fff4f2;
  border-bottom: 1px solid #fecdca;
  padding: 13px 28px;
}

.cdp-form-card .submit-row {
  align-items: center;
  background: #f8f9fc;
  border: 0;
  border-radius: 0;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 15px 21px;
}

.cdp-form-actions {
  min-height: 44px;
}

.cdp-secondary-link {
  margin-right: auto;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background: #fff;
  border-color: #d7dce5;
  border-radius: 8px;
  color: #344054;
  padding: 9px 10px;
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible {
  border-color: #7683ff;
  outline: 3px solid rgb(91 108 255 / 18%);
  outline-offset: 2px;
}

.module,
#changelist .actions,
#changelist-filter,
.inline-group {
  border-color: var(--cdp-border);
  border-radius: 11px;
  overflow: hidden;
}

.module h2,
.module caption,
.inline-group h2 {
  background: #f0f2ff;
  color: #344054;
}

#changelist .results {
  border: 1px solid var(--cdp-border);
  border-radius: 11px;
  overflow: auto;
}

.object-tools a {
  background: #5b6cff;
  border-radius: 8px;
}

.messagelist {
  margin: 0 auto 18px;
  max-width: 1280px;
}

#footer {
  display: none;
}

.login #content {
  margin: 6vh auto 0;
  max-width: 430px;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.login #container {
  margin: 0;
  max-width: none;
  width: 100%;
}

.login #content > h1 {
  font-size: 24px;
  margin-bottom: 18px;
}

.login #content-main {
  background: #fff;
  border: 1px solid var(--cdp-border);
  border-radius: 15px;
  box-shadow: 0 14px 38px rgb(28 39 67 / 8%);
  padding: 24px;
}

.login .form-row {
  padding: 0 0 17px;
}

.login .form-row label {
  color: #475467;
  font-size: 12px;
  font-weight: 680;
}

.login .form-row input {
  margin-top: 7px;
  width: 100%;
}

.login .submit-row {
  padding: 5px 0 0;
}

.login .submit-row input {
  background: linear-gradient(135deg, #6575ff, #5264ed);
  border-radius: 9px;
  box-shadow: 0 7px 16px rgb(83 100 237 / 22%);
  padding: 10px 20px;
}

@media (max-width: 1080px) {
  .cdp-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #container {
    display: block;
  }

  .cdp-sidebar {
    align-items: center;
    display: flex;
    flex-direction: row;
    min-height: 64px;
    padding: 11px 18px;
    position: static;
  }

  .cdp-sidebar__brand {
    padding: 0;
  }

  .cdp-sidebar__mark {
    height: 36px;
    width: 36px;
  }

  .cdp-sidebar__nav,
  .cdp-sidebar__section-label,
  .cdp-sidebar__footer,
  .cdp-sidebar__edition {
    display: none;
  }

  .cdp-topbar {
    min-height: 65px;
    padding: 0 18px;
  }

  #container > nav {
    display: block;
  }

  #content {
    padding: 24px 18px 44px;
  }

  div.breadcrumbs,
  nav.breadcrumbs {
    padding: 10px 18px;
  }

  .cdp-summary-grid {
    grid-template-columns: 1fr;
  }

  .cdp-form-card__body {
    padding: 0 22px;
  }
}

@media (max-width: 620px) {
  .cdp-topbar__context,
  #user-tools > span,
  #user-tools > a {
    display: none;
  }

  .cdp-topbar {
    justify-content: flex-end;
  }

  .cdp-dashboard-header,
  .cdp-operation-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .cdp-model-grid {
    grid-template-columns: 1fr;
  }

  .cdp-result-grid {
    grid-template-columns: 1fr;
  }

  .cdp-result-grid dd {
    border-top: 0;
    padding-top: 0;
  }

  .cdp-form-grid {
    grid-template-columns: 1fr;
  }

  .cdp-form-section {
    padding: 24px 0 26px;
  }

  .cdp-form-card .submit-row {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .cdp-form-card .submit-row input,
  .cdp-secondary-link {
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    width: 100%;
  }
}
