/* staff-page.css — the public ARCbots Team page (/tools/arcbot-staff.html, docs/staff-page.md).
   Layout "C": leadership as large profile cards, the support team as medium cards, helpers and (hidden until asked)
   translators as name chips. Colours come from the panel tokens in arcbots.css. */

.arc-st { --st-namebg: #0e1220; --st-gap: 12px; }
.arc-st ul { list-style: none; margin: 0; padding: 0; }
.arc-st-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 14px; }
.arc-st-sub { color: var(--arc-text-muted); }
.arc-st-pay { gap: 8px; }
.arc-st-pay svg { width: 16px; height: 16px; flex: none; }

.arc-st-sec { margin-bottom: 26px; }
.arc-st-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.arc-st-sec-h h5 { margin: 0; font-size: 1rem; }
.arc-st-sec-h > span { color: var(--arc-text-muted); font-size: .82rem; }
.arc-st-count { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: var(--arc-radius-pill); background: var(--arc-surface-2);
	color: var(--arc-text-muted); font-size: .75rem; font-variant-numeric: tabular-nums; vertical-align: middle; }

/* cards are <button>s: reset, then style */
.arc-st-card { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; min-width: 0; color: var(--arc-text);
	background: var(--arc-surface-1); border: 1px solid var(--arc-border); border-radius: var(--arc-card-radius);
	transition: border-color var(--arc-transition), transform var(--arc-transition); }
.arc-st-card:hover { border-color: rgba(var(--arc-accent-rgb), .55); transform: translateY(-1px); }
.arc-st-card:focus-within { border-color: rgba(var(--arc-accent-rgb), .55); }
/* the card's "open profile" button: avatar + name */
.arc-st-open { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; max-width: 100%; border-radius: 8px; }
.arc-st-open:focus-visible, .arc-st-copy:focus-visible { outline: 2px solid var(--arc-accent); outline-offset: 2px; }

.arc-st-av { display: block; position: relative; width: 64px; height: 64px; flex: none; border-radius: 8px; background: var(--arc-surface-2); overflow: hidden; }
.arc-st-av img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Long names never widen a card: the chip and the name shrink to the card, the plain-text name ends in an ellipsis
   (full name in its title and in the profile dialog). The chip clips the glow layer to its own box. */
.arc-st-namebox { display: inline-block; position: relative; max-width: 100%; min-width: 0; overflow: hidden; padding: 3px 8px; border-radius: 6px;
	background: var(--st-namebg); vertical-align: bottom; }
.arc-st-name { position: relative; display: inline-block; max-width: 100%; vertical-align: bottom; font-weight: 700; font-size: 1rem; line-height: 1.25;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e6e9f2; }
.arc-st-nameglow { position: absolute; left: 8px; right: 8px; top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 1rem; line-height: 1.25;
	-webkit-text-fill-color: transparent; color: transparent; pointer-events: none; }
/* "username (xatid)": the id is never cut (the name before it is), stays selectable text, and has a copy button */
.arc-st-idline { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; font-size: .8rem; color: var(--arc-text-muted);
	cursor: text; -webkit-user-select: text; user-select: text; font-variant-numeric: tabular-nums; }
.arc-st-reg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-st-idwrap { flex: none; white-space: nowrap; }
.arc-st-xatid { color: var(--arc-text); font-weight: 600; }
.arc-st-copy { all: unset; box-sizing: border-box; flex: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 6px; color: var(--arc-text-muted); }
.arc-st-copy svg { width: 13px; height: 13px; }
.arc-st-copy:hover { color: var(--arc-text); background: var(--arc-surface-2); }
.arc-st-copy.is-copied { color: var(--arc-on-color); }
.arc-st-copy.is-failed { color: var(--arc-warn-color); }
.arc-st-status { display: block; font-style: italic; font-weight: 600; font-size: .8rem; color: var(--arc-text-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.arc-st-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.arc-st-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--arc-radius-pill);
	font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: #fff; }
.arc-st-pill svg { width: 11px; height: 11px; }
.arc-st-pill--admin { background: #ff3366; }
.arc-st-pill--manager { background: #e8590c; }
.arc-st-pill--senior { background: var(--arc-warn-color); color: #1b1300; }
.arc-st-pill--assistant { background: var(--arc-info-color); color: #04121c; }
.arc-st-pill--moderator { background: var(--arc-accent); }
.arc-st-pill--helper { background: #64748b; }
.arc-st-pill--translator { background: #7c3aed; }
.arc-st-pill--verified { background: #10b759; }

.arc-st-seen { display: inline-flex; align-items: center; gap: 6px; color: var(--arc-text-muted); font-size: .76rem; white-space: nowrap; }
.arc-st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #64748b; opacity: .7; }
.arc-st-dot--now { background: var(--arc-on-color); opacity: 1; box-shadow: 0 0 0 3px rgba(var(--arc-on-rgb), .25); }
.arc-st-dot--today { background: var(--arc-warn-color); opacity: 1; }
.arc-st-country { color: var(--arc-text-muted); font-size: .78rem; white-space: nowrap; }
.arc-st-langs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.arc-st-lang { font-family: ui-monospace, Consolas, monospace; font-size: .66rem; text-transform: uppercase; padding: 1px 5px; border-radius: 4px;
	background: var(--arc-surface-2); color: var(--arc-text-muted); }

/* Leadership: large cards with a band */
.arc-st-lead { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--st-gap); }
.arc-st-card--lead { overflow: hidden; }
.arc-st-band { display: block; height: 54px; background: linear-gradient(120deg, #1b5e3b, #0f3d2a 60%, #103024); }
.arc-st-band--manager { background: linear-gradient(120deg, #4c1d95, #312e81); }
.arc-st-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 0 16px 16px; min-width: 0; }
.arc-st-card--lead .arc-st-av { width: 80px; height: 80px; margin-top: -40px; border: 3px solid var(--arc-surface-1); border-radius: 10px; }
.arc-st-in > .arc-st-open, .arc-st-in > .arc-st-idline, .arc-st-in > .arc-st-langs { justify-self: start; }
.arc-st-card--lead .arc-st-open { justify-items: start; }
.arc-st-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 4px; }

/* Support team: medium centred cards */
.arc-st-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--st-gap); }
/* equal height in a row: each li stretches to the row, the card fills its li; content starts at the top */
.arc-st-lead > li, .arc-st-team > li { display: flex; min-width: 0; }
.arc-st-lead > li > .arc-st-card, .arc-st-team > li > .arc-st-card { flex: 1 1 auto; min-width: 0; }
.arc-st-card--mini { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; text-align: center; gap: 5px; padding: 14px 12px; }
.arc-st-card--mini .arc-st-pills { justify-content: center; }
.arc-st-card--mini .arc-st-open { justify-items: center; width: 100%; }
.arc-st-row--center { justify-content: center; align-items: center; }
.arc-st-country--code abbr { text-decoration: none; border: 0; cursor: help; font-weight: 600; letter-spacing: .03em; }

/* Helpers / translators: name chips */
.arc-st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-st-chips > li { max-width: 100%; min-width: 0; }
.arc-st-card--chip { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 20px; }
.arc-st-card--chip .arc-st-open { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; }
.arc-st-card--chip .arc-st-namebox { flex: 0 1 auto; }
/* the id line keeps "username (xatid)" readable: when the chip is too narrow it moves to its own line (still clipped to the chip) */
.arc-st-card--chip { flex-wrap: wrap; row-gap: 2px; }
.arc-st-card--chip .arc-st-idline { flex: 0 0 auto; max-width: 100%; }
.arc-st-card--chip .arc-st-langs { flex: none; flex-wrap: nowrap; }
.arc-st-card--chip .arc-st-av { width: 30px; height: 30px; border-radius: 50%; }
.arc-st-card--chip .arc-st-name, .arc-st-card--chip .arc-st-nameglow { font-size: .88rem; }

.arc-st-reveal { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px;
	border: 1px dashed var(--arc-border-strong); border-radius: var(--arc-card-radius); color: var(--arc-text-muted); font-weight: 600; margin-bottom: 12px; }
.arc-st-reveal:hover { color: var(--arc-text); border-color: rgba(124, 58, 237, .6); }
.arc-st-reveal:focus-visible { outline: 2px solid var(--arc-accent); outline-offset: 2px; }
.arc-st-reveal svg { margin-left: auto; width: 16px; height: 16px; transition: transform var(--arc-transition); }
.arc-st-reveal[aria-expanded="true"] svg { transform: rotate(180deg); }

.arc-st-empty, .arc-st-foot { color: var(--arc-text-muted); font-size: .8rem; }

/* Profile dialog (Extra Bot Information style) */
.arc-st-profile-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.arc-st-profile-top .arc-st-av { width: 80px; height: 80px; }
.arc-st-profile-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; flex: 1 1 auto; }
.arc-st-profile-info > .arc-st-namebox, .arc-st-profile-info > .arc-st-idline { justify-self: start; }
.arc-st-profile-info .arc-st-reg-name { white-space: normal; overflow-wrap: anywhere; }
/* the dialog shows the whole name and status, wrapped */
.arc-st-profile-info .arc-st-name, .arc-st-profile-info .arc-st-nameglow, .arc-st-profile-info .arc-st-status { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.arc-st-profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: .85rem; }
.arc-st-profile-facts dt { color: var(--arc-text-muted); font-weight: 400; }
.arc-st-profile-facts dd { margin: 0; min-width: 0; }
.arc-st-profile-link { font-size: .85rem; }

@media (max-width: 575.98px) {
	.arc-st-lead { grid-template-columns: 1fr; }
	.arc-st-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.arc-st-card--mini { padding: 12px 8px; }
	.arc-st-card--mini .arc-st-av { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.arc-st-card { transition: none; }
	.arc-st-card:hover { transform: none; }
	.arc-st .arct-name-wave, .arc-st .arct-name-flag { animation: none !important; }
}

/* /info/staff.html (xat chat staff list): avatar + xat name/status at the top of each activity card */
.arc-xstaff-head { gap: 12px; }
.arc-xstaff-head .arc-st-av { width: 56px; height: 56px; }
.arc-xstaff-head .arc-st-status { margin-top: 2px; }
/* country / last seen / local time keep their width (never squeezed into one-letter lines); on phones they go under the name */
.arc-xstaff-head > .text-right { flex: 0 0 auto; max-width: 45%; }
@media (max-width: 575.98px) {
	.arc-xstaff-head { flex-wrap: wrap; }
	.arc-xstaff-head > .flex-grow-1 { flex-basis: calc(100% - 68px); }
	.arc-xstaff-head > .text-right { flex-basis: calc(100% - 68px); max-width: none; margin-left: 68px !important; margin-top: 6px; text-align: left !important;
		display: flex; flex-wrap: wrap; gap: 4px 12px; }
}
