/* badmintonapi.com: sign-in, the account area, refunds (the approved member pages). */
.ma { max-width: 1200px; margin: 0 auto; padding: 36px 24px 72px; }
.ma-mono { font: 500 12.5px "IBM Plex Mono", monospace; }
.ma-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 44px -36px rgba(10,63,53,.35); }
.ma-msg { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.ma-msg.bad { border-color: #E3B7A6; background: #FDF3EF; color: #8A3B22; }
.ma-msg.good { border-color: #B9D8CC; background: #EFF7F3; color: var(--jade); }

/* buttons: one size per group, set by the group, never by the label */
.ma-bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--deep); font: 500 14px "Zen Kaku Gothic New", sans-serif; white-space: nowrap; cursor: pointer; }
.ma-bt:disabled { opacity: .45; cursor: default; }
.ma-bt-p { background: var(--deep); border-color: var(--deep); color: #fff; }
.ma-bt-g { background: var(--gold); border-color: var(--gold); color: var(--deeper); }
.ma-bt-x { color: #8A3B22; }
.ma-bg { display: grid; gap: 10px; }
.ma-bg-2 { grid-template-columns: repeat(2, 160px); }
.ma-bg-3 { grid-template-columns: repeat(3, 74px); justify-content: end; }
.ma-bg-3 .ma-bt { height: 32px; padding: 0; font-size: 13px; }

/* /login */
.ma-lg { display: grid; grid-template-columns: minmax(0, 1fr) 440px; overflow: hidden; }
.ma-lg-l { position: relative; padding: 40px; color: #fff; background: radial-gradient(60% 90% at 90% 0%, rgba(34,150,112,.4), rgba(34,150,112,0) 70%), linear-gradient(170deg, #0B4A3E, #072E27); }
.ma-lg-l::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.ma-lg-l > * { position: relative; }
.ma-kw { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt); font-weight: 500; }
.ma-lg-t { display: block; margin-top: 10px; font: 700 34px/1.15 "Shippori Mincho", serif; }
.ma-lg-ul { margin: 22px 0 0; padding: 0; list-style: none; }
.ma-lg-ul li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14.5px; color: rgba(255,255,255,.82); }
.ma-lg-ul svg { width: 16px; height: 16px; margin-top: 4px; stroke: var(--gold-lt); }
.ma-tick { display: flex; margin-top: 26px; font: 500 12.5px "IBM Plex Mono", monospace; color: rgba(255,255,255,.6); overflow: hidden; white-space: nowrap; }
.ma-tick span { animation: ma-tk 40s linear infinite; }
@keyframes ma-tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ma-tick span { animation: none; } }
.ma-lg-r { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.ma-lg-r h2 { margin: 0; font: 700 26px/1.2 "Shippori Mincho", serif; color: var(--deep); }
.ma-lg-r p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ma-gg { width: 100%; height: 48px; margin-top: 26px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 15px "Zen Kaku Gothic New", sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; box-sizing: border-box; }
.ma-gg svg { width: 20px; height: 20px; }
.ma-fine { margin-top: 18px !important; font-size: 12.5px !important; }
.ma-fine a, .ma-mod label a, .ma-charge a, .ma-rf-t a { color: var(--jade); border-bottom: 1px solid rgba(14,94,78,.3); }

/* the account area: a left nav that stands out, the page beside it */
.ma-ac { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.ma-ac > * { min-width: 0; }
.ma-nav { padding: 14px; background: var(--deep); border-radius: 10px; color: rgba(255,255,255,.72); }
.ma-nav a, .ma-nav button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ma-nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.ma-nav a.on { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.ma-nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 10px 0; }
.ma-pl { padding: 8px 12px 4px; font-size: 12px; color: rgba(255,255,255,.5); }
.ma-pl b { display: block; font-size: 15px; font-weight: 500; color: var(--gold-lt); }
.ma-mn h1 { margin: 0 0 4px; font: 700 26px/1.2 "Shippori Mincho", serif; color: var(--deep); }
.ma-sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.ma-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ma-tile { padding: 16px 18px; min-height: 118px; display: flex; flex-direction: column; }
.ma-tile em { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.ma-tile strong { margin-top: 4px; font: 700 24px/1.15 "Shippori Mincho", serif; color: var(--deep); font-variant-numeric: tabular-nums; }
.ma-tile span { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.ma-meter { height: 6px; margin-top: 8px; border-radius: 3px; background: #EFEAE0; overflow: hidden; }
.ma-meter i { display: block; height: 100%; background: var(--jade); border-radius: 3px; }
.ma-ok { color: var(--jade) !important; }
.ma-warn { color: #8A3B22 !important; }
.ma-chart { margin-top: 14px; padding: 18px 20px; }
.ma-chart-h { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.ma-cols { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 6px; height: 120px; margin-top: 14px; }
.ma-cols i { display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: #CFE3DC; }
.ma-cols i:last-child { background: var(--jade); }
.ma-ax { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 6px; font: 500 10.5px "IBM Plex Mono", monospace; color: #A7ADA9; text-align: center; }
.ma-me { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 18px; align-items: center; margin-top: 14px; padding: 16px 20px; }
.ma-me p { margin: 0; font-size: 14px; }
.ma-me small { display: block; color: var(--muted); font-size: 12.5px; }

/* keys */
.ma-kt-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.ma-kt-top .ma-bt { width: 160px; }
.ma-new { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px 18px; border-color: var(--gold); background: #FFFBEE; }
.ma-new code { display: block; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px dashed var(--gold); font: 500 13px "IBM Plex Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-new p { margin: 6px 0 0; font-size: 12.5px; color: #6A5620; }
.ma-tbl { overflow-x: auto; }
.ma-tbl table { width: 100%; border-collapse: collapse; }
.ma-tbl th { padding: 12px 10px; background: #FBFAF6; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8C938F; font-weight: 500; text-align: left; white-space: nowrap; }
.ma-tbl td { padding: 12px 10px; border-top: 1px solid var(--hair); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ma-tbl tr:hover td { background: #FDFCF8; }
.ma-tbl .r { text-align: right; }
.ma-tbl td small { display: block; font-size: 12px; color: var(--muted); }
.ma-tbl td.ma-act { width: 250px; }
.ma-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.ma-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
.ma-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ma-c-on { background: #E6F2EE; color: var(--jade); }
.ma-c-old { background: #FFF4DC; color: #8A6D24; }
.ma-c-off { background: #F1EFEA; color: #8C938F; }
.ma-cl { display: inline-flex; align-items: center; gap: 10px; }
.ma-spark { width: 64px; height: 22px; }
.ma-spark polyline { fill: none; stroke: var(--jade); stroke-width: 1.5; }
.ma-spark.flat polyline { stroke: #C9CEC9; }

/* billing */
.ma-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ma-plan { padding: 18px; display: flex; flex-direction: column; min-height: 248px; }
.ma-plan.cur { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 24px 44px -36px rgba(10,63,53,.35); }
.ma-plan em { font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ma-plan strong { margin-top: 6px; font: 700 28px/1 "Shippori Mincho", serif; color: var(--deep); }
.ma-plan strong small { font: 400 13px "Zen Kaku Gothic New", sans-serif; color: var(--muted); }
.ma-plan ul { margin: 12px 0 14px; padding: 0; list-style: none; font-size: 13px; color: #4A544F; }
.ma-plan li { padding: 3px 0; }
.ma-plan .ma-bt { margin-top: auto; width: 100%; }
.ma-pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 14px; padding: 16px 20px; }
.ma-pay p { margin: 0; font-size: 14px; }
.ma-charge { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.ma-inv td:first-child { font: 500 13px "IBM Plex Mono", monospace; }
.ma-inv .ma-bt { height: 32px; width: 96px; font-size: 13px; }

/* the confirm modal */
.ma-dlg { width: calc(100% - 32px); max-width: 480px; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.ma-dlg::backdrop { background: rgba(7,46,39,.55); }
.ma-mod { padding: 24px; }
.ma-mod h3 { margin: 0; font: 700 21px/1.25 "Shippori Mincho", serif; color: var(--deep); }
.ma-mod ul { margin: 12px 0; padding-left: 18px; font-size: 14px; color: #4A544F; }
.ma-mod label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: #FBFAF6; font-size: 13.5px; }
.ma-mod input[type=text] { width: 100%; height: 40px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.ma-mod .ma-bg-2 { margin-top: 16px; justify-content: end; }

/* refunds */
.ma-rf { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.ma-rf > * { min-width: 0; }
.ma-rf-t { padding: 26px 28px; }
.ma-rf-t h1 { margin: 0; font: 700 26px/1.2 "Shippori Mincho", serif; color: var(--deep); }
.ma-upd { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }
.ma-rf-t h2 { margin: 18px 0 6px; font-size: 15px; font-weight: 500; color: var(--deep); }
.ma-rf-t p { font-size: 14px; color: #3D4642; }
.ma-steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ma-steps3 div { padding: 12px; border-radius: 10px; background: #FBFAF6; border: 1px solid var(--hair); font-size: 13px; min-height: 92px; }
.ma-steps3 b { display: block; font: 600 12px "IBM Plex Mono", monospace; color: var(--gold); }
.ma-kit { padding: 22px; }
.ma-kit h2 { margin: 0 0 4px; font-size: 16px; font-weight: 500; color: var(--deep); }
.ma-kit > p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

/* /support: the kit inside the site's own page */

@media (max-width: 960px) {
  .ma-lg, .ma-ac, .ma-rf { grid-template-columns: minmax(0, 1fr); }
  .ma-tiles, .ma-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-nav { display: flex; overflow-x: auto; gap: 4px; }
  .ma-nav a, .ma-nav button { width: auto; }
  .ma-nav hr, .ma-pl, .ma-nav form { display: none; }
}
@media (max-width: 560px) {
  .ma { padding: 24px 16px 56px; }
  .ma-lg-l, .ma-lg-r { padding: 26px 20px; }
  .ma-tiles, .ma-plans, .ma-steps3 { grid-template-columns: minmax(0, 1fr); }
  .ma-new, .ma-pay, .ma-me { grid-template-columns: minmax(0, 1fr); }
  .ma-bg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-kt-top { flex-direction: column; align-items: stretch; }
  .ma-kt-top .ma-bt { width: 100%; }
}

/* Google's own button on /login replaces the plain link once Google's script has drawn it */
.ma-gbtn { display: none; min-height: 44px; margin-top: 26px; }
.g-ready .ma-gbtn { display: flex; justify-content: center; }
.g-ready .ma-gg { display: none; }

/* webhooks */
.ma-bg form { display: contents; }
.ma-wh-ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ma-wh-ev span { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 10px; background: #F4F1E8; border: 1px solid var(--hair); font: 500 11.5px "IBM Plex Mono", monospace; color: var(--deep); }
.ma-c-bad { background: #FDF3EF; color: #8A3B22; }
.ma-url { font: 500 13px "IBM Plex Mono", monospace; color: var(--deep); max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.ma-h2 { margin: 22px 0 10px; font: 700 19px/1.25 "Shippori Mincho", serif; color: var(--deep); }
.ma-wh-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.ma-wh-2 > * { min-width: 0; }
.ma-sig { padding: 18px 20px; }
.ma-sig h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--deep); }
.ma-sig p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.ma-sig code { font: 500 12px "IBM Plex Mono", monospace; color: var(--deep); }
.ma-sig pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--deeper); color: #E8EFEC; font: 500 12px/1.6 "IBM Plex Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-sig pre .k { color: var(--gold-lt); }
.ma-sig a { color: var(--jade); border-bottom: 1px solid rgba(14,94,78,.3); }
.ma-sig .ma-sig-f { margin: 10px 0 0; }
.ma-ev-l { display: grid; gap: 8px; margin: 12px 0 0; }
.ma-ev-l small { display: block; color: var(--muted); font-size: 12px; }
.ma-mod input[type=url] { width: 100%; height: 40px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 500 13px "IBM Plex Mono", monospace; }
.ma-sub-t { margin: 8px 0 0; }
.ma-new-t { margin: 12px 0 0; }
.ma-lock { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px 18px; border-color: var(--gold); background: #FFFBEE; font-size: 13.5px; color: #6A5620; }
@media (max-width: 960px) { .ma-wh-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ma-lock { grid-template-columns: minmax(0, 1fr); } }
