/* Main discovery surface: restrained chrome and image-led editorial rhythm. */
.ams4 .s-dashboard{position:relative;--s-home-menu-line:#303030}
.ams4 .s-dashboard>.s-home-menu-toggle{position:absolute;left:calc(var(--s-sidebar-width,238px) - 14px);top:14px;z-index:40;width:32px;height:32px;min-height:32px;padding:6px;display:grid;place-items:center;border:0;border-radius:0;background:transparent;color:#dcdcdc;cursor:pointer;box-shadow:none;touch-action:manipulation}
.ams4 .s-dashboard>.s-home-menu-toggle:hover{background:transparent;color:#dcdcdc}
.ams4 .s-dashboard>.s-home-menu-toggle:focus-visible{outline:2px solid #ccc;outline-offset:3px}
.ams4 .s-home-menu-toggle svg{width:20px;height:20px;display:block}
.ams4 .s-dashboard>.s-home-menu-toggle{top:28px;height:32px;min-height:32px;padding:0;align-items:start}
.ams4 .s-dashboard.s-home-menu-collapsed{grid-template-columns:minmax(0,1fr)}
.ams4 .s-dashboard.s-home-menu-collapsed>.s-home-nav{display:none!important}
.ams4 .s-dashboard.s-home-menu-collapsed>.s-home-menu-toggle{left:14px}
.ams4 .s-dashboard.s-home-menu-collapsed>.s-home-content{padding-left:56px}
@media(max-width:700px){
 .ams4 .s-dashboard>.s-home-menu-toggle{display:none}
}
.ams4 .s-home-overview{--s-home-gap:12px;--s-home-action-height:98px;--s-home-action-width:calc((100% - 48px)/5)}
.ams4 .s-home-overview .s-home-content{padding:28px clamp(22px,3vw,48px) 30px;background:radial-gradient(ellipse at 75% 0,#20202055,transparent 42%),#111}
.ams4 .s-home-overview .s-method-overview{margin:0 0 30px}
.ams4 .s-home-overview .s-method-overview-grid{gap:var(--s-home-gap);grid-template-columns:repeat(5,minmax(0,1fr))}
.ams4 .s-home-overview .s-method-entry{height:var(--s-home-action-height);min-height:var(--s-home-action-height);border-radius:10px;padding:14px;background:#1b1b1b;border-color:#343434;transition:background .18s,border-color .18s}
.ams4 .s-home-overview .s-method-entry:hover{background:#252525;border-color:#686868}
.ams4 .s-home-overview .s-method-entry>span:first-child{background:#2b2b2b;border-radius:8px}
.ams4 .s-home-overview .s-method-entry strong{color:#f1f1f1;font-size:13px;font-weight:600}
.ams4 .s-home-overview .s-method-entry small{color:#d0d0d0;font-size:10px}
.ams4 .s-home-overview .s-method-entry.s-home-new{background:var(--s-accent);color:var(--s-accent-ink);border-color:transparent}
.ams4 .s-home-overview .s-method-entry.s-home-new strong,.ams4 .s-home-overview .s-method-entry.s-home-new small{color:inherit}
.ams4 .s-home-overview .s-method-entry.s-home-new:hover{background:color-mix(in srgb,var(--s-accent) 90%,black);color:var(--am-accent-hover-ink,var(--s-accent-ink))}
.ams4 .s-home-overview .s-support-overview,.ams4 .s-home-overview .s-template-gallery,.ams4 .s-home-overview .s-home-models{margin:0 0 32px;padding:0;border:0;background:transparent;border-radius:0;min-width:0}
.ams4 .s-home-overview .s-editorial-heading,.ams4 .s-home-overview .s-template-heading,.ams4 .s-home-overview .s-discover-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}
.ams4 .s-home-overview .s-support-heading h2,.ams4 .s-home-overview .s-template-heading h2,.ams4 .s-home-overview .s-discover-heading h2,.ams4 .s-home-overview .s-shared-heading h2{font-size:18px;line-height:1.5;letter-spacing:-.5px;font-weight:600;color:#f5f5f5;margin:0}
.ams4 .s-home-overview .s-support-heading p,.ams4 .s-home-overview .s-discover-heading p,.ams4 .s-home-overview .s-shared-heading p{margin:4px 0 0;font-size:11px;line-height:1.8;color:#c9c9c9}
.ams4 .s-home-overview .s-quiet-link{font-size:11px;color:#e5e5e5;min-height:30px;flex:none}
.ams4 .s-home-overview .s-quiet-link:hover{color:#fff}
.ams4 .s-bento-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 16px}
.ams4 .s-bento-tabs button{font:inherit;font-size:12px;line-height:1.5;padding:8px 13px;min-height:34px;border:0;border-radius:6px;background:transparent;color:#cdcdcd;white-space:nowrap;cursor:pointer}
.ams4 .s-bento-tabs button:hover{background:#242424;color:#f6f6f6}
.ams4 .s-bento-tabs button[aria-selected=true]{background:#303030;color:#f0f0f0}
.ams4 .s-bento-tabs button:focus-visible{outline:2px solid #b6b6b6;outline-offset:2px}
.ams4 .s-bento-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr;grid-template-rows:145px 145px;gap:12px;min-width:0}
.ams4 .s-bento-grid.s-bento-short{grid-template-rows:145px 145px}
.ams4 .s-bento-grid.s-bento-uniform{grid-template-columns:1.6fr repeat(4,minmax(0,1fr))}
.ams4 .s-tool-studio{container-type:inline-size}
.ams4 .s-bento-grid>.s-support-empty{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center}
.ams4 .s-bento-tile{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #ffffff12;border-radius:12px;background:#242424;padding:0;color:#fff;text-align:left;cursor:pointer;isolation:isolate}
.ams4 .s-bento-feature{grid-row:span 2}
.ams4 .s-bento-visual{display:block;width:100%;height:100%;overflow:hidden;background:radial-gradient(ellipse at 85% 10%,#414141,transparent 85%),#252525}
.ams4 .s-bento-visual img,.ams4 .s-bento-visual video{display:block;width:100%;height:100%;object-fit:cover;transition:transform .24s}
.ams4 .s-bento-sheet .s-bento-visual img{object-fit:contain;background:#bcbcbc}
.ams4 .s-bento-tile:hover .s-bento-visual img{transform:scale(1.025)}
.ams4 .s-bento-tile:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#0005,transparent 35%,#000c)}
.ams4 .s-bento-tile:focus-visible{outline:2px solid #dedede;outline-offset:3px}
.ams4 .s-bento-category{position:absolute;z-index:2;left:12px;top:10px;font-size:10px;line-height:1.5;color:#f0f0f0;text-shadow:0 1px 5px #0008}
.ams4 .s-bento-caption{position:absolute;left:12px;right:12px;bottom:12px;z-index:2;display:flex;flex-direction:column;gap:3px;min-width:0}
.ams4 .s-bento-caption strong{font-size:13px;line-height:1.5;font-weight:600;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ams4 .s-bento-feature .s-bento-caption{left:17px;right:17px;bottom:17px}
.ams4 .s-bento-feature .s-bento-caption strong{font-size:20px;letter-spacing:-.5px;white-space:normal}
.ams4 .s-bento-caption small{font-size:10px;line-height:1.6;color:#e8e8e8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ams4 .s-bento-play{position:absolute;right:10px;top:9px;width:25px;height:25px;display:grid;place-items:center;z-index:2;border-radius:50%;background:#15151577;color:#fff}
.ams4 .s-bento-play svg{width:14px;height:14px}
.ams4 .s-bento-visual .s-support-symbol{display:grid;place-items:center;height:100%;color:#d4d4d4}
.ams4 .s-bento-visual .s-support-symbol svg{width:34px;height:34px}
.ams4 .s-bento-visual .s-preview-loading{z-index:0;color:#dadada;background:linear-gradient(135deg,#303030,#242424);padding:36px 12px;font-size:11px}
.ams4 .s-home-overview .s-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;overflow:visible;padding:0}
.ams4 .s-home-overview .s-template-card{border-radius:11px;border-color:#343434;background:#1b1b1b;min-width:0}
.ams4 .s-home-overview .s-template-card:hover{border-color:#787878;background:#242424}
.ams4 .s-home-overview .s-template-visual,.ams4 .s-home-overview .s-shared-card-cover{aspect-ratio:16/10}
.ams4 .s-home-overview .s-template-info,.ams4 .s-home-overview .s-shared-card-info{padding:13px;gap:6px}
.ams4 .s-home-overview .s-template-info strong{font-size:13px;font-weight:600;line-height:1.6}
.ams4 .s-home-overview .s-template-info small{font-size:10px;line-height:1.7;color:#c9c9c9}
.ams4 .s-home-overview .s-template-category{font-size:7px;letter-spacing:.5px;top:10px;left:10px}
.ams4 .s-home-overview .s-home-model-grid{gap:var(--s-home-gap);padding:2px 0 4px}
.ams4 .s-home-overview .s-home-model-card{flex-basis:var(--s-home-action-width);height:var(--s-home-action-height);min-height:var(--s-home-action-height);background:#1b1b1b;border-color:#343434;border-radius:10px;padding:12px;gap:10px}
.ams4 .s-home-overview .s-home-model-card:hover{border-color:#5d5d5d;background:#212121}
.ams4 .s-home-overview .s-home-model-head{gap:6px}
.ams4 .s-home-overview .s-home-model-name strong{font-size:11px}
.ams4 .s-home-overview .s-home-model-add{border-color:#454545;background:#282828;color:#ececec;border-radius:5px;min-height:27px;padding:4px 5px;font-size:9px}
.ams4 .s-home-overview .s-home-model-add:hover:not(:disabled){border-color:#888;background:#383838;color:#fff}
.ams4 .s-home-overview .s-carousel-controls button{width:28px;height:28px;font-size:14px;background:#1c1c1c;border-color:#373737}
.ams4 .s-home-overview .s-home-content .ams-shared-sections{margin:0 0 6px;padding:0;border:0}
.ams4 .s-home-overview .s-shared-tabs{margin:13px 0 16px;gap:4px}
.ams4 .s-home-overview .s-shared-tabs button{padding:8px 12px;font-size:12px;border-radius:6px}
.ams4 .s-home-overview .s-home-content .ams-shared-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ams4 .s-home-overview .s-home-content .ams-shared-card{border-color:#343434;border-radius:11px;background:#1b1b1b}
.ams4 .s-home-overview .s-home-content .ams-shared-card:hover{border-color:#787878;background:#242424}
.ams4 .s-home-overview .s-home-footer{font-size:10px;color:#b5b5b5;margin-top:22px;gap:12px;flex-wrap:wrap}
@media(max-width:1100px){
 .ams4 .s-home-overview{--s-home-gap:9px;--s-home-action-height:89px;--s-home-action-width:calc((100% - 36px)/5)}
 .ams4 .s-home-overview .s-method-entry{padding:11px}.ams4 .s-home-overview .s-method-entry strong{font-size:11px}.ams4 .s-home-overview .s-method-entry small{font-size:9px}
 .ams4 .s-bento-grid,.ams4 .s-bento-grid.s-bento-short{grid-template-rows:135px 135px;gap:10px}.ams4 .s-bento-feature .s-bento-caption strong{font-size:17px}
 .ams4 .s-home-overview .s-template-grid,.ams4 .s-home-overview .s-home-content .ams-shared-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ams4 .s-home-overview .s-home-model-card{padding:10px 8px;gap:8px}.ams4 .s-home-overview .s-home-model-add>span{display:none}.ams4 .s-home-overview .s-home-model-add{width:27px;padding:4px;flex:none}
}
@media(max-width:700px){
 .ams4 .s-home-overview{--s-home-action-height:79px;--s-home-action-width:calc((100% - 18px)/3)}
 .ams4 .s-home-overview .s-home-content{padding:22px 16px 24px}.ams4 .s-home-overview .s-method-overview{margin-bottom:25px}.ams4 .s-home-overview .s-method-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ams4 .s-home-overview .s-method-entry{padding:10px}.ams4 .s-home-overview .s-method-entry small{font-size:9px}
 .ams4 .s-home-overview .s-support-overview,.ams4 .s-home-overview .s-template-gallery,.ams4 .s-home-overview .s-home-models{margin-bottom:27px}
 .ams4 .s-home-overview .s-editorial-heading,.ams4 .s-home-overview .s-template-heading,.ams4 .s-home-overview .s-discover-heading{gap:12px;flex-wrap:wrap;margin-bottom:13px}
 .ams4 .s-home-overview .s-editorial-heading>div{flex:1;min-width:0}.ams4 .s-home-overview .s-support-heading h2,.ams4 .s-home-overview .s-template-heading h2,.ams4 .s-home-overview .s-discover-heading h2,.ams4 .s-home-overview .s-shared-heading h2{font-size:17px}
 .ams4 .s-home-overview .s-support-heading p,.ams4 .s-home-overview .s-discover-heading p,.ams4 .s-home-overview .s-shared-heading p{font-size:10px}
 .ams4 .s-home-overview .s-quiet-link{font-size:10px;min-height:34px}.ams4 .s-bento-tabs{gap:3px;margin-bottom:13px}.ams4 .s-bento-tabs button{padding:8px 10px;min-height:38px;font-size:11px}
 .ams4 .s-bento-grid,.ams4 .s-bento-grid.s-bento-short{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:210px 135px 135px;gap:10px}
 .ams4 .s-bento-feature{grid-column:span 2;grid-row:span 1}.ams4 .s-bento-grid.s-bento-short{grid-auto-rows:135px;grid-template-rows:210px auto}
 .ams4 .s-bento-feature .s-bento-caption{left:14px;right:14px;bottom:14px}.ams4 .s-bento-feature .s-bento-caption strong{font-size:18px}.ams4 .s-bento-caption strong{font-size:12px}.ams4 .s-bento-caption small{font-size:10px}
 .ams4 .s-home-overview .s-template-grid,.ams4 .s-home-overview .s-home-content .ams-shared-grid{gap:12px}.ams4 .s-home-overview .s-template-info,.ams4 .s-home-overview .s-shared-card-info{padding:11px;gap:5px}
 .ams4 .s-home-overview .s-template-info strong{font-size:12px}.ams4 .s-home-overview .s-template-info small{font-size:9px}.ams4 .s-home-overview .s-template-category{font-size:6px;top:8px;left:8px}
 .ams4 .s-home-overview .s-home-model-card{padding:10px 8px;gap:7px}.ams4 .s-home-overview .s-home-model-meta{font-size:9px}
 .ams4 .s-home-overview .s-discover-heading>div:first-child{flex:1;flex-basis:auto}.ams4 .s-home-overview .s-discover-heading>.s-quiet-link{margin-left:auto}.ams4 .s-home-overview .s-discover-heading .s-carousel-controls{margin-left:0}
}
@media(prefers-reduced-motion:reduce){.ams4 .s-bento-visual img,.ams4 .s-home-overview .s-method-entry{transition:none}.ams4 .s-bento-tile:hover .s-bento-visual img{transform:none}}
/* Medium tablets keep the featured composition readable beside the sidebar. */
@media(min-width:701px) and (max-width:900px){
 .ams4 .s-home-overview{--s-home-action-width:calc((100% - 18px)/3)}
 .ams4 .s-home-overview .s-method-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ams4 .s-bento-grid,.ams4 .s-bento-grid.s-bento-short{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:220px 135px 135px}
 .ams4 .s-bento-feature{grid-column:span 2;grid-row:span 1}
}
@media(max-width:900px){
 .ams4 .s-bento-grid.s-bento-uniform{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:auto}
 .ams4 .s-bento-grid.s-bento-uniform .s-bento-feature{grid-column:span 2;grid-row:span 1;aspect-ratio:16/9}
}
.ams4 .s-bento-uniform .s-bento-tile{aspect-ratio:16/9}
.ams4 .s-bento-uniform .s-bento-visual{position:absolute;inset:0}
@media(min-width:901px){
 /* The large card spans two 16:9 rows and their gap; include that gap in its width. */
 .ams4 .s-bento-grid.s-bento-uniform{--s-bento-gap:12px;--s-bento-small-width:calc((100cqw - 52 / 9 * var(--s-bento-gap)) / 6);grid-template-columns:calc(2 * var(--s-bento-small-width) + 16 / 9 * var(--s-bento-gap)) repeat(4,minmax(0,1fr));height:calc(var(--s-bento-small-width) * 9 / 8 + var(--s-bento-gap));grid-template-rows:repeat(2,minmax(0,1fr))}
 .ams4 .s-bento-uniform .s-bento-tile:not(.s-bento-feature) .s-bento-caption{left:10px;right:10px;bottom:9px}
 .ams4 .s-bento-uniform .s-bento-tile:not(.s-bento-feature) .s-bento-caption small{display:none}
 .ams4 .s-bento-uniform .s-bento-tile:not(.s-bento-feature) .s-bento-caption strong{font-size:11px}
 .ams4 .s-bento-uniform .s-bento-tile:not(.s-bento-feature) .s-bento-category{top:8px;left:10px;font-size:9px}
 .ams4 .s-bento-uniform .s-bento-tile:not(.s-bento-feature) .s-bento-play{top:6px;right:6px;width:22px;height:22px}
}
@media(min-width:901px) and (max-width:1100px){.ams4 .s-bento-grid.s-bento-uniform{--s-bento-gap:10px}}
/* A mirrored gallery: four starting points on the left, a public canvas on the right. */
.ams4 .s-home-overview .s-community-showcase{container-type:inline-size;margin:0 0 24px;min-width:0}
.ams4 .s-community-showcase h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.5px;color:#f5f5f5}
.ams4 .s-community-bar{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:14px;margin-bottom:16px}
.ams4 .s-community-bar .s-bento-tabs{margin:0}
.ams4 .s-community-public-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-left:8px;color:#e5e5e5;font-size:12px}
.ams4 .s-community-body{--s-community-gap:14px;--s-community-small:calc((100cqw - 3.6 * var(--s-community-gap)) / 4);display:grid;grid-template-columns:calc(2 * var(--s-community-small) + var(--s-community-gap)) calc(2 * var(--s-community-small) + 1.6 * var(--s-community-gap));gap:var(--s-community-gap);align-items:start}
.ams4 .s-community-left{min-width:0}
.ams4 .s-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.ams4 .s-community-showcase .s-template-card,.ams4 .s-home-content .s-community-showcase .ams-shared-card{position:relative;width:100%;aspect-ratio:16/10;border:1px solid #383838;border-radius:11px;overflow:hidden;padding:0;background:#242424;min-width:0;display:block;transform:none;text-align:left;color:#fff;text-decoration:none}
.ams4 .s-community-showcase .s-template-card:hover,.ams4 .s-home-content .s-community-showcase .ams-shared-card:hover{border-color:#888}
.ams4 .s-community-showcase .s-template-visual,.ams4 .s-community-showcase .s-shared-card-cover{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
.ams4 .s-community-showcase .s-template-visual img,.ams4 .s-community-showcase .s-shared-card-cover img{width:100%;height:100%;max-height:none;object-fit:cover}
.ams4 .s-community-showcase .s-template-info,.ams4 .s-community-showcase .s-shared-card-info{position:absolute;inset:auto 0 0;padding:32px 12px 12px;background:linear-gradient(transparent,#111d);color:#fff;gap:4px;z-index:1}
.ams4 .s-community-showcase .s-template-info strong,.ams4 .s-community-showcase .s-shared-card-info strong{font-size:13px;line-height:1.5;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ams4 .s-community-showcase .s-template-info small,.ams4 .s-community-showcase .s-shared-card-info small{font-size:10px;color:#ececec}
.ams4 .s-community-showcase .s-shared-card-project{display:none}
.ams4 .s-community-showcase .s-template-arrow{top:9px;bottom:auto;right:9px}
.ams4 .s-community-feature{position:relative;min-width:0;aspect-ratio:16/10;background:#202020;border-radius:11px}
.ams4 .s-home-content .s-community-feature .ams-shared-card{height:100%}
.ams4 .s-community-feature .s-shared-card-info{padding:50px 22px 22px}
.ams4 .s-community-feature .s-shared-card-info strong{font-size:21px;white-space:normal}
.ams4 .s-community-feature .s-shared-card-info small{font-size:11px}
.ams4 .s-community-empty{grid-column:1/-1;align-self:center;margin:auto;padding:28px 18px;color:#dadada;text-align:center;font-size:12px;line-height:1.8}
.ams4 .s-community-feature>.s-community-empty{position:absolute;inset:0;display:grid;place-items:center}
.ams4 .s-community-pages{display:flex;align-items:center;justify-content:flex-end;gap:10px;color:#c9c9c9;font-size:10px;margin-top:10px}
.ams4 .s-community-pages button{width:28px;height:28px;border:1px solid #414141;border-radius:50%;background:#222;color:#ececec;cursor:pointer}
.ams4 .s-community-pages button:disabled{opacity:.3;cursor:default}
.ams4 .s-community-public-heading .s-community-pages{margin:0}
@media(max-width:900px){
 .ams4 .s-community-body{grid-template-columns:minmax(0,1fr);gap:14px}
 .ams4 .s-community-feature{grid-row:1;aspect-ratio:16/10}
 .ams4 .s-community-grid{gap:12px}
 .ams4 .s-community-bar{grid-template-columns:minmax(0,1fr);gap:12px}
 .ams4 .s-community-public-heading{padding:0;font-size:11px}
 .ams4 .s-community-showcase h2{font-size:17px}
 .ams4 .s-community-showcase .s-template-info,.ams4 .s-community-showcase .s-shared-card-info{padding:28px 10px 10px}
 .ams4 .s-community-showcase .s-template-info strong,.ams4 .s-community-showcase .s-shared-card-info strong{font-size:12px}
 .ams4 .s-community-showcase .s-template-info small,.ams4 .s-community-showcase .s-shared-card-info small{font-size:9px}
 .ams4 .s-community-feature .s-shared-card-info{padding:40px 16px 16px}
 .ams4 .s-community-feature .s-shared-card-info strong{font-size:18px}
}

.ams4 .s-dashboard>.s-home-menu-toggle svg{margin-top:-3px}

@media(max-width:900px){.ams4 .s-home-overview .s-method-entry.s-home-new{grid-column:span 2}}

.ams4 .s-dashboard>.s-home-nav{border-color:var(--s-home-menu-line)}

.ams4 .s-home-nav>.s-home-search{margin-top:3px}
@media(min-width:701px){.ams4 .s-home-nav>.s-home-search{margin-top:8px}}

.ams4 .s-home-nav>.s-home-search{margin-bottom:9px}

/* Brighten navigation labels only; keep content typography unchanged. */
.ams4 .s-home-nav button:not(:disabled),.ams4 .s-sidebar-tabs button:not(:disabled){color:#ececec}
.ams4 .s-home-nav button.s-home-current,.ams4 .s-sidebar-tabs button[aria-selected=true]{color:#f6f6f6}
.ams4 .s-home-nav button>.s-home-target-icon{color:inherit}
.ams4 .s-dashboard>.s-home-menu-toggle,.ams4 .s-dashboard>.s-home-menu-toggle:hover{color:#ececec}

.ams4 .s-dashboard .s-home-content :is(h1,h2,h3){color:#f0f0f0}

.ams4 .s-home-overview .s-method-entry:not(.s-home-new) small,.ams4 .s-home-overview .s-home-model-meta{color:#dedede}
/* Uploaded brand assets retain their native proportions and colors. */
.ams4 .s-model-identity{display:flex;align-items:center;gap:8px;min-width:0}
.ams4 .s-home-model-symbol .s-model-logo,.ams4 .s-model-brand .s-model-logo{display:block;width:100%;height:100%;object-fit:contain;filter:none}
.ams4 .s-model-wordmark>.s-model-display-name{display:none}
.ams4 .s-home-model-name.s-model-wordmark{min-width:0;flex:1}
.ams4 .s-home-model-name.s-model-wordmark .s-home-model-symbol{display:flex;align-items:center;width:100%;height:24px;max-width:none;min-width:0;flex:1}
.ams4 .s-model-wordmark .s-home-model-symbol .s-model-logo{width:auto;height:auto;max-width:100%;max-height:22px}
.ams4 .s-model-identity.s-model-wordmark .s-model-brand{display:flex;align-items:center;width:auto;height:32px;max-width:240px;min-width:0;flex:1}
.ams4 .s-model-wordmark .s-model-brand .s-model-logo{width:auto;height:auto;max-width:100%;max-height:30px}

/* Reserve the whole first row for model names and uploaded wordmarks. */
.ams4 .s-home-overview .s-home-model-detail{display:flex;align-items:center;gap:6px;width:100%;min-width:0}
.ams4 .s-home-overview .s-home-model-detail .s-home-model-meta{flex:1;min-width:0;width:auto}
.ams4 .s-home-overview .s-home-model-detail .s-home-model-add{flex:none}
.ams4 .s-home-overview .s-home-model-head{width:100%;min-height:24px}
.ams4 .s-home-overview .s-home-model-head .s-home-model-name{width:100%;flex:1}
.ams4 .s-model-card .s-method-guide-head{width:100%}
.ams4 .s-model-card .s-model-identity{width:100%;white-space:nowrap;overflow:hidden}
.ams4 .s-model-card .s-model-display-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ams4 .s-model-detail-row{display:flex;align-items:center;gap:12px;min-width:0}
.ams4 .s-model-detail-row>p{flex:1;min-width:0}
.ams4 .s-model-detail-row>.s-method-add{flex:none;white-space:nowrap;font-size:11px;padding:7px 10px;border-radius:6px}
@media(max-width:700px){.ams4 .s-model-detail-row{gap:8px}.ams4 .s-model-detail-row>.s-method-add{min-height:36px;padding:7px 9px}}

/* Model introductions: category badges, full-width identity, one compact action row. */
.ams4 .s-model-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.ams4 .s-model-badge{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #454545;border-radius:5px;background:#292929;color:#ececec;font-size:10px;font-weight:600;line-height:1.5}
.ams4 .s-model-summary{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}
.ams4 .s-model-summary .s-model-use{font-size:12px;line-height:1.6}
.ams4 .s-model-summary .s-model-modes{margin:0;min-width:0;max-width:100%;display:inline-flex;align-items:center;gap:10px;font-size:11px;color:#dedede}
.ams4 .s-model-summary .s-model-modes:before{content:'';width:1px;height:12px;background:#515151;flex:none}
.ams4 .s-model-summary .s-model-modes select{width:auto;max-width:100%;font-size:11px;padding:5px 28px 5px 8px}
.ams4 .s-model-detail-row{margin-top:auto}
@media(max-width:700px){.ams4 .s-model-summary{gap:4px 8px}.ams4 .s-model-summary .s-model-modes{gap:8px}}

/* Semibold navigation labels use a matching medium icon stroke on both menus. */
.ams4 :is(.s-home-nav button,.s-home-nav .s-home-search,.s-sidebar-tabs,.s-sidebar .s-canvas-manager button,.s-sidebar .s-node-browser) svg{stroke-width:2}

/* Collapsed navigation retains an accessible icon rail rather than disappearing. */
.ams4{--s-navigation-rail:60px}
@media(min-width:701px){
 .ams4 .s-dashboard.s-home-menu-collapsed{grid-template-columns:var(--s-navigation-rail) minmax(0,1fr);gap:0}
 .ams4 .s-dashboard.s-home-menu-collapsed>.s-home-nav{display:flex!important;flex-direction:column;align-items:stretch;padding:15px 8px 8px;gap:3px;overflow-x:hidden;overflow-y:auto;min-width:0;border-right:1px solid var(--s-home-menu-line)}
 .ams4 .s-dashboard.s-home-menu-collapsed>.s-home-content{padding-left:36px}
 .ams4 .s-dashboard.s-home-menu-collapsed>.s-home-menu-toggle{left:calc(var(--s-navigation-rail) - 14px)}
 .ams4 .s-dashboard.s-home-menu-collapsed .s-home-nav>:not(button):not(.s-home-nav-section){display:none!important}
 .ams4 .s-dashboard.s-home-menu-collapsed .s-home-nav button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;padding:8px 0;margin:0;border-radius:7px;gap:0;font-size:0;flex:none}
 .ams4 .s-dashboard.s-home-menu-collapsed .s-home-nav button>svg:first-child{display:block;width:18px;height:18px;flex:none}
 .ams4 .s-dashboard.s-home-menu-collapsed .s-home-nav button>:not(svg:first-child){display:none!important}
 .ams4 .s-dashboard.s-home-menu-collapsed .s-home-nav .s-home-nav-section{font-size:0;line-height:0;height:1px;min-height:1px;padding:0;margin:7px 5px;border-top:1px solid #333}
 .ams4 .s-dashboard.s-home-menu-collapsed .s-home-nav button.ams-has-update::after{content:'';display:block;position:absolute;top:5px;right:6px;width:5px;height:5px;border-radius:50%;background:#dedede}
}
.ams4.s-editing.s-sidebar-collapsed .s-editor{grid-template-columns:var(--s-navigation-rail) minmax(0,1fr)}
.ams4.s-editing.s-sidebar-collapsed .s-sidebar{display:flex!important;flex-direction:column;min-width:0;padding:12px 8px;gap:0;overflow-x:hidden;overflow-y:auto}
.ams4.s-editing.s-sidebar-collapsed .s-sidebar>:not(.s-sidebar-tabs){display:none!important}
.ams4.s-editing.s-sidebar-collapsed .s-sidebar-tabs{display:grid;grid-template-columns:1fr;gap:5px;padding:0;background:transparent}
.ams4.s-editing.s-sidebar-collapsed .s-sidebar-tabs button{justify-content:center;min-height:40px;padding:10px 0;gap:0;font-size:0}
.ams4.s-editing.s-sidebar-collapsed .s-sidebar-tabs button>span{display:none}
.ams4.s-editing.s-sidebar-collapsed .s-sidebar-tabs svg{display:block;width:18px;height:18px;flex:none}
.ams4.s-editing.s-sidebar-collapsed .s-project-dock{left:calc(var(--s-navigation-rail) + 12px)}
.ams4.s-mobile{--s-navigation-rail:52px}
.ams4.s-mobile.s-editing.s-sidebar-collapsed .s-sidebar{width:var(--s-navigation-rail);padding:65px 4px 12px;box-shadow:none;overflow-y:auto;z-index:21}
.ams4.s-mobile.s-editing.s-sidebar-collapsed .s-sidebar-tabs button{min-height:44px;padding:11px 0}
.ams4.s-mobile.s-editing.s-sidebar-collapsed .s-workspace{margin-left:var(--s-navigation-rail);width:calc(100% - var(--s-navigation-rail))}
.ams4.s-mobile.s-editing.s-sidebar-collapsed .s-project-dock{left:max(6px,env(safe-area-inset-left))}

/* The manual's chapter navigation keeps compact chapter numbers usable. */
@media(min-width:901px){
 .ams4 .s-dashboard.s-manual-open.s-home-menu-collapsed .s-home-nav>.s-guide-toc{display:flex!important;flex-direction:column;gap:3px}
 .ams4 .s-dashboard.s-manual-open.s-home-menu-collapsed .s-guide-toc .s-guide-topic>small{display:block!important;margin:0;font-size:12px;font-weight:600}
 .ams4 .s-dashboard.s-manual-open.s-home-menu-collapsed .s-guide-toc .s-guide-return::before{content:'←';font-size:18px}
}
@media(max-width:900px){
 .ams4 .s-dashboard.s-manual-open.s-home-menu-collapsed{grid-template-columns:minmax(0,1fr)}
 .ams4 .s-dashboard.s-manual-open.s-home-menu-collapsed>.s-home-nav{display:none!important}
 .ams4 .s-dashboard.s-manual-open>.s-home-menu-toggle{display:none}
}
