/* console.css — the signed-in surface, kept apart from the marketing sheet.
 *
 * SEPARATE FILE ON PURPOSE. style.css changes when a sentence on the home page
 * changes, which is often and by whoever is writing copy. The console is the
 * only page where a broken layout costs somebody the ability to rotate a leaked
 * key, so it does not share a file with the one that gets edited casually. */

.console { padding: 48px 24px 80px; }
.console h1 { font-size: 2rem; }
.console h2 { font-size: 1.05rem; letter-spacing: .01em; margin-bottom: 14px; }

.card {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 20px;
}
.card.narrow { max-width: 460px; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.row input { flex: 1 1 240px; margin-bottom: 0; }

button.btn { font: inherit; cursor: pointer; }
button.btn[disabled] { opacity: .5; cursor: progress; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { filter: brightness(1.1); }

.linkish {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--blue); cursor: pointer; text-decoration: underline;
}
.linkish[disabled] { color: var(--muted); cursor: progress; }

.hint { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.said {
  background: var(--paper2); border-left: 3px solid var(--ok);
  padding: 12px 16px; max-width: 460px; margin-top: 18px;
}
.err {
  background: var(--paper2); border-left: 3px solid var(--danger);
  padding: 12px 16px; color: var(--ink); margin-top: 24px;
}
.muted { color: var(--muted); }

dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; color: var(--ink); }

/* The meter. A bar rather than a number alone, because "412 of 500" is a fact
 * and a nearly-full bar is a feeling, and the feeling is what makes somebody
 * upgrade before they are stopped mid-integration. */
.meter {
  height: 10px; background: var(--paper3);
  border-radius: 999px; overflow: hidden; margin-bottom: 10px;
}
.meter-fill {
  height: 100%; width: 0; background: var(--blue);
  transition: width .4s ease;
}
.meter-fill.full { background: var(--warn); }
.meter-label { font-size: .9rem; color: var(--body); margin: 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .9rem; }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--paper3); vertical-align: top; }
tr.gone td { opacity: .55; }
code {
  font-family: var(--mono); font-size: .85em;
  background: var(--paper); padding: 2px 6px; border-radius: 3px;
}

.newkey {
  margin-top: 16px; padding: 16px;
  background: var(--paper); border: 1px dashed var(--blue); border-radius: var(--radius);
}
.newkey code {
  display: block; margin: 10px 0 12px; padding: 12px;
  word-break: break-all; background: var(--paper2);
}

/* Last on the page and visually cooler than everything above it. A destructive
 * control that looks like the others is one somebody reaches by habit. */
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }
