/* ============================================================================
   shared/asset-switch.css — the shared asset switcher (asset-switch.js). Extracted
   from field-components.css so a workspace uses it without the field stack. SPEC tokens.
   ========================================================================== */
.aswitch{position:relative;padding:8px 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:5px}
/* Embedded in a card body or a property-row pickhost — not the standalone workspace switcher
   at the top of a rail (which carries its own padding and bottom rule). Without this the
   standalone chrome overflows a `.prow`, misaligns labels, and clips the CRUD buttons. */
.pickhost>.aswitch,.docpick>.aswitch{padding:0;border-bottom:none;width:100%;min-width:0;gap:4px;align-items:center}
.pickhost>.aswitch .aic,.docpick>.aswitch .aic{width:9px;height:9px;border-radius:2px}
.pickhost>.aswitch .asel,.docpick>.aswitch .asel{flex:1;min-width:0;height:26px;padding:0 8px;font-size:11.5px;border-radius:var(--r-row,6px)}
.pickhost>.aswitch .abtn,.docpick>.aswitch .abtn{width:26px;height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px}
.pickhost>.aswitch-picker,.docpick>.aswitch-picker{padding:0;border-bottom:none;width:100%;min-width:0}
.pickhost>.aswitch-picker .asel,.docpick>.aswitch-picker .asel{width:100%;height:26px;padding:0 8px;font-size:11.5px;border-radius:var(--r-row,6px)}
.aswitch .aic{width:11px;height:11px;border-radius:3px;flex:none}
.aswitch .asel{flex:1;min-width:0;display:flex;align-items:center;gap:6px;background:var(--well);border:1px solid transparent;border-radius:7px;color:var(--ink);padding:5px 9px;font-size:12px;font-family:Consolas,monospace;cursor:pointer}
.aswitch .asel:hover,.aswitch .asel:focus{border-color:var(--accent);outline:none}
.aswitch .asel .acur{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aswitch .asel .acv{flex:none;color:var(--muted);font-size:9px}
.aswitch .aname{flex:1;min-width:0;background:var(--well);border:1px solid var(--accent);border-radius:7px;color:var(--ink);padding:4px 8px;font-size:12px;font-family:Consolas,monospace;outline:none}
.aswitch .abtn{flex:none;background:var(--well);border:1px solid transparent;border-radius:6px;color:var(--muted);cursor:pointer;font-size:12px;padding:4px 7px;line-height:1}
.aswitch .abtn:hover{color:var(--accent-text);border-color:var(--accent)}
/* ONE primary per row, and it is SAVE — the only verb here whose absence loses work. ＋ new
   drops to the neutral treatment its three siblings already share (ui-and-authoring-docs §2:
   an accent worn by two controls at once has stopped meaning anything). */
.aswitch .abtn.sav{background:var(--accent);color:var(--on-accent);font-weight:700}
.aswitch .abtn.sav:hover{filter:brightness(1.07);color:var(--on-accent);border-color:transparent}
.aswitch .abtn.del:hover{background:var(--danger-soft);color:var(--danger);border-color:var(--danger)}
.aswitch .amenu{position:absolute;top:100%;left:10px;right:10px;margin-top:4px;z-index:30;background:var(--card);border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 26px rgba(0,0,0,.4);overflow:hidden}
.aswitch .asearch{display:block;width:100%;box-sizing:border-box;background:var(--well);border:none;border-bottom:1px solid var(--line);color:var(--ink);padding:7px 10px;font-size:12px;font-family:inherit;outline:none}
.aswitch .asearch::placeholder{color:var(--faint)}
.aswitch .aopts{max-height:220px;overflow-y:auto;padding:4px}
.aswitch .aopt{padding:6px 9px;border-radius:6px;cursor:pointer;font-size:12px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:Consolas,monospace}
.aswitch .aopt:hover{background:var(--hover)}
.aswitch .aopt.on{background:var(--accent-sel);color:var(--accent-text)}
.aswitch .aopt.empty{color:var(--faint);cursor:default}
