/* [fe-staff] Additions for chair, board, lead, door and public claim screens.
   Everything else comes from app.css (the prototype cascade). Colours from tokens.css only. */

/* close success line on the event page */
.closebar.okbar{background:var(--ok-bg);border-color:#BFE3CB;margin:6px 0 10px}
.closebar.okbar .tic{background:var(--ok);color:#fff}
/* quotes inside dialogs (voice text, correction note) */
.bq{margin:0;padding:8px 12px;border-inline-start:3px solid var(--green-2);background:var(--green-50);border-radius:8px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.q blockquote{overflow-wrap:anywhere}
/* team status words */
.st-new{color:var(--green-2);font-weight:700}
.st-warn{color:var(--warn);font-weight:700}
/* seat type tag: outlined, never a status colour (projects/ui.md 3.1) */
.bd-seat{display:inline-block;border:1px solid var(--green-2);color:var(--green-2);background:var(--white);border-radius:999px;padding:0 8px;font-size:12px;font-weight:700;line-height:1.7;white-space:nowrap}
/* project team board */
.teamgrid{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
@media (min-width:768px){.teamgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1280px){.teamgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.teamcard{padding:18px;display:grid;gap:6px;align-content:start;min-width:0}
.teamcard h3{font-size:16px}
.teamcard .rw{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.bar2{height:8px;border-radius:999px;background:repeating-linear-gradient(-45deg,var(--green-50) 0 6px,#fff 6px 12px);border:1px solid var(--green-2);overflow:hidden}
.bar2 i{display:block;height:100%;background:var(--green-2)}
.bad-t{color:var(--bad)!important;border-color:var(--bad)!important}
/* plain icon lists */
.plain{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.plain li{display:flex;gap:8px;align-items:flex-start;line-height:1.6}
.plain li .ico{flex:none;margin-top:3px}
/* door station */
.door:not(.vpage) .dlite{color:rgba(251,246,236,.8)}
.door .dscan{display:grid;gap:6px}
.door .dscan label{font-size:14px;font-weight:700}
.door:not(.vpage) .dscan label{color:var(--cream)}
.door .dscan input{flex:1 1 auto;min-width:0;min-height:48px;border-radius:12px;border:1.5px solid var(--line);padding:0 12px;font-size:16px;background:#fff;color:var(--ink)}
.door .dscan .row{flex-wrap:nowrap}
.door .dscan .btn{flex:none}
.last.bad{background:rgba(163,58,43,.25);border-color:#E7A99D}
.door .dl .li[hidden]{display:none}
.door .dl .li{color:var(--ink)}
/* seg buttons inside rows keep the 44px target and wrap on phones */
.li .seg{flex:none}
.li .seg button{min-height:44px}
/* stepper buttons: primary first in the DOM, visually after «السابق» */
.card .btns>[style*="order"]{flex:0 0 auto}
@media (max-width:420px){.door .dscan .row{flex-wrap:wrap}.door .dscan .btn{width:100%}}
.teamcard .li{flex-wrap:wrap}
.teamcard .li .tx{flex:1 1 120px;min-width:0}
.door:not(.vpage) .dprev a.dclose{color:var(--gold-soft);font-weight:800;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}
/* «ادعُ للبوابة» in الناس: one box per person waiting for the invite (24 px box in a 44 px target), the status under the name */
.pbox{display:grid;place-items:center;width:44px;height:44px;margin:-6px;cursor:pointer}
.pbox input{width:24px;height:24px;margin:0;accent-color:var(--green-2);cursor:pointer}
.prow2 .tx small.pst{margin-top:4px}
.ptbl td.pbc{width:44px;padding:0 4px}
#pbulk .btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
/* «الناس» has four tabs (0072): on a phone the tab strip scrolls inside itself instead of widening the page */
.ph .seg{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.ph .seg a{padding:0 14px}
/* «الشهادات» (admin/certs.js): the tab strip scrolls inside itself on a phone; a certificate is drawn in a sandboxed frame (lib/certs.js) at the paper's ratio */
.tabsrow{margin-bottom:14px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.certframe{width:100%;aspect-ratio:297/210;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--sh-2);overflow:hidden}
.certframe.portrait{aspect-ratio:210/297;max-width:420px;margin-inline:auto}
.certif{display:block;width:100%;height:100%;border:0;background:#fff}
textarea.code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;min-height:240px;direction:ltr;text-align:left;white-space:pre;overflow:auto;resize:vertical}
.cedit{display:grid;gap:16px}
.cedit>div{min-width:0;display:grid;gap:16px;align-content:start}
@media(min-width:900px){.cedit{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cedit-view{position:sticky;top:12px;align-self:start}}
/* the visual mode of the certificate editor (lib/certs_visual.js): a layer above the frame holds the outline and the move handle */
.certframe{position:relative}
.veover{position:absolute;inset:0;cursor:crosshair;touch-action:none}
.vesel{position:absolute;outline:2px solid #2563eb;outline-offset:1px;background:rgba(37,99,235,.07);pointer-events:none}
.vehandle{position:absolute;width:30px;height:24px;border:0;border-radius:6px 6px 0 0;background:#2563eb;color:#fff;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;font:inherit;line-height:1;padding:0}
.vehandle:active{cursor:grabbing}
#vepanel textarea{min-height:72px}
#vepanel input[type=color]{width:100%;min-height:42px;padding:2px}
#vepanel [aria-pressed="true"]{background:var(--green);color:var(--cream)}
/* the tab strip of «الشهادات» wraps in two rows on a phone, so «القوالب» needs no sideways swipe */
@media(max-width:599px){.tabsrow{overflow:visible}.tabsrow .seg{grid-auto-flow:row;grid-template-columns:repeat(2,1fr);width:100%}}
