/* The admin panel: a rail on the left, one page on the right, and on a phone the rail along the top. */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 14px 16px; background: var(--band); border-right: 1px solid var(--hair); }
.rail .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--well); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--acc-soft); color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"] .ico { color: var(--acc-text); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: .8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.rail-foot .btn { width: 100%; }

.page { min-width: 0; max-width: 1240px; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.head-text { flex: 1 1 260px; min-width: 0; }
.head-text .title { overflow-wrap: anywhere; }
.head-text .copy { margin-top: 5px; }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; min-width: 0; }
.panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wait { display: flex; align-items: center; gap: 10px; }
.plan-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.plan-now small { color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; color: var(--ink-2); font-size: .875rem; }
.stat b { font: 700 1.875rem/1 var(--f-dsp); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat small { color: var(--ink-3); }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tools .input { flex: 1 1 240px; max-width: 420px; }

.wide { overflow-x: auto; padding: 6px 8px 8px; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { padding: 12px; text-align: left; font: 500 .6875rem/1.2 var(--f-lab); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--hair); color: var(--ink-2); vertical-align: middle; }
td b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
td small { display: block; color: var(--ink-3); }
tbody tr.go { cursor: pointer; }
tbody tr.go:hover td { background: var(--well); }
td.num, th.num { text-align: right; white-space: nowrap; }
td a { color: var(--ink); }
.pages { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); }
.none { padding: 26px 14px; text-align: center; color: var(--ink-2); }
.st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; }
.facts dt { color: var(--ink-3); }
.facts dd { overflow-wrap: anywhere; }
.mono { font: 500 .8125rem/1.4 var(--f-xy); }
.steps { display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); align-items: center; }
.steps li:first-child { border-top: 0; }
.steps time, .log time { color: var(--ink-3); font-size: .8125rem; white-space: nowrap; }
.log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--hair); }
.log li:first-child { border-top: 0; }
.log span { min-width: 0; overflow-wrap: anywhere; }
textarea.input { font-family: inherit; height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.row .field { flex: 1 1 110px; }
form.stack { display: flex; flex-direction: column; gap: 16px; }

dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
dialog::backdrop { background: var(--scrim); }
.dialog { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 24px; max-height: calc(100vh - 48px); overflow: auto; }
.dialog .title { font-size: 1.5rem; }
.dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.signin { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.signin-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; padding: 32px 30px 30px; }

@media (max-width: 860px) {
  .shell { display: flex; flex-direction: column; }
  .rail { position: static; height: auto; gap: 12px; padding: 14px 12px 10px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav a { padding: 0 12px; gap: 8px; white-space: nowrap; }
  .rail-foot { margin: 0; flex-direction: row; align-items: center; }
  .rail-foot span { flex: 1; }
  .rail-foot .btn { width: auto; }
  .page { padding: 20px 14px 48px; }
  .wide table { min-width: 760px; }
}
@media (max-width: 480px) {
  .nav { justify-content: space-between; }
  .nav a { padding: 0 8px; font-size: .875rem; }
  .nav .ico { display: none; }
}
