/* Director section layers (W-A3 M2; on by default since W-A3b, ?bake=nolayers turns it off). Kit controls keep their
   kit paint; this places them. Sized for the folder-tab palette: every row fits a 220 px card with 44 px targets. */
#layerPalette[data-gn-layers-bake] > .layer-palette-row { display: none; }
#layerPalette[data-gn-layers-bake] { width: 100%; }
.gn-layers-body { display: grid; gap: 8px; min-width: 0; }
/* The label sits over the picker, so "All sections (director view)" is never cut off in the narrow palette. */
.gn-layers-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.gn-layers-pick select { min-height: 44px; min-width: 0; width: 100%; font: 600 14px/1.2 Inter, system-ui, sans-serif; border-radius: 10px; padding: 0 8px; }
.gn-layers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; }
.gn-layers-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 64px; align-items: center; gap: 4px; min-height: 48px; padding: 2px; border-radius: 10px; }
.gn-layers-row.active { background: rgba(255, 205, 95, .22); }
.gn-layers-write { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
/* The visible ring stays small; the whole 44 px cell takes the tap. */
.gn-layers-write span { width: 14px; height: 14px; border-radius: 50%; outline: 1.5px solid rgba(96, 76, 46, .45); outline-offset: 6px; }
.gn-layers-write[aria-pressed="true"] span { background: #B8912F; }
.gn-layers-write:disabled { opacity: .35; }
.gn-layers-name { display: grid; min-width: 0; line-height: 1.15; }
/* A long section name ("Second Tenors") wraps to a second line in the narrow palette instead of losing its end. */
.gn-layers-name strong { font: 650 14px/1.2 Inter, system-ui, sans-serif; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gn-layers-name small { font: 500 11.5px/1.2 Inter, system-ui, sans-serif; color: #6B5E4B; }
.gn-layers-eye { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; }
.gn-layers-eye svg { width: 20px; height: 20px; }
.gn-layers-eye[aria-pressed="false"] { opacity: .6; }
.gn-layers-clear { min-height: 44px; width: 100%; padding: 0 6px; }
.gn-layers-remove { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; justify-self: center; }
.gn-layers-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.gn-layers-add input { min-height: 44px; min-width: 0; border-radius: 10px; padding: 0 10px; font: 500 14px/1.2 Inter, system-ui, sans-serif; border: 1px solid rgba(96, 76, 46, .25); background: rgba(255, 255, 255, .7); }
.gn-layers-suggest { display: flex; flex-wrap: wrap; gap: 4px; }
.gn-layers-suggest button { min-height: 44px; padding: 0 8px; font-size: 12.5px; }
.gn-layers-hint { margin: 0; }
.gn-layers-add button { min-height: 44px; }
