.setup-unified-workspace .setup-group-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.setup-unified-workspace .setup-group-tabs .setup-tab{padding:16px;min-height:88px;align-items:center;gap:12px}
.setup-group-tab-copy{flex:1;min-width:0}
.setup-group-tab-copy strong{display:block;font-size:15px;line-height:1.5}
.setup-group-tab-copy small{display:block;margin-top:5px;font-size:11px;line-height:1.7;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.setup-tab.active .setup-group-tab-copy small{color:inherit;opacity:.8}
.setup-service-context{display:flex;align-items:center;flex-wrap:wrap;gap:20px;justify-content:space-between;padding:18px 20px;border:1px solid var(--line);background:var(--surface);border-radius:14px;margin-bottom:22px}
.setup-service-context>div{display:flex;gap:12px;align-items:center;flex:1;min-width:220px}
.setup-service-context .icon-tile{flex-shrink:0;width:38px;height:38px}
.setup-service-context strong{font-size:14px;line-height:1.6}
.setup-service-context p{font-size:12px;line-height:1.8;margin:4px 0 0;color:var(--muted)}
.setup-service-context>label{display:grid;gap:6px;width:min(100%,340px);flex-shrink:0;font-size:11px;color:var(--muted)}
.setup-service-context select{min-width:0;min-height:44px;max-width:100%;color:var(--ink);font-size:13px}
.setup-service-context .setup-context-error{flex-basis:100%;border-inline-start:3px solid var(--gold);padding-inline-start:10px;color:var(--ink)}
.setup-unified-workspace .setup-section-heading{gap:12px;margin-bottom:16px}
.setup-unified-workspace .setup-section-heading h2{font-size:19px}
.setup-unified-workspace .setup-section-heading>div:nth-child(2){flex:1;min-width:0}
.setup-unified-workspace .setup-section-heading p{font-size:12px}
.setup-unified-library nav{display:block;max-height:65vh}
.setup-unified-library nav>section{padding-block:8px 12px;border-top:1px solid var(--line)}
.setup-unified-library nav>section:first-child{border-top:0;padding-top:0}
.setup-unified-library nav>section>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0 10px}
.setup-unified-library nav h4{font-size:12px;line-height:1.6;margin:0;color:var(--muted)}
.setup-unified-library nav>section>header>.btn{font-size:0;min-height:32px;width:32px;padding:6px;flex-shrink:0}
.setup-unified-library nav>section>header>.btn .icon{width:16px;height:16px}
.setup-unified-library .setup-map-library-item{margin-block:4px}
.setup-library-empty{color:var(--muted);font-size:11px;line-height:1.8;padding:8px 2px}
.setup-unified-main{display:grid;gap:24px;min-width:0}
.setup-primary-section,.setup-related-section{min-width:0}
.setup-primary-section>.setup-map-main{gap:20px}
.setup-related-section{padding-top:22px;border-top:1px solid var(--line);scroll-margin-top:20px}
.setup-related-section>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.setup-related-section>header>div:first-child{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.setup-related-section>header .icon-tile{flex-shrink:0;width:34px;height:34px}
.setup-related-section h3{font-size:17px;line-height:1.6}
.setup-related-section>header p{font-size:12px;line-height:1.7;color:var(--muted);margin:4px 0 0}
.setup-related-section .admin-actions{margin:0;flex-wrap:wrap;justify-content:end}
.setup-related-note{padding:12px 16px;margin:0 0 16px!important;font-size:12px;line-height:1.8;background:var(--tint);border-inline-start:3px solid var(--gold);border-radius:8px;color:var(--ink)}
.setup-related-section>div>div:empty{display:none}
.setup-related-section :where(.af-two,.af-three,.flow-editor-grid,.table-wrap,.panel){min-width:0}
.setup-unified-main .flow-editor-grid{grid-template-columns:minmax(0,1fr)}
.setup-unified-main .flow-editor-grid>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.setup-unified-main .approval-canvas{padding:22px 18px}
.setup-unified-main .approval-branches{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.setup-unified-main [hidden]{display:none!important}
.setup-unified-workspace :where(a,button,select,input):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@container workspace (max-width:1050px){.setup-unified-workspace .setup-group-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-unified-workspace .setup-group-tabs .setup-tab{padding:12px;gap:8px}.setup-group-tab-copy strong{font-size:13px}.setup-group-tab-copy small{font-size:10px}.setup-unified-workspace .setup-group-tabs .setup-tab>.icon{display:none}.setup-service-context>label{width:280px}.setup-unified-main .flow-editor-grid>aside{grid-template-columns:1fr}}
@container workspace (max-width:760px){.setup-unified-workspace .setup-group-tabs{grid-template-columns:1fr;gap:8px}.setup-unified-workspace .setup-group-tabs .setup-tab{min-height:64px}.setup-group-tab-copy small{margin-top:2px}.setup-service-context{padding:16px;gap:14px}.setup-service-context>label{width:100%}.setup-unified-library nav{max-height:190px}.setup-unified-library nav>section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.setup-unified-library nav>section>header,.setup-unified-library .setup-library-empty{grid-column:1/-1}.setup-related-section>header{flex-wrap:wrap}.setup-related-section>header .admin-actions{justify-content:start}.setup-unified-main .approval-toolbar{padding:16px;flex-wrap:wrap}}
@container workspace (max-width:480px){.setup-unified-library nav>section{grid-template-columns:1fr}.setup-unified-workspace .setup-section-heading>.admin-actions{width:100%;justify-content:start}.setup-service-context>div{min-width:0}.setup-service-context p{font-size:11px}.setup-related-section h3{font-size:15px}.setup-unified-main .approval-canvas{padding:18px 12px}.setup-unified-main .approval-group>header{flex-wrap:wrap}.setup-unified-main .approval-group-actions{justify-content:start}.setup-unified-main .approval-toolbar h3{font-size:17px}}
@media(pointer:coarse){.setup-unified-library nav>section>header>.btn{min-height:44px;width:44px}}
@media(prefers-reduced-motion:reduce){.setup-unified-workspace *{transition:none!important;animation:none!important}}
/* Card drilldown and a permanent, searchable configuration index. */
.setup-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;line-height:1.8;margin:0 0 18px;color:var(--muted)}
.setup-breadcrumbs a{color:var(--brand);text-decoration:none;padding-block:5px}
.setup-breadcrumbs strong{color:var(--ink);overflow-wrap:anywhere}
.setup-card-collection{min-width:0}
.setup-card-collection>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.setup-card-collection>header h3{font-size:18px;line-height:1.7}
.setup-card-collection>header p{font-size:12px;line-height:1.8;color:var(--muted);max-width:65ch;margin-top:5px}
.setup-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:16px}
.setup-drill-card{display:flex;flex-direction:column;gap:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:20px;min-width:0;text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.setup-drill-card:hover{border-color:var(--brand);box-shadow:0 5px 20px color-mix(in srgb,var(--brand) 8%,transparent)}
.setup-card-top,.setup-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.setup-drill-card h3{font-size:17px;line-height:1.6;overflow-wrap:anywhere}
.setup-drill-card p{font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.setup-card-bottom{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--brand);font-weight:600}
.setup-card-top .icon-tile{width:42px;height:42px;flex-shrink:0}
.setup-selected-element{min-width:0}
.setup-selected-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:18px}
.setup-selected-header h2{font-size:22px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.setup-selected-header .admin-actions{margin:0;flex-wrap:wrap}
.setup-type-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
.setup-type-shortcut{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;min-width:0}
.setup-type-shortcut strong{flex:1;font-size:13px;line-height:1.7}
.setup-type-shortcut>span:not(.icon-tile){font-size:12px;color:var(--muted)}
.setup-unified-library nav h4 a{color:var(--muted);text-decoration:none}
.setup-unified-library .setup-map-library-item{min-height:56px}
.setup-unified-library .setup-map-library-item small{font-size:10px}
.setup-unified-library .setup-map-library-item strong{font-size:12px}
.setup-unified-workspace .setup-unified-studio{grid-template-columns:260px minmax(0,1fr);gap:24px}
.setup-unified-main .setup-card-collection+.setup-card-collection{padding-top:20px;border-top:1px solid var(--line)}
@container workspace (max-width:900px){.setup-unified-workspace .setup-unified-studio{grid-template-columns:220px minmax(0,1fr);gap:16px}.setup-drill-card{padding:16px}}
@container workspace (max-width:760px){.setup-unified-workspace .setup-unified-studio{grid-template-columns:minmax(0,1fr)}.setup-unified-library{position:static}.setup-selected-header{padding:16px}.setup-selected-header h2{font-size:19px}.setup-breadcrumbs{gap:7px}}
@container workspace (max-width:480px){.setup-card-grid{grid-template-columns:minmax(0,1fr)}.setup-card-collection>header .admin-actions{width:100%;justify-content:start}.setup-type-shortcuts{grid-template-columns:minmax(0,1fr)}}
.setup-card-receivers{display:grid;gap:7px;margin-bottom:2px}
.setup-card-receivers>small{color:var(--muted);font-size:11px}
.setup-card-receivers>div{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;line-height:1.8}
.setup-map-search>button{display:grid;place-items:center;flex-shrink:0;background:transparent;border:0;color:var(--muted);min-width:32px;min-height:40px;cursor:pointer;border-radius:6px;padding:4px}
.setup-map-search>button:hover{color:var(--brand);background:var(--tint)}
@media(pointer:coarse){.setup-map-search>button{min-width:44px;min-height:44px}}

.incident-intake-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.incident-intake-fields [hidden]{display:none!important}
@media(max-width:600px){.incident-intake-fields{grid-template-columns:1fr}}


.org-chart-body{min-width:0}.org-chart-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-block-end:12px}.org-chart-search{display:flex;align-items:center;gap:10px;flex:1;min-width:180px;max-width:460px}.org-chart-search input{width:100%;min-width:0}.org-chart-viewport{overflow:auto;max-width:100%;padding:24px 12px;overscroll-behavior-inline:contain;border-radius:14px;background:var(--tint);scrollbar-gutter:stable}.org-chart-viewport:focus-visible{outline:2px solid var(--brand)}.org-tree,.org-tree ul{list-style:none;margin:0;padding:0;display:flex;align-items:flex-start;justify-content:center;gap:24px;width:max-content;min-width:100%}.org-tree li{display:flex;flex-direction:column;align-items:center;position:relative;flex:none}.org-tree ul{padding-block-start:30px;margin-block-start:24px;position:relative}.org-tree ul:before{content:'';position:absolute;inset-block-start:-24px;inset-inline-start:50%;height:24px;border-inline-start:2px solid var(--line)}.org-tree ul>li:before{content:'';position:absolute;inset-block-start:-30px;height:30px;border-inline-start:2px solid var(--line);inset-inline-start:50%}.org-tree ul>li:after{content:'';position:absolute;inset-block-start:-30px;border-block-start:2px solid var(--line);width:calc(100% + 24px);inset-inline-start:-12px}.org-tree ul>li:first-child:after{width:calc(50% + 12px);inset-inline-start:50%}.org-tree ul>li:last-child:after{width:calc(50% + 12px);inset-inline-start:-12px}.org-tree ul>li:only-child:after{display:none}.org-tree [hidden]{display:none!important}.org-node{display:flex;flex-direction:column;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;width:240px;max-width:240px;position:relative;box-shadow:0 4px 14px #153e2e06}.org-node-name{font-weight:700;text-align:center;overflow-wrap:anywhere;line-height:1.5;font-size:16px}.org-class{font-size:11px;color:var(--muted);padding:4px 10px;border-radius:20px;background:var(--tint)}.org-node-counts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;color:var(--muted);font-size:12px}.org-node-counts span{display:flex;align-items:center;gap:4px}.org-node-counts .icon{width:14px;height:14px}.org-node footer{display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid var(--line);width:100%;padding-block-start:12px}.org-node footer .btn{padding:8px 10px;font-size:12px}.org-root-target{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);margin-block:12px;font-size:12px}.org-drop-ready{outline:2px solid var(--brand);background:var(--tint)}.org-dragging{opacity:.55}[data-org-unit][draggable=true]{cursor:grab}.org-node:focus-within{outline:2px solid var(--brand)}
@media(max-width:600px){.org-chart-toolbar{gap:8px}.org-chart-search{max-width:none;flex-basis:100%}.org-node{width:210px;max-width:210px;padding:14px}.org-tree,.org-tree ul{gap:16px}.org-chart-viewport{padding-inline:8px}}

.org-node{transition:border-color .18s ease,box-shadow .18s ease}.org-node:hover{border-color:var(--brand);box-shadow:0 6px 16px #153e2e12}.org-node-main{border-block-start:3px solid #3d7fad}.org-node-sub{border-block-start:3px solid #2b8a76}.org-node-department{border-block-start:3px solid var(--gold)}@media(prefers-reduced-motion:reduce){.org-node{transition:none}}

/* A contained diagram surface; transforms never enlarge the page. */
.org-view-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-block:16px 12px}.org-view-controls output{font-size:12px;font-weight:700;min-width:48px;text-align:center;font-variant-numeric:tabular-nums}.org-view-controls .btn{min-height:36px;padding:8px 12px;font-size:12px}.org-view-controls .caption{margin:0;margin-inline-start:auto}.org-chart-viewport{height:clamp(320px,60vh,660px);padding:0;overflow:auto;cursor:grab;touch-action:none;overscroll-behavior:contain;scrollbar-gutter:auto}.org-chart-stage{position:relative;min-width:100%;min-height:100%}.org-chart-stage>.org-tree{position:absolute;top:16px;left:16px;min-width:0;transform-origin:top left;will-change:auto}.org-panning{cursor:grabbing;user-select:none}.org-node{width:196px;max-width:196px;padding:14px;gap:8px;border-radius:12px}.org-node .icon-tile{width:32px;height:32px}.org-node .icon-tile .icon{width:18px;height:18px}.org-node-name{font-size:14px}.org-node-counts{gap:8px;font-size:11px}.org-node footer{padding-block-start:8px;gap:4px}.org-node footer .btn{font-size:11px;padding:7px 8px}.org-tree,.org-tree ul{gap:20px}.org-tree ul>li:after{width:calc(100% + 20px);inset-inline-start:-10px}.org-tree ul>li:first-child:after{width:calc(50% + 10px);inset-inline-start:50%}.org-tree ul>li:last-child:after{width:calc(50% + 10px);inset-inline-start:-10px}
@media(max-width:600px){.org-node{width:184px;max-width:184px;padding:12px}.org-view-controls{gap:6px}.org-view-controls .caption{flex-basis:100%}.org-chart-viewport{height:420px}.org-tree,.org-tree ul{gap:20px}}
/* Group detail: one identity header and bounded child/offer cards. */
.setup-group-header{padding:16px 20px;margin-block-end:4px;align-items:flex-start}
.setup-group-header>div:first-child{flex:1;min-width:0}
.setup-group-header h2{margin:0;font-size:20px;line-height:1.5}
.setup-group-header p{margin-block-start:6px;color:var(--muted);font-size:13px;line-height:1.7;max-width:65ch;overflow-wrap:anywhere}
.setup-nested-groups .setup-card-grid,.setup-group-offerings .setup-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:14px}
.setup-nested-groups>header h3,.setup-group-offerings>header h3{font-size:15px}
.setup-nested-groups .setup-drill-card{padding:16px;gap:12px;min-height:210px}
.setup-nested-groups .setup-drill-card h3{font-size:15px}
.setup-nested-groups .setup-card-top .icon-tile{width:36px;height:36px}
.setup-nested-groups .setup-card-bottom{padding-block-start:12px}
.setup-nested-groups .setup-card-receivers{font-size:11px}
@container workspace (max-width:480px){.setup-group-header{padding:14px}.setup-group-header h2{font-size:18px}.setup-group-header .admin-actions{width:100%;justify-content:start}.setup-nested-groups .setup-card-grid,.setup-group-offerings .setup-card-grid{grid-template-columns:minmax(0,1fr)}}
/* Offering workspace uses the shared administration palette and spacing. */
.offering-studio{display:grid;gap:20px;min-width:0;container-type:inline-size;container-name:offering}
.offering-stage-nav{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.offering-stage-nav a{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;color:var(--ink);text-decoration:none;font-size:12px;font-weight:600;border-radius:8px}
.offering-stage-nav a:hover{background:var(--bg)}
.offering-stage-nav a span{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;background:var(--bg);border:1px solid var(--line);border-radius:7px;font-size:11px}
.offering-readiness{padding:18px 20px;border:1px solid var(--line);border-inline-start:4px solid var(--brand);border-radius:12px;background:var(--surface)}
.offering-readiness.needs-work{border-inline-start-color:var(--gold)}
.offering-readiness>strong{display:flex;align-items:center;gap:8px;font-size:14px}
.offering-readiness p{font-size:12px;line-height:1.8;margin:8px 0 0;color:var(--muted)}
.offering-readiness ul{list-style:none;padding:0;margin:10px 0 0}
.offering-readiness li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.7}
.offering-readiness li .btn{flex-shrink:0}
.offering-definition-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.58fr);gap:20px;align-items:start}
.offering-definition-layout>div{display:grid;gap:24px;min-width:0}
.offering-stage{min-width:0;scroll-margin-top:20px;display:grid;gap:14px}
.offering-stage>header{display:flex;align-items:center;gap:10px}
.offering-stage>header h3{margin:0;font-size:17px}
.offering-stage>header .icon-tile{width:34px;height:34px;flex-shrink:0}
.offering-preview{position:sticky;top:18px;padding:18px;border-radius:14px;background:var(--surface);border:1px solid var(--line);min-width:0;max-height:85vh;overflow:auto;overscroll-behavior:contain}
.offering-preview header h3{font-size:15px;margin:0 0 6px}
.offering-preview header small{font-size:11px;color:var(--muted)}
.offering-employee-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:16px;min-width:0;background:var(--bg)}
.offering-employee-card h4{font-size:16px;line-height:1.6;margin:10px 0 6px;overflow-wrap:anywhere}
.offering-employee-card p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 8px;overflow-wrap:anywhere}
.offering-employee-card small{color:var(--muted);font-size:11px}
.offering-preview-form{margin-top:16px;min-width:0}
.offering-preview-form fieldset{display:grid;gap:14px;min-width:0;margin:0;padding:0;border:0}
.offering-preview-form :where(input,select,textarea){width:100%;min-width:0;max-width:100%;font-size:12px}
.offering-preview-form .field{min-width:0}
.offering-preview-form label{font-size:12px;line-height:1.7}
.offering-preview-form .caption{font-size:11px}
.offering-shared-form{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface);font-size:12px;line-height:1.8}
.offering-linked-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:10px}
.offering-linked-item{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:10px;text-decoration:none;background:var(--surface);color:var(--ink);min-width:0;overflow-wrap:anywhere}
.offering-linked-item strong{font-size:13px}
.offering-linked-item small{font-size:11px;color:var(--muted);line-height:1.7}
.offering-linked-item.active{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.setup-offering-preview{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.setup-offering-preview h4{font-size:13px;line-height:1.7;margin:0}
.setup-offering-preview .offering-preview-form fieldset{opacity:.9}
@container offering (max-width:850px){.offering-definition-layout{grid-template-columns:minmax(0,1fr)}.offering-preview{position:static;max-height:none}.offering-preview-form fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.offering-preview-form fieldset>.full{grid-column:1/-1}}
@container offering (max-width:480px){.offering-stage-nav{gap:4px;padding:8px}.offering-stage-nav a{font-size:11px;padding:6px 8px}.offering-readiness{padding:14px}.offering-readiness li{align-items:start;flex-direction:column;gap:8px}.offering-preview-form fieldset{grid-template-columns:minmax(0,1fr)}.offering-studio .admin-actions{flex-wrap:wrap}.offering-stage>header h3{font-size:15px}.offering-preview{padding:14px}}
