:root {
  --ink: #14233b;
  --soft: #55637a;
  --line: #c9d2de;
  --page: #e8edf3;
  --blue: #1d4f91;
  --red: #b3231b;
  --yellow: #ffc933;
  --green: #17693f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.4 "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

nav, main { max-width: 34rem; margin: 0 auto; padding: 0 1rem; }
nav { display: flex; gap: 1.25rem; align-items: center; }
nav a { padding: .9rem 0; color: var(--blue); }
nav .brand { margin-right: auto; color: var(--ink); font-weight: 700; text-decoration: none; }
main { padding-bottom: 3rem; }

h1, h2 { margin: 0; font-size: 1.15rem; }
ul { list-style: none; margin: 0; padding: 0; }
label { display: block; margin-bottom: .35rem; font-weight: 600; }

textarea, input:not([type=file]) {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--soft);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}
textarea { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

button, .upload {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: .7rem 1rem;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
button.quiet, .upload { background: #fff; color: var(--blue); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }

a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible,
input:focus-visible, .upload:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

.check button, .upload { margin: .6rem 0 0; }
.wait { display: none; }
.busy .wait { display: block; }
.busy button, .busy .upload { opacity: .55; pointer-events: none; }

.login { max-width: 20rem; margin: 18vh auto 0; }
.login h1 { margin-bottom: 1.5rem; font-size: 1.8rem; }
.login button { margin-top: .8rem; }
.error { color: var(--red); font-weight: 600; }

.rejected { margin-top: 1.5rem; padding-left: .8rem; border-left: 4px solid var(--soft); }
.rejected li { overflow-wrap: anywhere; }

.red { background: var(--red); color: #fff; }
.yellow { background: var(--yellow); color: var(--ink); }
.green { background: var(--green); color: #fff; }

.card { margin: 1.5rem -1rem 0; background: #fff; scroll-margin-top: 1rem; }
.card header { padding: 1.1rem 1rem; }
.card header h2 { font-size: clamp(1.8rem, 9.5vw, 2.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.card header p { margin: .2rem 0 0; font-size: 1.2rem; font-weight: 600; }

.sources a {
  display: grid;
  grid-template-columns: 2rem 6.2rem 1fr;
  align-items: center;
  min-height: 3.5rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.sources a:active { background: var(--page); }
.icon { font-size: 1.2rem; font-weight: 700; }
.name { font-weight: 600; }
.label { overflow-wrap: anywhere; }
.detail { grid-column: 2 / -1; color: var(--soft); font-size: .85rem; overflow-wrap: anywhere; }
.clean .icon { color: var(--green); }
.flagged .icon, .flagged .label { color: var(--red); font-weight: 700; }
.manual .icon, .manual .label { color: var(--blue); }

.card footer { display: grid; gap: .6rem; padding: 1rem; }
summary { padding: .7rem 0; color: var(--blue); font-weight: 600; text-align: center; cursor: pointer; }
details button { margin-top: .6rem; }
.owned { margin: 0; font-weight: 600; text-align: center; }

.list { margin-top: 1.5rem; }
.list li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list li > a { flex: 1; color: inherit; text-decoration: none; }
.list li div span, time { display: block; color: var(--soft); font-size: .9rem; }
.list li button { width: auto; }
.search { display: flex; gap: .5rem; margin: .7rem 0; }
.search button { width: auto; }
.chip { display: inline-block; margin: .3rem .3rem 0 0; padding: .2rem .5rem; border-radius: 4px; font-variant-numeric: tabular-nums; }
