/* EGYTAG Discovery Hub 2.0 — graphite-first contextual modules */
.egxv-context{margin:0 0 15px;display:grid;gap:13px}
.egxv-panel{border:1px solid #52616c;border-radius:12px;background:linear-gradient(155deg,#303940,#242c31);padding:13px;color:#e5ebf0}
.egxv-panel h3{font-size:14px;font-weight:850;line-height:1.5;margin:0 0 10px;color:#f1f4f7}
.egxv-meta{font-size:12px;line-height:1.65;color:#bac6d0;margin:5px 0 11px}
.egxv-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.egxv-action,.egxv-button,.egxv-secondary{font:inherit;min-height:42px;padding:8px 11px;border:1px solid #83949f;border-radius:10px;background:#3d4a53;color:#f2f6f8;font-size:12px;font-weight:750;cursor:pointer;text-align:center}
.egxv-action:hover,.egxv-button:hover,.egxv-secondary:hover{background:#566671;border-color:#e5ecf2}
.egxv-featured{background:linear-gradient(130deg,#e4e9ed,#bbc6cd);border-color:#e4e9ed;color:#202930;font-weight:850}
.egxv-featured:hover{color:#202930;background:#fff}
.egxv-progress{display:block;width:100%;height:5px;border-radius:10px;background:#182127;overflow:hidden;margin:10px 0}
.egxv-progress span{display:block;height:100%;background:#c4d1d9;width:0%;transition:width 150ms ease}
.egxv-toc{display:grid;gap:3px;list-style:none;margin:9px 0 0;padding:0;max-height:190px;overflow-y:auto;scrollbar-width:thin}
.egxv-toc li a{display:block;padding:7px 9px;border-radius:7px;color:#ced9df;font-size:12px;line-height:1.65;text-decoration:none;border-inline-start:2px solid transparent}
.egxv-toc li a[aria-current=location]{background:#495863;color:#fff;border-inline-start-color:#d7e1e7}
.egxv-toc li a:hover{background:#46545d}
.egxv-reading>.egxv-secondary{margin-top:10px;width:100%}
.egxv-connection{display:grid;gap:4px;padding:9px;margin-top:6px;border:1px solid #4e5d67;border-radius:9px;background:#2c353b;color:#f0f4f7;text-decoration:none}
.egxv-connection:hover{background:#45525b;border-color:#bfccd5}
.egxv-connection strong{font-size:12px;font-weight:750;line-height:1.6}
.egxv-connection small{font-size:10px;line-height:1.5;color:#b9c5cc}
.egxv-discuss-selection{border-inline-start:2px solid #96aab7;padding:7px 11px;color:#d6e1e8;line-height:1.75;font-size:11px;max-height:100px;overflow:auto;overflow-wrap:anywhere}
.egxv-discuss>.egxv-button{width:100%}
.egxv-dialog{direction:inherit;width:min(740px,calc(100vw - 20px));max-height:min(88dvh,830px);border:1px solid #7c8c98;border-radius:17px;background:linear-gradient(145deg,#283137,#191f23);color:#e9eff3;box-shadow:0 30px 90px #000c;overflow:auto;padding:0}
.egxv-dialog::backdrop{background:#05080bd4;backdrop-filter:blur(4px)}
.egxv-dialog__head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #53616b;background:#303b42;gap:13px}
.egxv-dialog__head strong{font-size:18px;font-weight:850}
.egxv-close{min-width:38px;min-height:38px;border:1px solid #748591;border-radius:9px;background:#45535c;color:#fff;font:inherit;font-size:21px;cursor:pointer}
.egxv-dialog__body{padding:20px;display:grid;gap:13px}
.egxv-lead{font-size:13px;color:#c3cfd7;line-height:1.85;margin:0}
.egxv-studio-text,.egxv-note,.egxv-input,.egxv-select{min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid #768894;border-radius:9px;background:#151d22;color:#f0f4f6;font:inherit;font-size:14px;line-height:1.65}
.egxv-studio-text,.egxv-note{width:100%;resize:vertical}
.egxv-studio-controls,.egxv-studio-actions,.egxv-collection-toolbar{display:flex;gap:10px;flex-wrap:wrap}
.egxv-studio-controls>*{flex:1 1 170px}
.egxv-studio-canvas{display:block;width:min(100%,420px);height:auto;max-height:48vh;object-fit:contain;box-sizing:border-box;border:1px solid #687883;border-radius:12px;justify-self:center;background:#283137}
.egxv-studio-actions>button{flex:1 1 155px}
.egxv-primary{background:#d4dde3;color:#1c252b;border-color:#edf2f5}
.egxv-primary:hover{background:#fff;color:#182126}
.egxv-collection-toolbar>*{flex:1 1 170px}
.egxv-collection-list{display:grid;gap:10px;max-height:47vh;overflow-y:auto}
.egxv-collection-card{display:grid;gap:9px;padding:12px;border:1px solid #53636e;border-radius:11px;background:#283238}
.egxv-collection-title{font-size:14px;font-weight:800;line-height:1.75;color:#edf2f5;text-decoration:none}
.egxv-collection-title:hover{text-decoration:underline}
.egxv-collection-card>.egxv-select{width:100%}
.egxv-empty{padding:16px;text-align:center;color:#bdc8ce;font-size:13px;line-height:1.7}
.egxv-shared-link{display:block;color:#eef2f5;padding:10px;border:1px solid #556672;border-radius:9px;overflow-wrap:anywhere;text-decoration:none}
.egxv-shared-link:hover{background:#394750}
.egxv-status{position:fixed;bottom:60px;left:50%;transform:translateX(-50%);z-index:99999;background:#394750;border:1px solid #97a8b3;color:#fff;padding:11px 16px;border-radius:12px}
.egxv-dialog :is(button,a,input,select,textarea):focus-visible,.egxv-context :is(button,a):focus-visible{outline:2px solid #e6edf3;outline-offset:2px}
@media(max-width:650px){.egxv-dialog{width:calc(100vw - 12px);border-radius:12px}.egxv-dialog__body{padding:13px}.egxv-studio-actions>button{flex:1 1 115px}.egxv-studio-canvas{max-height:42vh}.egxv-toc{max-height:150px}}
@media(prefers-reduced-motion:reduce){.egxv-progress span{transition:none}.egxv-dialog::backdrop{backdrop-filter:none}}

.egxv-link-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border-radius:10px;border:1px solid #a8b7c2;color:#f0f4f7;text-decoration:none;font-weight:750;font-size:13px;background:#36444d}.egxv-link-button:hover{background:#53636f;color:#fff}
