/* XQ95 Work: builds on the site's styles.css (same tokens). */
.work-header .wrap { gap: 16px; }
.work-header .brand { pointer-events: none; }
.work-tag { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 5px 9px; }
.work-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.work-user .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.btn-sm { padding: 7px 12px; font-size: 0.88rem; white-space: nowrap; }
.work-main { padding: 56px 0 96px; }
.work-main h1 { font-size: clamp(2rem, 5vw, 3rem); }
.work-auth { max-width: 520px; }
.work-auth .lede { margin-bottom: 8px; }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }

.work-tabs { max-width: 520px; margin-bottom: 40px; }
.tab-panel { display: grid; gap: 20px; }
.home-cards { margin-top: 8px; }
.warn-callout { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; display: grid; gap: 12px; justify-items: start; }
.warn-callout p { margin: 0; }

.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-list .meta-line { color: var(--fg-faint); font-size: 0.85rem; }
.row-list .tagline { display: inline-flex; gap: 6px; align-items: center; }
.pill { font: 600 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-muted); }
.pill.on { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.pill.bad { color: #ff8a9b; border-color: rgba(255, 107, 129, .4); }

.link-card { max-width: 640px; }
.link-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.link-body > div { flex: 1 1 240px; min-width: 0; }
.link-body p { margin: 0 0 8px; }
.link-body .mono { overflow-wrap: anywhere; }
.qr-img { width: 192px; height: 192px; background: #fff; padding: 8px; border-radius: 10px; }

.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-head h2 { margin: 0; }
.add-form { max-width: 520px; }
.add-form select, .people select {
  font: inherit; color: var(--fg); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px;
}
.people select { padding: 6px 8px; font-size: 0.9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.people { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 720px; }
.people th, .people td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.people th { font: 600 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); background: var(--bg-raised); }
.people tr:last-child td { border-bottom: 0; }
.people .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.people .acts .btn { padding: 6px 10px; font-size: 0.85rem; }
.people .you { color: var(--fg-faint); font-size: 0.85rem; }
.people tr.devrow td { background: var(--bg-raised); }
.audit-title { margin-top: 32px; }
.audit li { font-size: 0.92rem; justify-content: flex-start; }
.audit time { font: 0.8rem/1.4 var(--mono); color: var(--fg-faint); min-width: 130px; }

/* Issued card dialog, and what gets printed */
.issue { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .8); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.issue-box { background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 14px; padding: 28px; max-width: 460px; width: 100%; display: grid; gap: 14px; }
.issue-box h2 { margin: 0; }
.staff-card { width: 340px; max-width: 100%; aspect-ratio: 85.6 / 54; border-radius: 14px; padding: 16px; background: linear-gradient(145deg, #0c1513, #000); border: 1px solid var(--line-strong); display: flex; justify-content: space-between; gap: 12px; }
.sc-left { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.sc-word { font: 700 1.1rem/1 var(--mono); letter-spacing: .1em; color: #fff; }
.sc-word b { color: var(--accent); }
.sc-kind { font: 600 0.65rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); margin: 0; }
.sc-name { font-weight: 650; margin-top: 4px; overflow-wrap: anywhere; }
.sc-qr { width: 112px; height: 112px; background: #fff; padding: 5px; border-radius: 6px; align-self: center; flex: none; }
.issue-number { font-size: 0.85rem; color: var(--fg-muted); margin: 0; overflow-wrap: anywhere; }
.setup-code { font-size: 1.5rem; color: var(--accent); margin: 4px 0; }
.issue-setup p { margin-top: 0; }

@media print {
  body > *:not(main), .work-header, #signed-in, #signed-out, .no-print { display: none !important; }
  .work-main { padding: 0; }
  .issue { position: static; background: none; padding: 0; }
  .issue-box { border: 0; background: none; padding: 0; color: #000; }
  .staff-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; width: 85.6mm; color: #fff; }
  .issue-number, .issue-setup .muted, .sc-kind { color: #333; }
  .setup-code { color: #000; }
  .issue-setup { border: 1px dashed #444; padding: 4mm; margin-top: 8mm; }
}
@media (max-width: 640px) {
  .work-user .muted { display: none; }
  .work-main { padding-top: 32px; }
}
