:root {
  color-scheme: dark;
  font: 100% system-ui, sans-serif;
  color: #f8f7f7;
  background: #091625;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  max-width: 37rem;
  margin: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
}
header { text-align: center; padding-bottom: 1.25rem; }
header img { object-fit: contain; }
h1 { margin: .55rem 0 0; font-size: clamp(1.5rem, 6vw, 2rem); }
h2 { margin: 0; font-size: 1.25rem; }
section {
  padding: 1rem;
  border: 1px solid #42617d;
  border-radius: 1rem;
  background: #152d48;
}
label { display: block; margin-top: 1rem; }
input, textarea, button { font: inherit; }
input, textarea {
  width: 100%;
  margin: .4rem 0 .65rem;
  padding: .7rem;
  border: 1px solid #42617d;
  border-radius: .45rem;
  color: #f8f7f7;
  background: #10243a;
}
textarea { resize: vertical; }
button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  color: #091625;
  background: #ff9200;
  font-weight: 650;
}
button:disabled { opacity: .6; }
:focus-visible { outline: 2px solid #ffb800; outline-offset: 3px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
ul { padding: 0; list-style: none; }
li { padding: .75rem 0; border-top: 1px solid #42617d; overflow-wrap: anywhere; }
#status { min-height: 1.25rem; }

details { margin-top: 1.15rem; }
summary { cursor: pointer; }

/* 0.7.0 — coffre personnel */
p { line-height: 1.45; }
.small { font-size: .875rem; color: #c9d3de; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.code { font-size: 2.4rem; font-weight: 750; letter-spacing: .12em; text-align: center; color: #ffb800; margin: .25rem 0 .75rem; }
section button { width: 100%; margin-top: .4rem; }
.heading button { width: auto; margin: 0; }
button.secondary { color: #f8f7f7; border-color: #42617d; background: #10243a; }
button.danger { color: #f8f7f7; border-color: #a62932; background: #10243a; margin-top: .6rem; }
button[data-state="ok"] { background: #18743b; border-color: #18743b; color: #fff; }
button[data-state="error"] { background: #a62932; border-color: #a62932; color: #fff; }
li strong { display: block; font-size: 1.05rem; }
li small { display: block; color: #c9d3de; margin-top: .15rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .6rem; }
.row button { width: 100%; margin: 0; font-size: .9rem; }
#settings { margin-top: 1.5rem; }
#settings button { display: block; width: 100%; margin-top: .6rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .9rem 0 .2rem; }
.tabs button { width: 100%; margin: 0; font-size: .9rem; color: #f8f7f7; border-color: #42617d; background: #10243a; }
.tabs button[aria-selected="true"] { color: #091625; border-color: #ff9200; background: #ff9200; }
