.gim-modules-viewer-wrapper{position:relative;direction:rtl;color:#0d1b33}
.gim-modules-viewer-wrapper *{box-sizing:border-box}
.gim-modules-viewer-wrapper .gim-icon{display:block;width:1em;height:1em}
.gim-modules-ambient{position:absolute;width:24rem;height:24rem;border-radius:999px;filter:blur(64px);pointer-events:none;opacity:.9}
.gim-modules-ambient--blue{inset-block-start:-6rem;inset-inline-start:-5rem;background:rgba(22,93,255,.05)}
.gim-modules-ambient--green{inset-block-end:-6rem;inset-inline-end:-5rem;background:rgba(0,212,146,.05)}
.gim-modules-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(260px,4fr) minmax(0,8fr);gap:20px;align-items:start}
.gim-modules-sidebar{padding:10px;background:#fff;border:1px solid rgba(226,232,240,.9);border-radius:16px;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.gim-modules-sidebar-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid #f1f5f9;margin-bottom:4px}
.gim-modules-sidebar-header strong{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.03em}.gim-modules-badge-count{font-size:10px;color:#165dff;font-weight:900;font-family:monospace;white-space:nowrap}
.gim-modules-nav-list{display:grid;gap:4px}
.gim-module-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;padding:8px 10px;border-radius:12px;text-align:start;color:#334155;cursor:pointer;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
.gim-module-btn-main{display:flex;align-items:center;gap:8px;min-width:0}.gim-module-btn-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#f1f5f9;color:#165dff;flex:0 0 24px;transition:background-color .15s ease,color .15s ease}.gim-module-btn-num{font:700 10px/1 monospace;color:#94a3b8;flex:0 0 auto}.gim-module-btn-title{font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gim-module-btn-arrow{font-size:14px;color:#cbd5e1;opacity:0;transition:opacity .15s ease,transform .15s ease,color .15s ease}
.gim-module-btn:hover{background:rgba(241,245,249,.8);color:#0f172a}.gim-module-btn:hover .gim-module-btn-icon{background:#eff6ff}.gim-module-btn:hover .gim-module-btn-arrow{opacity:1}
.gim-module-active-btn{background:linear-gradient(270deg,#165dff,#0d1b33);color:#fff;box-shadow:0 2px 10px rgba(22,93,255,.18)}.gim-module-active-btn .gim-module-btn-icon{background:rgba(255,255,255,.2);color:#22d3ee}.gim-module-active-btn .gim-module-btn-num{color:#bfdbfe}.gim-module-active-btn .gim-module-btn-arrow{color:#22d3ee;opacity:1;transform:translateX(-2px)}
.gim-module-btn:focus-visible,.gim-screenshot-window:focus-visible,.gim-module-demo-link:focus-visible,.gim-lightbox-close:focus-visible,.gim-lightbox-demo:focus-visible{outline:3px solid rgba(34,211,238,.8);outline-offset:3px}
.gim-modules-panels-container{min-width:0}
.gim-module-card{padding:20px 24px;border:1px solid rgba(226,232,240,.9);border-radius:16px;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.04);animation:gimModulePanelIn .18s ease both}
.gim-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}.gim-panel-heading{display:flex;align-items:center;gap:12px;min-width:0}.gim-panel-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#165dff,#0d1b33);color:#22d3ee;box-shadow:0 2px 8px rgba(22,93,255,.18);font-size:20px;flex:0 0 40px}.gim-panel-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.gim-panel-badge,.gim-panel-tag{display:inline-flex;padding:2px 8px;border-radius:999px;background:#eff6ff;color:#165dff;font-size:10px;font-weight:900;border:1px solid #dbeafe}.gim-panel-tag{background:#f1f5f9;color:#334155;border-color:transparent}.gim-panel-title{margin:3px 0 0;font-size:20px;line-height:1.4;color:#0d1b33;font-weight:900}
.gim-module-demo-link{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;background:#f1f5f9;color:#1e293b;border-radius:8px;padding:7px 12px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease}.gim-module-demo-link:hover{background:#e2e8f0}.gim-module-demo-link .gim-icon{color:#165dff}
.gim-panel-desc{margin:12px 0;color:#475569;font-size:12px;line-height:1.8;background:#f8fafc;border:1px solid #f1f5f9;border-radius:12px;padding:10px}
.gim-panel-body-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(250px,5fr);gap:16px;align-items:stretch}
.gim-panel-features-col{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-width:0}.gim-features-list{display:grid;gap:8px}
.gim-feature-item{padding:10px;border:1px solid rgba(226,232,240,.8);border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.03);transition:border-color .15s ease,box-shadow .15s ease}.gim-feature-item:hover{border-color:#bfdbfe;box-shadow:0 3px 10px rgba(15,23,42,.04)}.gim-feature-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px}.gim-feature-header strong{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.65;color:#0f172a}.gim-feature-header strong .gim-icon{color:#165dff;flex:0 0 auto;margin-top:.22em}.gim-feature-badge{padding:2px 6px;border-radius:4px;background:#ecfdf5;color:#047857;border:1px solid rgba(167,243,208,.65);font-size:9px;font-weight:900;white-space:nowrap}.gim-feature-item p{margin:0;color:#64748b;font-size:11px;line-height:1.75}.gim-panel-footer-note{display:flex;align-items:flex-start;gap:6px;margin:0;padding-top:7px;border-top:1px solid #f1f5f9;color:#64748b;font-size:10px;line-height:1.6}.gim-panel-footer-note .gim-icon{color:#059669;flex:0 0 auto;margin-top:.15em}
.gim-panel-screenshot-col{display:flex;min-width:0}
.gim-screenshot-window{position:relative;display:flex;flex:1;min-height:190px;flex-direction:column;justify-content:space-between;overflow:hidden;width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:inherit;text-align:inherit;cursor:zoom-in;transition:border-color .18s ease,box-shadow .18s ease}.gim-screenshot-window:hover{border-color:#165dff;box-shadow:0 8px 20px rgba(15,23,42,.09)}
.gim-window-bar{display:flex;align-items:center;justify-content:space-between;padding-bottom:6px;border-bottom:1px solid #e2e8f0;margin-bottom:6px}.gim-window-dots{display:flex;gap:4px}.gim-window-dots i{display:block;width:8px;height:8px;border-radius:999px}.gim-window-dots i:nth-child(1){background:#fb7185}.gim-window-dots i:nth-child(2){background:#fbbf24}.gim-window-dots i:nth-child(3){background:#34d399}.gim-window-url{font:9px/1.2 monospace;color:#94a3b8;background:#fff;padding:2px 6px;border:1px solid #e2e8f0;border-radius:5px}
.gim-screenshot-frame{position:relative;display:flex;flex:1;min-height:142px;align-items:center;justify-content:center;text-align:center;padding:10px;background:#fff;border:1px solid rgba(226,232,240,.7);border-radius:8px;overflow:hidden}.gim-screenshot-frame img{display:block;width:100%;height:100%;max-height:210px;object-fit:contain;transition:transform .18s ease}.gim-screenshot-window:hover .gim-screenshot-frame img{transform:scale(1.025)}.gim-screenshot-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#64748b}.gim-screenshot-placeholder .gim-icon{font-size:32px;color:#165dff;background:#eff6ff;border-radius:12px;padding:8px;box-sizing:content-box}.gim-screenshot-placeholder strong{font-size:11px}.gim-screenshot-placeholder small{font-size:10px;color:#94a3b8}
.gim-screenshot-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:rgba(15,23,42,.62);backdrop-filter:blur(1px);color:#fff;opacity:0;transition:opacity .18s ease}.gim-screenshot-overlay .gim-icon{font-size:20px;color:#22d3ee}.gim-screenshot-overlay strong{font-size:11px}.gim-screenshot-window:hover .gim-screenshot-overlay,.gim-screenshot-window:focus-visible .gim-screenshot-overlay{opacity:1}
.gim-window-footer{display:flex;align-items:center;justify-content:space-between;padding-top:6px;color:#94a3b8;font-size:9px}.gim-window-footer>span:first-child{display:flex;align-items:center;gap:4px;color:#165dff;font-weight:700}
.gim-lightbox-backdrop{position:fixed;inset:0;z-index:800;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(2,6,23,.82);backdrop-filter:blur(5px);animation:gimModalFade .18s ease both}.gim-lightbox-dialog{position:relative;width:min(896px,100%);max-height:calc(100vh - 32px);overflow:auto;border:1px solid #e2e8f0;border-radius:24px;background:#fff;padding:24px;box-shadow:0 28px 80px rgba(2,6,23,.35);color:#0f172a;text-align:start}.gim-lightbox-close{position:absolute;inset-block-start:16px;inset-inline-end:16px;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;background:transparent;color:#94a3b8;cursor:pointer;transition:background-color .15s ease,color .15s ease}.gim-lightbox-close:hover{background:#f1f5f9;color:#334155}.gim-lightbox-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:12px;padding-inline-end:46px;border-bottom:1px solid #f1f5f9}.gim-lightbox-head__icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#165dff,#0d1b33);color:#22d3ee;font-size:20px}.gim-lightbox-head span{display:block;color:#165dff;font-size:11px;font-weight:800}.gim-lightbox-head h3{margin:2px 0 0;font-size:18px;font-weight:900}.gim-lightbox-window{padding:16px;border:2px solid #e2e8f0;border-radius:16px;background:#f8fafc;box-shadow:inset 0 2px 8px rgba(15,23,42,.03)}.gim-lightbox-window__bar{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e2e8f0}.gim-lightbox-window__bar .gim-window-dots i{width:12px;height:12px}.gim-lightbox-window__url{font:11px/1.2 monospace;color:#64748b;background:#fff;padding:4px 12px;border:1px solid #e2e8f0;border-radius:6px}.gim-lightbox-image{display:flex;align-items:center;justify-content:center;min-height:320px;padding:20px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.gim-lightbox-image img{display:block;max-width:100%;max-height:58vh;object-fit:contain}.gim-lightbox-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}.gim-lightbox-tags>.gim-lightbox-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;background:#f1f5f9;color:#334155;font-size:11px;font-weight:600}.gim-lightbox-tag .gim-icon{width:14px;height:14px;color:#16a34a;flex:0 0 auto}.gim-lightbox-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px}.gim-lightbox-footer>span{font-size:11px;color:#64748b}.gim-lightbox-demo{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border:0;border-radius:12px;background:#165dff;color:#fff;font-size:11px;font-weight:800;cursor:pointer;transition:background-color .15s ease,transform .15s ease}.gim-lightbox-demo:hover{background:#124bcf;transform:translateY(-1px)}
@keyframes gimModulePanelIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes gimModalFade{from{opacity:0}to{opacity:1}}
@media(max-width:1023px){.gim-modules-grid{grid-template-columns:1fr}.gim-modules-sidebar,.gim-modules-nav-list{min-width:0;max-width:100%}.gim-modules-nav-list{display:flex;overflow-x:auto;gap:6px;padding-bottom:4px;scrollbar-width:none;scroll-snap-type:x proximity}.gim-module-btn{min-width:max-content;scroll-snap-align:start}.gim-module-btn-title{max-width:160px}}
@media(max-width:767px){.gim-panel-body-grid{grid-template-columns:1fr}}
@media(max-width:620px){.gim-module-card{padding:16px}.gim-panel-header{align-items:flex-start;flex-direction:column}.gim-module-demo-link{width:100%;justify-content:center}.gim-panel-title{font-size:18px}.gim-feature-header{flex-wrap:wrap}.gim-screenshot-window{min-height:210px}.gim-lightbox-backdrop{padding:0}.gim-lightbox-dialog{width:100%;height:100%;max-height:none;border-radius:0;padding:20px 16px}.gim-lightbox-image{min-height:220px}.gim-lightbox-window{padding:10px}.gim-lightbox-footer{align-items:stretch;flex-direction:column}.gim-lightbox-demo{justify-content:center;width:100%}}
@media(prefers-reduced-motion:reduce){.gim-modules-viewer-wrapper *,.gim-lightbox-backdrop *{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.gim-module-active-btn,.gim-screenshot-window:hover .gim-screenshot-frame img,.gim-lightbox-demo:hover{transform:none}}
/* Sprint 5 quality pass — exact sm/md feature recomposition + touch/focus hardening. */
.gim-modules-viewer-wrapper{max-width:100%;min-width:0}
.gim-modules-viewer-wrapper :where(button,a[href]):focus-visible{outline:3px solid rgba(22,93,255,.38);outline-offset:3px}
@media(min-width:640px) and (max-width:767px){.gim-features-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){
	.gim-module-btn,.gim-module-demo-link,.gim-screenshot-window,.gim-lightbox-close,.gim-lightbox-demo{min-height:2.75rem}
	.gim-modules-nav-list{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
}
@media(max-width:620px){
	.gim-lightbox-dialog{padding-block-start:calc(1.25rem + env(safe-area-inset-top));padding-block-end:calc(1.25rem + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.gim-screenshot-overlay,.gim-screenshot-frame img{transition-duration:.01ms!important}}
/* Responsive containment: module detail card must never exceed the page container. */
.gim-modules-grid,
.gim-modules-sidebar,
.gim-modules-panels-container,
.gim-module-card,
.gim-panel-header,
.gim-panel-heading,
.gim-panel-body-grid,
.gim-panel-features-col,
.gim-panel-screenshot-col{
	min-width:0;
	max-width:100%;
}
.gim-modules-grid,
.gim-modules-sidebar,
.gim-modules-panels-container,
.gim-module-card{
	width:100%;
}
.gim-panel-heading > div{
	min-width:0;
}
.gim-panel-title,
.gim-panel-desc,
.gim-feature-item,
.gim-feature-item p,
.gim-panel-footer-note{
	overflow-wrap:anywhere;
}

/* Tablet is a recomposed layout, not a squeezed desktop card. */
@media(max-width:1023px){
	.gim-panel-body-grid{
		grid-template-columns:minmax(0,1fr);
	}
	.gim-panel-screenshot-col,
	.gim-screenshot-window{
		width:100%;
		max-width:100%;
	}
}

/* On narrow tablet/mobile keep the card header inside the available inline size. */
@media(max-width:767px){
	.gim-panel-header{
		align-items:stretch;
		flex-direction:column;
	}
	.gim-panel-heading{
		width:100%;
	}
	.gim-module-demo-link{
		max-width:100%;
		white-space:normal;
		text-align:center;
		justify-content:center;
	}
}
/* Responsive module selector: keep all 12 choices inside the component; no horizontal carousel. */
@media(max-width:1023px){
	.gim-modules-nav-list{
		display:grid;
		grid-template-columns:repeat(3,minmax(0,1fr));
		gap:6px;
		overflow:visible;
		padding-bottom:0;
		scroll-snap-type:none;
	}
	.gim-module-btn{
		width:100%;
		min-width:0;
		max-width:100%;
		scroll-snap-align:none;
	}
	.gim-module-btn-main{
		flex:1 1 auto;
		min-width:0;
	}
	.gim-module-btn-title{
		min-width:0;
		max-width:none;
		overflow:hidden;
		text-overflow:ellipsis;
		white-space:nowrap;
	}
}
@media(max-width:599px){
	.gim-modules-nav-list{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
}
@media(max-width:359px){
	.gim-modules-nav-list{
		grid-template-columns:minmax(0,1fr);
	}
}
