.studyhq_helpdesk-form-wrap { max-width: 620px; margin: 0 auto; }
.studyhq_helpdesk-input, .studyhq_helpdesk-select, .studyhq_helpdesk-textarea { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: inherit; box-sizing: border-box; transition: border-color .2s; }
.studyhq_helpdesk-input:focus, .studyhq_helpdesk-select:focus, .studyhq_helpdesk-textarea:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,.15); }
.studyhq_helpdesk-textarea { resize: vertical; }
.studyhq_helpdesk-btn { background: #2271b1; color: #fff; padding: 11px 28px; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.studyhq_helpdesk-btn:hover { background: #1a5a8a; }
.studyhq_helpdesk-btn:disabled { opacity: .6; cursor: not-allowed; }
.studyhq_helpdesk-msg { padding: 10px 14px; border-radius: 8px; background: #f0fdf4; font-size: 14px; }
/* Ticket list */
.studyhq_helpdesk-ticket-list { list-style: none; padding: 0; margin: 0; }
.studyhq_helpdesk-ticket-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; display: flex; align-items: center; gap: 14px; }
.studyhq_helpdesk-ticket-item .ticket-key { font-family: monospace; font-weight: 700; font-size: 13px; color: #2271b1; min-width: 130px; }
.studyhq_helpdesk-ticket-item .ticket-subject { flex: 1; font-weight: 600; }
.studyhq_helpdesk-ticket-badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; color: #fff; }
/* Status colours */
.studyhq_helpdesk-status-open        { background: #2271b1; }
.studyhq_helpdesk-status-pending     { background: #f59e0b; }
.studyhq_helpdesk-status-in-progress { background: #8b5cf6; }
.studyhq_helpdesk-status-resolved    { background: #16a34a; }
.studyhq_helpdesk-status-closed      { background: #6b7280; }
.studyhq_helpdesk-status-merged      { background: #374151; }
/* Ticket list */
.studyhq_helpdesk-ticket-list-wrap { max-width: 820px; margin: 0 auto; }
.studyhq_helpdesk-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.studyhq_helpdesk-list-header h3 { margin: 0; }
.studyhq_helpdesk-btn-sm { padding: 7px 18px; font-size: 13px; }
.studyhq_helpdesk-ticket-priority { font-size: 12px; color: #6b7280; }
.studyhq_helpdesk-ticket-date { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.studyhq_helpdesk-empty { color: #6b7280; font-style: italic; }
.studyhq_helpdesk-notice { padding: 12px 16px; background: #fef9c3; border: 1px solid #fde047; border-radius: 8px; font-size: 14px; }
/* Ticket view */
.studyhq_helpdesk-ticket-view-wrap { max-width: 780px; margin: 0 auto; }
.studyhq_helpdesk-back-link { margin-bottom: 16px; }
.studyhq_helpdesk-back-link a { color: #2271b1; text-decoration: none; font-size: 14px; }
.studyhq_helpdesk-ticket-header { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.studyhq_helpdesk-ticket-header h2 { margin: 0 0 12px; font-size: 20px; }
.studyhq_helpdesk-ticket-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #374151; }
.studyhq_helpdesk-thread { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.studyhq_helpdesk-thread-item { display: flex; gap: 14px; }
.studyhq_helpdesk-thread-avatar { width: 40px; height: 40px; border-radius: 50%; background: #2271b1; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.studyhq_helpdesk-thread-agent .studyhq_helpdesk-thread-avatar { background: #16a34a; }
.studyhq_helpdesk-thread-body { flex: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 18px; }
.studyhq_helpdesk-thread-agent .studyhq_helpdesk-thread-body { background: #f0fdf4; border-color: #bbf7d0; }
.studyhq_helpdesk-thread-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: #6b7280; }
.studyhq_helpdesk-thread-meta strong { color: #111827; font-size: 14px; }
.studyhq_helpdesk-thread-content { font-size: 15px; line-height: 1.65; color: #374151; white-space: pre-wrap; }
.studyhq_helpdesk-reply-form-wrap { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 24px; }
.studyhq_helpdesk-reply-form-wrap h4 { margin: 0 0 12px; }
/* Attachments */
.studyhq_helpdesk-attach-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.studyhq_helpdesk-attach-list li { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 5px 10px; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.studyhq_helpdesk-attach-list a { color: #2271b1; text-decoration: none; font-weight: 500; }
.studyhq_helpdesk-attach-list a:hover { text-decoration: underline; }
.studyhq_helpdesk-attach-size { color: #9ca3af; font-size: 11px; }
.studyhq_helpdesk-attach-field { margin: 12px 0; }
.studyhq_helpdesk-attach-field label { font-size: 14px; font-weight: 600; color: #374151; display: block; margin-bottom: 6px; }
.studyhq_helpdesk-file-input { display: block; font-size: 13px; }
.studyhq_helpdesk-attach-hint { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }
/* ── Agent Dashboard ───────────────────────────────────────────── */
.studyhq_helpdesk-agent-dash { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 1200px; margin: 0 auto; }
.studyhq_helpdesk-dash-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.studyhq_helpdesk-stat-card { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:16px 20px; text-align:center; }
.studyhq_helpdesk-stat-card .stat-num { font-size:32px; font-weight:800; color:#2271b1; line-height:1; }
.studyhq_helpdesk-stat-card .stat-label { font-size:12px; color:#6b7280; margin-top:4px; }
.studyhq_helpdesk-stat-card.stat-open .stat-num   { color:#2271b1; }
.studyhq_helpdesk-stat-card.stat-mine .stat-num   { color:#8b5cf6; }
.studyhq_helpdesk-stat-card.stat-pending .stat-num { color:#f59e0b; }
.studyhq_helpdesk-stat-card.stat-resolved .stat-num { color:#16a34a; }
.studyhq_helpdesk-dash-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
/* ── Filter bar ── */
.studyhq_helpdesk-filter-bar { background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px; padding:14px 16px; margin-bottom:20px; display:flex; flex-direction:column; gap:10px; }
.studyhq_helpdesk-filter-main { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.studyhq_helpdesk-filter-search-wrap { position:relative; flex:1; min-width:200px; }
.studyhq_helpdesk-search-icon { position:absolute; left:10px; top:50%; transform:translateY(-50%); font-size:13px; pointer-events:none; color:#9ca3af; }
.studyhq_helpdesk-filter-search-input { width:100%; padding:8px 12px 8px 32px; border:1px solid #d1d5db; border-radius:7px; font-size:13px; font-family:inherit; box-sizing:border-box; background:#fff; }
.studyhq_helpdesk-filter-search-input:focus { outline:none; border-color:#2271b1; box-shadow:0 0 0 3px rgba(34,113,177,.1); }
.studyhq_helpdesk-filter-select { padding:8px 12px; border:1px solid #d1d5db; border-radius:7px; font-size:13px; background:#fff; cursor:pointer; font-family:inherit; }
.studyhq_helpdesk-filter-select:focus { outline:none; border-color:#2271b1; }
.studyhq_helpdesk-filter-date { padding:8px 10px; border:1px solid #d1d5db; border-radius:7px; font-size:13px; font-family:inherit; background:#fff; width:100%; box-sizing:border-box; }
.studyhq_helpdesk-filter-date:focus { outline:none; border-color:#2271b1; }
.studyhq_helpdesk-adv-filters { border-top:1px solid #e5e7eb; padding-top:10px; }
.studyhq_helpdesk-adv-toggle { font-size:13px; font-weight:600; color:#374151; cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; user-select:none; }
.studyhq_helpdesk-adv-toggle::-webkit-details-marker { display:none; }
.studyhq_helpdesk-adv-badge { background:#2271b1; color:#fff; font-size:10px; padding:1px 7px; border-radius:10px; font-weight:700; }
.studyhq_helpdesk-adv-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:12px; margin-top:12px; align-items:end; }
.studyhq_helpdesk-filter-meta { font-size:12px; color:#9ca3af; text-align:right; }
/* ── Pagination ── */
.studyhq_helpdesk-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:16px; padding:14px 0 4px; border-top:1px solid #e5e7eb; }
.studyhq_helpdesk-pag-info { font-size:13px; color:#6b7280; }
.studyhq_helpdesk-pag-controls { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.studyhq_helpdesk-pag-btn { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 10px; border:1px solid #d1d5db; border-radius:7px; font-size:13px; color:#374151; text-decoration:none; background:#fff; cursor:pointer; transition:background .15s,border-color .15s; white-space:nowrap; }
.studyhq_helpdesk-pag-btn:hover { background:#f3f4f6; border-color:#9ca3af; }
.studyhq_helpdesk-pag-btn.active { background:#2271b1; color:#fff; border-color:#2271b1; font-weight:700; pointer-events:none; }
.studyhq_helpdesk-pag-btn.disabled { color:#d1d5db; cursor:default; pointer-events:none; background:#f9fafb; }
.studyhq_helpdesk-pag-ellipsis { padding:0 6px; color:#9ca3af; font-size:14px; line-height:34px; }
.studyhq_helpdesk-dash-tabs { display:flex; gap:4px; border-bottom:2px solid #e5e7eb; margin-bottom:20px; }
.studyhq_helpdesk-dash-tab { padding:8px 18px; font-size:13px; font-weight:600; color:#6b7280; background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-2px; cursor:pointer; transition:all .2s; }
.studyhq_helpdesk-dash-tab.active,.studyhq_helpdesk-dash-tab:hover { color:#2271b1; border-bottom-color:#2271b1; }
.studyhq_helpdesk-dash-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; font-size:13px; }
.studyhq_helpdesk-dash-table thead tr { background:#f9fafb; }
.studyhq_helpdesk-dash-table th { padding:10px 14px; text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#6b7280; border-bottom:1px solid #e5e7eb; white-space:nowrap; }
.studyhq_helpdesk-dash-table td { padding:11px 14px; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
.studyhq_helpdesk-dash-table tr:last-child td { border-bottom:none; }
.studyhq_helpdesk-dash-table tr:hover td { background:#fafafa; }
.studyhq_helpdesk-dash-table .col-key { font-family:monospace; font-weight:700; color:#2271b1; white-space:nowrap; }
.studyhq_helpdesk-dash-table .col-subject a { color:#111827; font-weight:600; text-decoration:none; }
.studyhq_helpdesk-dash-table .col-subject a:hover { color:#2271b1; }
.studyhq_helpdesk-dash-table .col-customer { color:#374151; }
.studyhq_helpdesk-dash-table .col-date { color:#9ca3af; font-size:12px; white-space:nowrap; }
.studyhq_helpdesk-dash-actions { display:flex; gap:6px; align-items:center; }
.studyhq_helpdesk-dash-actions select { padding:4px 8px; border:1px solid #d1d5db; border-radius:6px; font-size:12px; background:#fff; cursor:pointer; }
.studyhq_helpdesk-dash-actions .btn-assign { padding:4px 10px; font-size:12px; background:#f3f4f6; border:1px solid #d1d5db; border-radius:6px; cursor:pointer; color:#374151; font-weight:600; }
.studyhq_helpdesk-dash-actions .btn-assign:hover { background:#e5e7eb; }
.studyhq_helpdesk-reply-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:99999; align-items:center; justify-content:center; }
.studyhq_helpdesk-reply-modal.open { display:flex; }
.studyhq_helpdesk-reply-modal-inner { background:#fff; border-radius:12px; padding:28px 32px; width:100%; max-width:560px; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.studyhq_helpdesk-reply-modal-inner h3 { margin:0 0 16px; font-size:17px; }
.studyhq_helpdesk-reply-modal-inner textarea { width:100%; padding:10px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; font-family:inherit; resize:vertical; box-sizing:border-box; }
.studyhq_helpdesk-modal-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:14px; }
.studyhq_helpdesk-btn-cancel { background:#f3f4f6; color:#374151; padding:9px 20px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; }
.studyhq_helpdesk-canned-list { margin-top:10px; display:flex; flex-direction:column; gap:4px; max-height:160px; overflow-y:auto; }
.studyhq_helpdesk-canned-item { padding:6px 10px; background:#f9fafb; border:1px solid #e5e7eb; border-radius:6px; font-size:12px; cursor:pointer; text-align:left; }
.studyhq_helpdesk-canned-item:hover { background:#eff6ff; border-color:#bfdbfe; }
.studyhq_helpdesk-dash-empty { text-align:center; padding:48px 0; color:#9ca3af; font-style:italic; }
.studyhq_helpdesk-dash-table .col-check { width:36px; text-align:center; padding:0 8px; }
.studyhq_helpdesk-dash-table .col-check input[type=checkbox] { width:15px; height:15px; cursor:pointer; accent-color:#2563eb; }
.studyhq_helpdesk-dash-table tr.bulk-selected td { background:#eff6ff !important; }
.studyhq_helpdesk-bulk-bar { display:flex; align-items:center; gap:12px; padding:10px 14px; background:#1e40af; border-radius:10px; margin-bottom:10px; flex-wrap:wrap; }
.studyhq_helpdesk-bulk-count { color:#fff; font-size:13px; font-weight:700; white-space:nowrap; }
.studyhq_helpdesk-bulk-actions { display:flex; gap:6px; flex-wrap:wrap; }
.studyhq_helpdesk-bulk-btn { padding:5px 13px; border:1.5px solid rgba(255,255,255,.5); border-radius:6px; background:transparent; color:#fff; font-size:12px; font-weight:600; cursor:pointer; transition:background .15s,border-color .15s; white-space:nowrap; }
.studyhq_helpdesk-bulk-btn:hover { background:rgba(255,255,255,.15); border-color:#fff; }
.studyhq_helpdesk-bulk-btn.delete { border-color:rgba(252,165,165,.7); color:#fca5a5; }
.studyhq_helpdesk-bulk-btn.delete:hover { background:rgba(239,68,68,.2); border-color:#f87171; color:#fff; }
.studyhq_helpdesk-bulk-clear { margin-left:auto; background:none; border:none; color:rgba(255,255,255,.6); font-size:18px; cursor:pointer; padding:0 4px; transition:color .15s; line-height:1; }
.studyhq_helpdesk-bulk-clear:hover { color:#fff; }
/* ── Panel ── */
.studyhq_helpdesk-panel-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:9998; }
.studyhq_helpdesk-panel-overlay.open { display:block; }
.studyhq_helpdesk-ticket-panel { position:fixed; top:0; right:0; bottom:0; width:min(680px,100vw); background:#fff; box-shadow:-4px 0 32px rgba(0,0,0,.15); z-index:9999; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .3s cubic-bezier(.4,0,.2,1); }
.studyhq_helpdesk-ticket-panel.open { transform:translateX(0); }
.studyhq_helpdesk-panel-hdr { padding:20px 24px 16px; border-bottom:1px solid #e5e7eb; flex-shrink:0; }
.studyhq_helpdesk-panel-hdr-top { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.studyhq_helpdesk-panel-close { margin-left:auto; background:none; border:none; font-size:22px; cursor:pointer; color:#6b7280; line-height:1; padding:4px 8px; border-radius:6px; }
.studyhq_helpdesk-panel-close:hover { background:#f3f4f6; }
.studyhq_helpdesk-panel-subject { font-size:17px; font-weight:700; color:#111827; margin:0 0 8px; }
.studyhq_helpdesk-panel-customer { font-size:13px; color:#6b7280; margin-bottom:10px; }
.studyhq_helpdesk-panel-actions { display:flex; gap:8px; flex-wrap:wrap; }
.studyhq_helpdesk-panel-actions select { padding:5px 10px; border:1px solid #d1d5db; border-radius:6px; font-size:12px; background:#fff; cursor:pointer; }
.studyhq_helpdesk-panel-body { flex:1; overflow-y:auto; padding:20px 24px; display:flex; flex-direction:column; gap:20px; }
.studyhq_helpdesk-panel-loading { text-align:center; padding:40px; color:#9ca3af; }
/* ── Thread ── */
.studyhq_helpdesk-panel-thread { display:flex; flex-direction:column; gap:14px; }
.studyhq_helpdesk-msg-bubble { display:flex; gap:12px; }
.studyhq_helpdesk-msg-bubble.agent { flex-direction:row-reverse; }
.studyhq_helpdesk-msg-avatar { width:36px; height:36px; border-radius:50%; background:#2271b1; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex-shrink:0; }
.studyhq_helpdesk-msg-bubble.agent .studyhq_helpdesk-msg-avatar { background:#16a34a; }
.studyhq_helpdesk-msg-bubble.private .studyhq_helpdesk-msg-avatar { background:#f59e0b; }
.studyhq_helpdesk-msg-inner { flex:1; max-width:88%; }
.studyhq_helpdesk-msg-meta { display:flex; gap:8px; align-items:baseline; margin-bottom:4px; font-size:12px; color:#6b7280; }
.studyhq_helpdesk-msg-bubble.agent .studyhq_helpdesk-msg-meta { flex-direction:row-reverse; }
.studyhq_helpdesk-msg-meta strong { color:#374151; font-size:13px; }
.studyhq_helpdesk-msg-body { background:#f3f4f6; border-radius:10px; padding:12px 16px; font-size:14px; line-height:1.65; color:#374151; white-space:pre-wrap; word-break:break-word; }
.studyhq_helpdesk-msg-bubble.agent .studyhq_helpdesk-msg-body { background:#eff6ff; }
.studyhq_helpdesk-msg-bubble.private .studyhq_helpdesk-msg-body { background:#fffbeb; border:1px dashed #f59e0b; }
.studyhq_helpdesk-msg-original { background:#f9fafb; border-left:3px solid #2271b1; border-radius:0 8px 8px 0; padding:12px 16px; font-size:14px; color:#374151; line-height:1.65; white-space:pre-wrap; word-break:break-word; margin-bottom:4px; }
.studyhq_helpdesk-private-badge { font-size:10px; background:#fef3c7; color:#92400e; border:1px solid #fde68a; border-radius:4px; padding:1px 6px; }
/* ── Reply form ── */
.studyhq_helpdesk-reply-box { border-top:1px solid #e5e7eb; padding-top:16px; display:flex; flex-direction:column; gap:10px; flex-shrink:0; }
.studyhq_helpdesk-reply-dropzone { display:flex; align-items:center; gap:8px; border:2px dashed #e5e7eb; border-radius:6px; padding:8px 12px; font-size:12px; color:#9ca3af; cursor:pointer; transition:border-color .2s,background .2s; }
.studyhq_helpdesk-reply-dropzone:hover,.studyhq_helpdesk-reply-dropzone.dragover { border-color:#2271b1; background:#f0f6fc; color:#2271b1; }
.studyhq_helpdesk-reply-box textarea { width:100%; padding:10px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; font-family:inherit; resize:vertical; box-sizing:border-box; min-height:100px; }
.studyhq_helpdesk-reply-box textarea:focus { outline:none; border-color:#2271b1; box-shadow:0 0 0 3px rgba(34,113,177,.12); }
.studyhq_helpdesk-cc-row { display:flex; flex-direction:column; gap:6px; }
.studyhq_helpdesk-cc-row input { width:100%; padding:7px 12px; border:1px solid #e5e7eb; border-radius:6px; font-size:13px; font-family:inherit; box-sizing:border-box; }
.studyhq_helpdesk-cc-row input:focus { outline:none; border-color:#2271b1; }
.studyhq_helpdesk-cc-row label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#6b7280; }
.studyhq_helpdesk-btn-link { background:none; border:none; color:#2271b1; font-size:12px; cursor:pointer; padding:0; text-decoration:underline; }
.studyhq_helpdesk-reply-footer { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.studyhq_helpdesk-reply-footer label { font-size:13px; color:#6b7280; display:flex; align-items:center; gap:5px; cursor:pointer; }
.studyhq_helpdesk-reply-footer .studyhq_helpdesk-btn { margin-left:auto; }
/* ── Toast ── */
.studyhq_helpdesk-toast-wrap { position:fixed; top:24px; right:24px; z-index:99999; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.studyhq_helpdesk-toast { background:#1f2937; color:#fff; padding:11px 18px; border-radius:8px; font-size:14px; font-weight:500; box-shadow:0 4px 16px rgba(0,0,0,.2); pointer-events:auto; display:flex; align-items:center; gap:10px; animation:studyhq_helpdeskFadeIn .2s ease; }
.studyhq_helpdesk-toast.success { background:#166534; }
.studyhq_helpdesk-toast.error   { background:#991b1b; }
.studyhq_helpdesk-toast.info    { background:#1e40af; }
@keyframes studyhq_helpdeskFadeIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
/* ── New ticket modal (wider) ── */
.studyhq_helpdesk-nt-modal-inner { background:#fff; border-radius:12px; padding:28px 32px; width:100%; max-width:680px; box-shadow:0 20px 60px rgba(0,0,0,.2); max-height:90vh; overflow-y:auto; }
.studyhq_helpdesk-nt-modal-inner h3 { margin:0 0 20px; font-size:18px; }
.studyhq_helpdesk-form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.studyhq_helpdesk-field-group { display:flex; flex-direction:column; gap:5px; }
.studyhq_helpdesk-field-group label { font-size:12px; font-weight:700; color:#374151; text-transform:uppercase; letter-spacing:.04em; }
.studyhq_helpdesk-field-group input,.studyhq_helpdesk-field-group select,.studyhq_helpdesk-field-group textarea { padding:9px 12px; border:1px solid #d1d5db; border-radius:7px; font-size:14px; font-family:inherit; box-sizing:border-box; width:100%; }
.studyhq_helpdesk-field-group input:focus,.studyhq_helpdesk-field-group select:focus,.studyhq_helpdesk-field-group textarea:focus { outline:none; border-color:#2271b1; box-shadow:0 0 0 3px rgba(34,113,177,.1); }
.studyhq_helpdesk-nt-fields { display:flex; flex-direction:column; gap:14px; }
/* ── User search dropdown ── */
.studyhq_helpdesk-user-search-wrap { position:relative; }
.studyhq_helpdesk-user-dropdown { position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid #d1d5db; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:200; display:none; max-height:200px; overflow-y:auto; }
.studyhq_helpdesk-user-dropdown.open { display:block; }
.studyhq_helpdesk-user-opt { padding:9px 14px; cursor:pointer; font-size:13px; border-bottom:1px solid #f3f4f6; }
.studyhq_helpdesk-user-opt:last-child { border-bottom:none; }
.studyhq_helpdesk-user-opt:hover { background:#eff6ff; }
.studyhq_helpdesk-user-opt .opt-name { font-weight:600; color:#111827; }
.studyhq_helpdesk-user-opt .opt-email { color:#6b7280; font-size:12px; }
@media(max-width:700px){.studyhq_helpdesk-dash-table thead{display:none;}.studyhq_helpdesk-dash-table td{display:block;padding:6px 12px;}.studyhq_helpdesk-dash-table tr{border:1px solid #e5e7eb;border-radius:8px;margin-bottom:10px;display:block;}.studyhq_helpdesk-form-row{grid-template-columns:1fr;}}