/* The pages of the page map 3 (map.js, and botpage.js's list and page): a group's five tabs, the lists whose lines
   are chosen and pressed once, the badges of a member's rank, the Groups page; style.css's colours, night and day.
   An idea of ours not decided yet wears a small "idea" tag (.mp-idea). */

/* a group's head: its numbers, then the chips */
.mp-ghead{display:grid;gap:8px;margin:2px 0 10px}
.mp-facts{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--dim);font-size:13px}
.mp-facts b{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}
.mp-chips{display:flex;flex-wrap:wrap;gap:8px}
.mp-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border-radius:99px;font-size:13px;
font-weight:700;background:var(--card);border:1px solid var(--edge);box-shadow:var(--sh)}
.mp-chip svg{width:17px;height:17px;color:var(--good-ink)}
.mp-chip:active{transform:scale(.95)}

/* the tabs: one line, scrolled sideways when the phone is narrow */
.mp-tabs{position:sticky;top:calc(52px + var(--st));z-index:4;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;
margin:0 -16px 10px;padding:6px 16px;background:var(--bar);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.mp-tabs::-webkit-scrollbar{display:none}
.mp-tab{flex:none;min-height:38px;padding:7px 15px;border-radius:99px;font-size:14px;font-weight:700;color:var(--dim);
background:var(--card);border:1px solid var(--edge)}
.mp-tab[aria-selected=true]{color:var(--onmark);background:linear-gradient(100deg,var(--g1),var(--g2));border-color:transparent}
.mp-told:empty{display:none}
.mp-body{display:grid;gap:4px}

/* a block of a page: its head (title, count, All), its search, its list, the bar of what is chosen */
.mp-block{display:grid;gap:8px;margin-bottom:14px}
.mp-head{display:flex;align-items:center;gap:10px}
.mp-head h2{font-size:16px;font-weight:800}
.mp-head .count{margin-inline-start:0}
.mp-head .mp-all{margin-inline-start:auto}
.mp-list{margin-top:0}
.mp-line{gap:10px;padding:8px 12px 8px 10px;min-height:58px}
.mp-line.mp-on{background:var(--tint)}
.mp-main{flex:1;min-width:0;display:flex;align-items:center;min-height:42px}
.mp-box{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;border:2px solid var(--faint)}
.mp-box[aria-checked=true],.mp-all[aria-checked=true] .mp-box{background:linear-gradient(135deg,var(--g1),var(--g2));border-color:transparent}
.mp-box[aria-checked=true]::after,.mp-all[aria-checked=true] .mp-box::after{content:"";width:10px;height:6px;margin-top:-3px;
border:solid var(--onmark);border-width:0 0 2.5px 2.5px;transform:rotate(-45deg)}
.mp-all{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--dim)}
.mp-all .mp-box{width:22px;height:22px;border-radius:7px}
.mp-bar{position:sticky;bottom:calc(10px + var(--sb));z-index:4;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
padding:10px 12px;border-radius:18px;background:var(--solid);border:1px solid var(--edge);box-shadow:var(--lift);
animation:rise .25s var(--soft) both}
.mp-count{font-size:13px;font-weight:800;white-space:nowrap}
.mp-acts{display:flex;flex-wrap:wrap;gap:6px;margin-inline-start:auto;justify-content:flex-end}
.mp-pickhead{display:flex;justify-content:flex-end}
.pg-sheet .mp-list{max-height:46vh;overflow:auto}
.pg-sheet .mp-bar{position:static;animation:none}

/* a person or a bot on a line */
.mp-person{display:flex;align-items:center;gap:11px;width:100%;min-width:0}
.mp-who{display:grid;gap:3px;flex:1;min-width:0}
.mp-who b{font-weight:650;font-size:14.5px;overflow-wrap:anywhere}
.mp-badges{display:flex;flex-wrap:wrap;gap:4px}
.mp-badge{display:inline-block;padding:1px 8px;border-radius:99px;font-size:11px;font-weight:800;line-height:18px;
color:var(--g1);background:var(--tint)}
/* a colour for each rank (the owner, 13:06), the highest the warmest; banned and muted in the colour of trouble */
.mp-badge.r-developer{color:#fff;background:linear-gradient(100deg,#f43f5e,#f59e0b)}
.mp-badge.r-creator{color:#fff;background:#e11d48}
.mp-badge.r-buyer{color:#fff;background:#db2777}
.mp-badge.r-master{color:#fff;background:#9333ea}
.mp-badge.r-owner{color:#fff;background:#4f46e5}
.mp-badge.r-admin{color:#fff;background:#0284c7}
.mp-badge.r-gowner{color:#04241a;background:#34d399}
.mp-badge.r-gadmin{color:#062e2a;background:#5eead4}
.mp-badge.r-bot{color:#3b2601;background:#fcd34d}
.mp-badge.r-ours{color:var(--dim);background:var(--card2)}
.mp-badge.r-gban,.mp-badge.r-mute,.mp-badge.r-ban,.mp-badge.r-black{color:#fff;background:var(--bad)}
.mp-badge.r-hide{color:var(--dim);background:var(--card2)}
.mp-lock{flex:none;color:var(--faint)}
.mp-lock svg{width:18px;height:18px}
.mp-locked{display:flex;align-items:center;gap:10px}
/* a locked line (a rank equal to the viewer's or above, 14:28): no box, its place kept */
.mp-nobox{flex:none;width:26px;height:26px}
.mp-locked-line .mp-main{cursor:default}
.mp-rankbtns{display:flex;flex-wrap:wrap;gap:8px}
.mp-filters{display:flex;flex-wrap:wrap;gap:6px}
.mp-filter{min-height:32px;padding:5px 12px;border-radius:99px;font-size:12.5px;font-weight:700;color:var(--dim);
background:var(--card);border:1px solid var(--edge)}
.mp-filter[aria-pressed=true]{color:var(--onmark);background:var(--a);border-color:transparent}
.mp-held .list{margin-top:0}
.mp-result{flex:none;font:700 12.5px var(--mono);color:var(--good-ink)}
.mp-result:empty{display:none}
.mp-ok{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-weight:900;font-size:14px}
.mp-ok.good{color:var(--good-ink);background:color-mix(in srgb,var(--good) 18%,transparent)}
.mp-ok.bad{color:var(--bad);background:color-mix(in srgb,var(--bad) 16%,transparent)}
.mp-rows .row{margin-bottom:6px}
.mp-rows .mp-says{flex:none;max-width:40%}
.mp-me{margin-inline-start:4px}
.mp-shield{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:10px;background:var(--card2)}
.mp-shield.on{color:var(--good-ink);background:color-mix(in srgb,var(--good) 16%,transparent)}
.mp-shield svg{width:18px;height:18px}
.mp-bots{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--dim)}
.mp-bots svg{width:17px;height:17px}
.mp-bots b{color:var(--ink);font-weight:800}
.mp-bots small{font-size:11px}
.mp-groups .mp-person>svg{transform:scaleX(-1);color:var(--faint);width:18px;height:18px}

/* a sheet: whom it is of, what may be done, what a yes will do */
.mp-sheethead{display:flex;align-items:center;gap:12px}
.mp-sheethead .pg-av{width:46px;height:46px}
.mp-sheetacts{display:flex;flex-wrap:wrap;gap:8px}
.mp-sheetacts .mbtn{padding:10px 16px;font-size:14px}
.mp-says{line-height:1.4}
.mp-names{display:grid;gap:4px;max-height:34vh;overflow:auto;padding:10px 14px;border-radius:14px;background:var(--card2)}
.mp-names li{font-weight:650;overflow-wrap:anywhere}
.mp-about{display:block;white-space:normal;line-height:1.35}
.mp-invite{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.mp-invite .pg-input{margin:0}

/* an idea of ours, not decided (the owner, 13:04: «اقتراح») */
.mp-idea{position:relative}
.mp-tag{display:inline-block;margin-inline-start:6px;padding:0 6px;border-radius:6px;font-size:10px;font-weight:800;line-height:16px;
letter-spacing:.04em;text-transform:uppercase;color:#3b2601;background:#fcd34d;vertical-align:middle}
.bp-qr .mp-tag,.bp-friends>.mp-idea .mp-tag{position:absolute;top:10px;inset-inline-end:12px}

/* the bots' list: a dot of each state (13:06), the edit mode of Stop (13:04) */
.bp-row{grid-template-columns:auto auto auto 1fr}
.bp-row .bp-mark{display:none;grid-row:span 2}
.bp-row .bp-dot{grid-row:span 2;align-self:center}
.bp-row .bp-n{grid-row:span 2}
.bp-row small{grid-column:4}
.bp-dot{flex:none}
.bp-dot.good{background:var(--good);box-shadow:0 0 0 4px color-mix(in srgb,var(--good) 22%,transparent)}
.bp-dot.warn{background:#f59e0b;box-shadow:0 0 0 4px #f59e0b33}
.bp-dot.off{background:var(--faint)}
.bp-editing .bp-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--bad);color:#fff}
.bp-editing .bp-mark::after{content:"";width:11px;height:2.5px;border-radius:2px;background:#fff}
.bp-editing .bp-row{animation:jiggle .5s ease-in-out infinite alternate}
.bp-editing .bp-row.bp-marked{background:color-mix(in srgb,var(--bad) 16%,var(--card));animation:none;
outline:2px solid var(--bad);outline-offset:-2px}
.bp-editing .bp-row.bp-marked .bp-mark::after{width:10px;height:6px;margin-top:-3px;border:solid #fff;border-width:0 0 2.5px 2.5px;
background:none;border-radius:0;transform:rotate(-45deg)}
@keyframes jiggle{from{transform:rotate(-.25deg)}to{transform:rotate(.25deg)}}
@media (prefers-reduced-motion:reduce){.bp-editing .bp-row{animation:none}}
.bp-tops{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bp-tops .act{min-height:44px;padding:8px 14px}
.bp-stopmode{color:var(--bad)}
.bp-sure{display:grid;gap:10px}
.bp-squad{display:grid;gap:8px}
.bp-squad h2,.bp-friends h2{font-size:16px}
.bp-friends{position:relative;display:grid;gap:8px;padding:14px 16px;border-radius:var(--r);background:var(--card)}
.bp-friends .list{margin-top:0}
.bp-video{display:grid;gap:4px}
.bp-qr{position:relative;justify-items:center}
.bp-qr .qr{width:180px;height:180px;border-radius:10px;stroke:none}
.bp-qr .qr :is(path,rect){stroke:none;stroke-dasharray:none}
.bp-today{font-size:14px;margin-top:8px}

/* the Commands page: the help's language (EN first, 13:30), and a new word judged while it is typed */
.mp-lang{display:flex;gap:6px;justify-content:flex-end;margin-bottom:8px}
.mp-lang .mp-filter{min-width:46px;text-align:center}
.mp-word .pg-input{border:2px solid var(--line);transition:border-color .15s}
.mp-word[data-word=ok] .pg-input{border-color:var(--good)}
.mp-word[data-word=bad] .pg-input{border-color:var(--bad)}
.mp-word[data-word=same] .pg-input{border-color:var(--line);color:var(--dim)}
.mp-wordsay{min-height:1.3em;font-size:13px;font-weight:650;color:var(--dim)}
.mp-wordsay[data-word=ok]{color:var(--good-ink)}
.mp-wordsay[data-word=bad]{color:var(--bad)}
.mp-about[lang=ar]{font-size:13.5px;line-height:1.6}
/* a bot of the group that cannot do what a present one does (13:34) */
.mp-bot.mp-parked .mp-who small{color:var(--warn)}
.mp-bot.mp-frozen{opacity:.6}
/* the bot's add link: the QR, then New link and Copy (13:42); its LINE ID box judged while typed */
.bp-qr .bp-linkacts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:10px}
.bp-qr .bp-linkacts .note{flex-basis:100%;text-align:center}
.bp-qr .bp-fact:empty{display:none}
.bp-idbox .bp-id{display:flex;gap:8px}
.bp-idbox .bp-id .bp-input{flex:1;border:2px solid var(--line)}
.bp-idbox .bp-id[data-word=ok] .bp-input{border-color:var(--good)}
.bp-idbox .bp-id[data-word=bad] .bp-input{border-color:var(--bad)}
/* what no bot can do now, and each bot's limits and presses (13:48) */
.mp-bot .mp-limits{color:var(--warn);display:block}
.mp-bot .mp-can{display:block;opacity:.8}
/* the box's reason as typed (13:54), and the add-by-ID switch beside the ID */
.bp-edit.mp-word[data-word=bad] .bp-input{border:2px solid var(--bad)}
.bp-edit small[data-word=bad]{color:var(--bad);font-weight:650}
.bp-addbyid .bp-switch{display:flex;justify-content:space-between;align-items:center;width:100%}
.bp-addbyid .pg-knob{width:42px;height:24px;border-radius:12px;background:var(--line);position:relative;transition:background .15s}
.bp-addbyid .pg-knob::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.bp-addbyid [aria-checked=true] .pg-knob{background:var(--good)}
.bp-addbyid [aria-checked=true] .pg-knob::after{transform:translateX(18px)}
/* a box as the app's profile screens draw one (13:56): its name and "n / 20" over it, a line under it, red when wrong,
   a green button under all */
.bp-field{display:flex;flex-direction:column;gap:6px;width:100%}
.bp-fieldtop{display:flex;justify-content:space-between;align-items:baseline}
.bp-count{color:var(--dim);font-variant-numeric:tabular-nums}
.bp-input.bp-line{border:0;border-bottom:1.5px solid var(--line);border-radius:0;background:transparent;padding:8px 2px;font-size:17px}
.bp-field[data-word=bad] .bp-input.bp-line{border-bottom-color:var(--bad)}
.bp-field[data-word=ok] .bp-input.bp-line{border-bottom-color:#06c755}
.bp-fieldsay{min-height:1.2em;margin:0;font-size:13px;line-height:1.45}
.bp-field[data-word=bad] .bp-fieldsay{color:var(--bad)}
.bp-field[data-word=ok] .bp-fieldsay{color:#06c755}
.act.bp-green{background:#06c755;color:#fff;border:0;width:100%;font-weight:700}
.act.bp-green:disabled{opacity:.45}
.bp-idbox .bp-id{display:flex;flex-direction:column;gap:12px}
.bp-idsave{display:flex;flex-direction:column;gap:8px}
.bp-sure{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px}
/* a sheet for one text (14:46): the field and Paste, the line judged while typed, the squad's answer under it */
.mp-textsheet{display:grid;gap:6px}
.mp-sheettold p{margin:0;font-size:13.5px;font-weight:650}
.mp-sheettold .mp-done{color:var(--good-ink)}
