/* Issue desk (2026-10-31): the report dialog and "My reports" (issue-desk.js,
   on the dashboard, the calling screen and the booth desk), the floating
   button, and the Issues page (admin-issues.js). Self-contained: these pages
   have different colour tokens, so the dialog carries its own. */
.isd-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 12, 34, 0.46); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: isd-in 0.18s ease both; }
@keyframes isd-in { from { opacity: 0; } to { opacity: 1; } }
.isd-panel { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; color: #141526; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(20, 21, 38, 0.55); font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 14px; line-height: 1.5; animation: isd-pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.isd-panel.isd-wide { max-width: 760px; }
@keyframes isd-pop { from { opacity: 0; translate: 0 8px; scale: 0.98; } to { opacity: 1; translate: 0; scale: 1; } }
.isd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 10px; }
.isd-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.isd-x { border: 0; background: #f1f0f8; color: #3f4358; width: 32px; height: 32px; border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; }
.isd-x:hover { background: #e6e4f3; }
.isd-body { padding: 4px 22px 20px; overflow-y: auto; }
.isd-form { display: grid; gap: 12px; }
.isd-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: #3f4358; }
.isd-form input[type="text"], .isd-form textarea, .isd-replybox textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9d8e6; border-radius: 11px; background: #fff; font: inherit; font-size: 14px; color: #141526; resize: vertical; }
.isd-form input:focus, .isd-form textarea:focus, .isd-replybox textarea:focus { outline: none; border-color: #7c5cff; box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); }
.isd-opt { font-weight: 500; color: #7d7fa0; font-size: 12px; }
.isd-sevs { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.isd-sevs legend { font-size: 12.5px; font-weight: 700; color: #3f4358; margin-bottom: 6px; }
.isd-sev-opt { position: relative; display: block; cursor: pointer; }
.isd-sev-opt input { position: absolute; opacity: 0; inset: 0; }
.isd-sev-opt span { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #d9d8e6; border-radius: 12px; background: #fafafe; }
.isd-sev-opt b { font-size: 13px; color: #141526; }
.isd-sev-opt small { font-size: 11px; font-weight: 500; color: #7d7fa0; line-height: 1.35; }
.isd-sev-opt input:checked + span { border-color: #7c5cff; background: #f3efff; box-shadow: 0 0 0 1px #7c5cff inset; }
.isd-sev-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.3); }
.isd-files { display: grid; gap: 6px; }
.isd-filebtn { display: inline-flex !important; width: fit-content; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed #b9b6d6; border-radius: 10px; background: #fafafe; cursor: pointer; font-size: 13px !important; color: #4c1d95 !important; }
.isd-filebtn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.isd-filebtn:hover { background: #f3efff; }
#isd-filelist, .isd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#isd-filelist li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #ebeaf3; border-radius: 10px; background: #fff; }
#isd-filelist img { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeaf3; }
.isd-fileicon { width: 44px; height: 32px; border-radius: 6px; background: #eef0f6; }
.isd-filename { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.isd-filename small { color: #7d7fa0; }
.isd-rm { border: 0; background: none; color: #7d7fa0; font-size: 18px; cursor: pointer; }
.isd-ctx summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #3f4358; }
.isd-ctx-body { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f6f6fb; font-size: 12.5px; color: #3f4358; word-break: break-word; }
.isd-ctx-body b { color: #141526; margin-right: 4px; }
.isd-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #5b2a86; }
.isd-err { margin: 0; padding: 9px 12px; border-radius: 10px; background: #fde2e2; color: #9f1239; font-size: 13px; font-weight: 600; }
.isd-note { color: #7d7fa0; font-size: 13.5px; margin: 8px 0; }
.isd-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.isd-spacer { flex: 1; }
.isd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 14px; border: 1px solid #d9d8e6; border-radius: 11px; background: #fff; color: #141526; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.isd-btn:hover { background: #f6f6fb; }
.isd-btn:disabled { opacity: 0.55; cursor: default; }
.isd-primary { background: linear-gradient(135deg, #b8451a, #be185d 55%, #5b21b6); border-color: transparent; color: #fff; }
.isd-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, #b8451a, #be185d 55%, #5b21b6); }
.isd-link { border-color: transparent; background: none; color: #7d7fa0; font-weight: 600; }
.isd-done { text-align: center; padding: 10px 0 4px; }
.isd-done h3 { margin: 8px 0 6px; font-size: 18px; }
.isd-done p { margin: 0 0 8px; color: #3f4358; }
.isd-done .isd-foot { justify-content: center; }
.isd-check { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center; }
.isd-sev, .isd-status, .isd-claude { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.01em; vertical-align: middle; white-space: nowrap; }
.isd-sev-blocking { background: #fde2e2; color: #9f1239; }
.isd-sev-annoying { background: #fef3c7; color: #92400e; }
.isd-sev-idea { background: #e0f2fe; color: #075985; }
.isd-status-open { background: #eef0f6; color: #3f4358; }
.isd-status-in_progress { background: #ede9fe; color: #5b21b6; }
.isd-status-fixed { background: #dcfce7; color: #15803d; }
.isd-status-closed { background: #e5e7eb; color: #4b5563; }
.isd-claude { background: #f3efff; color: #5b2a86; border: 1px solid rgba(124, 92, 255, 0.25); }
.isd-meta { color: #7d7fa0; font-size: 12px; font-weight: 500; }
.isd-card { border: 1px solid #ebeaf3; border-radius: 12px; background: #fff; }
.isd-card summary { padding: 10px 12px; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.isd-card summary b { flex: 1 1 200px; }
.isd-card-body { padding: 4px 12px 12px; border-top: 1px solid #f1f0f8; }
.isd-desc { margin: 8px 0; font-size: 13.5px; color: #3f4358; }
.isd-thread { display: grid; gap: 8px; margin: 8px 0; }
.isd-msg { padding: 8px 12px; border-radius: 12px; background: #f6f6fb; }
.isd-msg-team { background: #fff7ed; }
.isd-msg-claude { background: #f3efff; }
.isd-msg-system { background: transparent; border: 1px dashed #d9d8e6; }
.isd-msg-who { font-size: 12px; font-weight: 800; color: #3f4358; }
.isd-msg-who span { font-weight: 500; color: #7d7fa0; margin-left: 6px; }
.isd-msg-body { font-size: 13.5px; margin-top: 2px; word-break: break-word; }
.isd-msg-body a { color: #4c1d95; }
.isd-replybox { display: grid; gap: 6px; }
.isd-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 14px 8px 11px; border: 1px solid rgba(20, 21, 38, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #3f4358; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(20, 21, 38, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.isd-fab:hover { color: #141526; border-color: rgba(124, 92, 255, 0.4); }
body.kiosk-mode .isd-fab, body.draw-fullscreen .isd-fab { display: none; }
@media (max-width: 700px) {
  .isd-fab span { display: none; }
  .isd-fab { padding: 8px 10px; }
  .isd-sevs { grid-template-columns: 1fr; }
}
@media print { .isd-fab, .isd-overlay { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .isd-overlay, .isd-panel { animation: none; } }

/* ---------- the Issues page (dashboard, owners and admins) ---------- */
.iss-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 22px; background: linear-gradient(135deg, rgba(255, 244, 236, 0.92), rgba(241, 236, 255, 0.88)); }
.iss-hero h2 { margin-bottom: 6px; font-size: 19px; }
.iss-hero p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.iss-mode { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.iss-table td, .iss-table th { vertical-align: middle; }
.iss-table tr.is-row { cursor: pointer; }
.iss-table tr.is-row:hover td { background: rgba(124, 92, 255, 0.05); }
.iss-table .iss-title { font-weight: 700; color: var(--ink); }
.iss-table .iss-sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.iss-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .iss-detail { grid-template-columns: 1fr; } .iss-hero { grid-template-columns: 1fr; } }
.iss-back { margin-bottom: 10px; }
.iss-detail h2 { font-size: 20px; margin: 0 0 6px; }
.iss-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.iss-block { margin: 12px 0; }
.iss-block h4 { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.iss-block p { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.iss-side { display: grid; gap: 12px; }
.iss-side label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.iss-side select, .iss-side textarea { padding: 9px 11px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); font: inherit; font-size: 13.5px; }
.iss-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12.5px; }
.iss-side dt { color: var(--ink-3); }
.iss-side dd { margin: 0; word-break: break-word; }
.iss-claude-box { padding: 12px 14px; border-radius: 14px; background: #f3efff; border: 1px solid rgba(124, 92, 255, 0.25); display: grid; gap: 8px; }
.iss-claude-box b { font-size: 13px; }
.iss-claude-box .btn { justify-self: start; }
.iss-files { display: flex; flex-wrap: wrap; gap: 8px; }
.iss-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.iss-file img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.iss-file small { color: var(--ink-3); font-weight: 500; }
.iss-ctx { font-size: 12.5px; }
.iss-ctx summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.iss-ctx table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.iss-ctx td { padding: 4px 8px 4px 0; vertical-align: top; border-top: 1px solid var(--line); word-break: break-word; }
.iss-ctx td:first-child { color: var(--ink-3); white-space: nowrap; width: 130px; }
.iss-ctx pre { margin: 0; white-space: pre-wrap; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; color: #5b2a86; }
.iss-thread { display: grid; gap: 8px; }
.iss-reply { display: grid; gap: 8px; margin-top: 10px; }
.iss-reply textarea { padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 11px; font: inherit; font-size: 13.5px; resize: vertical; }
.iss-empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }
.iss-nav-count { font-size: 11px; font-weight: 800; color: #fff; background: #be185d; padding: 1px 7px; border-radius: 999px; margin-left: auto; font-variant-numeric: tabular-nums; }
.iss-nav-count[hidden] { display: none; }
.iss-radios { display: grid; gap: 8px; }
.iss-radios label { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px !important; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500 !important; color: var(--ink) !important; cursor: pointer; }
.iss-radios label.on { border-color: var(--violet); background: #f8f6ff; }
.iss-radios input { margin-top: 3px; accent-color: var(--violet); }
.iss-radios b { display: block; font-size: 13.5px; }
.iss-radios small { color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.iss-code { display: block; padding: 10px 12px; border-radius: 10px; background: #1b1c33; color: #e6e4f3; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; }
.iss-switch { padding: 12px 14px; border-radius: 12px; background: #f8f7fd; border: 1px solid var(--line); }
.iss-switch .hint { margin: 6px 0 0; }
.iss-switch input { width: 18px; height: 18px; accent-color: var(--violet); }
.iss-h3 { margin: 4px 0 -4px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
#iss-keybox .set-test-row { display: flex; gap: 8px; }
#iss-keybox .set-test-row input { flex: 1; min-width: 0; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
