/* The sheet of the admin's area (console/admin/; v1.15.0, prompts/sprints/sprint-service.md, part C2). What the
   console has already (cards, badges, buttons, chips, fields) is console/app.css; this sheet adds what is new, in its
   manner. The page's policy admits no inline style: everything is a class of a sheet. Every colour, radius and size
   here is a token of app.css, so that the look part C1 gives those tokens is the look of these pages too. */

/* --- All apps (console/projects/): who made a game ----------------------------------------------------------------- */
/* The tools over the list hold the list of makers beside the search. */
.seek { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.input.maker, .input.mg-pick { width: 180px; height: 32px; font-size: 13px; }
/* The account that made a game, first on the line under its name. */
.meta .by { flex: none; white-space: pre; color: var(--text); }

/* --- The pieces of the admin's pages --------------------------------------------------------------------------------- */
/* A place of a page that holds what is drawn anew there: no box of its own, so the page's spacing stands between what
   it holds, and an empty one takes no room. */
.mg-slot { display: contents; }
.warn { color: var(--warning); }
/* The initials of a person, in a disc. */
.mg-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.mg-avatar.lg { width: 48px; height: 48px; font-size: 15px; }
.mg-avatar.sm { width: 28px; height: 28px; font-size: 10px; }
/* A row of a list (an account, a group, a pipeline): its badges and what stands on its right. */
.mg-row + .mg-row { border-top: 1px solid var(--border); }
.mg-row > .item + .item { border-top: 0; }
.mg-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 280px; }
.mg-side { display: grid; justify-items: end; gap: 2px; flex: none; min-width: 96px; text-align: right; }
/* The head of the page of one account. */
.mg-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mg-head h1 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.mg-head p { margin-top: 2px; overflow-wrap: anywhere; }
/* A choice that asks for a second press: the chip that asks. */
.chip.mg-armed { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); font-weight: 500; }

/* --- A link that is shown once (an invite, a reset) --------------------------------------------------------------- */
.mg-once { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 8px; background: var(--accent-soft); }
.mg-linkrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mg-linkrow .input { flex: 1; min-width: 0; }
.input.mg-link { font-size: 12px; background: var(--bg); }

/* --- A group's features: boxes that are ticked, two columns read down on a wide page ---------------------------------- */
.mg-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); grid-auto-flow: column; gap: 6px 12px; }
.mg-flag { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); text-align: left; transition: background 150ms, border-color 150ms; }
.mg-flag:hover { background: var(--elev); }
.mg-flag .title { font-size: 13px; }
.mg-flag[aria-checked="true"] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.mg-box { width: 16px; height: 16px; flex: none; margin-top: 1px; border: 1.5px solid var(--faint); border-radius: 4px; background: var(--bg); }
.mg-flag[aria-checked="true"] .mg-box { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--bg); }
.mg-send-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.mg-send-head h3 { margin: 0; font-size: 13px; font-weight: 500; }

/* --- A group's people ---------------------------------------------------------------------------------------------- */
.mg-people { margin: 0; padding: 0; display: grid; gap: 4px; }
.mg-people li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 0; min-width: 0; }
.mg-people li + li { border-top: 1px solid var(--border-soft); }
.mg-people .title { font-size: 13px; }
.mg-people a.grow:hover .title { color: var(--accent); }

/* --- The bar of a draft that is not saved: it stays at the foot of the window while the page scrolls -------------------- */
.mg-foot { position: sticky; bottom: 16px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
@media (prefers-reduced-motion: no-preference) { .mg-foot { animation: mg-rise 150ms ease-out; } }
@keyframes mg-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- A switch, and a row that holds one ------------------------------------------------------------------------------ */
.mg-switchrow { display: flex; align-items: center; gap: 16px; }
.mg-switch { position: relative; width: 40px; height: 24px; flex: none; padding: 0; border: 0; border-radius: 12px; background: var(--border); transition: background 150ms; }
.mg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 150ms ease-out; }
.mg-switch[aria-checked="true"] { background: var(--accent); }
.mg-switch[aria-checked="true"]::after { transform: translateX(16px); }
.mg-switch:disabled { opacity: 0.6; cursor: default; }

/* --- The audit's table ----------------------------------------------------------------------------------------------- */
.mg-table { padding: 8px 24px 12px; }
.mg-table td { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .seek { justify-content: flex-start; }
  .input.maker, .input.mg-pick { width: 100%; }
  .mg-flags { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .mg-marks { max-width: none; justify-content: flex-start; order: 3; width: 100%; }
  .mg-side { order: 4; justify-items: start; text-align: left; }
  .mg-table { padding: 8px 16px 12px; }
}

/* Icons, in the manner of app.css: mask images, so that the script writes no markup for them. */
.i-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16.5 14.2A5 5 0 0 1 22 19'/%3E%3C/svg%3E"); }
.i-plug { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v5M15 3v5M7 8h10v3a5 5 0 0 1-10 0zM12 16v5'/%3E%3C/svg%3E"); }
