@font-face { font-family: "Inter"; src: url(/static/fonts/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/fonts/inter-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/fonts/inter-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/fonts/inter-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/static/fonts/inter-display-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/static/fonts/inter-display-800.woff) format("woff"); font-weight: 800; font-display: swap; }

/* Same fox colours as Kitsune Banking: bark, cream, ember and rust, pine for "done". */
:root {
  --night: #2b1f1a; --night-2: #3b2b23; --cream: #f4e6d4;
  --kitsune: #e27012; --kitsune-deep: #b4480f; --deep-hover: #933a0b;
  --sumi: #2b211c; --hai: #7a6a5f; --ground: #f8f3ec; --surface: #fffdfa; --line: #e7dccf; --field: #fff;
  --ok: #3d6b52; --bad: #a3302a; --warn: #a8661a;
  --display: "Inter Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-family: var(--text); color: var(--sumi); background: var(--ground); font-size: 15px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--kitsune-deep); text-underline-offset: 3px; }
a:hover { color: var(--kitsune); }
:focus-visible { outline: 3px solid var(--kitsune); outline-offset: 2px; }
h1, h2 { margin: 0; font-family: var(--display); letter-spacing: -.02em; }
h1 { font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: 17px; margin-bottom: 12px; }
p { margin: 0 0 12px; }
code { font: 600 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: #f3eadf; padding: 2px 6px; border-radius: 3px; word-break: break-all; }
.small { font-size: 13.5px; color: var(--hai); }
.lede { font-size: 16px; }

/* bar */
.bar { background: var(--night); color: var(--cream); display: flex; align-items: center; gap: 16px; padding: 10px max(20px, calc((100vw - 980px) / 2)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand b { color: var(--kitsune); font-weight: 800; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top-nav a, .top-nav .link { color: #e2d2c1; text-decoration: none; font-weight: 600; }
.top-nav a:hover, .top-nav .link:hover { color: #fff; }
.top-nav form { margin: 0; }

main { flex: 1; width: 100%; margin: 0 auto; padding: 32px 20px 48px; }
main.wide { max-width: 1020px; }
main.narrow { max-width: 480px; padding-top: 7vh; }
.foot { text-align: center; font-size: 12.5px; color: var(--hai); padding: 18px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; margin-bottom: 18px; }
.card.msg h1, .card.consent h1, .card.setup h1 { font-size: 24px; margin-bottom: 10px; }
.card.danger { border-color: #ead0cb; }
.card.secret { border: 2px solid var(--kitsune); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.grid > .card.danger { grid-column: 1 / -1; }

/* sign in */
.signin { text-align: center; padding: 34px 30px 26px; }
.signin .mark { display: block; margin: 0 auto 14px; }
.signin h1 { margin-bottom: 6px; }
.signin .lede { margin-bottom: 22px; }
.signin .small { margin: 20px 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--kitsune-deep);
  background: var(--kitsune-deep); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--deep-hover); border-color: var(--deep-hover); color: #fff; }
.btn.quiet { background: var(--field); color: var(--sumi); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--hai); color: var(--sumi); }
.btn.bad { background: var(--field); color: var(--bad); border-color: #e2c3bd; }
.btn.bad:hover { border-color: var(--bad); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.big { height: 50px; width: 100%; font-size: 15.5px; }
.btn.roblox { background: var(--night); border-color: var(--night); }
.btn.roblox:hover { background: var(--night-2); }
.btn.discord { background: #5865f2; border-color: #5865f2; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--kitsune-deep); cursor: pointer; font-weight: 600; }
.rbx-mark { width: 18px; height: 18px; border: 3px solid currentColor; border-radius: 3px; transform: rotate(15deg); position: relative; }
.rbx-mark::after { content: ""; position: absolute; inset: 3px; background: currentColor; border-radius: 1px; }
.disc-mark { width: 44px; height: 44px; border-radius: 50%; background: #5865f2; flex-shrink: 0; position: relative; }
.disc-mark::before { content: ""; position: absolute; left: 11px; right: 11px; top: 14px; bottom: 13px; background: #fff; border-radius: 9px 9px 12px 12px; }
.disc-mark.big { display: block; width: 60px; height: 60px; margin-bottom: 14px; }
.disc-mark.big::before { left: 15px; right: 15px; top: 19px; bottom: 18px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.row form { margin: 0; }
.consent .row.end .btn { min-width: 110px; }
.who { margin: 16px 0 0; text-align: right; }

/* notes */
.note { padding: 10px 14px; border-radius: 4px; font-weight: 600; font-size: 14px; background: #f8e2cc; color: #7d3209; }
.note.ok { background: #e2ede5; color: #2c513d; }
.note.bad { background: #f6dcd8; color: #7f231f; }
.note.warn { background: #f8ead3; color: #74450f; }
.tag { display: inline-block; font-style: normal; padding: 0 7px; border-radius: 3px; background: #f8e2cc; color: #8a3a0c; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.tag.bad { background: #f6dcd8; color: #7f231f; }

/* avatars, account rows */
.av { width: 44px; height: 44px; border-radius: 50%; background: #efe3d5; object-fit: cover; flex-shrink: 0; display: block; }
.av.big { width: 84px; height: 84px; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--kitsune); }
.hero { display: flex; gap: 20px; align-items: center; margin: 0 0 26px; }
.hero h1 { font-size: 32px; }
.hero p { margin: 2px 0 0; color: var(--hai); }
.acct { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.acct:first-of-type { border-top: 0; padding-top: 0; }
.acct > div { flex: 1; min-width: 0; }
.acct b, .list b, .gives b { display: block; font-weight: 700; }
.acct span, .list span, .gives span { display: block; font-size: 13.5px; color: var(--hai); }
.acct form { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li > div:first-child { min-width: 0; }
.list .empty { color: var(--hai); font-size: 14px; display: block; }
.list b a { color: var(--sumi); }
.list b em, .list b + em { margin-left: 4px; }
.card > form { margin-top: 12px; }
.danger .row input { flex: 1; min-width: 160px; }

.gives { list-style: none; margin: 14px 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.gives li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.gives li:first-child { border-top: 0; }

/* forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 0; }
label input, label textarea { margin-top: 5px; }
input:not([type=checkbox]), textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 9px 11px; border: 1px solid #d9cbbb; border-radius: 4px; background: var(--field); color: var(--sumi); }
textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
input:focus, textarea:focus { outline: 2px solid var(--kitsune); outline-offset: -1px; border-color: transparent; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--kitsune-deep); }
.stack .btn { margin-top: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 6px 16px 16px; margin: 0 0 16px; }
legend { font-weight: 800; font-family: var(--display); padding: 0 6px; }
fieldset .small { margin: 6px 0 4px; }
.copy { display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; }
.copy code { flex: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 6px; }
.kv dt { font-weight: 600; color: var(--hai); font-size: 14px; }
.kv dd { margin: 0; min-width: 0; }

/* admin */
.page-title { margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--hai); text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--sumi); }
.tabs a[aria-current] { color: var(--sumi); border-bottom-color: var(--kitsune); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stats div { background: var(--night); color: var(--cream); border-radius: 6px; padding: 14px 16px; }
.stats b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: #cdbba9; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: 0; color: var(--hai); font-weight: 600; }
td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bar { padding: 10px 16px; gap: 10px; }
  .brand span { display: none; }
  main { padding: 22px 14px 40px; }
  .card { padding: 18px 16px; }
  .hero h1 { font-size: 26px; }
  .list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
pre { background: var(--night); color: var(--cream); padding: 14px 16px; border-radius: 6px; overflow-x: auto; font: 13px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; margin: 0 0 12px; }
ul.plain { margin: 0 0 12px; padding-left: 20px; }
ul.plain li { margin: 4px 0; }
label.check span code { margin-right: 4px; }
.banner { background: var(--kitsune-deep); color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.foot { display: flex; gap: 18px; justify-content: center; }
.foot a { color: var(--hai); text-decoration: none; }
.foot a:hover { color: var(--kitsune-deep); text-decoration: underline; }
label small { display: block; font-weight: 400; color: var(--hai); font-size: 13px; margin-top: 1px; }
label.check span b { display: block; font-weight: 600; }
label.check span small { margin: 0; }
.settings fieldset { padding-bottom: 14px; }
.settings label.check { margin-top: 14px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-head form { margin: 0 0 14px; }
.row.spread { justify-content: space-between; }
.row.spread h2 { margin: 0; }
.legal { margin-top: 10px !important; }
.legal-doc { max-width: 760px; margin: 0 auto; padding: 30px 34px; }
.legal-doc h1 { margin-bottom: 4px; }
.legal-doc h2 { margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { line-height: 1.65; }
.plain-table { margin: 6px 0 14px; }
.plain-table td { font-size: 14px; }
@media (max-width: 720px) { .legal-doc { padding: 20px 16px; } .plain-table th:nth-child(2), .plain-table td:nth-child(2) { display: none; } }
.plain-table td:first-child { white-space: normal; width: 44%; font-variant-numeric: normal; }
.plain-table td:nth-child(2) { width: 28%; }
.row > input { flex: 1; width: auto; min-width: 180px; }
.card > form.row + .list { margin-top: 18px; }
/* more sign-in services */
.tw-mark, .gh-mark, .st-mark { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: inline-block; position: relative; }
.tw-mark { background: #9146ff; } .gh-mark { background: #24292f; } .st-mark { background: #1b2838; }
.tw-mark::before { content: ""; position: absolute; left: 13px; top: 11px; width: 18px; height: 20px; border: 3px solid #fff; border-radius: 2px 2px 2px 8px; }
.gh-mark::before { content: ""; position: absolute; inset: 11px; border: 3px solid #fff; border-radius: 50%; }
.st-mark::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border: 3px solid #c7d5e0; border-radius: 50%; }
.alt-signin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alt-signin .btn { justify-content: flex-start; gap: 10px; height: 44px; }
.badge { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  font: 800 13px/1 var(--display); flex-shrink: 0; }
.b-discord { background: #5865f2; } .b-twitch { background: #9146ff; } .b-github { background: #24292f; } .b-steam { background: #1b2838; }
.signin .or, .card .or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--hai); font-size: 13px; }
.signin .or::before, .signin .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag.ok { background: #e2ede5; color: #2c513d; }
.list.compact li { padding: 6px 0; }
.grid > div { min-width: 0; }
.av.blank.grp, .av.blank.srv { background: #f3e1cc; }
/* 2FA */
.qrrow { display: flex; gap: 22px; align-items: flex-start; margin: 10px 0 14px; }
.qr svg { display: block; border: 1px solid var(--line); border-radius: 6px; }
.qrrow ol { margin: 0; }
code.key { letter-spacing: .04em; }
.codes { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; }
.codes code { font-size: 15px; padding: 4px 8px; }
@media (max-width: 720px) { .qrrow { flex-direction: column; } .alt-signin { grid-template-columns: 1fr; } }
.email-way { text-align: center; margin: 14px 0 0; font-size: 14px; }
.mail-mark { width: 44px; height: 44px; border-radius: 50%; background: #f3e1cc; flex-shrink: 0; position: relative; display: inline-block; }
.mail-mark::before { content: ""; position: absolute; left: 11px; top: 14px; width: 22px; height: 16px; border: 2.5px solid var(--kitsune-deep); border-radius: 3px; box-sizing: border-box; }
.mail-mark::after { content: ""; position: absolute; left: 15px; top: 13px; width: 14px; height: 9px; border-bottom: 2.5px solid var(--kitsune-deep); border-right: 2.5px solid var(--kitsune-deep); transform: rotate(45deg) scale(.8); }
.av.blank.mail { background: #f3e1cc; }
.sender-form[data-kind=zepto] fieldset[data-for=smtp], .sender-form[data-kind=smtp] fieldset[data-for=zepto] { display: none; }
select { font: inherit; font-size: 14.5px; padding: 9px 11px; border: 1px solid #d9cbbb; border-radius: 4px; background: var(--field); color: var(--sumi); width: 100%; margin-top: 5px; }
.row > select { width: auto; margin: 0; }
.preset-help { margin: 6px 0 0; }
