/* Portal navigation uses the type and ink colours of the public software header. */
.site-header.km-header { letter-spacing: -.012em; }
.km-header .brand .portal-wordmark { display: block; width: 100%; height: 100%; }
.km-header .brand, .km-header .header-inner .account-link { color: #bac4d5; font-weight: 400; }
.km-header .header-inner .account-link:hover, .km-header .customer-menu[open] summary { color: #fff; }
.km-header [data-account-link][hidden], .km-header .customer-menu[hidden] { display: none; }
.km-header .customer-menu { position: relative; justify-self: end; padding: 0; margin: 0; }
.km-header .customer-menu summary { cursor: pointer; list-style: none; gap: .5em; }
.km-header .customer-menu summary::-webkit-details-marker { display: none; }
.km-header .customer-menu summary::after {
  content: ''; width: .38em; height: .38em; border-right: 1px solid; border-bottom: 1px solid;
  transform: translateY(-.12em) rotate(45deg);
}
.km-header .customer-menu[open] summary::after { transform: translateY(.12em) rotate(225deg); }
.km-header .customer-menu-links {
  position: absolute; z-index: 2; inset: calc(100% + 7px) 0 auto auto; min-width: 13rem;
  padding: 6px; background: #0e141f; border: 1px solid #283142; border-radius: 10px;
  box-shadow: 0 12px 32px #0005; text-align: left;
}
.km-header .customer-menu-links::before { content: ''; position: absolute; inset: -8px 0 100%; }
.km-header .customer-menu-links a { display: block; padding: 11px 12px; border-radius: 6px; font: 400 14px/1.5 Sora,sans-serif; color: #bac4d5; }
.km-header .customer-menu-links a:is(:hover,:focus-visible,[aria-current=page]) { background: #ffffff0a; color: #fff; }
.km-header .customer-menu-links a:last-child { margin-top: 3px; border-top: 1px solid #293342; }
.km-header .customer-menu summary:focus-visible { outline: 2px solid #9fbfff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .km-header .customer-menu[open] .customer-menu-links { animation: customer-menu-enter 150ms ease-out; }
  @keyframes customer-menu-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1040px) {
  .km-header .customer-menu { grid-column: 2; grid-row: 1; }
  .km-header .customer-menu-links { max-width: calc(100vw - 32px); }
}
@media (max-width: 430px) {
  .km-header .header-inner { gap: 8px; width: calc(100% - 24px); }
  .km-header .brand { max-width: 100%; }
  .km-header .customer-menu summary { padding-inline: 8px; }
}
/* Account pages use the portal's original light cards, controls and text colours. */
.km-account-light { background: #f5f7fa; color-scheme: light; }
.km-account-light .portal-main {
  font-family: Plex, system-ui, sans-serif;
  font-size: .9375rem;
  line-height: 1.55;
  font-weight: 400;
}
.km-account-light .portal-main :is(h1,h2,h3) {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -.025em;
}
.km-account-light .portal-main h1 { font-size: clamp(1.8rem, 3.4vw, 2.625rem); }
.km-account-light .portal-main h2 { font-size: 1.375rem; }
.km-account-light .portal-main label { font-weight: 400; }
.km-account-light .page-intro p:not(.eyebrow) { font-size: 1rem; }
.km-account-light .portal-main p.muted { font-size: .875rem; }
.km-account-light .portal-main p.license-note {
  max-width: 72ch;
  margin-top: 1.25rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: #566579;
}
@media (max-width: 640px) {
  .km-account-light .portal-main :is(input,select,textarea) { font-size: 1rem; }
}
.km-account-light .auth-main form p:has(#id_remember) { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: center; }
.km-account-light .auth-main label[for=id_remember] { grid-column: 2; grid-row: 1; margin: 0; }
.km-account-light .auth-main #id_remember { grid-column: 1; grid-row: 1; margin: 0; }
.km-account-light .auth-main #id_remember_helptext { grid-column: 2; margin: 0; }

/* Keep each security setting and its actions together at every viewport size. */
.security-overview { container-type: inline-size; }
.security-overview .page-intro { padding-block: 1.75rem 2rem; }
.security-overview .page-intro > :last-child { margin-bottom: 0; }
.security-overview section + section { margin-top: clamp(1.75rem, 4vw, 3rem); }
.security-overview section > h2 { margin: 0 0 1rem; }
.security-cards {
  display: grid;
  gap: 1rem;
}
.security-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .625rem;
  min-width: 0;
  padding: clamp(1.125rem, 2vw, 1.5rem);
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 1rem;
}
.security-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.security-card p {
  margin: 0;
  color: #53627a;
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
.security-actions {
  display: grid;
  align-content: end;
  gap: .5rem;
  padding-top: .625rem;
}
.security-actions .button {
  min-height: 44px;
  margin: 0;
  padding: .625rem .875rem;
  text-align: center;
  line-height: 1.35;
}
.security-status, .security-actions > a:not(.button), .security-actions .security-prerequisite {
  font-size: .8125rem;
  line-height: 1.45;
}
.security-status { color: #53627a; }
.security-status.is-active { color: #17633e; }
.security-actions > a:not(.button) { justify-self: start; }
.security-actions .security-prerequisite {
  border-top: 1px solid #dfe5ef;
  padding-top: .75rem;
}
@container (min-width: 52rem) {
  .security-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @supports (grid-template-rows: subgrid) {
    .security-card { grid-row: span 3; grid-template-rows: subgrid; }
  }
}

.sessions-overview { container-type: inline-size; }
.sessions-overview .page-intro > :last-child { margin-bottom: 0; }
.sessions-panel {
  --session-padding: clamp(1.125rem, 2.5vw, 1.75rem);
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 1rem;
}
.session-list { margin: 0; padding: 0; list-style: none; }
.session-row { padding: var(--session-padding); }
.session-row + .session-row, .session-footer { border-top: 1px solid #dfe5ef; }
.session-heading, .session-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .875rem;
}
.sessions-overview .session-row h2 { margin: 0; font-size: 1.125rem; }
.session-current {
  padding: .15rem .625rem;
  border-radius: 1rem;
  background: #eaf4ee;
  color: #245a40;
  font-size: .8125rem;
}
.session-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .5rem 1.25rem;
  margin: 1rem 0 0;
}
.session-facts dt, .session-footer p, .session-details p {
  color: #53627a;
  font-size: .875rem;
}
.session-facts dt { margin: 0; font-weight: 400; }
.session-facts dd { margin: .125rem 0 0; color: #142138; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.session-details { margin-top: .75rem; padding: 0; }
.session-details summary { width: fit-content; padding: .25rem 0; cursor: pointer; color: #1e477f; font-size: .875rem; }
.session-details summary:focus-visible { outline: 2px solid #1756ba; outline-offset: 3px; }
.session-details p { margin: .25rem 0 0; max-width: 85ch; overflow-wrap: anywhere; }
.session-footer { justify-content: flex-end; padding: 1rem var(--session-padding); }
.session-footer p { margin: 0 auto 0 0; }
.sessions-overview .session-footer .button {
  margin: 0; min-height: 44px; padding: .625rem 1rem;
  color: #1e477f; background: #edf2f9;
}
.sessions-overview .session-footer .button:hover { background: #dfe9f6; }
@container (max-width: 39rem) {
  .session-facts { grid-template-columns: 1fr; }
  .session-facts > div { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 1.55fr); gap: .75rem; }
  .session-facts dd { margin: 0; text-align: end; }
  .session-footer { display: grid; justify-content: stretch; gap: .625rem; }
}

/* Match the public footer where the portal's global element styles differ. */
.km-footer { letter-spacing: -.012rem; }
.km-footer .brand { letter-spacing: inherit; }
.km-footer p { max-width: none; }
.km-footer .footer-bottom { line-height: 1.7; }
.km-footer .km-language { padding: 0; }
.km-footer .km-language summary { font-weight: 400; }
@media (min-width: 431px) {
  .km-footer nav > a, .km-footer .brand { font-size: inherit; }
}

.shop-catalog .page-intro, .shop-offer-heading { padding-block: 2rem; }
.shop-catalog .page-intro h1, .shop-offer-heading h1 { margin: 0; }
.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 29rem), 1fr));
  gap: 1.25rem;
}
.shop-tile, .shop-offer-card {
  border: 1px solid #dfe5ef;
  border-radius: 1rem;
  background: white;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.shop-tile {
  display: grid; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 58rem; box-sizing: border-box;
  color: #142138; text-decoration: none;
}
.shop-tile:has(.shop-preview) { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.shop-tile-copy { display: flex; flex-direction: column; align-items: flex-start; }
.shop-preview {
  background: #edf3f4; border-radius: .75rem;
  padding: clamp(.75rem, 1.65vw, 1.5rem);
}
.shop-preview img {
  display: block; width: 100%; height: auto; border-radius: .375rem;
  box-shadow: 0 .25rem .8rem #17394820;
}
.shop-tile-copy img { width: 5rem; height: 5rem; margin-bottom: 1.15rem; }
.shop-tile h2 { color: inherit; margin: 0 0 .375rem; }
.shop-tile p { color: #53627a; margin: 0; }
.shop-tile-link { display: block; margin-top: auto; padding-top: 1.25rem; color: #1756ba; }
.shop-tile:is(:hover,:focus-visible) { border-color: #789bc7; box-shadow: 0 .25rem 1rem #20395710; }
.shop-tile:is(:hover,:focus-visible) .shop-tile-link { text-decoration: underline; }
.shop-offer { max-width: 54rem; }
.shop-back { display: inline-block; margin-top: .75rem; }
.shop-offer-heading { display: flex; align-items: center; gap: 1rem; }
.shop-offer-heading h1 { overflow-wrap: anywhere; }
.shop-offer-card { max-width: 35rem; }
.shop-offer-card + .shop-offer-card { margin-top: 1rem; }
.shop-offer-card p { margin: 0; }
.shop-offer-card .shop-price { font-size: 2rem; font-weight: 600; line-height: 1.25; margin-bottom: .375rem; }
.shop-offer-card .button { margin: 1.25rem 0 0; }
.shop-resources { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.25rem; }
.km-public-portal :is(.shop-tile,.shop-offer-card) { background: #131b27; border-color: #293548; color: #edf2fa; }
.km-public-portal :is(.shop-tile-link,.shop-back,.shop-resources a) { color: #b8ceff; }
.km-public-portal .shop-tile:is(:hover,:focus-visible) { border-color: #789bc7; }
@media (max-width: 40rem) {
  .shop-tile:has(.shop-preview) { grid-template-columns: 1fr; }
  .shop-preview { grid-row: 1; }
  .shop-preview img { max-height: 10rem; width: auto; max-width: 100%; margin-inline: auto; }
  .shop-tile-copy img { width: 3.5rem; height: 3.5rem; margin-bottom: .625rem; }
  .shop-offer-card .button { width: 100%; }
}

.licence-terms { max-width: 52rem; overflow-wrap: anywhere; }
.licence-terms .page-intro p { margin-bottom: 0; }
.licence-terms section + section { margin-top: 2rem; }
.licence-terms section h2 { margin-bottom: .625rem; }
.licence-terms section p { max-width: none; margin: 0; }
.licence-terms section p + p { margin-top: .75rem; }

/* Public software pages use the dark palette. */
.km-public-portal { background-color: #0b0e14; color: #edf2fa; }
.km-public-portal .portal-main { font-family: Sora,system-ui,sans-serif; font-weight: 400; color: #edf2fa; }
.km-public-portal .portal-main :is(h1,h2,h3) { color: #edf2fa; font-weight: 600; letter-spacing: -.035em; }
.km-public-portal .portal-main :is(strong,b,label) { font-weight: 600; }
.km-public-portal .portal-main :is(p:not(.eyebrow),small,.muted,.helptext,dd,.code-value,.device span,th) { color: #a7b3c6; }
.km-public-portal .auth-main table { background: #131b27; }
.km-public-portal .portal-main :is(th,td,.device,.order-row) { border-color: #293548; }
.km-public-portal .portal-main .text-button { color: #b8ceff; }
