/* Settings prototype layout: the page surface next to P0 and the Settings P1.
   P0, P1, the page header, table, form and banner are shared components. */

/* work area: one surface, 8px from the window edges (Figma: 1139 × 884 at 293, 8) */
.work{flex:1;min-width:0;display:flex;padding:var(--numerical-spacing-200) var(--numerical-spacing-200) var(--numerical-spacing-200) 0}
.surface{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--color-semantic-bg-surface-primary);border-radius:var(--numerical-border-radius-200);overflow:hidden}
.view{flex:1;min-height:0;display:flex;flex-direction:column}
.view[hidden]{display:none}
/* scroll fades on the list: 16px, from the page surface to transparent, as in tag-menu;
   data-more-up / data-more-down are set (settings.js) while there's more to scroll that way */
.list-scroll{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.list-scroll::before,.list-scroll::after{content:"";position:absolute;left:0;right:0;z-index:1;height:var(--numerical-spacing-400);pointer-events:none;opacity:0;transition:opacity 120ms ease-out}
.list-scroll::before{top:0;background:linear-gradient(to bottom,var(--color-semantic-bg-surface-primary),transparent)}
.list-scroll::after{bottom:0;background:linear-gradient(to top,var(--color-semantic-bg-surface-primary),transparent)}
.list-scroll[data-more-up]::before,.list-scroll[data-more-down]::after{opacity:1}
@media (prefers-reduced-motion:reduce){.list-scroll::before,.list-scroll::after{transition:none}}
/* Templates list: the table scrolls under the header, 32px from the sides and bottom */
.list-body{flex:1;min-height:0;overflow:auto;padding:0 var(--numerical-spacing-800) var(--numerical-spacing-800)}
/* the table box hugs its rows; the panel (.list-body) scrolls when they run past the bottom */
.list-body > template-table{display:block;flex:none}
.list-body > template-table[hidden]{display:none}
.list-body{display:flex;flex-direction:column}
.note{margin:0;color:var(--color-semantic-text-tertiary)}
.view > template-form{flex:1}

/* "Template created" banner: bottom left over P1 (Figma: global-banner at x 66, 12px from the bottom) */
.banner-slot{position:absolute;left:66px;bottom:var(--numerical-spacing-300);z-index:10}
.banner-slot:empty{display:none}

/* HTML demo (#/demo-…, settings.js sets html[data-demo]): the same card as the inbox demos (inbox.css):
   a flat light grey stage, the window at its top left with elevation-steve-hayes. Presentation
   only, not product UI, so the grey isn't a Global UI Kit token. */
html[data-demo] .stage::before{background:#f5f5f5;filter:none}
html[data-demo] .stage{justify-content:flex-start;align-items:flex-start}
html[data-demo] .stage .app{margin:0;box-shadow:var(--elevation-steve-hayes)}
