/* ==========================================================================
   AIGOG v3.0 · Unified Spatial Quick-Look Sheet (spatial-detail-sheet.css)
   Right-floating obsidian glass drawer + Expandable wide mode + Mobile bottom sheet
   ========================================================================== */

html:root body dialog#aigog-detail-sheet.aigog-detail-sheet{
 --sheet-accent:#67e8f9;
 --sheet-accent-rgb:103 232 249;
 --sheet-bg:var(--aigog-sheet-glass,linear-gradient(142deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,.018) 30%,rgba(176,214,255,.045) 100%),linear-gradient(162deg,rgb(15 24 44 / calc(.22 + .56 * var(--ui-alpha,.38))) 0%,rgb(9 15 30 / calc(.28 + .54 * var(--ui-alpha,.38))) 100%));
 --sheet-surface:rgba(255,255,255,.042);
 --sheet-surface-hover:rgba(255,255,255,.085);
 --sheet-line:var(--rim-hairline,rgba(206,224,255,.13));
 --sheet-line-strong:rgba(210,228,255,.24);
 --sheet-ink:#f5f7fc;
 --sheet-body:#d3dced;
 --sheet-muted:#8f9eb8;
 position:fixed;
 inset:12px 12px 12px auto;
 margin:0;
 padding:0;
 width:min(680px,calc(100vw - 24px));
 max-width:calc(100vw - 24px);
 height:calc(100dvh - 24px);
 max-height:calc(100dvh - 24px);
 border:1px solid var(--rim-hairline,rgba(206,224,255,.13));
 border-top-color:var(--rim-top-specular,rgba(232,242,255,.22));
 border-radius:22px;
 background:
  radial-gradient(88% 28% at 16% 0%,rgb(var(--sheet-accent-rgb)/.07),transparent 66%),
  var(--sheet-bg);
 color:var(--sheet-ink);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 1px 0 0 rgba(255,255,255,.09),inset 0 -1px 0 rgba(160,200,255,.10),0 26px 76px rgba(1,4,14,.46);
 backdrop-filter:var(--liquid-blur-dense,blur(36px) saturate(195%) brightness(1.05));
 -webkit-backdrop-filter:var(--liquid-blur-dense,blur(36px) saturate(195%) brightness(1.05));
 overflow:hidden;
 display:flex;
 flex-direction:column;
 outline:none;
 transition:width .32s cubic-bezier(.16,1,.3,1),height .32s cubic-bezier(.16,1,.3,1),border-radius .32s cubic-bezier(.16,1,.3,1);
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet:not([open]){
 display:none;
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[data-kind="software"]{
 --sheet-accent:#67e8f9;
 --sheet-accent-rgb:103 232 249;
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[data-kind="model"]{
 --sheet-accent:#c4b5fd;
 --sheet-accent-rgb:196 181 253;
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[data-kind="github"]{
 --sheet-accent:#fcd34d;
 --sheet-accent-rgb:252 211 77;
}

/* Expanded centered wide viewport mode */
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[data-expanded="true"]{
 inset:0;
 margin:auto;
 width:min(940px,calc(100vw - 48px));
 max-width:calc(100vw - 48px);
 height:min(880px,calc(100dvh - 48px));
 max-height:calc(100dvh - 48px);
}

html:root body dialog#aigog-detail-sheet.aigog-detail-sheet::backdrop{
 background:rgba(2,5,13,.56);
 backdrop-filter:blur(5px);
 -webkit-backdrop-filter:blur(5px);
 animation:aigog-sheet-backdrop-in .26s ease both;
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[open]{
 animation:aigog-sheet-slide-in .32s cubic-bezier(.16,1,.3,1) both;
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[open][data-expanded="true"]{
 animation:aigog-sheet-expand-in .28s cubic-bezier(.16,1,.3,1) both;
}

@keyframes aigog-sheet-backdrop-in{
 from{opacity:0}
 to{opacity:1}
}
@keyframes aigog-sheet-slide-in{
 from{opacity:0;transform:translate3d(28px,0,0)}
 to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes aigog-sheet-expand-in{
 from{opacity:0;transform:scale(.975) translate3d(0,8px,0)}
 to{opacity:1;transform:scale(1) translate3d(0,0,0)}
}
@keyframes aigog-sheet-bottom-in{
 from{opacity:0;transform:translate3d(0,32px,0)}
 to{opacity:1;transform:translate3d(0,0,0)}
}

/* Mobile grab handle (hidden on desktop) */
.sds-grab-handle{
 display:none;
 width:36px;
 height:4px;
 margin:10px auto 2px;
 border-radius:999px;
 background:rgba(255,255,255,.22);
 flex:none;
}

/* Sticky Glass Topbar */
.sds-header{
 position:sticky;
 top:0;
 z-index:4;
 flex:none;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:16px 20px 14px;
 border-bottom:1px solid var(--sheet-line);
 background:rgba(14,22,40,calc(.18 + .42 * var(--ui-alpha,.38)));
 backdrop-filter:blur(28px) saturate(185%);
 -webkit-backdrop-filter:blur(28px) saturate(185%);
}
.sds-header-left{
 display:flex;
 align-items:center;
 gap:12px;
 min-width:0;
 flex:1;
}
.sds-back{
 flex:none;
 display:inline-flex;
 align-items:center;
 gap:4px;
 height:32px;
 padding:0 10px;
 border:1px solid var(--sheet-line);
 border-radius:9px;
 background:var(--sheet-surface);
 color:var(--sheet-body);
 font:520 12px/1 inherit;
 cursor:pointer;
 transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.sds-back[hidden]{display:none}
.sds-back:hover,.sds-back:focus-visible{
 background:var(--sheet-surface-hover);
 border-color:var(--sheet-line-strong);
 color:#fff;
}

.sds-icon{
 flex:none;
 display:grid;
 place-items:center;
 width:40px;
 height:40px;
 border-radius:11px;
 border:1px solid rgba(255,255,255,.18);
 background:linear-gradient(155deg,rgba(235,240,250,.84),rgba(210,220,236,.76));
 color:#16233d;
 font:700 14px/1 inherit;
 overflow:hidden;
 box-shadow:0 3px 10px rgba(0,0,0,.24);
}
.sds-icon[hidden]{display:none}
.sds-icon img{
 width:100%;
 height:100%;
 padding:4px;
 object-fit:contain;
 display:block;
 box-sizing:border-box;
}

.sds-title-group{
 min-width:0;
 flex:1;
 display:grid;
 gap:3px;
}
.sds-title-row{
 display:flex;
 align-items:center;
 gap:8px;
 min-width:0;
}
.sds-title{
 margin:0;
 font-size:17px;
 font-weight:620;
 line-height:1.25;
 letter-spacing:-.02em;
 color:var(--sheet-ink);
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}
.sds-kind-badge{
 flex:none;
 display:inline-flex;
 align-items:center;
 gap:5px;
 padding:3px 8px;
 border-radius:999px;
 border:1px solid var(--sheet-line);
 background:var(--sheet-surface);
 color:var(--sheet-muted);
 font-size:11px;
 font-weight:520;
 line-height:1.1;
 white-space:nowrap;
}
.sds-kind-badge i{
 width:5px;
 height:5px;
 border-radius:50%;
 background:var(--sheet-accent);
 flex:none;
}
.sds-subtitle{
 margin:0;
 font-size:12px;
 line-height:1.35;
 color:var(--sheet-muted);
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}

.sds-header-tools{
 flex:none;
 display:flex;
 align-items:center;
 gap:6px;
}
.sds-tool-btn{
 display:inline-grid;
 place-items:center;
 width:32px;
 height:32px;
 padding:0;
 border:1px solid var(--sheet-line);
 border-radius:9px;
 background:var(--sheet-surface);
 color:var(--sheet-body);
 font:500 14px/1 inherit;
 text-decoration:none;
 cursor:pointer;
 transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.sds-tool-btn:hover,.sds-tool-btn:focus-visible{
 background:var(--sheet-surface-hover);
 border-color:var(--sheet-line-strong);
 color:#fff;
}
.sds-tool-btn[aria-pressed="true"]{
 background:rgba(255,255,255,.11);
 border-color:rgba(255,255,255,.26);
 color:#fff;
}
.sds-tool-btn[hidden]{display:none}
.sds-tool-btn svg{
 width:15px;
 height:15px;
 stroke:currentColor;
 stroke-width:1.75;
 fill:none;
 stroke-linecap:round;
 stroke-linejoin:round;
}

/* Scrollable Sheet Body */
.sds-scroll{
 flex:1 1 auto;
 min-height:0;
 overflow-y:auto;
 overflow-x:hidden;
 padding:18px 22px 28px;
 overscroll-behavior:contain;
}

/* Quick Action Bar */
.sds-actions{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:8px;
 margin:0 0 18px;
}
.sds-action-btn{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:6px;
 min-height:36px;
 padding:0 14px;
 border:1px solid var(--sheet-line-strong);
 border-radius:999px;
 background:var(--sheet-surface);
 color:var(--sheet-ink);
 font:550 12.5px/1 inherit;
 text-decoration:none;
 cursor:pointer;
 white-space:nowrap;
 transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.sds-action-btn:hover,.sds-action-btn:focus-visible{
 background:var(--sheet-surface-hover);
 border-color:rgba(255,255,255,.3);
 color:#fff;
}
.sds-action-btn.is-primary{
 border-color:var(--aigog-btn-primary-border,rgba(210,228,255,.36));
 background:var(--aigog-btn-primary-bg,linear-gradient(135deg,rgba(196,218,255,.20),rgba(146,178,255,.14)));
 color:var(--aigog-btn-primary-ink,#f5f8ff);
 font-weight:600;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 18px rgba(2,6,18,.28);
}
.sds-action-btn.is-primary:hover,.sds-action-btn.is-primary:focus-visible{
 border-color:rgba(224,238,255,.52);
 background:var(--aigog-btn-primary-bg-hover,linear-gradient(135deg,rgba(212,230,255,.29),rgba(164,194,255,.22)));
 color:#ffffff;
}
.sds-action-btn.is-favorite[aria-pressed="true"]{
 border-color:rgba(252,211,77,.42);
 background:rgba(252,211,77,.1);
 color:#fde68a;
}
.sds-action-btn svg{
 width:13px;
 height:13px;
 flex:none;
}

/* Description & Tags */
.sds-summary{
 margin:0 0 14px;
 color:var(--sheet-body);
 font-size:14px;
 line-height:1.75;
 max-width:68ch;
 overflow-wrap:anywhere;
}
.sds-meta-strip{
 display:flex;
 flex-wrap:wrap;
 gap:8px 16px;
 margin:0 0 14px;
 padding:12px 14px;
 border:1px solid var(--sheet-line);
 border-radius:14px;
 background:var(--sheet-surface);
 font-size:12px;
 color:var(--sheet-muted);
}
.sds-meta-strip span{
 display:inline-flex;
 align-items:baseline;
 gap:6px;
}
.sds-meta-strip b{
 color:var(--sheet-ink);
 font-weight:580;
 font-variant-numeric:tabular-nums;
}
.sds-tags{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin:0 0 18px;
}
.sds-tags span{
 padding:4px 10px;
 border-radius:999px;
 border:1px solid var(--sheet-line);
 background:rgba(255,255,255,.028);
 color:var(--sheet-body);
 font-size:11.5px;
 line-height:1.2;
}

/* Section Headers inside Sheet */
.sds-section{
 margin:20px 0 0;
 padding-top:18px;
 border-top:1px solid var(--sheet-line);
}
.sds-section:first-child{
 margin-top:0;
 padding-top:0;
 border-top:0;
}
.sds-section-head{
 display:flex;
 align-items:baseline;
 justify-content:space-between;
 gap:12px;
 margin:0 0 12px;
}
.sds-section-head h3{
 margin:0;
 font-size:13.5px;
 font-weight:600;
 letter-spacing:-.01em;
 color:var(--sheet-ink);
}
.sds-section-head small{
 font-size:11.5px;
 color:var(--sheet-muted);
}

/* Software Installer Controls */
.sds-download-controls{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
 margin:0 0 12px;
}
.sds-download-controls[hidden]{display:none}
.sds-download-controls label{
 display:grid;
 gap:6px;
 font-size:11.5px;
 color:var(--sheet-muted);
}
.sds-download-controls select{
 height:38px;
 padding:0 12px;
 border:1px solid var(--sheet-line-strong);
 border-radius:10px;
 background:rgba(10,15,28,.78);
 color:var(--sheet-ink);
 font:inherit;
 font-size:13px;
 cursor:pointer;
}
.sds-download-controls select:focus-visible{
 outline:2px solid rgba(168,204,255,.78);
 outline-offset:1px;
}
.sds-download-items{
 display:grid;
 gap:8px;
}
.sds-download-item{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:12px 14px;
 border:1px solid var(--sheet-line);
 border-radius:13px;
 background:var(--sheet-surface);
}
.sds-download-item>div{
 min-width:0;
 display:grid;
 gap:3px;
}
.sds-download-item strong{
 font-size:13px;
 font-weight:580;
 color:var(--sheet-ink);
 overflow-wrap:anywhere;
}
.sds-download-item small{
 font-size:11.5px;
 color:var(--sheet-muted);
 font-variant-numeric:tabular-nums;
 overflow-wrap:anywhere;
}
.sds-download-item a{
 flex:none;
 display:inline-flex;
 align-items:center;
 height:32px;
 padding:0 13px;
 border:1px solid var(--aigog-btn-primary-border,rgba(210,228,255,.36));
 border-radius:999px;
 background:var(--aigog-btn-primary-bg,linear-gradient(135deg,rgba(196,218,255,.20),rgba(146,178,255,.14)));
 color:var(--aigog-btn-primary-ink,#f5f8ff);
 font:600 12px/1 inherit;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 4px 14px rgba(2,6,18,.26);
 text-decoration:none;
 white-space:nowrap;
 transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.sds-download-item a:hover{
 border-color:rgba(224,238,255,.52);
 background:var(--aigog-btn-primary-bg-hover,linear-gradient(135deg,rgba(212,230,255,.29),rgba(164,194,255,.22)));
 color:#ffffff;
}

/* Software Source Filters & Rows */
.sds-source-filters{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin:0 0 12px;
}
.sds-source-filter{
 height:30px;
 padding:0 11px;
 border:1px solid var(--sheet-line);
 border-radius:999px;
 background:var(--sheet-surface);
 color:var(--sheet-muted);
 font:520 12px/1 inherit;
 cursor:pointer;
 transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.sds-source-filter:hover{
 background:var(--sheet-surface-hover);
 color:var(--sheet-ink);
}
.sds-source-filter.is-active,
.sds-source-filter[aria-selected="true"]{
 border-color:rgba(var(--sheet-accent-rgb)/.42);
 background:rgba(var(--sheet-accent-rgb)/.1);
 color:var(--sheet-ink);
}
.sds-source-list{
 display:grid;
 gap:8px;
}
.sds-source-row{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px;
 padding:12px 14px;
 border:1px solid var(--sheet-line);
 border-radius:13px;
 background:var(--sheet-surface);
}
.sds-source-row>div{
 min-width:0;
 display:grid;
 gap:3px;
}
.sds-source-row strong{
 font-size:13px;
 font-weight:580;
 color:var(--sheet-ink);
}
.sds-source-row span{
 font-size:12px;
 color:var(--sheet-muted);
 line-height:1.45;
}
.sds-source-kind{
 display:inline-block;
 font-size:11px!important;
 color:var(--sheet-body)!important;
 opacity:.85;
}
.sds-source-row a{
 flex:none;
 display:inline-flex;
 align-items:center;
 height:32px;
 padding:0 12px;
 border:1px solid var(--sheet-line-strong);
 border-radius:999px;
 background:rgba(255,255,255,.04);
 color:var(--sheet-ink);
 font:540 12px/1 inherit;
 text-decoration:none;
 white-space:nowrap;
 transition:background .16s ease,border-color .16s ease;
}
.sds-source-row a:hover{
 background:rgba(255,255,255,.1);
 border-color:rgba(255,255,255,.28);
}

/* Related Software Grid (In-sheet Drill-down!) */
.sds-related-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px;
}
.sds-related-card{
 display:flex;
 align-items:center;
 gap:10px;
 width:100%;
 padding:10px 12px;
 border:1px solid var(--sheet-line);
 border-radius:13px;
 background:var(--sheet-surface);
 color:var(--sheet-ink);
 text-align:left;
 text-decoration:none;
 cursor:pointer;
 transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.sds-related-card:hover,.sds-related-card:focus-visible{
 background:var(--sheet-surface-hover);
 border-color:var(--sheet-line-strong);
 transform:translateY(-1px);
}
.sds-related-icon{
 flex:none;
 display:grid;
 place-items:center;
 width:34px;
 height:34px;
 border-radius:9px;
 border:1px solid rgba(255,255,255,.18);
 background:linear-gradient(155deg,rgba(235,240,250,.84),rgba(210,220,236,.76));
 color:#16233d;
 font:700 12px/1 inherit;
 overflow:hidden;
}
.sds-related-icon img{
 width:100%;
 height:100%;
 padding:4px;
 object-fit:contain;
 box-sizing:border-box;
 display:block;
}
.sds-related-copy{
 min-width:0;
 flex:1;
 display:grid;
 gap:2px;
}
.sds-related-copy strong{
 font-size:13px;
 font-weight:580;
 color:var(--sheet-ink);
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}
.sds-related-copy small{
 font-size:11.5px;
 color:var(--sheet-muted);
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}
.sds-related-arrow{
 flex:none;
 color:var(--sheet-muted);
 font-size:12px;
}

/* Harmonized Model & GitHub Embedded Markup inside Sheet */
.sds-body .model-detail-summary{
 color:var(--sheet-body);
 font-size:14px;
 line-height:1.75;
 margin:0 0 14px;
}
.sds-body .model-detail-note{
 color:var(--sheet-muted);
 font-size:12px;
 line-height:1.65;
 margin:8px 0 12px;
}
.sds-body .model-detail-tags{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin:0 0 16px;
}
.sds-body .model-detail-tags span{
 padding:4px 10px;
 border-radius:999px;
 border:1px solid var(--sheet-line);
 background:var(--sheet-surface);
 color:var(--sheet-body);
 font-size:11.5px;
}
.sds-body h4{
 margin:22px 0 10px;
 padding-top:16px;
 border-top:1px solid var(--sheet-line);
 font-size:13.5px;
 font-weight:600;
 color:var(--sheet-ink);
}
.sds-body h5{
 margin:14px 0 8px;
 font-size:12px;
 font-weight:560;
 color:var(--sheet-muted);
}
.sds-body .model-detail-links{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin:0 0 12px;
}
.sds-body .model-detail-links a{
 display:inline-flex;
 align-items:center;
 min-height:32px;
 padding:0 12px;
 border:1px solid var(--sheet-line-strong);
 border-radius:999px;
 background:var(--sheet-surface);
 color:var(--sheet-ink);
 font-size:12px;
 font-weight:530;
 text-decoration:none;
 transition:background .16s ease,border-color .16s ease;
}
.sds-body .model-detail-links a:hover{
 background:var(--sheet-surface-hover);
 border-color:rgba(255,255,255,.3);
}
.sds-body .model-detail-fields{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px;
 margin:14px 0;
}
.sds-body .model-detail-fields>div{
 padding:10px 12px;
 border:1px solid var(--sheet-line);
 border-radius:12px;
 background:var(--sheet-surface);
 min-width:0;
}
.sds-body .model-detail-fields dt{
 font-size:11px;
 color:var(--sheet-muted);
 margin:0 0 4px;
}
.sds-body .model-detail-fields dd{
 margin:0;
 font-size:12.5px;
 font-weight:540;
 color:var(--sheet-ink);
 font-variant-numeric:tabular-nums;
 overflow-wrap:anywhere;
}
.sds-body .model-use-grid,
.sds-body .model-detail-channel-list{
 display:grid;
 gap:8px;
 margin:8px 0 12px;
}
.sds-body .model-channel{
 padding:12px 14px;
 border:1px solid var(--sheet-line);
 border-radius:13px;
 background:var(--sheet-surface);
}
.sds-body .model-channel summary{
 cursor:pointer;
 font-weight:560;
 color:var(--sheet-ink);
 font-size:13px;
}
.sds-body .model-channel strong{
 display:block;
 font-size:13px;
 color:var(--sheet-ink);
 margin-bottom:4px;
}
.sds-body .model-channel p{
 margin:4px 0 8px;
 font-size:12px;
 color:var(--sheet-body);
 line-height:1.55;
}
.sds-body .model-use-scope{
 display:inline-block;
 margin-bottom:6px;
 padding:2px 8px;
 border-radius:999px;
 border:1px solid rgba(var(--sheet-accent-rgb)/.3);
 background:rgba(var(--sheet-accent-rgb)/.09);
 color:var(--sheet-ink);
 font-size:10.5px;
}
.sds-body .model-detail-code{
 font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
 font-size:11.5px;
 color:var(--sheet-body);
 background:rgba(0,0,0,.28);
 border:1px solid var(--sheet-line);
 border-radius:10px;
 padding:8px 10px;
 overflow-wrap:anywhere;
}
.sds-body .model-detail-table-wrap{
 overflow-x:auto;
 border:1px solid var(--sheet-line);
 border-radius:12px;
 background:var(--sheet-surface);
}
.sds-body .model-detail-table{
 width:100%;
 border-collapse:collapse;
 font-size:12px;
}
.sds-body .model-detail-table th,
.sds-body .model-detail-table td{
 padding:10px 12px;
 text-align:left;
 border-bottom:1px solid var(--sheet-line);
 font-variant-numeric:tabular-nums;
}
.sds-body .model-detail-table thead th{
 color:var(--sheet-muted);
 font-weight:560;
 font-size:11px;
}
.sds-body .model-detail-table tbody tr:last-child td{border-bottom:0}
.sds-body .model-detail-table small{
 display:block;
 color:var(--sheet-muted);
 font-size:11px;
 margin-top:2px;
}
.sds-body .model-hub-card,
.sds-body .model-use-developers{
 margin:12px 0;
 padding:12px 14px;
 border:1px solid var(--sheet-line);
 border-radius:13px;
 background:var(--sheet-surface);
}
.sds-body .model-hub-card summary,
.sds-body .model-use-developers summary{
 cursor:pointer;
 font-size:13px;
 font-weight:560;
 color:var(--sheet-ink);
}
.sds-body .model-hub-article{
 margin-top:12px;
 font-size:13px;
 line-height:1.7;
 color:var(--sheet-body);
 overflow-wrap:anywhere;
}
.sds-body .model-hub-article pre{
 overflow:auto;
 padding:12px;
 border-radius:10px;
 border:1px solid var(--sheet-line);
 background:rgba(0,0,0,.35);
 font-size:12px;
}
.sds-body .github-detail-owner{
 margin:0 0 8px;
 font-size:13.5px;
 color:var(--sheet-ink);
}
.sds-body .github-detail-owner span{
 color:var(--sheet-muted);
 font-size:12px;
 margin-left:6px;
}
.sds-note{
 margin:8px 0;
 font-size:12px;
 color:var(--sheet-muted);
 line-height:1.6;
}
.sds-note[hidden]{display:none}

/* Shimmer Loading Skeleton */
.sds-skeleton{
 display:grid;
 gap:14px;
 padding:4px 0;
}
.sds-skel-bar,
.sds-skel-block{
 border-radius:10px;
 background:linear-gradient(95deg,rgba(255,255,255,.04) 22%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.04) 78%);
 background-size:240% 100%;
 animation:library-shimmer 1.5s ease-in-out infinite;
}
.sds-skel-bar{height:14px;width:82%}
.sds-skel-bar.is-short{width:54%}
.sds-skel-row{display:flex;gap:8px}
.sds-skel-pill{height:34px;width:136px;border-radius:999px}
.sds-skel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sds-skel-block{height:68px;border-radius:13px}

/* Error State */
.sds-error{
 display:grid;
 gap:12px;
 padding:20px;
 border:1px solid var(--sheet-line);
 border-radius:16px;
 background:var(--sheet-surface);
}
.sds-error p{
 margin:0;
 font-size:13.5px;
 color:var(--sheet-body);
 line-height:1.6;
}
.sds-error-actions{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
}

/* Mobile Bottom Sheet (<= 768px) */
@media(max-width:768px){
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet,
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[data-expanded="true"]{
  inset:auto 0 0 0;
  margin:0;
  width:100%;
  max-width:100%;
  height:90dvh;
  max-height:90dvh;
  border-radius:22px 22px 0 0;
  border-bottom:0;
  border-inline:0;
 }
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[open],
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[open][data-expanded="true"]{
  animation:aigog-sheet-bottom-in .3s cubic-bezier(.16,1,.3,1) both;
 }
 .sds-grab-handle{display:block}
 .sds-header{padding:10px 16px 12px}
 .sds-scroll{padding:14px 16px calc(24px + env(safe-area-inset-bottom))}
 .sds-expand-btn{display:none}
 .sds-download-controls,
 .sds-related-grid,
 .sds-body .model-detail-fields{
  grid-template-columns:1fr;
 }
}

@media(prefers-reduced-motion:reduce){
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet,
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet[open],
 html:root body dialog#aigog-detail-sheet.aigog-detail-sheet::backdrop{
  animation:none!important;
  transition:none!important;
 }
 .sds-skel-bar,.sds-skel-block{animation:none!important}
}

/* AIGOG v3.2 · Liquid Glass Legibility Guard inside Spatial Detail Sheet */
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet :is(h1,h2,h3,h4,p,a,strong,b,span,small,dt,dd,th,td,li){
 text-shadow:0 1px 2px rgba(2,6,18,.38);
}
html:root body dialog#aigog-detail-sheet.aigog-detail-sheet :is(.sds-logo,.sds-logo *,.related-icon,.related-icon *){
 text-shadow:none;
}
