/* ---- admin ---- */
.week-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weeks {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  align-items: end;
  height: 84px;
  border-bottom: 1px solid var(--border);
}
.weeks i {
  display: block;
  height: var(--h);
  min-height: 2px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
}
.screen.active .weeks i {
  animation: grow-y 0.7s var(--ease) both;
  animation-delay: calc(var(--i) * 30ms);
}
@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}
.item-list .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.item-list li.user-row {
  flex-direction: column;
  align-items: stretch;
}
.badge.warn {
  background: color-mix(in srgb, var(--danger) 15%, transparent);
  color: var(--danger);
}

/* ---- me ---- */
.screen.active .preview-card {
  animation: rise-in 0.45s var(--ease);
}
.preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.preview-row b {
  display: block;
  font-weight: 600;
}
.preview-row small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
#account-email {
  overflow-wrap: anywhere;
}
/* The card opens the profile page. */
button.preview-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.preview-row .chev {
  margin-left: auto;
}
.chev,
.menu button::after {
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

/* The menu: a row per page, with its current value and a chevron. */
.menu {
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.menu li + li {
  border-top: 1px solid var(--border);
}
.menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.menu button::after {
  content: "›";
}
.menu button:active {
  background: var(--sunken);
}
.menu .value {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.item-list {
  list-style: none;
}
.item-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.item-list li:last-child {
  border-bottom: none;
}
.item-list li > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.item-list .sub {
  color: var(--muted);
  font-size: 0.75rem;
}
/* An empty list says so, in a box, so it doesn't read as a stray label. */
.item-list li.empty-row {
  display: block;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}
/* A held or reported photo beside what it's about, blurred until tapped. */
.queue-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.queue-head > div {
  flex: 1;
  min-width: 0;
}
.queue-photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  clip-path: inset(0 round 10px);
  filter: blur(12px);
  transition: filter 0.2s ease;
}
.queue-photo.shown {
  filter: none;
}
.badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}
/* A setting: what it is (with a hint below), then the choice. */
.setting {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.setting > span {
  font-size: 0.95rem;
}
.setting small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 2px;
}
.setting + .setting {
  margin-top: 6px;
}
/* Feedback in the admin dashboard: the message as written, dealt-with ones faded. */
.feedback-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.item-list li.done {
  opacity: 0.55;
}
#feedback-message {
  resize: vertical;
}
/* A notice in Me: something to do, with its button. */
.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-color: color-mix(in srgb, var(--pin) 45%, var(--border));
}
.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.notice .btn {
  width: auto;
  margin-top: 4px;
}
