/* Console product layout, using the shared light-business tokens. */
:root {
  font-family: var(--ui-font);
  color: var(--ui-text);
  background: var(--ui-page);
}
html {
  -webkit-font-smoothing: antialiased;
}
:is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ui-primary);
  outline-offset: 3px;
}
button {
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-control-radius);
  min-height: 38px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: var(--ui-subtle);
  border-color: var(--ui-primary-border);
}
.primary {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  box-shadow: 0 3px 8px #3564ed12;
}
.primary:hover {
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
}
input {
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-control-radius);
  color: var(--ui-text);
}
input:focus {
  border-color: var(--ui-primary);
  outline-color: var(--ui-primary-soft);
}
.muted {
  color: var(--ui-muted);
}
.brand-mark {
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  width: 36px;
  height: 36px;
}
.brand {
  color: var(--ui-text);
  font-size: 24px;
  gap: 10px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 7px;
  color: var(--ui-faint);
}
#sidebar {
  width: var(--ui-nav-width);
  flex-basis: var(--ui-nav-width);
  padding: 28px 16px 20px;
  border-color: var(--ui-border);
  scrollbar-width: thin;
}
#sidebar .brand {
  padding: 0 6px;
}
#role-badge {
  color: #60769b;
  background: var(--ui-subtle);
  border-color: var(--ui-border);
  font-size: 11px;
  border-radius: 5px;
  margin: 23px 10px 12px;
}
#navigation {
  gap: 3px;
}
.nav-group-title {
  margin: 17px 12px 5px;
  color: var(--ui-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
}
#navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 10px 13px;
  color: #617087;
  border-radius: 8px;
}
#navigation a:hover {
  color: var(--ui-primary);
  background: var(--ui-subtle);
}
#navigation a[aria-current='page'] {
  color: var(--ui-primary);
  background: var(--ui-primary-soft);
  box-shadow: inset 3px 0 var(--ui-primary);
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-empty {
  color: var(--ui-muted);
  font-size: 12px;
  padding: 16px;
  line-height: 1.7;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--ui-border);
  padding: 18px 4px 0;
  margin-top: 24px;
  color: #60718c;
  font-size: 11px;
}
.sidebar-foot small {
  display: block;
  margin-top: 5px;
  color: var(--ui-faint);
  font-size: 10px;
}
.sidebar-foot-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
  display: grid;
  place-items: center;
  flex: none;
}
header {
  height: 72px;
  min-height: 72px;
  flex-shrink: 0;
  padding: 0 28px;
  gap: 22px;
  border-color: var(--ui-border);
}
.header-location {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 150px;
}
.header-location small {
  color: var(--ui-faint);
  font-size: 12px;
  white-space: nowrap;
}
header h1 {
  flex: initial;
  font-size: 14px;
  color: #41536d;
  white-space: nowrap;
}
.header-account {
  gap: 5px;
}
.header-account span {
  max-width: 115px;
}
.header-account button {
  color: #62738e;
}
.console-search {
  position: relative;
  width: 260px;
  flex-shrink: 1;
}
.console-search input {
  background: var(--ui-subtle);
  padding: 10px 68px 10px 13px;
  border-color: var(--ui-border);
  font-size: 12px;
}
.console-search kbd {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #8b98ad;
  font: 10px var(--ui-font);
  pointer-events: none;
}
.console-search:has(#search-clear:not([hidden])) kbd {
  display: none;
}
#search-clear {
  position: absolute;
  top: 3px;
  right: 3px;
  border: 0;
  background: transparent;
  min-height: 32px;
  padding: 4px 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#sidebar-search-slot:empty {
  display: none;
}
#overview {
  overflow: auto;
  padding: 30px;
  width: 100%;
  max-width: 1440px;
  align-self: center;
}
.console-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.console-page-heading h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 11px 0 8px;
}
.console-page-heading p {
  margin: 0;
  font-size: 13px;
}
.console-eyebrow {
  display: inline-block;
  color: #7a8ba5;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
}
.console-role {
  background: white;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  padding: 8px 13px;
  color: #627796;
  font-size: 12px;
}
.console-welcome {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--ui-primary-border);
  border-radius: 16px;
  background: #eaf0ff;
  padding: 28px 30px;
  margin-bottom: 26px;
}
.console-welcome .console-eyebrow {
  color: var(--ui-primary);
}
.console-welcome h2 {
  font-size: 24px;
  line-height: 1.5;
  color: #233a60;
  margin: 12px 0 10px;
}
.console-welcome p {
  color: #617396;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.console-welcome-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.console-welcome-steps > div {
  background: #ffffffed;
  border: 1px solid white;
  border-radius: 12px;
  padding: 24px 20px;
}
.console-welcome-steps b {
  display: grid;
  place-items: center;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 18px;
}
.console-welcome-steps strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.console-welcome-steps small {
  color: var(--ui-muted);
  font-size: 11px;
}
.console-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.console-section-heading h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.console-section-heading span {
  font-size: 11px;
  color: var(--ui-muted);
}
.quotas {
  gap: 16px;
}
.quotas article {
  border-color: var(--ui-border);
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.quotas h3 {
  color: var(--ui-muted);
}
.quotas strong {
  color: var(--ui-text);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.quotas small {
  color: var(--ui-muted);
  line-height: 1.6;
}
.console-shortcuts {
  border: 1px solid var(--ui-border);
  background: white;
  border-radius: 12px;
  padding: 22px;
}
#overview-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.overview-shortcut {
  text-align: left;
  display: grid;
  grid-template-columns: 32px 1fr 15px;
  gap: 10px;
  align-items: center;
  padding: 18px;
  border-color: var(--ui-border);
}
.overview-shortcut .nav-icon {
  color: var(--ui-primary);
}
.overview-shortcut strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.overview-shortcut small {
  color: var(--ui-muted);
  font-size: 11px;
  display: block;
  margin-top: 6px;
  line-height: 1.6;
}
.console-overview-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  color: var(--ui-muted);
  font-size: 12px;
}
.console-overview-foot button {
  border: 0;
  background: transparent;
  color: var(--ui-primary);
}
#profile {
  max-width: 1220px;
}
.details,
.password-section {
  border-color: var(--ui-border);
  border-radius: 12px;
}
.details {
  padding: 24px;
}
.password-section {
  padding: 26px;
}
#frame-area {
  display: flex;
  flex-direction: column;
}
.frame-context {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  background: var(--ui-page);
}
.frame-context p {
  color: var(--ui-muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.7;
}
.frame-context button {
  font-size: 12px;
  padding: 7px 12px;
  min-height: 32px;
  flex: none;
}
#legacy-frame {
  flex: 1;
  min-height: 0;
  height: auto;
  background: var(--ui-page);
}
#notice {
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
  font-size: 13px;
  line-height: 1.6;
}
#billing {
  padding: 30px;
}
.billing-card {
  border-color: var(--ui-border);
  border-radius: 12px;
}
.billing-rule {
  border-color: var(--ui-border);
  border-radius: 10px;
  padding: 20px;
  background: var(--ui-subtle);
}
.billing-info {
  border-color: var(--ui-primary-border);
  border-left-color: var(--ui-primary);
  background: var(--ui-primary-soft);
  border-radius: 12px;
}
.billing-tag {
  border-color: var(--ui-primary-border);
  background: white;
  color: var(--ui-primary);
  border-radius: 7px;
}
.billing-toggle input {
  accent-color: var(--ui-primary);
}
.billing-table th {
  background: var(--ui-subtle);
  padding: 15px 14px;
}
.billing-table td {
  padding: 16px 14px;
}
.billing-table tr:hover td {
  background: #f6f8ff;
}
#billing select,
#billing textarea {
  border-color: var(--ui-border-strong);
  border-radius: 8px;
  color: var(--ui-text);
}
#login {
  grid-template-columns: 1.1fr 1fr;
  padding: 40px;
  gap: 0;
  align-items: stretch;
}
.console-login-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  border: 1px solid #e1e7f3;
  border-radius: 18px 0 0 18px;
  background: #edf2fc;
  min-height: 620px;
}
.console-login-story h1 {
  font-size: 39px;
  line-height: 1.65;
  font-weight: 500;
  color: #253c62;
  margin: 17px 0;
  letter-spacing: -0.5px;
}
.console-login-story p {
  color: #7183a0;
  font-size: 14px;
  line-height: 1.9;
}
.console-login-story > small {
  font-size: 11px;
  color: #8293ac;
}
.login-pillars {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.login-pillars span {
  background: #ffffffb8;
  border: 1px solid #dde6f6;
  border-radius: 9px;
  padding: 15px 12px;
  font-size: 12px;
  color: #526e99;
}
.login-pillars b {
  display: block;
  color: var(--ui-primary);
  font-size: 11px;
  margin-bottom: 12px;
}
.login-card {
  border: 0;
  border-radius: 0 18px 18px 0;
  max-width: none;
  padding: 60px max(30px, 15%);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card > .console-eyebrow {
  margin-bottom: 15px;
}
.login-card h1 {
  font-size: 27px;
}
.login-card .muted {
  font-size: 13px;
}
.login-card input {
  background: #f9fafd;
}
.login-card form {
  margin-top: 23px;
}
@media (max-width: 1200px) {
  header {
    padding: 0 20px;
    gap: 14px;
  }
  .header-location small {
    display: none;
  }
  .console-search {
    width: 220px;
  }
  .console-welcome {
    grid-template-columns: 1fr;
  }
  #overview-shortcuts {
    grid-template-columns: repeat(2, 1fr);
  }
  .console-login-story {
    padding: 32px;
  }
  .console-login-story h1 {
    font-size: 32px;
  }
}
@media (max-width: 800px) {
  #sidebar {
    width: 248px;
  }
  header {
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-location {
    min-width: 0;
  }
  .header-account {
    margin-left: auto;
  }
  .console-search {
    order: 4;
    width: 100%;
  }
  #sidebar-search-slot {
    margin-top: 20px;
  }
  #overview,
  #profile,
  #billing {
    padding: 22px 16px;
  }
  .console-welcome {
    padding: 23px;
  }
  .console-page-heading h2 {
    font-size: 23px;
  }
  .console-welcome h2 {
    font-size: 21px;
  }
  .quotas {
    gap: 12px;
  }
  .quotas article {
    padding: 18px;
  }
  .frame-context {
    padding: 12px 16px;
  }
  #login {
    display: block;
    padding: 20px;
  }
  .console-login-story {
    min-height: 0;
    padding: 25px;
    border-radius: 14px 14px 0 0;
  }
  .console-login-story > div:not(.brand),
  .console-login-story > small {
    display: none;
  }
  .login-card {
    border-radius: 0 0 14px 14px;
    padding: 36px 26px;
  }
}
@media (max-width: 480px) {
  #overview-shortcuts {
    grid-template-columns: 1fr;
  }
  .console-role {
    display: none;
  }
  .console-overview-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .console-welcome-steps {
    gap: 10px;
  }
  .console-welcome-steps > div {
    padding: 18px 14px;
  }
  .console-section-heading {
    align-items: flex-start;
  }
  .console-section-heading span {
    max-width: 125px;
    text-align: right;
    line-height: 1.6;
  }
  .billing-intro,
  .billing-section-head {
    flex-wrap: wrap;
  }
  .billing-filters label {
    min-width: 0;
  }
}
