/* DELETE.1999 stylesheet. Sibling of LOC.1999 — same rules, same spite.      */
/* No frameworks, no variables, no dark mode, no icons. Ugly on purpose.       */
/*                                                                            */
/* This file repaints the app rather than rebuilding it. app.js generates      */
/* markup from a fixed vocabulary of class names (card, notice, stat, meter,   */
/* choice, badge, btn, guide-step, toast, …) and every one of them is styled   */
/* below. Renaming any of them means editing JavaScript, so don't — restyle    */
/* here instead. The one deliberate exception is `svg`, hidden outright,       */
/* because a 1999 page has no iconography and the sprite is gone.             */

body {
  background: #ffffff;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.35;
  margin: 12px;
}

.shell {
  max-width: 680px;
}

/* Icons: deleted from the design, not from the markup app.js emits. */
svg {
  display: none;
}

h1 {
  font-size: 28px;
  margin: 0 0 2px 0;
  letter-spacing: 1px;
}

h2 {
  font-size: 20px;
  margin: 0 0 4px 0;
}

h3 {
  font-size: 17px;
  margin: 16px 0 4px 0;
}

h4 {
  font-size: 16px;
  margin: 0 0 2px 0;
}

p {
  margin: 6px 0;
}

a {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

hr,
.divider {
  border: none;
  border-top: 1px solid #808080;
  margin: 10px 0;
}

ul {
  margin: 4px 0;
  padding-left: 22px;
}

code,
.kbd {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

.kbd {
  border: 1px solid #808080;
  background: #f0f0f0;
  padding: 0 3px;
}

/* ------------------------------------------------------------------ header */

.topbar {
  margin-bottom: 6px;
}

.brand .mark {
  display: none;
}

.brand small {
  display: block;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
}

/* The 1999LOC toolkit bar, above this app's own tabs. */
.nav {
  margin: 4px 0;
  font-size: 15px;
  border-top: 1px solid #808080;
  padding-top: 3px;
}

/* Tabs: a 1999 nav bar is a row of links separated by pipes. */
.tabs {
  margin: 8px 0 4px 0;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 3px 0;
}

button.tab {
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  border: none;
  background: none;
  color: #0000ee;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 6px 0 0;
  margin-right: 4px;
  border-right: 1px solid #808080;
}

button.tab:last-child {
  border-right: none;
}

button.tab[aria-selected="true"] {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
  cursor: default;
}

.icon-btn {
  display: none;
}

/* -------------------------------------------------------------------- hero */

.hero p {
  margin: 0 0 6px 0;
}

.tagline {
  margin: 0 0 6px 0;
}

/* Chips: the facts under a heading. A sentence, not a row of pills. */
.chips {
  font-size: 14px;
  color: #333333;
  margin: 4px 0 0 0;
}

.chip:not(:last-child)::after {
  content: " \00b7 ";
}

/* ------------------------------------------------------------------- cards */

.stack {
  margin-top: 10px;
}

.card {
  border: 1px solid #808080;
  margin: 0 0 12px 0;
  padding: 6px 8px;
}

/* A locked step stays readable — it just says so and gets out of the way.
   Hiding it would lose the sense of a numbered procedure, which is the whole
   reason the page is laid out in steps. */
.card.is-locked {
  color: #666666;
}

.card.is-locked .card-body,
.card.is-locked .card-foot {
  display: none;
}

.card.is-locked .card-head::after {
  content: " (finish the step above first)";
  font-size: 14px;
  color: #666666;
}

.card-head {
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.card-head p {
  font-size: 14px;
  color: #333333;
  margin: 2px 0 0 0;
}

.step-num {
  font-weight: bold;
}

.step-num::before {
  content: "Step ";
}

.step-num:empty {
  display: none;
}

.head-aside {
  font-size: 14px;
}

.card-body {
  margin: 6px 0;
}

.card-foot {
  border-top: 1px solid #c0c0c0;
  padding-top: 6px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------- notices */

.notice {
  border: 1px solid #808080;
  background: #f4f4f4;
  padding: 5px 7px;
  margin: 8px 0;
  font-size: 15px;
}

.notice.warn {
  border-color: #aa5500;
  background: #fff8e0;
}

.notice.danger {
  border-color: #cc0000;
  background: #ffecec;
}

.notice.success {
  border-color: #007700;
  background: #eaffea;
}

.notice ul {
  margin: 4px 0 0 0;
}

/* `warn`, `danger` and `good` are also standalone text-colour helpers, and a
   notice carries the same word as its variant. Without this, a whole warning
   box renders orange and bold and becomes harder to read than the plain one.
   The border and background already say what kind of notice it is. */
.notice.warn,
.notice.danger,
.notice.success,
.notice.info {
  color: #000000;
  font-weight: normal;
}

/* ---------------------------------------------------------------- controls */

label {
  display: inline-block;
}

.field {
  margin: 6px 0;
}

.field label {
  display: block;
  font-weight: bold;
  font-size: 15px;
}

.hint {
  display: block;
  font-size: 13px;
  color: #333333;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  border: 1px solid #000000;
  padding: 2px;
  background: #ffffff;
  color: #000000;
  max-width: 100%;
}

input[type="text"],
input[type="password"] {
  width: 380px;
}

input[type="checkbox"] {
  margin-right: 4px;
}

label.check {
  display: block;
  font-weight: normal;
}

button,
.btn {
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  padding: 2px 10px;
  border: 2px outset #c0c0c0;
  background: #c0c0c0;
  color: #000000;
  cursor: pointer;
}

button:active,
.btn:active {
  border-style: inset;
}

button:disabled,
.btn:disabled {
  color: #666666;
  cursor: default;
}

/* The destructive button is the only place colour is allowed to do work. */
.btn-danger {
  background: #ffdddd;
  border-color: #ffdddd;
  font-weight: bold;
  color: #cc0000;
}

.btn-lg {
  font-size: 17px;
  padding: 3px 14px;
}

.btn-sm {
  font-size: 14px;
}

.btn-ghost {
  border-style: solid;
  border-width: 1px;
  border-color: #808080;
  background: #ffffff;
}

:focus {
  outline: 2px solid #000000;
}

/* A toggle switch is a checkbox. It always was. */
.switch {
  display: block;
  margin: 8px 0;
  font-weight: bold;
}

.switch .track {
  display: none;
}

.switch .label small {
  display: block;
  font-weight: normal;
  font-size: 14px;
  color: #333333;
}

/* Choice buttons: options with the trade-off spelled out, drawn as radios. */
.choices {
  margin: 6px 0;
}

button.choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #808080;
  background: #ffffff;
  padding: 5px 7px;
  margin: 0 0 6px 0;
  font-size: 15px;
}

button.choice[aria-pressed="true"] {
  border: 2px solid #000000;
  background: #f0f0f0;
}

button.choice strong {
  display: block;
}

button.choice strong::before {
  content: "( ) ";
  font-family: "Courier New", Courier, monospace;
}

button.choice[aria-pressed="true"] strong::before {
  content: "(x) ";
}

button.choice .ico {
  display: none;
}

button.choice > span > span {
  display: block;
  font-size: 14px;
  color: #333333;
}

/* Grids collapse to one column: a 1999 form is a stack. */
.grid-2,
.grid-3 {
  margin: 0;
}

.row {
  margin: 4px 0;
}

.spacer {
  display: none;
}

/* --------------------------------------------------------------- data bits */

.badge {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  border: 1px solid #000000;
  padding: 0 4px;
  white-space: nowrap;
}

.badge.good,
.badge.completed {
  background: #ccffcc;
}

.badge.warn {
  background: #ffffcc;
}

.badge.info {
  background: #e0e0ff;
}

.badge.failed {
  background: #ffdddd;
}

/* Stats are a table of numbers, which is what a table is for. */
.stats {
  border: 1px solid #000000;
  border-collapse: collapse;
  display: table;
  width: 100%;
  margin: 8px 0;
}

.stat {
  display: table-cell;
  border: 1px solid #808080;
  padding: 3px 6px;
  vertical-align: top;
}

.stat .k {
  font-size: 13px;
  color: #333333;
}

.stat .v {
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  font-weight: bold;
}

.stat.good .v {
  color: #006600;
}

.stat.bad .v {
  color: #cc0000;
}

.meter {
  border: 1px solid #000000;
  height: 14px;
  background: #ffffff;
  margin: 6px 0;
}

.meter > i {
  display: block;
  height: 100%;
  background: #000080;
}

.pulse-dot::before {
  content: "* ";
  color: #cc0000;
  font-weight: bold;
}

.spinner::after {
  content: "...";
  font-family: "Courier New", Courier, monospace;
}

table {
  border-collapse: collapse;
  border: 1px solid #000000;
  margin: 6px 0 10px 0;
  width: 100%;
  font-size: 15px;
}

th,
td {
  border: 1px solid #808080;
  padding: 2px 6px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #e0e0e0;
}

.num,
td.num {
  text-align: right;
  font-family: "Courier New", Courier, monospace;
}

.preview {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #808080;
}

.preview table {
  border: none;
  margin: 0;
}

.t-date {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.t-text div {
  max-height: 3.2em;
  overflow: hidden;
}

.t-kind {
  white-space: nowrap;
}

.empty {
  padding: 8px;
  color: #333333;
  font-size: 15px;
}

/* Job log lines: fixed-width, because they are a log. */
.log-line {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
  padding: 1px 0;
}

.log-line .txt {
  color: #333333;
}

.log-line .out {
  font-weight: bold;
}

.log-line .out.deleted {
  color: #006600;
}

.log-line .out.failed {
  color: #cc0000;
}

/* ------------------------------------------------------------------ upload */

.dropzone {
  border: 2px dashed #808080;
  background: #f8f8f8;
  padding: 12px;
  margin: 8px 0;
  cursor: pointer;
  text-align: center;
}

.dropzone strong {
  display: block;
}

.dropzone span {
  font-size: 14px;
  color: #333333;
}

.dropzone.is-over {
  border-color: #000000;
  background: #ffffcc;
}

.copy-row input {
  width: 320px;
}

/* ------------------------------------------------------------------ guides */

.guide {
  margin: 6px 0;
}

.guide-step {
  border-left: 3px solid #c0c0c0;
  padding: 2px 0 2px 8px;
  margin: 0 0 8px 0;
}

.guide-step p {
  font-size: 15px;
  margin: 2px 0 0 0;
}

.avatar {
  display: none;
}

/* ------------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 12px;
  overflow-y: auto;
}

.modal {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 10px 12px;
  max-width: 520px;
  width: 100%;
}

.modal-head .ico {
  display: none;
}

.modal-foot {
  border-top: 1px solid #c0c0c0;
  padding-top: 8px;
  margin-top: 10px;
}

/* Toasts: a 1999 page would use alert(). This is the polite version. */
.toasts {
  position: fixed;
  right: 8px;
  bottom: 8px;
  max-width: 320px;
}

.toast {
  border: 2px solid #000000;
  background: #ffffcc;
  padding: 5px 8px;
  margin-top: 6px;
  font-size: 14px;
}

.toast.error {
  background: #ffdddd;
  border-color: #cc0000;
}

.toast.success {
  background: #ccffcc;
}

/* ------------------------------------------------------------------ footer */

footer.site {
  border-top: 1px solid #808080;
  margin-top: 14px;
  padding-top: 6px;
  font-size: 13px;
  color: #333333;
}

/* ------------------------------------------------------------------ shared */

.small {
  font-size: 14px;
}

.tiny {
  font-size: 13px;
}

.faint,
.muted {
  color: #333333;
}

.good {
  color: #006600;
}

.warn {
  color: #aa5500;
}

.danger,
.error {
  color: #cc0000;
  font-weight: bold;
}

/* `[hidden]` has to beat any class that sets `display` — this bit is load
   bearing and was hard-won upstream. Keep it last and keep it !important. */
[hidden] {
  display: none !important;
}
