/* Keryex v1.9: shared operational controls and non-modal honeypot workspace */
:root{--kx-action-bg:#102d51;--kx-action-edge:#315b86;--kx-action-hover:#1b426f;--kx-focus:rgba(62,141,255,.26)}
#portal .primary,#portal .secondary,#portal .row-btn,#portal .toolbar button,#portal .panel button:not(.nav):not(.community-markdown-toolbar button),#portal .community-role-card button:not(.community-markdown-toolbar button),#portal .kx-head-actions button,#portal .hp-card button{font:750 12px/1.35 Inter,ui-sans-serif,system-ui,sans-serif;min-height:35px;padding:8px 13px;border-radius:9px;letter-spacing:-.005em;box-shadow:inset 0 1px rgba(255,255,255,.085),0 2px 5px rgba(0,0,0,.12);transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease,color .16s ease}
#portal .secondary,#portal .row-btn,#portal .toolbar button,#portal .panel button:not(.primary):not(.nav):not(.community-markdown-toolbar button),#portal .hp-card button.secondary{background:linear-gradient(180deg,#15375e,#102744);color:#d9eafe;border:1px solid var(--kx-action-edge)}
#portal .primary,#portal .hp-card button.primary{background:linear-gradient(180deg,#267dff,#155be4);border:1px solid #428bff;color:white;box-shadow:inset 0 1px rgba(255,255,255,.18),0 3px 13px rgba(14,78,179,.16)}
#portal .primary:hover:not(:disabled),#portal .hp-card button.primary:hover:not(:disabled){background:linear-gradient(180deg,#4694ff,#2674f4);border-color:#72a9ff;box-shadow:0 4px 19px rgba(30,110,240,.24)}
#portal .secondary:hover:not(:disabled),#portal .row-btn:hover:not(:disabled),#portal .toolbar button:hover:not(:disabled),#portal .hp-card button.secondary:hover:not(:disabled){background:#1b426d;border-color:#5485bd;color:#fff}
#portal button:not(:disabled):active{transform:translateY(1px)}
#portal button:focus-visible,#portal select:focus-visible,#portal input:focus-visible,#portal textarea:focus-visible{outline:2px solid #5aa0ff;outline-offset:2px;box-shadow:0 0 0 4px var(--kx-focus)}
#portal button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
/* Unified lean underline tab navigation across portal pages. */
#portal :is(.community-tabs,.kx-editor-tabs,.hp-tabs,.tabs,.audit-tabs,.ticket-tabs,.permission-tabs){display:flex;flex-wrap:wrap;gap:4px;background:rgba(5,20,39,.34);border:1px solid rgba(112,163,222,.14);border-radius:10px;padding:4px 7px;align-items:center;min-width:0;overflow-x:auto}
#portal :is(.community-tabs,.kx-editor-tabs,.hp-tabs,.tabs,.audit-tabs,.ticket-tabs,.permission-tabs)>button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:38px;margin:0;border:0!important;border-bottom:2px solid transparent!important;border-radius:7px 7px 3px 3px!important;background:transparent!important;color:#91aaca!important;box-shadow:none!important;padding:9px 15px;font-size:11px;font-weight:740;white-space:nowrap;cursor:pointer}
#portal :is(.community-tabs,.kx-editor-tabs,.hp-tabs,.tabs,.audit-tabs,.ticket-tabs,.permission-tabs)>button:hover{color:#fff!important;background:rgba(33,84,144,.19)!important}
#portal :is(.community-tabs,.kx-editor-tabs,.hp-tabs,.tabs,.audit-tabs,.ticket-tabs,.permission-tabs)>button.active,#portal :is(.community-tabs,.kx-editor-tabs,.hp-tabs,.tabs,.audit-tabs,.ticket-tabs,.permission-tabs)>button[aria-selected=true]{color:#f4f8ff!important;background:rgba(24,75,137,.34)!important;border-bottom-color:#438df9!important}
.kx-honeypot-page .hp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}.hp-stat,.hp-card{border:1px solid rgba(117,163,223,.16);border-radius:12px;background:linear-gradient(155deg,#102849,#0a1c34);box-shadow:inset 0 1px rgba(255,255,255,.035)}.hp-stat{padding:15px 17px;display:grid;gap:3px}.hp-stat small{font-size:10px;font-weight:800;letter-spacing:.1em;color:#7b9abb}.hp-stat strong{font-size:20px;color:#f0f7ff;font-weight:800;line-height:1.4}.hp-stat span{font-size:10px;color:#89a5c2}.hp-tabs{margin-bottom:14px}.hp-content-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(275px,.8fr);gap:13px;align-items:start}.hp-main-stack,.hp-side-stack{display:grid;gap:13px;min-width:0}.hp-card{padding:18px;min-width:0}.hp-card-head{display:flex;align-items:center;gap:11px;margin-bottom:15px}.hp-card-head>div:nth-child(2){flex:1;min-width:0}.hp-card-head h2{font:760 15px/1.3 'Object Sans',Inter,system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 3px}.hp-card-head p{font-size:11px;color:#85a2c3;margin:0;line-height:1.45}.hp-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(160deg,#174985,#103361);color:#a9d0ff;flex:0 0 36px;font-size:17px;border:1px solid rgba(83,155,247,.14)}.hp-dual,.hp-triple{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hp-triple{grid-template-columns:repeat(3,minmax(0,1fr))}.hp-card label:not(.hp-check):not(.hp-toggle-line){display:grid;gap:7px;color:#adc7e6;font-size:11px;font-weight:700;margin:0 0 12px}.hp-card input:not([type=checkbox]):not([type=color]),.hp-card select,.hp-card textarea{width:100%;background:#081c34;color:#eff6ff;border:1px solid #2c4b70;border-radius:8px;min-height:38px;padding:9px 11px;font:500 12px Inter,system-ui,sans-serif;outline:none;resize:vertical}.hp-card input[type=color]{width:100%;height:39px;background:#081c34;border:1px solid #315676;border-radius:8px;padding:4px;cursor:pointer}.hp-card input:focus,.hp-card textarea:focus,.hp-card select:focus{border-color:#3e89fa;box-shadow:0 0 0 3px rgba(48,121,244,.12)}.hp-hint{font-size:10px;color:#87a1bf;line-height:1.55;margin-top:11px}.hp-toggle-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;border:1px solid rgba(100,153,210,.16);border-radius:9px;background:rgba(6,20,39,.35);margin-bottom:8px}.hp-toggle-line strong,.hp-toggle-line small{display:block}.hp-toggle-line strong{font-size:12px;font-weight:760;color:#e9f4ff}.hp-toggle-line small{font-size:10px;color:#86a3c2;line-height:1.4;margin-top:4px}.hp-toggle-line input{width:19px;height:19px;accent-color:#2d82ff;flex:0 0 auto}.hp-channel-picker{max-height:205px;overflow-y:auto;background:#071a30;border:1px solid rgba(109,165,215,.18);border-radius:8px;padding:6px;display:grid;gap:2px;scrollbar-color:#336492 transparent;scrollbar-width:thin}.hp-channel-picker label{margin:0!important;display:flex!important;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:11px!important}.hp-channel-picker label:hover{background:#123d6c}.hp-channel-picker input{accent-color:#2f85ff}.hp-channel-picker span{font-weight:650}.hp-inline-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.hp-check{font-size:11px;font-weight:550;color:#9eb7d1;display:inline-flex;align-items:flex-start;gap:9px;line-height:1.4}.hp-check input{accent-color:#2c80ff}.hp-danger-ack{margin-top:14px;padding:12px;border:1px solid rgba(239,109,123,.22);border-radius:8px;background:rgba(136,43,51,.12);color:#edb7bc}.hp-safe-point{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid rgba(122,174,225,.12)}.hp-safe-point:last-child{border:0}.hp-safe-point strong{font-size:11px;color:#dcecff}.hp-safe-point span{font-size:10px;color:#89a3be;line-height:1.5}.hp-channel-preview{background:#071b35;border:1px solid #23466e;border-radius:10px;min-height:108px;padding:18px;display:grid;align-content:center;gap:7px}.hp-channel-preview span{font-weight:750;color:#e4f4ff}.hp-channel-preview small{color:#7799b9;font-size:10px}.hp-switch-list{display:grid;gap:4px}.hp-alert{padding:12px 15px;border-radius:9px;background:rgba(21,94,185,.17);border:1px solid #315f98;color:#d5e8ff;font-size:12px;margin-bottom:12px}.hp-alert.error{background:rgba(129,43,58,.2);border-color:#a14c60;color:#ffc7cd}.hp-activity{max-width:1100px}.hp-activity-list{display:grid;gap:7px;max-height:600px;overflow-y:auto}.hp-event{border:1px solid rgba(98,154,210,.15);background:#091e38;border-radius:8px;padding:12px 15px;display:flex;gap:10px;align-items:center;justify-content:space-between}.hp-event>div{display:grid;gap:3px}.hp-event strong{font-size:12px}.hp-event small{font-size:10px;color:#94abc6}.hp-event mark{font-size:10px;background:#14427b;color:#bfdeff;padding:5px 8px;border-radius:6px}.hp-discord-shell{padding:12px;border-radius:10px;background:#111722;border:1px solid #253950}.hp-discord-author{display:flex;align-items:center;gap:8px;margin-bottom:10px}.hp-discord-author img{height:30px;width:30px;border-radius:50%}.hp-discord-author strong{font-size:12px}.hp-discord-author small{font:800 8px Inter,sans-serif;background:#5b5ee9;color:white;padding:3px 5px;border-radius:3px}.hp-discord-card{border-left:4px solid #155eef;background:#202631;padding:13px;border-radius:4px}.hp-discord-card h3{font-size:14px;margin:0 0 9px}.hp-discord-card p{font-size:12px;color:#d1d6e0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.hp-discord-card img{max-width:100%;max-height:200px;object-fit:contain;border-radius:6px;margin:4px 0 10px}.hp-discord-card small{font-size:10px;color:#969faf}.hp-card code{font-size:10px;color:#94c5ff}.hp-side-stack .hp-card{position:relative}
@media(max-width:1150px){.kx-honeypot-page .hp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-content-grid{grid-template-columns:1fr}.hp-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.kx-honeypot-page .hp-metrics,.hp-side-stack,.hp-dual,.hp-triple{grid-template-columns:1fr}.hp-card{padding:14px}.hp-tabs{flex-wrap:nowrap!important}.hp-inline-actions{align-items:stretch;flex-direction:column}.hp-inline-actions button{width:100%}}
[data-hp-panel][hidden]{display:none!important}

/* v1.9.1: searchable honeypot history and explicit inline action review */
.kx-honeypot-page .hp-activity{max-width:none}
.kx-honeypot-page .hp-activity-toolbar{display:flex;gap:14px;justify-content:space-between;align-items:end;margin-bottom:14px;flex-wrap:wrap}
.kx-honeypot-page .hp-search-label{display:grid!important;gap:8px!important;flex:1;min-width:220px;max-width:520px;margin:0!important;font-size:11px!important;font-weight:650!important;color:#b8d0e9!important}
.kx-honeypot-page .hp-search-field{display:flex;align-items:center;gap:10px;background:#071b33;border:1px solid #315176;border-radius:9px;padding:0 12px;color:#75a3da;transition:border-color .14s,box-shadow .14s}
.kx-honeypot-page .hp-search-field:focus-within{border-color:#358cff;box-shadow:0 0 0 3px rgba(47,133,255,.15)}
.kx-honeypot-page .hp-search-field input{border:0!important;box-shadow:none!important;background:transparent!important;padding-left:0!important;min-height:42px!important;font-size:12px!important;width:100%}
.kx-honeypot-page .hp-activity-count{font-size:11px;color:#8eaccd;padding-bottom:9px;font-weight:600}
.kx-honeypot-page .hp-activity-feedback{margin:5px 0 13px;background:#103b60;border:1px solid #295885;padding:11px 13px;border-radius:9px;color:#c0e8ff;font-size:12px}
.kx-honeypot-page .hp-activity-feedback.is-error{background:rgba(118,37,49,.23);border-color:#98485b;color:#ffc9cf}
.kx-honeypot-page .hp-event-card{border:1px solid rgba(98,154,210,.18);background:#091e38;border-radius:10px;overflow:hidden}
.kx-honeypot-page .hp-event-main{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:13px 16px}
.kx-honeypot-page .hp-event-identity{min-width:0;display:grid;gap:6px;flex:1}
.kx-honeypot-page .hp-event-identity strong{font:750 12px/1.4 'Object Sans',Inter,system-ui,sans-serif;color:#e6f2ff}
.kx-honeypot-page .hp-event-identity small{font-size:11px;color:#91aaca;line-height:1.5;overflow-wrap:anywhere}
.kx-honeypot-page .hp-event-user{font:650 11px/1.3 'JetBrains Mono',ui-monospace,monospace;color:#b9d8fb}
.kx-honeypot-page .hp-event-separator{color:#427ebf;padding:0 4px}
.kx-honeypot-page .hp-event-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.kx-honeypot-page .hp-event-badge{border-radius:6px;padding:5px 9px;color:#b5dbff;background:#134475;font-size:10px;font-weight:650}
.kx-honeypot-page .hp-event-badge.is-closed{background:#123a32;color:#8fe0c4}
.kx-honeypot-page .hp-action-revert,.kx-honeypot-page .hp-action-review{background:#102c4e;border:1px solid #326494;color:#d8ebff;border-radius:8px;padding:8px 12px;min-height:34px;font-size:11px;font-weight:750;cursor:pointer}
.kx-honeypot-page .hp-action-revert:hover,.kx-honeypot-page .hp-action-review:hover{background:#174677;border-color:#4c91e8}
.kx-honeypot-page .hp-action-revert{background:#163e77;border-color:#3271bc}
.kx-honeypot-page .hp-event-expand{border-top:1px solid rgba(98,154,210,.22);background:linear-gradient(100deg,#0b2746,#0c203b);padding:16px;display:grid;gap:13px}
.kx-honeypot-page .hp-event-expand p{font-size:11px;color:#a9c5e0;line-height:1.6;margin:0}
.kx-honeypot-page .hp-event-reason{display:grid!important;gap:7px!important;margin:0!important;font-size:11px!important;color:#d9e9fd!important}
.kx-honeypot-page .hp-event-reason textarea{min-height:66px!important;font-size:12px!important}
.kx-honeypot-page .hp-event-confirm{display:flex!important;align-items:center;gap:9px!important;margin:0!important;font-weight:500!important;font-size:11px!important;color:#adcae9!important}
.kx-honeypot-page .hp-event-confirm input{width:17px;height:17px;accent-color:#287ded}
.kx-honeypot-page .hp-event-buttons{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.kx-honeypot-page .hp-event-buttons button{border-radius:8px;min-height:36px;font-size:11px;font-weight:750;padding:8px 14px}
.kx-honeypot-page .hp-event-closed{color:#7fdbbc!important}
.kx-honeypot-page .hp-activity-empty{padding:30px 20px;text-align:center;color:#9bb6d2;font-size:12px}
.kx-honeypot-page .hp-activity-notice{font-size:11px;color:#86a4c6;line-height:1.6;margin:13px 0 0}
@media(max-width:720px){.kx-honeypot-page .hp-event-main{align-items:flex-start}.kx-honeypot-page .hp-event-actions{width:100%}.kx-honeypot-page .hp-event-buttons button{flex:1}}
