/* admin.lvlz.ai: the few things the app's stylesheet (app.css, loaded first) has no class for. */
a.sitem,
a.alink {
  color: inherit;
  text-decoration: none;
}
a.alink {
  color: var(--text);
  font-weight: 500;
}
a.alink:hover {
  color: var(--accent);
}
.tscroll {
  overflow-x: auto;
}
.adm-t {
  min-width: 100%;
}
.adm-t th,
.adm-t td {
  text-align: left;
  white-space: nowrap;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-t th:first-child,
.adm-t td:first-child {
  padding-left: 14px;
}
.adm-t td:last-child,
.adm-t th:last-child {
  padding-right: 14px;
}
.adm-menu {
  display: none;
}
@media (max-width: 900px) {
  .adm-menu {
    display: inline-flex;
  }
  /* 16px keeps iOS from zooming into the field. */
  .adm-search input {
    font-size: 16px;
  }
}
.adm-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  width: 220px;
  max-width: 40vw;
}
.adm-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  width: 100%;
  min-width: 0;
}
.adm-seg {
  display: inline-flex;
}
.adm-seg a {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.adm-seg a.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
/* One series a day: thin bars from the baseline, 2px apart, rounded at the data end. */
.adm-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 96px;
}
.adm-bars .adm-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.adm-bars i {
  display: block;
  width: 100%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.adm-bars .adm-bar:hover i {
  opacity: 0.8;
}
.adm-bars .adm-bar:hover::after {
  content: attr(data-tip-v);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--text-inv);
  font-size: 12px;
  pointer-events: none;
  z-index: 2;
}
.adm-tl {
  list-style: none;
  margin: 0;
  padding: 6px 14px 14px;
  max-height: 78vh;
  overflow-y: auto;
}
.adm-tl li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider);
  font-size: var(--fs-sm);
}
.adm-tl .ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text-2);
}
.adm-tl .k-said .ico {
  background: var(--accent-soft);
  color: var(--accent);
}
.adm-tl .k-action .ico {
  background: var(--green-soft);
  color: var(--green);
}
.adm-detail {
  font-size: 12.5px;
  margin-top: 2px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adm-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-msg {
  max-width: min(640px, 92%);
}
.adm-msg.me {
  align-self: flex-end;
}
.adm-msg .who {
  font-size: 11.5px;
  margin-bottom: 3px;
}
.adm-msg .body {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-3);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--fs-sm);
}
.adm-msg.me .body {
  background: var(--accent-soft);
}
.adm-act {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-2);
}
.adm-code {
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
  font-family: var(--mono);
}
.adm-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
