/* files.aervial.com */

:root {
  --bg:    #111111;
  --field: #1a1a1a;
  --edge:  #333333;
  --text:  #eeeeee;
  --dim:   #888888;

  /* watch.php's inline styles use these names */
  --line:  #262626;
  --muted: #888888;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  max-width: 32rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body.wide { max-width: 60rem; }

h1 { margin: 0 0 2rem; font-size: 1.1rem; font-weight: 600; }
h2 { margin: 2.5rem 0 0.75rem; font-size: 0.95rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

a { color: var(--text); }
a:hover { color: #ffffff; }

.quiet { color: var(--dim); font-size: 0.875rem; }
.quiet a { color: var(--dim); }
.note  { margin: 0.4rem 0 0; color: var(--dim); font-size: 0.82rem; }
.note code { color: var(--text); }

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  color: var(--dim);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--edge);
  border-radius: 0;
  background: var(--field);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #666666;
}

textarea { resize: vertical; min-height: 5rem; }

button, .button {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { border-color: #666666; }
button:disabled { opacity: 0.4; cursor: default; }
button:disabled:hover { border-color: var(--edge); }

.error { margin: 1rem 0 0; color: #dd8888; font-size: 0.9rem; }
.done  { margin: 1rem 0 0; color: #88bb88; font-size: 0.9rem; }

/* Viewer video list */
.item { padding: 0 0 1.75rem; }
.item .title { font-weight: 600; }
.item .desc  { color: var(--dim); font-size: 0.9rem; margin-top: 0.15rem; }
.item .state { color: var(--dim); font-size: 0.875rem; margin-top: 0.35rem; }
.item button { margin-top: 0.5rem; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}
.topbar h1 { margin: 0; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }

table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
th, td {
  text-align: left;
  padding: 0.4rem 1rem 0.4rem 0;
  vertical-align: top;
}
th { font-size: 0.8rem; font-weight: 600; color: var(--dim); padding-bottom: 0.6rem; }
td { font-size: 0.88rem; }
.scroll { overflow-x: auto; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }

form.inline { display: inline; }
form.inline button {
  margin: 0 0.6rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 0.82rem;
  cursor: pointer;
}
form.inline button:hover { color: var(--text); }

.row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.row > div { flex: 1 1 14rem; }

.checklist {
  max-height: 15rem;
  overflow-y: auto;
  border: 1px solid var(--edge);
  background: var(--field);
  padding: 0.5rem 0.7rem;
}
.checklist label { display: block; margin: 0.15rem 0; font-size: 0.9rem; color: var(--text); }
.checklist input { width: auto; margin-right: 0.45rem; }

.bar { height: 2px; background: var(--field); margin-top: 0.7rem; display: none; }
.bar span { display: block; height: 100%; width: 0; background: var(--dim); }

.empty { color: var(--dim); font-size: 0.9rem; }

/* Video description, under the player */
.desc { margin: 1rem 0 0; color: var(--dim); font-size: 0.9rem; max-width: 42rem; }
