/* Stable request card and connected organization picker */
.request-layout{grid-template-columns:190px minmax(0,1fr) 360px}
.request-form{display:grid;grid-template-rows:minmax(0,1fr) auto;height:clamp(520px,calc(100dvh - 205px),720px);min-height:0;overflow:hidden;background:var(--surface);border:1px solid var(--line)}
.form-section{grid-column:1;grid-row:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:26px 28px}
.form-section.active{display:block}
.section-copy{min-height:54px;margin-bottom:18px}
.section-copy h3{font-size:22px}.section-copy p{font-size:14px;line-height:1.5}
.form-grid label>span,.org-field-head>span{font-size:14px}.org-field-head small{font-size:12px}
.form-grid input,.form-grid textarea,.smart-select-trigger{font-size:14px}
.form-actions{grid-column:1;grid-row:2;position:relative;z-index:5;min-height:72px;padding:14px 28px;background:var(--surface);box-shadow:0 -12px 26px color-mix(in srgb,var(--text) 5%,transparent)}

.org-field{position:relative;isolation:isolate;gap:8px}
.org-selection{position:relative;z-index:2;border-color:var(--line-strong);background:var(--surface);transition:border-color .2s ease,box-shadow .2s ease,border-radius .22s ease}
.org-field.is-open .org-selection{border-color:var(--accent);border-radius:14px 14px 9px 9px;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}
.org-add{min-height:36px;font-size:13px}.org-add svg{transition:transform .22s cubic-bezier(.2,.8,.2,1)}.org-add[aria-expanded="true"] svg{transform:rotate(45deg)}
.org-menu{position:relative;z-index:1;top:auto;left:auto;width:100%;max-height:0;margin-top:-9px;padding:0 14px;border:0 solid var(--line-strong);border-radius:0 0 16px 16px;background:var(--surface);box-shadow:none;opacity:0;visibility:hidden;transform:translateY(-4px);overflow:hidden;pointer-events:none;transition:max-height .26s cubic-bezier(.2,.8,.2,1),padding .26s cubic-bezier(.2,.8,.2,1),margin .26s cubic-bezier(.2,.8,.2,1),border-width .16s ease,opacity .2s ease,transform .26s cubic-bezier(.2,.8,.2,1),visibility 0s linear .26s}
.org-menu.open{max-height:390px;margin-top:1px;padding:14px;border-width:1px;opacity:1;visibility:visible;transform:none;pointer-events:auto;box-shadow:0 16px 36px color-mix(in srgb,var(--text) 10%,transparent);transition-delay:0s}
.org-menu::before{content:"";position:absolute;top:0;left:24px;width:46px;height:2px;background:var(--accent);opacity:.8}
.org-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.org-menu-head>span{display:grid;gap:2px}.org-menu-head strong{font-size:15px}.org-menu-head small{color:var(--muted);font-size:12px;line-height:1.45}.org-menu-head>button{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--muted);cursor:pointer}.org-menu-head svg{width:15px}
.org-search{height:42px;display:flex!important;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--line-strong);border-radius:11px;background:var(--surface)}.org-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}.org-search svg{width:16px;color:var(--muted);flex:0 0 auto}.org-search input{min-width:0;width:100%;height:100%;padding:0!important;border:0!important;outline:0;background:transparent!important;color:var(--text);font-size:14px}
.org-options{display:grid;gap:5px;max-height:190px;margin:10px 0;overflow-y:auto;overscroll-behavior:contain;padding:1px}.org-options button{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid transparent;border-radius:11px;background:var(--surface-2);color:var(--text);text-align:left;cursor:pointer}.org-options button:hover,.org-options button:focus-visible{border-color:var(--line-strong);background:var(--surface)}.org-options button[aria-selected="true"]{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.org-options button>span{display:grid;gap:2px}.org-options strong{font-size:14px}.org-options small{color:var(--muted);font-size:12px}.org-options svg{width:17px;color:var(--accent);opacity:0}.org-options button[aria-selected="true"] svg{opacity:1}.org-no-result{margin:18px 0;text-align:center;color:var(--muted);font-size:13px}
.org-menu-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid var(--line)}.org-menu-footer>span{color:var(--muted);font-size:13px}.org-menu-footer b{color:var(--accent)}.org-menu-footer button{min-height:38px;padding:0 15px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:13px;font-weight:750;cursor:pointer}

/* Similar requests: neutral working surface with color used only for state. */
.similar-request-panel{max-height:clamp(520px,calc(100dvh - 205px),720px);border-color:var(--line-strong);background:var(--surface);box-shadow:0 12px 30px color-mix(in srgb,var(--text) 7%,transparent)}
.similar-mobile-toggle{min-height:52px;padding:0 16px;font-size:15px;border-bottom-color:var(--line-strong)}.similar-mobile-toggle>span{gap:9px}.similar-mobile-toggle svg{width:17px;color:var(--accent)}
.similar-panel-body{max-height:calc(clamp(520px,calc(100dvh - 205px),720px) - 52px);padding:16px}
.similar-search-head strong{font-size:14px}.similar-search-head small{font-size:12px;line-height:1.45}.similar-search-head>span{padding:4px 7px;border-radius:999px;font-size:11px;background:var(--surface-2)}
.similar-search{height:44px;margin:13px 0 10px;border-radius:11px}.similar-search input{font-size:13px}.similar-search svg{width:16px}
.similar-results{gap:7px;max-height:230px}.similar-result{gap:4px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}.similar-result:hover{border-color:var(--line-strong);background:var(--surface-2)}.similar-result.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--surface));box-shadow:inset 3px 0 var(--accent)}.similar-result strong{font-size:14px}.similar-result span,.similar-result small{font-size:12px}.similar-result em{font-size:11px}
.similar-empty{min-height:120px;gap:6px}.similar-empty svg{width:22px;color:var(--accent)}.similar-empty strong{font-size:14px}.similar-empty small{font-size:12px;line-height:1.45}
.similar-preview{margin-top:13px;padding-top:13px}.preview-head strong{font-size:14px}.preview-head small{font-size:12px}.preview-meta{gap:6px;margin:10px 0}.preview-meta span{padding:5px 7px;border-radius:6px;font-size:11px}.preview-copy{font-size:13px}.copy-options label{font-size:12px}.copy-notice{font-size:12px}.preview-actions button{min-height:40px;font-size:13px}
.related-links{margin-top:16px;padding-top:14px}.related-links-head strong{font-size:14px}.related-links-head small,.related-note{font-size:11px}.related-links>button{min-height:39px;padding:9px 10px;font-size:12px;background:var(--surface)}

html[data-theme="dark"] .request-form,html[data-theme="dark"] .org-menu,html[data-theme="dark"] .org-search,html[data-theme="dark"] .org-options button,html[data-theme="dark"] .similar-request-panel,html[data-theme="dark"] .similar-result{background:var(--surface)}
@media(max-height:720px) and (min-width:1051px){.request-form{height:calc(100dvh - 168px);min-height:450px}.similar-request-panel{max-height:calc(100dvh - 168px)}.similar-panel-body{max-height:calc(100dvh - 220px)}}
@media(max-width:1050px){.request-layout{grid-template-columns:1fr}.request-form{height:clamp(520px,calc(100dvh - 190px),700px)}.similar-request-panel{max-height:none}.similar-panel-body{max-height:none}.form-steps button{font-size:14px}}
@media(max-width:640px){.request-form{height:clamp(500px,calc(100dvh - 145px),640px)}.form-section{padding:20px 16px}.form-actions{min-height:68px;padding:12px 16px}.section-copy{min-height:48px}.org-menu.open{max-height:420px}.org-menu-head small{max-width:220px}.similar-panel-body{padding:14px}}
@media(prefers-reduced-motion:reduce){.org-selection,.org-add svg,.org-menu{transition:none!important}.org-menu{transform:none!important}}

/* Final selector details: preserve contrast and keep footer controls on one line. */
.org-menu-head svg{opacity:1}.org-menu-footer>span{white-space:nowrap}.org-menu-footer button{width:auto}
html[data-theme="dark"] .org-chip{border-color:var(--line);background:var(--surface-2)}html[data-theme="dark"] .org-chip.lead{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
/* Configured OEM responsibilities remain attached to their stage. */
.configured-stage-notes{display:grid;gap:9px;margin-top:16px}.configured-stage-notes details{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.configured-stage-notes summary{cursor:pointer;font-size:13px;font-weight:700}.configured-stage-notes p,.configured-stage-notes li{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0}.configured-stage-notes b{color:var(--text)}
