/* Native controls keep their layout; their menus share the project popup surface. */
.ailink-select-popover{position:fixed;z-index:11000;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;margin:0;padding:5px;background:var(--oa-panel,#151515);color:var(--oa-text,#f4f4f5);border:1px solid var(--oa-border-strong,#484848);border-radius:9px;box-shadow:0 10px 28px #0004;font-family:inherit;font-size:12px;line-height:1.5;scrollbar-width:thin;touch-action:pan-y}
html[data-theme] .ailink-select-option{display:flex;align-items:center;gap:9px;box-sizing:border-box;min-height:34px;padding:7px 10px;border:0!important;outline:0;box-shadow:none!important;border-radius:5px;background:transparent;color:var(--oa-text);cursor:pointer;user-select:none}
.ailink-select-option>span:last-child{min-width:0;overflow-wrap:anywhere}
.ailink-select-tick{flex:0 0 14px;width:14px;color:var(--oa-accent,#edfdb5);font-weight:600}
html[data-theme] .ailink-select-option.is-active{background:var(--oa-hover,#242424)}
html[data-theme] .ailink-select-option[aria-selected=true]{color:var(--oa-accent,#edfdb5)}
html[data-theme] .ailink-select-option[aria-disabled=true]{opacity:.45;cursor:default}
.ailink-select-group{padding:8px 10px 4px;color:var(--oa-muted,#b8bab1);font-size:11px}
/* Align every Skill's model, quote and actions on one baseline, with notes below. */
html[data-theme] .skill-modal-fixed-footer{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:end;gap:8px 12px;padding:14px 0 16px}
html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row){display:contents}
html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>label{grid-column:1;grid-row:1;min-width:0;margin:0}
html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>div{grid-column:2;grid-row:1;box-sizing:border-box;height:38px;min-width:0;margin:0}
html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>small{grid-column:1/-1;grid-row:2;margin:0;line-height:1.5}
html[data-theme] .skill-modal-fixed-footer>.modal-actions{position:static;grid-column:3;grid-row:1;align-self:end;align-items:center;justify-content:flex-end;min-width:0;height:38px;margin:0;padding:0;border:0;background:transparent;gap:8px}
html[data-theme] .skill-modal-fixed-footer>.modal-actions>button{box-sizing:border-box;height:38px;min-height:38px;white-space:nowrap;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
html[data-theme] .skill-modal-fixed-footer select{box-sizing:border-box;width:100%;height:38px;min-height:38px;margin:0}
@media(max-width:820px){html[data-theme] .skill-modal-fixed-footer{grid-template-columns:minmax(120px,1fr) auto}html[data-theme] .skill-modal-fixed-footer>.modal-actions{grid-column:1/-1;grid-row:2}html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>small{grid-row:3}}
@media(max-width:520px){html[data-theme] .skill-modal-fixed-footer{grid-template-columns:minmax(0,1fr)}html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>label{grid-column:1;grid-row:1}html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>div{grid-column:1;grid-row:2;justify-content:space-between}html[data-theme] .skill-modal-fixed-footer>.modal-actions{grid-column:1;grid-row:3}html[data-theme] .skill-modal-fixed-footer>:is(.skill-billing-control,.travel-model-row)>small{grid-row:4}html[data-theme] .skill-modal-fixed-footer .travel-actions .primary-action{min-width:0;flex:1}}
/* The 14px interaction path stays invisible; only a 1.25px line is painted. */
html[data-theme] .canvas-screen-connections path{fill:none!important;filter:none!important}
html[data-theme] .canvas-screen-connections :is(.canvas-reference-wire,.canvas-reference-pending){stroke-width:1.25px!important;stroke-linecap:round;pointer-events:none;opacity:.85}
html[data-theme=dark] .canvas-screen-connections .canvas-reference-wire{stroke:#a5b374!important}
html[data-theme=light] .canvas-screen-connections .canvas-reference-wire{stroke:#8e9e55!important}
html[data-theme] .canvas-screen-connections .canvas-reference-hit{stroke:transparent!important;fill:none!important;opacity:0!important;stroke-width:14px!important;pointer-events:stroke}
html[data-theme] .canvas-screen-connections .canvas-reference-flow{display:block!important;stroke-width:1.25px!important;stroke-dasharray:3 97;stroke-linecap:round;opacity:1;pointer-events:none;animation:canvas-fine-flow-v228 3.5s linear infinite!important}
html[data-theme=dark] .canvas-screen-connections .canvas-reference-flow{stroke:#eeffb4!important}
html[data-theme=light] .canvas-screen-connections .canvas-reference-flow{stroke:#9cb83c!important}
@keyframes canvas-fine-flow-v228{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){html[data-theme] .canvas-screen-connections .canvas-reference-flow{display:none!important;animation:none!important}}
