/* The admin pages, on top of the game's styles.css. Same palette, a little more room for lists. */

.app.admin { max-width: 760px; }

.admin-bar { display: flex; align-items: center; gap: 12px; }
.admin-brand { font-size: 1.6rem; line-height: 1; }
.admin-tabs { display: flex; gap: 4px; background: var(--well); padding: 4px; border-radius: 14px; }
.admin-tab { padding: 7px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.admin-tab.on { background: var(--yellow); color: var(--dark); }
.admin-signout { margin-left: auto; }

.page-head { display: grid; gap: 4px; }
.page-head h1 { font-size: 1.7rem; line-height: 1.1; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-head .text-input { flex: 1; min-width: 0; }
#editor { overflow-y: auto; }
.admin-note { font-size: 0.85rem; color: var(--ink-muted); }
.admin-note.bad { color: var(--pink-text); }

.login { max-width: 360px; width: 100%; display: grid; gap: 12px; }
.login-error { color: var(--pink-text); text-align: center; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field small { color: var(--ink-muted); font-size: 0.8rem; }
.admin .text-input { font-size: 1rem; padding: 10px 12px; border-radius: 12px; }
select.text-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
textarea.text-input { resize: vertical; min-height: 4.5em; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.form-error { color: var(--pink-text); font-weight: 500; }

/* Lists */
.toolbar { display: grid; gap: 10px; }
.toolbar .segmented .seg { font-size: 0.95rem; padding: 8px 6px; }
.list { display: grid; gap: 8px; }
.item {
  appearance: none;
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.item:hover { border-color: var(--surface-strong); background: var(--surface-strong); }
.item:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.item.off { opacity: 0.55; }
.item-text { font-weight: 500; overflow-wrap: anywhere; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.85rem; color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .tag { font-size: 0.8rem; padding: 3px 9px; }
.more { justify-self: center; }
