/* OrangeSky admin. --brand is set per site in the layout. */
:root {
  --ink: #1c1917; --ink-2: #57534e; --line: #e7e5e4; --bg: #f5f5f4; --card: #fff;
  --ok: #166534; --ok-bg: #f0fdf4; --err: #991b1b; --err-bg: #fef2f2;
  --radius: 12px; --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: none; box-shadow: var(--focus); }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
code { font: .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top__in { max-width: 960px; margin: 0 auto; padding: .75rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand small { font-weight: 500; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: .6rem; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav form { margin: 0; }

.main { max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card--narrow { max-width: 440px; margin: 0 auto; }
.foot { text-align: center; color: var(--ink-2); font-size: .8rem; padding: 0 16px 32px; }

.form { display: grid; gap: .4rem; margin: 1rem 0; }
.form label { font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.form--inline { max-width: 360px; }
input[type=email], input[type=password], input[type=text], input:not([type]), select {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #d6d3d1; border-radius: 8px; background: #fff; color: var(--ink);
}
select { width: auto; min-width: 12rem; }
.pw { position: relative; display: block; }
.pw input { padding-right: 3rem; }
.pw-toggle { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
.pw-toggle:hover { color: var(--brand); background: var(--bg); }
.pw input::-ms-reveal { display: none; }
.code { font: 1.4rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .25em; text-align: center; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.btn { display: inline-block; margin-top: .9rem; padding: .75rem 1.2rem; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(.92); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid currentColor; margin-top: 0; }
.row .btn { margin-top: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.nav .linkish { color: var(--ink); text-decoration: none; font-weight: 500; }

.note { padding: .7rem .9rem; border-radius: 8px; margin: 1rem 0; font-size: .95rem; }
.note--info { background: var(--ok-bg); color: var(--ok); }
.note--error { background: var(--err-bg); color: var(--err); }

.choices { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: var(--focus); }
.choice input { margin-top: .3rem; accent-color: var(--brand); }
.choice span { display: grid; }
.choice small { color: var(--ink-2); font-size: .875rem; }

.steps { padding-left: 1.2rem; }
.qr-wrap { display: flex; justify-content: center; margin: 1rem 0; }
.qr { width: 220px; height: 220px; }
.secret { text-align: center; }
.secret code { background: var(--bg); padding: .4rem .6rem; border-radius: 6px; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.codes code { display: block; background: var(--bg); padding: .45rem; border-radius: 6px; text-align: center; }

.soon { margin: 1.5rem 0; padding: 1rem 1.2rem; border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff); }
.soon h2 { margin-top: 0; }
.list { padding-left: 1.2rem; }
.list li { margin: .4rem 0; }
.tag { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.actions form { display: inline; margin-right: .6rem; }

@media (max-width: 560px) {
  .card { padding: 20px; }
  .codes { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
