/* Navigation and collection primitives shared by every suite shell. */
:root { --sm-list-gutter:16px; --sm-list-heading-bg:var(--rail); --sm-list-rule:var(--line); --sm-card-inset:20px; }
@media(max-width:600px) { :root { --sm-list-gutter:12px; } }
@media(max-width:700px) { :root { --sm-card-inset:14px; } }
.collection-modes {display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0 0 16px;padding:0}
.collection-modes .filter {min-height:36px;border:0;border-radius:6px;background:transparent;color:var(--muted)}
.collection-modes .filter[aria-pressed=true] {background:var(--soft);color:var(--accent)}
/* Section navigation belongs below the title, before the working filters and records. */
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav {display:flex;align-items:center;flex-wrap:nowrap;gap:24px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;border:0;border-block-end:1px solid var(--line);border-radius:0;padding:0;margin:0 0 24px}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav>:is(a.tab,button.tab,a,button) {display:inline-flex;flex:none;align-items:center;min-height:44px;padding:10px 0!important;border:0;border-block-end:2px solid transparent;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted);text-decoration:none;font-size:13px;font-weight:450;white-space:nowrap}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav>:is(a.active,a[aria-current=page],button.active,button[aria-pressed=true]) {border-block-end-color:var(--accent);background:transparent!important;color:var(--ink)}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav>:is(a.tab,button.tab,a,button):hover {color:var(--ink)}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav+:is(.collection-frame,.test-results-panel,.section) {margin-block-start:0}
@container (max-width:40rem) {:is(.main,.suite-main,.suite-drawer,dialog) .section-nav {gap:20px;margin-block-end:20px}}
/* A strip wider than its column scrolls without a scrollbar; kit-navigation.js marks the edges that
   hide tabs (data-kit-overflow) and the cut edge fades (CS-33, CS-X2). */
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav::-webkit-scrollbar {display:none}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav[data-kit-overflow~=end] {-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav[data-kit-overflow~=start] {-webkit-mask-image:linear-gradient(to right,transparent,#000 32px);mask-image:linear-gradient(to right,transparent,#000 32px)}
:is(.main,.suite-main,.suite-drawer,dialog) .section-nav[data-kit-overflow~=start][data-kit-overflow~=end] {-webkit-mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent)}
/* AC-06: a drawer's tabs stay on one row on a phone; they share the width instead of wrapping one
   tab onto a row of its own, where its underline read as a divider. */
@media(max-width:600px) {.suite-dialog.suite-drawer .suite-tabs{flex-wrap:nowrap;gap:12px}.suite-dialog.suite-drawer .suite-tabs>button{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}


/* Column geometry belongs to the record type. Paint and inset belong to the kit. */
.sm-list-heading { color:var(--muted);background:var(--sm-list-heading-bg);font-size:12px;font-weight:400;
 line-height:1.5;border-block-end:1px solid var(--sm-list-rule); }
.sm-collection-body .sm-list-heading{background:var(--collection-head)}
/* A div-grid caption owns its paint; a table's cells own desktop sticking.
   Sticking the table group and its cells together can expose scrolled rows at
   the top edge. Product card layouts may instead stick one group and reset
   their cells to static, preserving the same single-owner contract. */
.sm-collection-body .sm-list-heading:not(thead):not(tr){position:sticky;top:0;z-index:2;isolation:isolate;box-shadow:0 -1px 0 1px var(--collection-head)}
.sm-collection-body .sm-list-heading>th{background:var(--collection-head)}
/* The shared structural owner. Product tables/boards/logs keep their semantics. */
/* One card inset (visual pass cause 1): the toolbar, count line, cells, footer and anything placed
   straight in the body share it. --collection-inset is the older name some product rules still read. */
.sm-collection{--sm-collection-inset:var(--sm-card-inset);--collection-inset:var(--sm-collection-inset);--collection-surface:var(--bg,#fff);--collection-head:var(--wash,var(--bg,#fff));min-width:0;max-width:100%;border:1px solid var(--line);border-radius:10px;background:var(--collection-surface);overflow:hidden}
.sm-collection-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;padding:16px var(--sm-collection-inset);min-width:0;background:var(--collection-surface)}
.sm-collection-toolbar>form,.sm-collection-toolbar>.collection-toolbar{width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent}
.sm-collection-summary{padding:0 var(--sm-collection-inset) 12px;color:var(--muted);font-size:var(--text-sm,13px);background:var(--collection-surface)}
/* Cause 2: an inner scroll pane is opt-in (scroll=true). It never captures the wheel at its ends
   (no overscroll containment), so the page keeps scrolling. A flowing body may still scroll a wide
   table sideways. */
.sm-collection-body{min-width:0;max-height:min(68dvh,780px);overflow:auto;scrollbar-gutter:stable;isolation:isolate;scroll-padding-block:52px 16px}
.sm-collection-body--flow{max-height:none;overflow:visible;overflow-x:auto;scrollbar-gutter:auto}
:is(.sm-collection-body>table,.sm-collection-body table.sm-collection-table){width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;margin:0}
:is(.sm-collection-body>table,.sm-collection-body table.sm-collection-table)>thead>tr>th{position:sticky;top:0;z-index:2;background:var(--collection-head);isolation:isolate;box-shadow:0 -1px 0 1px var(--collection-head);border-block-end:1px solid var(--line);text-align:start;font-weight:500;color:var(--muted);padding:12px var(--sm-collection-inset);white-space:nowrap}
:is(.sm-collection-body>table,.sm-collection-body table.sm-collection-table)>tbody>tr>td{padding:16px var(--sm-collection-inset);vertical-align:top;border-block-end:1px solid var(--line)}
:is(.sm-collection-body>table,.sm-collection-body table.sm-collection-table)>tbody>tr:last-child>td{border-block-end:0}
/* Cause 4: the shrink-to-fit Actions column is a table rule; on div-grid rows width:1% squeezed the
   buttons to a few pixels. The Actions caption aligns with its buttons. */
.sm-collection-body :is(.sm-collection-actions,[data-column=actions]){text-align:end}
.sm-collection-body :is(td,th):is(.sm-collection-actions,[data-column=actions]){width:1%;white-space:nowrap}
:is(.sm-collection-body>table,.sm-collection-body table.sm-collection-table)>thead>tr>th:is(.sm-collection-actions,[data-column=actions]){text-align:end}
.sm-collection-body .record-title,.sm-collection-body .record-summary{overflow-wrap:anywhere}
.sm-collection-body .record-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:70ch}
.sm-collection-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px var(--sm-collection-inset);border-block-start:1px solid var(--line);background:var(--collection-surface)}
.sm-collection-footer :is(p,nav){margin:0}
@media(max-width:700px){.sm-collection-toolbar{padding:14px var(--sm-collection-inset);gap:12px}.sm-collection-body:not(.sm-collection-body--flow){max-height:64dvh}:is(.sm-collection-body>table,.sm-collection-body table.sm-collection-table) :is(th,td){padding:12px var(--sm-collection-inset)}.sm-collection-footer{padding:12px var(--sm-collection-inset)}.sm-collection-toolbar>form{flex-wrap:wrap}}
/* Suite panels take the same card inset as collections (AC-38). */
.suite-main .suite-panel{padding:var(--sm-card-inset)}
