/* Member console; the enclosing profile shell owns page width and navigation. */
.mc-center {
  --mc-ink: #f2f3fb; --mc-muted: #b4b8cb; --mc-line: #353847; --mc-accent: #c2cbff;
  --mc-pad: clamp(17px, 2.4vw, 30px);
  display: grid; gap: 14px; min-width: 0; margin-top: clamp(26px, 4.4vw, 52px);
  color: var(--mc-ink); text-align: left; overflow-wrap: anywhere;
}
.mc-center [hidden] { display: none !important; }
.mc-center :is(h2,h3,h4,p,dl,dd,ul) { margin: 0; }
.mc-center :is(button,input,select) { font-family: inherit; }
.mc-center :focus-visible { outline: 2px solid #c5d1ff; outline-offset: 3px; }
.mc-center :is(h3,h4)[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.mc-head,.mc-line,.mc-billed,.mc-key-state,.mc-secret-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; min-width: 0; }
.mc-head { align-items: end; }
.mc-kicker,.mc-eyebrow { color: #b4bee3; font: 550 .65rem/1.45 var(--mono,monospace); letter-spacing: .12em; }
.mc-center .mc-head h2 { margin-top: 4px; font-size: clamp(1.55rem, 2.8vw, 2.3rem); font-weight: 645; line-height: 1.22; letter-spacing: -.045em; }
.mc-status { border-left: 2px solid #676d92; padding: 3px 10px; color: var(--mc-muted); line-height: 1.55; font-size: .8rem; }
.mc-center[data-mc-state="error"] .mc-status { padding-block: 9px; background: #31232a; border-color: #e6a0ac; color: #ffd0d8; }
.mc-main-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 14px; }
.mc-card { min-width: 0; background: linear-gradient(145deg,#1b1d29,#14151d 65%); border: 1px solid var(--mc-line); border-radius: 14px; padding: var(--mc-pad); }
.mc-card h3 { color: #eaecf8; font-size: clamp(1.12rem,2vw,1.46rem); font-weight: 635; letter-spacing: -.027em; line-height: 1.4; }
.mc-card .mc-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mc-eyebrow i { width: 13px; height: 1px; background: #8895cd; }
.mc-tag,.mc-pill { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; width: fit-content; font-size: .71rem; line-height: 1.5; font-weight: 560; }
.mc-tag { padding: 3px 8px; color: #c6cbdf; border-radius: 5px; background: #8e93b610; border: 1px solid #70758a57; }
.mc-note,.mc-hint,.mc-footnote,.mc-window,.mc-limits,.mc-group { color: var(--mc-muted); font-size: .8rem; line-height: 1.65; }
.mc-center .mc-note { margin-top: 10px; }
.mc-center .mc-footnote { margin-top: 12px; font-size: .75rem; }
.mc-subscription { position: relative; isolation: isolate; overflow: hidden; border-color: #4a4c68; background: radial-gradient(ellipse at 94% 0%,#45446154,transparent 50%),linear-gradient(130deg,#242837,#181924 65%); }
.mc-orbits { position: absolute; right: 0; top: 0; width: min(30%,152px); z-index: -1; pointer-events: none; color: #939ed77a; }
.mc-card .mc-tier { margin-top: 11px; color: #e7eaff; font-size: clamp(1.5rem,3.4vw,2.55rem); font-weight: 620; line-height: 1.2; letter-spacing: -.045em; }
.mc-card .mc-tier-idle { font-size: clamp(1.5rem,2.7vw,2rem); }
.mc-card .mc-group { display: flex; align-items: center; gap: 3px 7px; flex-wrap: wrap; margin-top: 6px; }
.mc-group bdi { color: #e0e2f1; font: .78rem/1.45 var(--mono,monospace); }
.mc-group span { padding-left: 8px; border-left: 1px solid #85879c6b; }
.mc-quota { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 17px; }
.mc-quota>span,.mc-billed>span { color: #c7cadb; font-size: .84rem; }
.mc-quota strong,.mc-billed strong { color: #e8ecff; font-size: clamp(1.16rem,2.1vw,1.55rem); font-weight: 610; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.mc-quota small,.mc-billed small,.mc-stats small { color: #bbc2de; font: 540 .69rem/1.5 var(--mono,monospace); letter-spacing: .03em; }
.mc-subscription progress { display: block; appearance: none; width: 100%; height: 5px; margin: 6px 0 7px; border: 0; border-radius: 5px; overflow: hidden; background: #414253; color: #b3bcf5; }
.mc-subscription progress::-webkit-progress-bar { background: #414253; }
.mc-subscription progress::-webkit-progress-value { background: #b3bcf5; }
.mc-subscription progress::-moz-progress-bar { background: #b3bcf5; }
.mc-limits b { color: #d6d9e8; font-weight: 550; font-variant-numeric: tabular-nums; }
.mc-card .mc-window { margin-top: 14px; padding-top: 11px; border-top: 1px solid #ffffff16; font-size: .75rem; }
.mc-window span { display: block; color: #cbd0e6; }
.mc-window time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-summary .mc-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 17px; margin: 17px 0; }
.mc-stats dt { color: var(--mc-muted); font-size: .77rem; }
.mc-stats dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; color: #f2f3fb; font-size: clamp(1.35rem,2.8vw,1.8rem); line-height: 1.22; font-weight: 620; font-variant-numeric: tabular-nums; }
.mc-billed { padding-top: 10px; border-top: 1px solid #ffffff1b; }
.mc-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; height: auto; max-width: 100%; padding: 8px 13px; border: 1px solid #50556a; border-radius: 7px; background: #232632; color: #e4e7f7; font-size: .82rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
.mc-button:not(:disabled):hover { background: #2c3042; border-color: #8e98c0; }
.mc-secondary { background: #282d42; border-color: #5b6589; color: #e1e7ff; }
.mc-primary { color: #191c29; background: #dce3ff; border-color: #dce3ff; }
.mc-primary:not(:disabled):hover { color: #121420; background: #c7d2ff; border-color: #c7d2ff; }
.mc-quiet { color: #dac4ce; border-color: transparent; background: transparent; }
.mc-quiet:not(:disabled):hover,.mc-danger:not(:disabled):hover { color: #ffe0e6; border-color: #a66a7b; background: #482c37; }
.mc-danger { background: #38252d; border-color: #855566; color: #ffced9; }
.mc-button:disabled,.mc-field :disabled { color: #b0b2bf; border-color: #444754; background: #252631; cursor: not-allowed; }
.mc-icon { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mc-controls,.mc-create { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mc-controls { margin-top: 14px; }
.mc-field { display: grid; flex: 1 1 12rem; gap: 4px; min-width: 0; max-width: 100%; color: #d9dced; font-size: .8rem; font-weight: 550; }
.mc-field input,.mc-field select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #535767; border-radius: 7px; background: #12141d; color: #eef0fc; font: 400 .88rem/1.5 var(--sans,sans-serif); text-overflow: ellipsis; }
.mc-field input::placeholder { opacity: 1; color: #9499ac; }
.mc-field input[aria-invalid="true"] { border-color: #e49aa8; }
.mc-create { max-width: 42rem; margin-top: 18px; }
.mc-create .mc-hint { flex-basis: 100%; }
.mc-feedback:not(:empty) { padding: 7px 10px; margin-top: 12px; border-left: 2px solid #7e8fc6; background: #252b3b; font-size: .81rem; color: #d1dcff; }
.mc-feedback[data-error="true"]:not(:empty) { background: #35252c; border-color: #e6a0ac; color: #ffd0d8; }
.mc-secret { margin-top: 15px; padding: clamp(13px,2.2vw,21px); border: 1px solid #777da8; border-radius: 9px; background: linear-gradient(132deg,#2c304b,#1b2030); }
.mc-secret h4 { color: #eff0fc; font-size: 1rem; line-height: 1.45; }
.mc-secret p { margin: 5px 0 10px; max-width: 72ch; color: #d2d6e9; font-size: .82rem; }
.mc-secret code { display: block; padding: 10px 12px; border: 1px solid #52596f; border-radius: 6px; background: #131622; color: #e6ebff; font: .87rem/1.6 var(--mono,monospace); overflow-wrap: anywhere; user-select: all; }
.mc-secret-actions { justify-content: start; gap: 8px; margin-top: 10px; }
.mc-center .mc-key-list { list-style: none; padding: 0; margin-top: 16px; }
.mc-key-list>li { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.75fr) minmax(13rem,1.06fr) auto; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #ffffff17; }
.mc-key-info,.mc-key-group,.mc-key-times { display: grid; min-width: 0; align-content: start; }
.mc-key-info strong { color: #e6e8f6; font-size: .89rem; }
.mc-key-info code,.mc-key-group bdi { color: #c0c8e1; font: .75rem/1.55 var(--mono,monospace); }
.mc-mini,.mc-key-times span { color: var(--mc-muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.mc-key-state { justify-content: end; gap: 4px 8px; }
.mc-pill { padding: 2px 7px; border: 1px solid #62657752; border-radius: 5px; color: #bfc3d2; background: #36374446; white-space: nowrap; }
.mc-ok { color: #b9e3d6; background: #294a4055; border-color: #68968656; }
.mc-denied { color: #f3c5bd; background: #4c323555; border-color: #88635f66; }
.mc-confirm { grid-column: 1/-1; display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px; background: #2b222a; border: 1px solid #5d414d; border-radius: 8px; }
.mc-confirm p { margin-right: auto; flex: 1 1 18rem; font-size: .81rem; color: #f0c8d1; }
.mc-empty { display: grid; gap: 3px; margin-top: 16px; padding: 16px; border: 1px dashed #444959; border-radius: 8px; background: #13151d77; }
.mc-empty strong { color: #dce0ee; font-size: .88rem; font-weight: 580; }
.mc-empty span { color: var(--mc-muted); font-size: .79rem; }
.mc-demo { display: flex; align-items: end; flex-wrap: wrap; gap: 11px 24px; margin-top: 18px; padding: clamp(12px,1.75vw,19px); border: 1px solid #464c63; border-radius: 9px; background: linear-gradient(105deg,#202536,#191c28); }
.mc-demo-copy { flex: 1 1 16rem; }
.mc-demo-copy strong { display: flex; align-items: center; gap: 7px; color: #dfe5ff; font-size: .89rem; }
.mc-demo-copy p { margin-top: 4px; color: var(--mc-muted); font-size: .78rem; }
.mc-demo .mc-controls { margin: 0; flex: 1 1 19rem; }
.mc-demo .mc-field { flex-basis: 9rem; }
.mc-table { width: 100%; margin-top: 15px; border-collapse: collapse; table-layout: fixed; font-size: .79rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.mc-table caption { text-align: left; color: var(--mc-muted); padding-bottom: 7px; font-size: .76rem; }
.mc-table :is(th,td) { padding: 9px 7px; text-align: right; vertical-align: top; }
.mc-table th { color: #bfc5d9; font-size: .73rem; font-weight: 540; background: #20232f; }
.mc-table td { border-bottom: 1px solid #ffffff14; color: #dfe1ef; }
.mc-table :is(th,td):is(:nth-child(1),:nth-child(2)) { text-align: left; }
.mc-table th:nth-child(1) { width: 13%; }.mc-table th:nth-child(2) { width: 20%; }.mc-table th:nth-child(6) { width: 7%; }
.mc-table td small { display: block; color: #adb3c9; font-size: .72rem; line-height: 1.45; }
@media(max-width:870px) {
  .mc-key-list>li { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .mc-key-group { text-align: right; }.mc-key-times { grid-column: 1; }.mc-key-state { align-self: end; }
}
@media(max-width:740px) {
  .mc-main-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }.mc-center { gap: 12px; }
  .mc-table,.mc-table caption,.mc-table tbody { display: block; }
  .mc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mc-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 11px; padding: 11px 0; border-top: 1px solid var(--mc-line); }
  .mc-table td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  .mc-table td::before { content: attr(data-label); display: block; color: #adb3c9; font-size: .71rem; }
  .mc-table td:nth-child(1) small { display: inline; margin-left: .35em; }
}
@media(max-width:640px) {
  .mc-center { --mc-pad: clamp(14px,4.3vw,21px); }.mc-card { border-radius: 12px; }
  .mc-field input,.mc-field select { font-size: 16px; }
  .mc-center :is(button,input,select,[tabindex]) { scroll-margin-block: 75px calc(var(--phone-clear,85px) + 8px); }
  .mc-create { gap: 6px 8px; }.mc-demo { align-items: start; }
  .mc-demo .mc-controls { flex: 1 1 100%; }
  .mc-orbits { width: min(28%,118px); }
}
@media(max-width:400px) {
  .mc-controls,.mc-create { align-items: stretch; }
  .mc-controls>.mc-field,.mc-create>.mc-field { flex: 1 1 100%; }
  .mc-controls>.mc-button,.mc-create>.mc-button { flex: 1 1 auto; }
  .mc-secret-actions .mc-button { flex: 1 1 auto; }
}

.mc-reset { margin-top: 16px; padding-top: 14px; border-top: 1px solid #3a3d4e; }
.mc-reset .mc-field input { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .02em; }
/* Keep account metrics on one open canvas so attention stays on quota and usage. */
.profile-view .mc-center {
  --mc-account-line: #cbd2ef24;
  --mc-account-muted: #aeb7cd;
  position: relative;
}

.profile-view .mc-head {
  align-items: baseline;
  padding-top: clamp(20px, 3.5vw, 39px);
  border-top: 1px solid var(--mc-account-line);
}
.profile-view .mc-head h2 {
  color: #f1f4ff;
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1.08;
}
.profile-view .mc-kicker,
.profile-view .mc-card .mc-eyebrow { display: none; }
.profile-view .mc-status {
  color: var(--mc-account-muted);
}

.profile-view .mc-main-grid {
  gap: 0;
  margin-block: 17px clamp(15px, 3vw, 33px);
  border-top: 1px solid var(--mc-account-line);
  border-bottom: 1px solid var(--mc-account-line);
  background:
    radial-gradient(ellipse at 6% 5%, #6e7fbd1c, transparent 60%),
    linear-gradient(150deg, #b9c6fb06, transparent 75%);
}
.profile-view .mc-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-view .mc-main-grid .mc-card {
  padding: clamp(17px, 3vw, 33px);
}
.profile-view .mc-summary {
  border-inline-start: 1px solid var(--mc-account-line);
}
.profile-view .mc-orbits { opacity: .52; }
.profile-view .mc-card h3 {
  color: #eef2ff;
  font-weight: 620;
  letter-spacing: -.035em;
}
.profile-view .mc-note,
.profile-view .mc-group,
.profile-view .mc-tag {
  color: var(--mc-account-muted);
}
.profile-view .mc-tag {
  border: 0;
  background: #b2bdf411;
}
.profile-view .mc-stats > div {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-view .mc-stats > div:nth-child(n+3) {
  padding-top: 7px;
  border-top: 1px solid #cbd2ef14;
}
.profile-view .mc-billed,
.profile-view .mc-quota {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-view .mc-billed {
  padding-inline: 0;
  border-top: 1px solid #cbd2ef1a;
}

.profile-view .mc-keys,
.profile-view .mc-history {
  padding-inline: 0;
  padding-block: clamp(17px, 3vw, 32px);
  border-top: 1px solid var(--mc-account-line);
}
.profile-view .mc-key-list,
.profile-view .mc-key-list li,
.profile-view .mc-demo,
.profile-view .mc-empty {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-view .mc-key-list li,
.profile-view .mc-empty {
  padding-inline: 0;
  border-top: 1px solid #cbd2ef14;
}
.profile-view .mc-demo {
  padding-inline: 12px;
  border-inline-start: 2px solid #b5c1ff44;
}
.profile-view .mc-secret,
.profile-view .mc-confirm {
  border: 0;
  border-inline-start: 2px solid #b5c1ff70;
  border-radius: 0;
  background: linear-gradient(90deg, #aebcf41c, transparent 75%);
  box-shadow: none;
}
.profile-view .mc-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-view .mc-table tbody tr {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #cbd2ef14;
  box-shadow: none;
  background: transparent;
}

.profile-view .mc-center .mc-button {
  min-height: 44px;
  padding-inline: 16px;
  border-color: transparent;
  border-radius: 999px;
}
.profile-view .mc-center .mc-button.mc-secondary {
  background: #b9c5fb16;
  color: #e7ecff;
}
.profile-view .mc-center .mc-button.mc-primary {
  background: linear-gradient(170deg, #edf1ff, #c9d2f7);
  color: #202840;
  box-shadow: 0 5px 18px #889ff01d;
}
.profile-view .mc-center .mc-button:not(:disabled):hover {
  border-color: #cbd2ef25;
  filter: brightness(1.12);
}
.profile-view .mc-center .mc-button:disabled {
  background: #bcc9f015;
  color: #aeb7cc;
  box-shadow: none;
}

.profile-view .mc-center .mc-field :is(input, select) {
  min-height: 45px;
  border-color: transparent;
  border-bottom-color: #b8c2ee55;
  border-radius: 8px 8px 2px 2px;
  background: #afbcf412;
}
.profile-view .mc-center .mc-field :is(input, select):focus {
  border-bottom-color: #d1d9ff;
  background: #afbcf41c;
}
.profile-view .mc-center .mc-field input[aria-invalid="true"] {
  border-bottom-color: #e9a4af;
}
.profile-view .mc-center :is(button,input,select):focus-visible {
  outline: 2px solid #c6ccff;
  outline-offset: 3px;
}

html[data-motion="on"] .profile-view .mc-center .mc-button {
  transition: transform .23s cubic-bezier(.19,.74,.21,1), filter .23s ease, background-color .22s ease;
}
html[data-motion="on"] .profile-view .mc-center .mc-button:not(:disabled):active {
  transform: scale(.97);
}

@media (max-width: 740px) {
  .profile-view .mc-main-grid .mc-card {
    padding-inline: clamp(11px, 3vw, 20px);
  }
  .profile-view .mc-summary {
    border-inline-start: 0;
    border-top: 1px solid var(--mc-account-line);
  }
  .profile-view .mc-center .mc-table tbody tr { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] .profile-view .mc-center .mc-button {
    transform: none !important;
    transition: none !important;
  }
}
