:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background: #101216; color: #E8E6DF; font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif; }
main { width: 100%; padding: 48px 20px 24px; flex: 1; }
main.narrow { max-width: 420px; }
main.wide { max-width: 860px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.mark { width: 30px; height: 30px; }
.name { font-size: 20px; font-weight: 500; color: #F1EFE8; }
h1 { font-size: 22px; font-weight: 500; margin: 0 0 10px; color: #F1EFE8; }
h2 { font-size: 16px; font-weight: 500; margin: 0 0 6px; color: #F1EFE8; }
p { margin: 0 0 14px; }
.muted { color: #888780; }
.small { font-size: 13px; }
.step { color: #EF9F27; font-size: 13px; margin-bottom: 6px; }
.error { color: #F09595; background: #2A1717; border-radius: 8px; padding: 10px 12px; }
.warn { color: #EF9F27; background: #2A2315; border-radius: 8px; padding: 10px 12px; }
form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { font-size: 13px; color: #B4B2A9; margin-top: 8px; }
input[type=text], input[type=password], input[type=email] { background: #171A1F; color: #E8E6DF; border: 1px solid #3A3D42;
  border-radius: 8px; padding: 10px 12px; font-size: 15px; }
input:focus { outline: none; border-color: #EF9F27; }
button, a.button { display: inline-block; margin-top: 14px; background: #EF9F27; color: #1A1205;
  border: 1px solid #EF9F27; border-radius: 8px; padding: 10px 16px; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; text-align: center; }
button:hover, a.button:hover { background: #F5AE45; }
button.plain { margin: 0; background: transparent; color: #E8E6DF; border-color: #3A3D42;
  padding: 7px 12px; font-size: 13px; font-weight: 400; }
button.plain:hover { background: #1C1F24; }
a { color: #EF9F27; }
.qr { background: #ffffff; border-radius: 10px; padding: 8px; width: fit-content; margin: 0 0 14px; line-height: 0; }
.secret { font-family: Menlo, Consolas, monospace; font-size: 14px; background: #171A1F;
  border-radius: 8px; padding: 10px 12px; word-spacing: 4px; }
.codes { list-style: none; padding: 14px 16px; margin: 0 0 18px; background: #171A1F; border-radius: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  font-family: Menlo, Consolas, monospace; font-size: 15px; }
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bar h1 { margin: 0; }
.bar form { flex-direction: row; align-items: center; gap: 12px; margin: 0; }
.card { background: #171A1F; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
form.inline { flex-direction: row; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
form.inline button { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.grow { flex: 1; min-width: 220px; }
.field label { margin-top: 0; }
input[type=date] { background: #171A1F; color: #E8E6DF; border: 1px solid #3A3D42;
  border-radius: 8px; padding: 9px 12px; font-size: 15px; font-family: inherit; }
.card input:is([type=text], [type=date], [type=email], [type=password]) { background: #101216; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
th { text-align: left; font-weight: 400; color: #888780; font-size: 12px; padding: 6px 8px; }
td { padding: 9px 8px; border-top: 1px solid #23262B; vertical-align: middle; }
.mono { font-family: Menlo, Consolas, monospace; font-size: 13px; }
.state { border-radius: 9px; padding: 2px 9px; font-size: 12px; white-space: nowrap; }
.state.unused { color: #B4B2A9; border: 1px solid #3A3D42; }
.state.active { color: #5DCAA5; border: 1px solid #2E6B58; }
.state.expired { color: #EF9F27; border: 1px solid #7A5416; }
.state.revoked { color: #F09595; border: 1px solid #7A3A3A; }
td.actions { text-align: right; white-space: nowrap; }
td.actions a { margin-left: 12px; font-size: 13px; }
a.danger { color: #F09595; }
button.danger { background: transparent; color: #F09595; border-color: #E24B4A; }
button.danger:hover { background: #2A1717; }
.key { font-family: Menlo, Consolas, monospace; font-size: 19px; letter-spacing: 1px; background: #171A1F;
  border: 1px solid #EF9F27; border-radius: 10px; padding: 14px 16px; text-align: center; user-select: all; }
footer { color: #55585D; font-size: 12px; padding: 16px; }

/* admin site with a menu */
[hidden] { display: none !important; }
body.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px;
  background: #14171B; border-right: 1px solid #23262B; }
.side .brand { margin: 0 8px 24px; text-decoration: none; }
.tag { color: #888780; font-size: 12px; border: 1px solid #3A3D42; border-radius: 8px; padding: 0 7px; }
.side nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px;
  color: #B4B2A9; text-decoration: none; }
.side nav a:hover { background: #1C1F24; color: #F1EFE8; }
.side nav a.on { background: #2A2315; color: #EF9F27; }
.side svg:not(.mark) { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.side .out { margin: 0; padding: 12px 8px 0; border-top: 1px solid #23262B; gap: 8px; }
main.page { max-width: 1040px; padding: 30px 34px 16px; min-height: 100vh; display: flex; flex-direction: column; }
main.page footer { margin-top: auto; padding: 20px 0 0; }
main.page .card { padding: 18px 20px; margin-bottom: 16px; }
main.page .card h2 { margin-bottom: 12px; }
.bar { gap: 14px; flex-wrap: wrap; }
.bar h1 { overflow-wrap: anywhere; min-width: 0; }
.bar .button { margin: 0; }
.back { margin-bottom: 8px; }
.back a { text-decoration: none; }
.slim { max-width: 560px; }
.hint { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: #171A1F; border: 1px solid transparent; border-radius: 10px; padding: 16px 18px;
  text-decoration: none; color: #888780; display: flex; flex-direction: column; font-size: 13px; }
.tile:hover { border-color: #3A3D42; }
.tile b { font-size: 28px; line-height: 1.2; font-weight: 500; color: #F1EFE8; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters a { border: 1px solid #3A3D42; border-radius: 16px; padding: 4px 13px; font-size: 13px; color: #B4B2A9;
  text-decoration: none; }
.filters a.on { border-color: #EF9F27; color: #EF9F27; }
.scroll { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.alert { color: #EF9F27; }
.good { color: #5DCAA5; }
a.strong { color: #F1EFE8; font-weight: 500; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #23262B; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row form, td form { margin: 0; }
.row button, .row a.button { margin: 0; padding: 8px 14px; font-size: 14px; }
main.page form.inline button { padding: 9px 14px; font-size: 14px; }
button.second, a.button.second { background: transparent; color: #E8E6DF; border-color: #3A3D42; }
button.second:hover, a.button.second:hover { background: #1C1F24; }
a.button.danger { background: transparent; color: #F09595; border-color: #E24B4A; }
a.button.danger:hover { background: #2A1717; }
select { background: #101216; color: #E8E6DF; border: 1px solid #3A3D42; border-radius: 8px; padding: 9px 12px;
  font: inherit; min-height: 41px; }
:is(a, button, select):focus-visible { outline: 2px solid #EF9F27; outline-offset: 2px; }
.key { overflow-wrap: anywhere; }
main.page .key { background: #101216; max-width: 480px; }
.key.closed { border-color: #3A3D42; color: #888780; user-select: none; }
.share { border: 1px solid #2E6B58; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.share input[readonly] { width: 100%; font-family: Menlo, Consolas, monospace; font-size: 13px; margin-bottom: 8px; }
.mailto { margin: 14px 0 8px; }
.notice { color: #5DCAA5; background: #14261F; border-radius: 8px; padding: 10px 12px; }
dl { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 8px 14px; margin: 0 0 16px; }
dt { color: #888780; }
dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  body.app { display: block; }
  .side { position: static; height: auto; padding: 14px 12px 8px; border-right: 0; border-bottom: 1px solid #23262B; }
  .side .brand { margin-bottom: 12px; }
  .side nav { display: grid; grid-template-columns: 1fr 1fr; }
  .side .out { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 10px; }
  main.page { padding: 20px 14px; min-height: 0; }
}

/* the page behind a share link */
body.gift { background: radial-gradient(900px 480px at 50% -80px, #33260F 0%, #101216 70%) no-repeat #101216; }
body.gift main { max-width: 520px; display: flex; flex-direction: column; justify-content: center; padding: 32px 18px; }
body.gift header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
body.gift .mark { width: 42px; height: 42px; }
body.gift .name { font-size: 26px; }
.ticket { background: #171A1F; border: 1px solid #2B2E33; border-top: 3px solid #EF9F27; border-radius: 16px;
  padding: 32px 30px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ticket h1 { font-size: 26px; }
.ticket button { width: 100%; padding: 13px 16px; font-size: 16px; }
.ticket .key { background: #101216; font-size: 20px; margin: 18px 0 0; padding: 18px 12px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 18px; text-align: left; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 42px; color: #B4B2A9; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
  border: 1px solid #EF9F27; border-radius: 50%; color: #EF9F27; text-align: center; line-height: 26px; font-size: 14px; }
.ticket > p:last-child { margin: 0; }
.by { text-align: center; color: #6B6E73; font-size: 12px; margin: 22px 0 0; }
@media (max-width: 480px) { .ticket { padding: 26px 18px 20px; } .ticket .key { font-size: 16px; letter-spacing: 0; } }
/* Displays */
h2.label { font-size: 13px; color: #888780; font-weight: 400; margin: 6px 0 10px; }
.sim { display: inline-block; margin-top: 3px; background: #C98A1B; color: #1A1205; border-radius: 6px;
  padding: 1px 7px; font-size: 11px; font-weight: 600; letter-spacing: .4px; }
.state.registered { color: #5DCAA5; border: 1px solid #2E6B58; }
.state.pairing, .state.waiting_email { color: #EF9F27; border: 1px solid #7A5416; }
.state.unregistered { color: #B4B2A9; border: 1px solid #3A3D42; }
.state.disabled { color: #F09595; border: 1px solid #7A3A3A; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; vertical-align: -1px; }
.bars i { width: 4px; background: #3A3D42; border-radius: 1px; }
.bars i.on { background: #5DCAA5; }
.bars i.h1 { height: 25%; } .bars i.h2 { height: 50%; } .bars i.h3 { height: 75%; } .bars i.h4 { height: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.health { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.health b { display: block; font-size: 26px; font-weight: 500; color: #F1EFE8; }
.health .bad b { color: #F09595; } .health .mid b { color: #EF9F27; }
.events { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.events li { padding: 8px 0 8px 12px; border-top: 1px solid #23262B; border-left: 3px solid #3A3D42; font-size: 14px; }
.events li.error { border-left-color: #E24B4A; }
.events li.warning { border-left-color: #EF9F27; }
.events .when { color: #888780; font-size: 12px; font-family: Menlo, Consolas, monospace; }
.events .todo { color: #B4B2A9; font-size: 13px; }
.simbanner { background: #C98A1B; color: #1A1205; border-radius: 8px; padding: 8px 12px; font-weight: 600;
  font-size: 14px; margin-bottom: 14px; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; color: #B4B2A9; }
.choice input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #EF9F27; }
fieldset.choices { border: 0; padding: 0; margin: 0 0 6px; }
fieldset.choices legend { padding: 0; margin-bottom: 2px; }
.codebox { font-family: Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; text-align: center; }
/* login.diglinq.com, the owner's own pages */
.ownernav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: -8px 0 22px; }
.ownernav a { color: #B4B2A9; text-decoration: none; }
.ownernav a[aria-current="page"] { color: #EF9F27; }
.ownernav span { margin-left: auto; }
.ownernav form { margin: 0; }
.ownernav button { margin: 0; padding: 7px 12px; font-size: 14px; }
a.ownerdisplay { display: block; color: inherit; text-decoration: none; border: 1px solid transparent; }
a.ownerdisplay:hover { border-color: #3A3D42; }
a.ownerdisplay .bar { margin-bottom: 6px; }
