/* Motif Memory's own look, on top of the suite's css/motif.css (the palette, fonts, app bar, menus, dialogs and toasts). */

/* The page scrolls under the bar, and reads a little looser than the suite's chrome */
.scroll { flex: 1; min-height: 0; overflow: auto; line-height: 1.5; }
.page { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.page h1 { margin: 0 0 8px; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.page .lead { margin: 0 0 24px; font-size: 14px; max-width: 680px; }
.tag { display: inline-flex; align-items: center; height: 18px; margin-left: 8px; padding: 0 7px; border-radius: 9px; background: var(--hover); color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.count { color: var(--muted); font-size: 12px; }

/* One section per choice, to close once it's dealt with. Its heading says what's chosen, so a closed one still tells. */
.choice { padding: 20px 0; border-top: 1px solid var(--line); }
.choice > summary { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; cursor: pointer; list-style: none; }
.choice > summary::-webkit-details-marker { display: none; }
.choice > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 0 2px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .12s; }
.choice[open] > summary::before { transform: rotate(45deg); }
.choice > summary .count.warn { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; }
.choice > summary .count.warn svg.i { width: 13px; height: 13px; }
.choice h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.choice .what { margin: 0 0 12px; color: var(--muted); max-width: 680px; }
.choice h3 { margin: 12px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tick { display: inline-flex; align-items: flex-start; gap: 10px; padding: 5px 6px; border-radius: 6px; cursor: pointer; color: var(--text); }
.tick:hover { background: var(--hover); }
.tick.fixed { cursor: default; }
.tick.fixed:hover { background: none; }
.tick input { flex: none; width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--ink); cursor: inherit; }
.tick b { color: var(--ink); font-weight: 500; }
.tick .line { display: block; color: var(--muted); }
.tick .line::first-letter { text-transform: uppercase; }
.tick b + .line, .tick .tag + .line { margin-top: 1px; }
.radios { display: flex; flex-direction: column; gap: 4px; }

/* Workflow: the stages, to drag or to move with up and down buttons */
.stage[draggable="true"] { cursor: grab; }
.stage.dragging { opacity: .45; }
.stage.drop-above::after, .stage.drop-below::after { content: ""; position: absolute; left: 0; right: 0; border-top: 2px dashed var(--ink); pointer-events: none; }
.stage.drop-above::after { top: -5px; }
.stage.drop-below::after { bottom: -5px; }
.stage.pinned .moves { padding: 0 6px; font-size: 12.5px; white-space: nowrap; }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; display: flex; flex-direction: column; gap: 6px; }
.stage { position: relative; counter-increment: stage; display: grid; grid-template-columns: 28px minmax(140px, max-content) 1fr auto; align-items: center; gap: 4px 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.stage::before { content: counter(stage); color: var(--muted); font-variant-numeric: tabular-nums; }
.stage .who { color: var(--ink); font-weight: 500; }
.stage.users .who { color: var(--muted); font-style: italic; }
.stage .summary { color: var(--muted); min-width: 0; }
.stage .moves { display: flex; gap: 2px; grid-column: 4; grid-row: 1; }
.stage .warning { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 12.5px; }
.stage .warning svg.i { width: 14px; height: 14px; flex: none; }
.stage.warned { border-color: var(--accent); }

/* Guidelines: a pack per row, opening to its guidelines */
.pack { border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-bottom: 8px; padding: 4px 10px; }
.pack summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 2px 0; }
.pack summary .tick { padding: 3px 6px; }
.pack[open] { padding-bottom: 10px; }

/* The folder, and writing out */
.folder, .write { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.folder button, .folder .picked, .write button { display: inline-flex; align-items: center; gap: 6px; }
.folder .picked { overflow-wrap: anywhere; }
.write { padding-top: 20px; border-top: 1px solid var(--line); }

.after { margin: 10px 0 0; }

@media (max-width: 600px) {
  .page { padding: 24px 14px 48px; }
  .stage { grid-template-columns: 22px 1fr auto; }
  .stage .who { grid-column: 2; }
  .stage .summary { grid-column: 2 / 4; }
  .stage .moves { grid-column: 3; }
  .stage .warning { grid-column: 2 / 4; }
}
