.ma-login {
  color-scheme: light;
  margin: 0;
  min-height: 100vh;
  color: #25252a;
  background: #f6f5f4;
  font: 16px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
}
.ma-login *, #mk-account *, .ma-team * { box-sizing: border-box; }
.ma-login [hidden], #mk-account[hidden], .ma-team [hidden] { display: none !important; }
.ma-login :where(h1, p), .ma-team :where(h2, h3, p) { margin: 0; }
.ma-login :where(button, input), .ma-team :where(button, select, input) { font: inherit; }
.ma-login a { color: #9d1e28; text-underline-offset: 3px; }
.ma-mast { background: #1b1b20; color: #f8f8fa; }
.ma-mast-inner {
  max-width: 1352px; min-height: 64px; margin: auto;
  padding-inline: clamp(20px, 5vw, 64px); display: flex; align-items: center; gap: 18px;
}
.ma-mast-inner img { object-fit: contain; }
.ma-mast-inner span { border-left: 1px solid #525259; padding-left: 18px; font-size: .86rem; font-weight: 600; }
.ma-login-main {
  display: grid; place-items: center; min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px); padding: 32px 16px;
  background: radial-gradient(ellipse at 50% 40%, #fff9f7 0, transparent 67%);
}
.ma-card {
  position: relative; width: min(100%, 425px); padding: clamp(25px, 5vw, 40px);
  overflow: hidden; border-radius: 17px; border: 1px solid #e0dcdb; background: #fff;
  box-shadow: 0 18px 55px -38px #40272c6b;
}
.ma-card::before { position: absolute; content: ""; inset: 0 0 auto; height: 3px; background: #ba1926; }
.ma-card h1 { font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -.045em; line-height: 1.12; }
#ma-login-description, .ma-note, .ma-hint, .ma-section p, .ma-section small { color: #60626b; }
#ma-login-description { margin-top: .5rem; font-size: .94rem; overflow-wrap: anywhere; }
.ma-login-form { display: grid; gap: 8px; margin-top: 23px; }
.ma-login-form #ma-email-label { margin-bottom: 9px; }
.ma-field { display: grid; gap: 5px; font-size: .84rem; font-weight: 630; color: #37373d; }
.ma-login input, .ma-team input:not([type=checkbox]), .ma-team select {
  width: 100%; min-width: 0; padding: 9px 11px; min-height: 41px; border-radius: 8px;
  border: 1px solid #cdced3; background: #fff; color: #28282e; font-weight: 450; font-size: .92rem;
}
.ma-login :focus-visible, .ma-team :focus-visible, .ma-nav-button:focus-visible {
  outline: 2px solid #c22230; outline-offset: 3px;
}
.ma-password-wrap { position: relative; }
.ma-password-wrap input { padding-right: 78px; }
.ma-reveal {
  position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 9px;
  border: 0; background: #f5f4f4; border-radius: 5px; color: #55565e; cursor: pointer; font-size: .75rem !important;
}
.ma-button, .ma-nav-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
  padding: 6px 12px; border: 1px solid #d0d1d6; border-radius: 8px; background: white;
  font-size: .81rem !important; line-height: 1.3; font-weight: 620 !important; color: #303137; cursor: pointer;
}
.ma-button:hover, .ma-reveal:hover { background: #f2f2f3; }
.ma-button:disabled { opacity: .55; cursor: default; }
.ma-primary, .ma-primary:hover { background: #b51c29; border-color: #b51c29; color: #fff; }
.ma-primary:hover { background: #9f1521; }
.ma-login-submit { min-height: 43px; margin-top: 9px; font-size: .9rem !important; }
.ma-text-button { justify-self: center; background: none; border: 0; color: #94212c; cursor: pointer; padding: 7px 10px; font-size: .85rem !important; text-decoration: underline; text-underline-offset: 3px; }
.ma-text-button:disabled { color: #777; cursor: default; }
#ma-send-email:disabled { cursor: wait; }
#ma-send-email.ma-text-button:disabled { cursor: default; }
.ma-note { margin-top: 17px !important; font-size: .82rem; }
.ma-comparison { display: block; margin-top: 5px; font-size: 1.3rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: #26262c; }
.ma-device-email { display: block; overflow-wrap: anywhere; }
.ma-context, .ma-error, .ma-status:not(:empty) { margin-top: 11px; padding: 9px 11px; border-radius: 7px; font-size: .85rem; }
.ma-context, .ma-status { background: #f2f3f4; color: #474952; overflow-wrap: anywhere; }
.ma-error, .ma-status[data-error=true] { background: #fff1f2; color: #94212c; }
.ma-hint { font-size: .76rem; }
.ma-secret { display: grid; gap: 8px; margin-bottom: 10px; }
.ma-secret-actions, .ma-regenerate { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.ma-secret-actions { align-items: center; font-size: .84rem; }
.ma-login #ma-secret, #ma-code-list, #ma-new-codes { font-family: ui-monospace, monospace; }
#ma-mfa-qr { display: block; max-width: 100%; height: auto; margin: 0 auto 6px; image-rendering: pixelated; }
.ma-login textarea, .ma-team textarea { width: 100%; border: 1px solid #cdced3; border-radius: 8px; padding: 10px; resize: vertical; color: #303137; background: #fafafa; line-height: 1.65; }
.ma-team summary { font-weight: 650; cursor: pointer; }
.ma-regenerate { margin: 10px 0; }
.ma-regenerate .ma-button { min-height: 41px; }
#mk-account { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.ma-nav-button { background: transparent; color: #fff; border-color: #595961; min-height: 32px; }
.ma-nav-button:hover { background: #36363e; }
.ma-user-label { color: #d3d2d9; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; max-width: 21ch; white-space: nowrap; }
.ma-team {
  color: #26262c; background: #fff; border: 1px solid #d6d7db; border-radius: 16px;
  width: min(760px, calc(100% - 24px)); max-height: min(86vh, 850px); max-height: min(86svh, 850px);
  padding: 0; margin: auto; overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 90px #1514184d;
}
.ma-team::backdrop { background: #2020267d; }
.ma-team-head, .ma-person, .ma-invite-line, .ma-created { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma-team-head { padding: 17px 23px; border-bottom: 1px solid #e4e4e7; }
.ma-team h2 { font-size: 1.28rem; letter-spacing: -.035em; }
.ma-team h3 { font-size: 1rem; letter-spacing: -.02em; }
.ma-team-body { padding: 0 23px 20px; }
.ma-section { padding: 18px 0; }
.ma-section + .ma-section { border-top: 1px solid #e6e6e8; }
.ma-invite-form { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(120px, 1fr) auto; align-items: end; gap: 10px; margin-top: 10px; }
.ma-invite-form > button { min-height: 41px; }
.ma-role-summary, .ma-section small { font-size: .78rem; }
.ma-role-summary { margin-top: 6px !important; }
.ma-section > p { font-size: .85rem; }
.ma-section ul { list-style: none; margin: 4px 0 0; padding: 0; }
.ma-section li { border-bottom: 1px solid #efeff1; padding: 10px 0; }
.ma-section li:last-child { border-bottom: 0; padding-bottom: 0; }
.ma-person, .ma-invite-line { flex-wrap: wrap; }
.ma-person-main { display: grid; flex: 1 1 165px; overflow-wrap: anywhere; }
.ma-person-main strong { font-size: .89rem; }
.ma-person-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ma-person-controls select { min-height: 34px; width: auto; padding: 5px 8px; font-size: .82rem; }
.ma-person-controls label { display: flex; align-items: center; gap: 4px; font-size: .81rem; }
.ma-person-controls input[type=checkbox] { width: 16px; height: 16px; accent-color: #a51c28; }
.ma-person-controls button, .ma-invite-line button { min-height: 32px; }
.ma-created-wrap { margin-top: 13px; padding: 12px; border-radius: 9px; border: 1px solid #d7dfd9; background: #f5f9f6; }
.ma-created { margin-top: 5px; }
.ma-created .ma-button { flex: 0 0 auto; }
.ma-empty { padding-top: 7px; }
@media (max-width: 650px) {
  .ma-user-label { display: none; }
  .ma-team-head { padding: 14px 16px; }
  .ma-team-body { padding-inline: 16px; }
  .ma-invite-form { grid-template-columns: 1fr 1fr; }
  .ma-invite-form label:first-child { grid-column: 1 / -1; }
  .ma-person-main { flex-basis: 100%; }
}
@media (max-width: 390px) {
  #mk-account { gap: 4px; }
  .ma-nav-button { padding-inline: 8px; }
  .ma-invite-form { grid-template-columns: 1fr; }
}
