.drop {
  border: 1px dashed var(--line); border-radius: 3px;
  padding: 3rem 1.5rem; text-align: center;
}
.drop.over { border-color: var(--ink); border-style: solid; }

.linkish {
  border: 0; background: none; padding: 0;
  color: var(--ink); font: inherit; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.fields { margin-top: 1.75rem; }
.fields input, .fields select {
  display: block; width: 100%; margin-bottom: 1.25rem; padding: .5rem 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; font: inherit; color: var(--ink);
}
.fields input::placeholder { color: var(--muted); }
.fields input:focus, .fields select:focus { outline: 0; border-bottom-color: var(--ink); }
.fields .btn { width: 100%; }
.dim { color: var(--muted); font-size: .78rem; }

.bar { height: 1px; background: var(--line); overflow: hidden; margin: 2rem 0 .6rem; }
.bar-fill { height: 100%; width: 0; background: var(--ink); transition: width .3s; }

#tree { margin-top: 3rem; }
.t-section {
  display: flex; align-items: center; gap: .6rem;
  margin: 3rem 0 0; padding: .2rem 0;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.t-section .grow { flex: 1; min-width: 0; }
.t-section .act { opacity: 0; transition: opacity .2s; }
.t-section:hover .act, .t-section .act:focus { opacity: 1; }
.t-book { display: flex; align-items: baseline; gap: .9rem; padding: .55rem 0; font-size: 1rem; }
.t-book .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-book.off .grow { color: var(--muted); text-decoration: line-through; }
/* Row actions stay out of sight until the row is actually being considered. */
.t-book .act {
  border: 0; background: none; padding: 0;
  color: var(--muted); font: inherit; font-size: .74rem; cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
.t-book:hover .act, .t-book .act:focus { opacity: 1; }
.t-book .act:hover { color: var(--ink); }
/* Arrows carry no word, so they need a touch more room to hit. */
.act.arw { font-size: .9rem; line-height: 1; padding: 0 .1rem; letter-spacing: 0; }
.t-book .act.danger:hover { color: #b3261e; }

#panel, #schools-panel { margin-top: 2rem; }
#schools-panel .dim { display: block; margin-bottom: 1.1rem; line-height: 1.5; }
.inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.inline input, .inline select {
  flex: 1 1 110px; min-width: 0; padding: .4rem 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: .85rem;
}
.inline input:focus, .inline select:focus { outline: 0; border-bottom-color: var(--ink); }
.btn.small { padding: .3rem .75rem; font-size: .78rem; }

#user-q {
  display: block; width: 100%; margin-bottom: 1rem; padding: .45rem 0;
  border: 0; border-bottom: 1px solid var(--line); background: none;
  font: inherit; font-size: .85rem; color: var(--ink);
}
#user-q::placeholder { color: var(--muted); }
#user-q:focus { outline: 0; border-bottom-color: var(--ink); }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem; color: var(--muted); font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.pager button {
  border: 0; background: none; padding: 0;
  color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer;
}
.pager button:disabled { color: var(--line); cursor: default; }
.pager button:not(:disabled):hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 1.5rem; }
td { padding: .45rem 0; border-top: 1px solid var(--line); }
td.dim, td.num { color: var(--muted); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  padding: .55rem 1.1rem; border-radius: 2px; background: var(--ink); color: #fff;
  font-size: .82rem; z-index: 60;
}
.toast.bad { background: #b3261e; }
